Giter Site home page Giter Site logo

kebin20 / news-homepage-main Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.83 MB

News Homepage built with CSS Grid, Flexbox with Responsive Design Principles

Home Page: https://kebin20.github.io/news-homepage-main/

HTML 47.42% JavaScript 2.34% CSS 50.24%

news-homepage-main's Introduction

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
  • Bonus: Toggle the mobile menu (requires some JavaScript)

My process

Built with

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

What I learned

I struggled a lot with this project which had 2 main problems that I encountered:

  • Correct layout
  • Grid sizing

Initially, I struggled a lot with getting the sizes as close as possible to the one in the proposed solution. I realized that I was setting grid sizes wrong, and the major one was also setting up containers for sections that didn't need to be contained within a container. I realised this after remembering the fundamentals of Grid, is that you don't need as ,many nested containers.

I also had troubles on getting the hamburger menu to display to the right, instead of the left hand side which took me a long time experimenting until I reached the desired objective.

Another significant trouble I encountered was trying to show the list of links in desktop mode, but eventually I reorganised the nav and header elements and finally made it work.

Useful resources

  • Scrimba - There was a course in the UI section where the instructor was going through a responsive mobile design, and I took the idea from that tutorial.

Author

news-homepage-main's People

Contributors

kebin20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.