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: Github link
- Live Site URL: live site link
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Vanilla Js
This project thought me more about implementing grid into websites designs and also using a mobile first approach.
<div class="nav-mobile" id="hide">
<ul>
<img
src="assets/images/icon-menu-close.svg"
alt="icon-menu-close"
class="icon-menu-close"
/>
<div class="list-item">
<li>Home</li>
<li>New</li>
<li>Popular</li>
<li>Trending</li>
<li>Categories</li>
</div>
</ul>
</div>
<ul class="show-nav-desktop">
<li>Home</li>
<li>New</li>
<li>Popular</li>
<li>Trending</li>
<li>Categories</li>
</ul>.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}I want to focus more on building mobile first designs in my future projects and also getting better with using Grid method.
- Frontend Mentor - @mallow12


