Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

QR Code Component

lioba-sβ€’ 30

@lioba-s

Desktop design screenshot for the QR code component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What specific areas of your project would you like help with?

Being new to coding, I make so many mistakes I'm completely unaware of, but they must be glaringly obvious and some parts of my code might not make sense at all. I'd be so grateful for any pointers to be able to avoid them in the future. Also, how can I get closer to the original design (specifically on this project and in general)?

Community feedback

Dylan de Bruijnβ€’ 3,190

@DylandeBruijn

Posted

@lioba-s

Hiya! πŸ‘‹

Congratulations on your solution, it looks very close to the design! I can tell you put a lot of effort into it.

Things I like about your solution πŸŽ‰

  • Responsive
  • Use of semantic HTML elements
  • Clear descriptive CSS classes
  • Use of CSS custom properties

Things you could improve ✍️

  • You can remove flex: initial; and position: relative; on your body element. I think you left these while experimenting. As far as I can see they don't make a difference while trying to achieve your result.

  • Try to get into the habit of using classes more instead of ID's for styling your elements.

  • Try experimenting more with Flexbox, the gap property is very useful for example.

I hope you find my feedback valuable, and I would appreciate it greatly if you could mark my comment as helpful if it was! 🌟

Let me know if you have more questions and I'll do my best to answer them. πŸ™‹β€β™‚οΈ

Happy coding! 😎

Marked as helpful

0

lioba-sβ€’ 30

@lioba-s

Posted

@DylandeBruijn

Hi Dylan, thanks so much for taking the time and providing such helpful feedback. It was nice and easy to implement. I think I'll get back to this project in a while when I've gained more experience that will help me make improvements to it. 🐀

Oh, and the position: relative on the body (which I removed and then remembered πŸ˜…) is there to keep the footer in place... (as described in this article: https://www.freecodecamp.org/news/how-to-keep-your-footer-where-it-belongs-59c6aa05c59c/ - feel free to tell me if you think a different approach would be more suitable here.

I just had a look at your version of this project and it's impressive how closely it resembles the original. ✨ All the best to you! 🌞

0
Daniel πŸ›Έβ€’ 44,230

@danielmrz-dev

Posted

Hello there!

Congrats on completing the challenge! βœ…

Your solution looks awesome!

I saw that you used ID's and Classes on your project. They both work well but hey have a few differences:

ID’s are unique

πŸ“Œ Each element can have only one ID.

πŸ“Œ Each ID can have an unlimited amount of Styles applied to it.

πŸ“Œ Each page can have only one element with that ID.

πŸ“Œ IDs use β€œ#” in the CSS which can also be used as an identifier for HTML β€œJump Links” (hyperlinks). This allows you to jump from one place to another on the same web page and can also be used in creating a well-designed Table of Contents.

Classes are not unique

πŸ“Œ You can use the same Class on multiple elements.

πŸ“Œ Class naming is case sensitive.

πŸ“Œ Classes use a β€œ.” in front of the name in the CSS.

πŸ“Œ Each Class can have an unlimited amount of Styles applied to it.

πŸ“Œ You can use multiple classes on the same element.

I hope it helps!

Other than that, you did an excellent job!

0

lioba-sβ€’ 30

@lioba-s

Posted

@danielmrz-dev

Hi Daniel,

thanks a lot for your kind and motivating feedback! I made sure to use classes rather than ids. πŸ‘

All the best to you 🌈

0

Please log in to post a comment

Log in with GitHub
Discord logo

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