This is my implementation of the Workit landing page.
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
- 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
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;
}
}- CSS variables in media query declarations - This is a good article which helped me understand the difference between built-in CSS variables and Scss variables.
- Website - Jett Zhang
