This is a solution to the Recipe Page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the recipe page with a clean and responsive design
- See the preparation time, ingredients, instructions, and nutritional values clearly
- View an image of the dish
- Live Site URL: Live Site
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
Working on this project helped me reinforce my understanding of:
- CSS Custom Properties: Using variables for consistent styling across the project.
- Flexbox: Aligning and distributing space among items in a container.
- Responsive Design: Ensuring the layout adapts well to different screen sizes using media queries.
Code snippets I’m proud of:
<figure>
<img src="images/image-omelette.jpeg" alt="A plate of served omelette with a golden-brown crust" role="img" aria-label="Served omelette">
</figure>
body {
margin: 0;
padding: 0;
font-family: 'Young Serif', serif;
background-color: var(--stone-100);
line-height: 1.6;
font-size: 16px;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
}
.instructions-steps li::before {
content: counter(list-counter) ". ";
color: hsl(14, 45%, 36%);
position: absolute;
left: -30px;
top: 0;
font-weight: 700;
}
In future projects, I aim to:
- Explore CSS Grid: For more complex layouts and design patterns.
- Improve Accessibility: By testing and enhancing the accessibility features of the website.
- Experiment with JavaScript: To add interactive elements and dynamic content.
- CSS Tricks Flexbox Guide - This guide was essential in understanding Flexbox.
- MDN Web Docs on Media Queries - Helpful for implementing responsive design.
- Frontend Mentor - @Yashi-Singh
- LinkedIn - @Yashi Singh
A special thank you to Frontend Mentor for providing this challenge. It was an excellent opportunity to enhance my skills and practice real-world web design techniques. Also, thanks to the Frontend Mentor community for their feedback and support throughout the development of this project. Lastly, a shout-out to MDN Web Docs for their comprehensive documentation and tutorials.