Skip to content

yumelih/news-homepage-main

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

Note: Delete this note and update the table of contents based on what sections you keep.

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

Screenshots

Desktop Site Mobile Site Mobile Site with side navigation

Links

My process

Built with

  • Semantic HTML5 markup
  • Sass variables and mixins
  • Flexbox
  • Desktop-first workflow
  • Scss - For styles

What I learned

This is my first site that focuses on the mobile design by using media queries and mixins I applied the responsive design to this site.

Below shows the mixins I used for applying the media queries. I learned this from Jonas Schmedtmann Advanced CSS course.

@mixin respond($breakpoint) {
  @if $breakpoint == phone {
    @media only screen and (max-width: 37.5em) {
      @content;
    } //600px
  }

  @if $breakpoint == tab-port {
    @media only screen and (max-width: 56.25em) {
      @content;
    } //900px
  }

  @if $breakpoint == tab-land {
    @media only screen and (max-width: 75em) {
      @content;
    }
  }
}

Continued development

There is a small problem with the app. For tab-port(tablet portrait) navigation items disappear and an icon appears that allows you to check navigation items via a popup. When this popup stays open and then the screen gets bigger. The icon disappear and there is no way to close the popup so, I want to work on that.

Useful resources

I mainly used flexbox to order the elements in the website below are very useful resources if you want to learn more about flexbox.

  • A Guide to Flexbox - When it comes to learning and remembering flex properties you might forget them. To counter this I used this site.
  • Flexbox Playground - To quickly play around flex properties.

Author

Acknowledgments

I used Jonas Schemedtmann course solution for applying media queries and animation used in the course change icon appereance when hovered.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published