This is a solution to the QR code component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- in the head link all stylesheet. I always use 3 ayt least:
- reset.css to remove all standard paddings and margins;
- styles.css to add all my styles when building the projects;
- queries.css to put all @media-queries
-
start from the mobile version (we will make changes for the desktop version later, with the queries.css stylesheet);
-
In styles.css create the variables for colors and fonts;
-
Move the footer to the bottom with position: fixed and bottom: 0;
-
Make a div to store all content, set to width: 375px (mobile width);
-
Make the image fit in the div (width: 100%);
-
Center the text and add padding;
-
Set colors using the variables created at point 3;
-
Set all paddings and border-radius;
-
Center on the page with flexbox (create flex container with height set to 100vh)
11.Adjust media-queries for responsive design for desktop
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Website - Jamila Zini
- Frontend Mentor - @potpot89