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.
- Solution URL: GitHub Repo
- Live Site URL: GitHub Page
- I started by building the component markup
- Defined the styles in the variables partial
- Defined sass mixins to reduce repetition and lines of code
- Applied the styles (styles.scss)
- Semantic HTML5 markup
- Sass
- CSS custom properties
- Flexbox
- Mobile-first workflow
This challenge was a great refresher after months of job searching and JS tutorials. In this challenge I learnt how to:
To do this, I pasted the import link in the variable file then defined each font variation.
_variables.scss:
// FONTS
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
$font-reg: 400;
$font-bold: 700;
From there, I defined the font family in the main scss file as font-family: 'Outfit'
and that was it.
I added a transparent grey-blue variant by adding a fourth value.
_variables.scss:
$color-gray-blue--trans: hsl(220, 15%, 55%, 20%);
- developerdrive.com - This helped understand how to import custom fonts from Google fonts into Sass.
-
Kevin Powell – For making me aware of the Frontend Mentor platform.
-
Jessica Rodriguez (j-rods) – For mentoring and showing me how to keep my skills sharp. She's also a former colleague who transitioned to web development in 2017.