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: https://github.com/roger-hope/qr-code-component
- Live Site URL: https://roger-hope.github.io/qr-code-component/
This project is a good starter for some experimental CSS. In this particular one, I made use of very basic SASS and standard HTML5. This produced the desired result, but there is room to upgrade this component using animation, JavaScript to dynamically generate the QR-code image, and create mixins for the border radius and drop-shadows. The below mixin is a start of the next version of this project.:
@mixin flex($dir: row, $just: space-between, $align: center) {
display: flex;
flex-direction: $dir;
justify-content: $just;
align-items: $align;
}body {
background-color: #d5e1ef;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: space-around;
}Further development of this project, will be the use of more tricky and advanced SASS mixins to make the component more reusable.
- SASS documentation - This is the go-to place for advancing the SASS mixins.
- Vite - Static deploy - Deploy a static site by providing the correct Vite configuration and Gitub actions.
- Vite - SASS boilerplate - Get up-and-running with a Vite and SASS setup quickly.
- Website - Roger
- Frontend Mentor - @roger-hope
