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: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- CSS custom properties
- Google Fonts - Family: Outfit
Here I learned how to start doing responsive pages, using percentage and relative size. I'm sure I can improve the code, but this was the first page that I built alone withou any course or tutorial.
I need to understand better how to use the media detector to improve websites, start to think what I'll need to add here before getting to this part so I don't need to change much on the base code.
int his challenge I added this to make it responsive when the screen widht is smaller then the QR Code block.
@media (max-width:350px) {
.qrblock {
width: 80vw;
}
}
I'm still learning, so there is a lot I want to improve and learn, still haven't decided if I want to focus on back or front-end
- How to Center a Div Horizontally and Vertically - This helped me for centering the QR block on the screen. I really liked this pattern and will use it going forward.
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
- Website - Guido
- Frontend Mentor - @guidoaguiar
- Twitter - @guidoaguiar