Responsive Recipe Page with CSS Flexbox & Grid

Solution retrospective
I'm most proud of how I made the recipe page fully responsive using CSS Grid and Flexbox. It adapts well to different screen sizes, from mobile to desktop, which improves user experience. I also focused on clean and structured code, making it easier to maintain. Additionally, I ensured good color contrast and readability, following accessibility guidelines to make the page more user-friendly.
What challenges did you encounter, and how did you overcome them?-
Responsive Design Adjustments Challenge: Ensuring that the layout looked good across different screen sizes, especially aligning elements properly. Solution: I used CSS Grid and Flexbox effectively and tested the design at multiple breakpoints to ensure it adapted well.
-
Box Shadow Visibility Challenge: The box-shadow effect was too subtle, making it hard to notice. Solution: I experimented with different shadow values, adjusting opacity and spread until I achieved a better visual effect.
-
Text Alignment in Nutrition Section Challenge: The nutrition values (e.g., "0g", "22g") were not aligning as expected. Solution: I identified that display: flex; justify-content: space-between; in the .nutrition div was pushing the values to the right. I adjusted the styling to ensure proper alignment.
-
Learning HSL Color System Challenge: Understanding how HSL (Hue, Saturation, Lightness) works when defining colors. Solution: I experimented with different values and compared them with traditional hex codes to get a better grasp of HSL.
These challenges helped me improve my CSS skills and debugging approach. If I face similar issues in the future, I'll have a much quicker way to solve them. 😊
What specific areas of your project would you like help with?Responsive Design Improvements – While I’ve made the page adapt to different screen sizes, I’d love feedback on optimizing layouts for better readability on larger screens.
Accessibility Enhancements – I want to ensure my project meets WCAG standards, especially in terms of color contrast, font sizes, and keyboard navigation.
Code Optimization – I’d like guidance on best practices for writing cleaner, more efficient HTML & CSS to improve maintainability.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Md-Sadekur-Rahman'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