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.
Note: Delete this note and update the table of contents based on what sections you keep.
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- CSS Grid
- Mobile-first workflow
After some time of idling, I could revise some HTML and CSS, and have fun with problem solving.
Check out my usage of CSS variables and grid layout:
body {
font-family: Outfit, sans-serif;
font-size: 15px;
text-align: center;
margin: 0;
height: 100vh;
display: grid;
place-items: center;
/* Variables */
--width: 288px;
--lgray: hsl(212, 45%, 89%);
--gblue: hsl(220, 15%, 55%);
--dblue: hsl(218, 44%, 22%);
}
- Centering in CSS - CSS-Tricks - This article helped me with centering the card. It shows a bunch of ways to center elements with CSS.
- box-shadow - MDN - MDN is an amazing resource and helped me a lot.
- Frontend Mentor - @nikkehtine
- Twitter - @nikkehtine
Thanks to @WitchDevelops for helping me and answering my questions!