Skip to content

seamissu/workit-landing-page

Repository files navigation

Workit landing page

This is my implementation of the Workit landing page.

Table of contents

Overview

The project

Users should be able to:

  • View the optimal layout for the interface depending on their device's screen size (Desktop / Tablet / Mobile)
  • See hover and focus states for all interactive elements on the page

Screenshot

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • SCSS custom properties for Media Query
  • Flexbox
  • CSS Grid
  • Variable fonts
  • Desktop-first workflow
  • React - JS library
  • Next.js - React metaframework
  • css-modules - For component-scoped CSS styles
  • Sass - For nested media queries and SCSS variables in the dev mode

What I learned

It's possible to combine nested media query syntax, Scss variables and CSS built-in variables like this:

.wrapper {
  display: grid;
  min-height: 100%;
  grid-template-areas:
    'header'
    'main'
    'profile'
    'footer';
  grid-template-rows: 660px 730px 1fr 350px;

  position: relative;
  overflow: hidden;
  background-color: var(--ghost-white);

  --padding-identation: 160px;
  --padding-identation-tablet: 38px;
  --padding-identation-mobile: 16px;

  @media (max-width: $tablet-and-below) {
    grid-template-rows: 540px 1000px 1fr 250px;
  }

  @media (max-width: $mobile-and-below) {
    grid-template-rows: 480px 1100px 1fr 250px;
  }
}

Useful resources

Author

Releases

No releases published

Packages

 
 
 

Contributors