This is a solution to the News homepage challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page
- Solution URL: (https://github.com/jacey10/fm-news-homepage-challenge)
- Live Site URL: (https://jacey10.github.io/fm-news-homepage-challenge/)
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- I learned how to transform nav into an overlay (for mobile) and how to restore it back to normal for desktop.
- I applied grid-template-areas and subgrid for the first time. It was easy to implement and worked efficiently.
- I'd learn how to use React to build this project next time.
- I used Claude and Qwen AI to debug overlay issues and stacking context issues.
- I also used them to brainstorm solutions.
- I basically got ideas from their suggestions whicch worked well for me. For intance, Claude suggested that to solve stacking context (backdrop covering overlay), I should remove give the backdrop a lower z-index but that didn't solve it because the header whuch contains the menu-overlay already has a lower z-index. So, I tried putting the backdrop div into the header. Now, it sits as a sibling next to the menu-overlay. So, giving the menu-overlay a higher z-index solved the stacking problem.
- Website - Jacey Blog
- Frontend Mentor - @jacey10
- Twitter - @jacey_muna

