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 my Solution

@ElijahPoblete

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


i find looking for the background of the image difficult i think. I am unsure of its reponsiveness. I also think that i have a disorganized code. Please give me some advice about how i structure my code. I'm still new to coding so i would be happy for for every criticism and advices thank you!

Community feedback

P

@devpullcode

Posted

"I've been reviewing your code, and you're on the right track. 👏

Below, I'll give you some recommendations, but don't worry about making the code perfect. The important thing at the beginning is to discover and learn new techniques without worrying too much about optimization.

  1. I recommend formatting your code properly. You can use a formatter like Prettier in VSC (Visual Studio Code). 🧹

  2. Avoid creating too many <div> elements and look for HTML elements that can represent the blocks you're creating. Instead of using the <div class="caption"> tag, you can use the <figcaption> tag along with the <figure> tag, which associates an image with its description. Look into the concept of HTML semantics!

  3. While you're starting out, focus on simplifying the design and don't try to add too many HTML elements to make it easier to write CSS. I'm referring to the hyperlinks you added to the text; they weren't necessary, but they're good for practice.

  4. Another recommendation, not directly related to the project itself, is to avoid using fixed heights. I recommend that the height of the element is calculated based on its children; it will make your design work easier. I've also used a fixed height 😄, but I recommend not using them.

  5. Use comments to understand what the code is doing so that when you come back to it in the future, you'll have an easier time grasping it. Over time, as you advance in your learning, you'll need them less and less.

  6. In this practice, it's not necessary to use media queries because the design adapts well to all devices. So avoid making unnecessary modifications if they're not needed. It will make your life easier! 😜

  7. Try to group each content into its corresponding directories/folders. I'm referring to the two screenshots; you can place them inside the 'images' directory and create another subdirectory in there if needed.

Other than that, congratulations on your project, and kudos for embarking on this wonderful journey into the world of programming. Keep it up, and you'll go far. Go for it! 🚀👨‍💻"

Marked as helpful

1

@ElijahPoblete

Posted

Thank you very much! I really appreciate it! I'll put it to practice in my future works

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