QR Code Component Solution

Solution retrospective
Due to the fact that this is my first project, my biggest problem with it was aligning everything vertically. I came up with a solution but I have no idea if it is an elegant one. I have a lot of work ahead of me.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @OGShawnLee
Hello, good one! Some feedback right here.
- You should have wrapped your content inside of a main tag.
- About the alignment you could have aligned it with flexbox like this:
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
-
For transparent colors I recommend using rgba because it is easy to know how transparent a color is by looking at the last number. Like rgba(0, 0, 0, 0.25).
-
Use CSS variables. They come in handy when you need to change something. Update once and everything changes nicely.
This is a pretty simple project and you did a great job. Hope this helps and you keep coming back with new solutions! Have a good one :)
Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord