Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 5 months ago

Recipe-Page

Shagun•70
@ShagunGupta-tech
A solution to the Recipe page challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I’m proud that I used media queries for the first time and successfully made the layout responsive across different screen sizes. I created a clean, readable layout using only HTML and CSS — no frameworks, just raw code. I followed a mobile-first approach, which helped me better understand the importance of simplicity and scalability

I would try to use CSS Grid for more control over layout structure.

I’d explore accessibility improvements like aria-labels and better semantic tags.

I’d add dark mode support and maybe even try converting it into a React component for practice.

What challenges did you encounter, and how did you overcome them?

One of the main challenges I faced was managing the layout on small screens, especially:

The image scaling awkwardly or overflowing its container

Background or layout spacing issues on mobile view

How I overcame it: I used media queries to adjust padding, font sizes, and image dimensions based on screen width.

I learned to use CSS properties like max-width, object-fit, and width: 100% to make the image more responsive and visually appealing on all devices.

I also experimented with hiding unnecessary elements on mobile to keep the layout clean and focused.

What specific areas of your project would you like help with?

What I’d like help with I’d love feedback or guidance on:

Using aria-label effectively to improve accessibility.

Understanding when to use aria-label, aria-labelledby, or semantic tags like <section> and <article>.

How to test if my recipe page is screen-reader friendly and what tools I can use for that.

Best practices for adding ARIA to static content like ingredients and instructions.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Shagun's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License