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

Página de Receita

CarlosJoaquim•100
@CarlosJoaquim
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?

What I’m Most Proud Of in the Code: Responsive Design: The media query improves the user experience on smaller screens. Custom Fonts: Using custom typography adds a professional touch to the layout. Well-Structured Code: The HTML sections are well-separated and named, making the code easy to read. Soft Color Palette: The color scheme is visually appealing and provides a clean look. What I Would Do Differently Next Time: Improve Responsiveness: The fixed height of main could cause unnecessary extra space on smaller screens. Use rem and em Instead of vh and px: This would enhance accessibility and scalability. Reduce Repetitive CSS: Properties like font-family and font-size are repeated multiple times; using reusable classes would make the CSS cleaner and more efficient. Improve HTML Semantics: Some divs could be replaced with section or article for better accessibility and SEO. Add alt to the Background Image: This would improve accessibility and image indexing. Would you like me to implement some of these improvements in your code? 🚀

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

Challenges Faced and How They Were Overcome Responsive Layout Adjustments

Challenge: Ensuring the page adapts well to different screen sizes, especially smaller ones. Solution: Implemented a media query to adjust the layout on mobile devices, including making the image take full width and removing border-radius where necessary. Typography Integration

Challenge: Applying custom fonts consistently across different sections without conflicts. Solution: Used @font-face to properly define and load the fonts, ensuring they were applied correctly with specific class assignments. Maintaining a Clean and Readable Code Structure

Challenge: Keeping the CSS and HTML well-structured while maintaining flexibility. Solution: Used clear sectioning, added comments for readability, and ensured class and ID names were meaningful. Balancing Aesthetic Design with Functionality

Challenge: Creating a visually appealing design while keeping the layout user-friendly and functional. Solution: Chose a soft color palette, ensured proper contrast for readability, and maintained consistent spacing and alignment. Ensuring Cross-Browser Compatibility

Challenge: Different browsers may render styles slightly differently. Solution: Tested the page in multiple browsers and made necessary adjustments to ensure consistency.

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

I would like to improve specific areas of my project to make it more efficient and well-structured. Here are the main points I could focus on:

Improving Responsiveness

I noticed that while the media query works well, some elements still need adjustments, such as font sizes and spacing on smaller screens. The background image can become distorted on certain resolutions, so I need to review the background-size: 100% 100% to prevent this issue. Organizing CSS

I realized that some CSS rules are repeated, making the code longer than necessary. Better organization would help with maintainability. I could also use CSS variables to define colors, making the code more flexible and easier to modify in the future. Enhancing Accessibility

I want to ensure that text has enough contrast against the background to improve readability. Additionally, I can review the heading hierarchy and add alt text to images, making the page more accessible for all users.

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 CarlosJoaquim'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