Skip to content

mallow12/news-homepage-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - News homepage solution

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.

Table of contents

Overview

The challenge

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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • Vanilla Js

What I learned

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;
}

Continued development

I want to focus more on building mobile first designs in my future projects and also getting better with using Grid method.

Author

About

A news responsive homepage site for both mobile and desktop built with css grid

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors