This is my solution to the Recipe page challenge on Frontend Mentor.
The goal was to build a responsive recipe page that matches the design as closely as possible.
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties (Variables)
- Flexbox (for layout and centering)
- Mobile-first workflow
- Media Queries for Desktop optimization
During this project, I focused on pixel-perfect implementation using modern CSS. I learned how to effectively use the clamp() function to create a fluid design that adapts to the screen without any sudden changes. I also tried working with CSS counters for custom list numbering and advanced table styling, which are key skills when creating templates.
Example of my desktop adjustment:
<ol>
<li><b>Beat the eggs:</b> In a bowl, beat the eggs...</li>
<li><b>Heat the pan:</b> Place a non-stick frying pan...</li>
</ol>.recipe-card {
width: 100%;
max-width: clamp(24rem, 100%, 46rem);
border-radius: clamp(0rem, (100vw - 30rem) * 5, 1.5rem);
}In future projects, I want to focus on:
- Advanced CSS Grid: Using grid for more complex layouts, such as product listings in PrestaShop.
- Accessibility (a11y): Ensuring that all components are fully navigable by keyboard and screen readers.
- CSS variables for Theming: Mastering CSS variables to easily switch between light and dark modes or custom brand colors for clients.
- W3Schools - This was my go-to guide for understanding how to create fluid layouts.
- Google Fonts - Used for the Young Serif and Outfit font family as per the design requirements.
- MDN Web Docs - clamp() - This resource helped me understand how to create fluid design without having to write dozens of Media Queries. It's the key to modern responsiveness.
- Modern CSS Solutions - Great blog where I was looking for inspiration for semantic solutions for lists and tables.
- Frontend Mentor - @Saliva-sys
- GitHub - Saliva-sys
I would like to thank the Frontend Mentor community for providing such great challenges to practice real-world web development skills.
