News homepage solution

Please log in to post a comment
Log in with GitHubCommunity feedback
- @thisisharsh7
Fantastic work on completing the challenge! Your modular CSS structure, using custom properties and organized imports, enhances maintainability and readability—great use of
--spacing-*
and--font-size-*
variables!-
For improvements, consider optimizing image loading with
loading="lazy"
on non-critical images to boost performance. The.trending__img
fixed height (300px) might cause distortion on some devices; usingaspect-ratio
could maintain proportions dynamically. In the mobile menu, the 60vw width might feel narrow on smaller screens—test a wider range (e.g., 80vw) for usability. For the popular section, addingmin-width
to.popular__text
could prevent text wrapping issues on smaller screens. -
To level up, explore CSS-in-JS or utility-first frameworks like Tailwind for faster iteration. The JavaScript for menu toggling is clean but could include keyboard event listeners for enhanced accessibility.
Overall, a polished solution, minor layout tweaks for perfection!
Marked as helpful -
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