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.
This is a simple QR code card linking to Front-end Mentors
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Using BEM I identified containers and pieces for easy styling
- I took advantage of custom CSS properties to make the card easy to update
- I then started at the root element and built the card from the background out towards the user.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
This project was a project that I used in order to strengthen my grasp of semantic HTML, CSS, BEM Architecture, and Custom CSS Properties.
I learned that by using custom properties in css I can add an alpha channel to values, but only if the property that I am adding them to does not include the hsl() format. Instead it must be the values themself.
:root {
--hsl-values: 218, 44%, 22%;
--hsl: hsl(var(--hsl-values));
--hsla: hsla(var(--hsl-values), 0.25)
}
In the future I plan on incorporating SCSS into my design process to speed up my workflow.
- Website - Remy Dale
- Frontend Mentor - @TheRemyD
- Twitter - @TheOnlyRemyD