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

Ricoโ€ข 370

@Shuliii

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


hi it's my first project. Any feedback or any kind of improvements that I can make will be very much appreciated.

Community feedback

Raymond Fajiculayโ€ข 230

@keyztrokee

Posted

Hi, Rico! Very cool solution, it really looks great :)

I noticed three things that you might want to consider:

  1. Change the h1 color to var(--clr-dark-blue) because it is not black.

2.Use <main> instead of <div> to wrap the card container. This way you show that this is the main block of content and also replace the div with a semantic tag.

3.Reduce your code by removing unnecessary elements. The HTML structure is working but you can reduce at least 20% of your code by cleaning the unnecessary elements, you start cleaning it by removing some unnecessary <div>. For this solution you wrap everything inside a single block of content using <div> or <main> (better option for accessibility) and put inside the whole content <img> / <h1> and <p>.

Other than that, really great job! :)

โœŒ๏ธ I hope this helps you and happy coding!

Marked as helpful

1

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

@keyztrokee Amazing tips Raymond!

1
Raymond Fajiculayโ€ข 230

@keyztrokee

Posted

@correlucas Hi, I just copied it from your suggestion to my work and I think it will help him too. Great help by the way, thank you very much!

0
Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

@keyztrokee ok

1
Raymond Fajiculayโ€ข 230

@keyztrokee

Posted

@correlucas Can you give feedback on my last work too? I would love to see what I can do better with it. Please consider taking a look at it if you have time. Thank you very much!

0
Ricoโ€ข 370

@Shuliii

Posted

@keyztrokee thankyou so much for the feedback. much appreciated.

0
Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHi @Shuliii, congratulations on your solution!๐Ÿ‘‹ Welcome to the Frontend Mentor Coding Community!

Great solution and a great start! From what I saw youโ€™re on the right track. Iโ€™ve few suggestions for you that you can consider adding to your code:

1.Think about using relative units as rem or em instead of px to improve your performance by resizing fonts between different screens and devices. Anyhow, if we want a more accessible website, then we should use rem instead of px. REM does not just apply to font size, but to all sizes as well.

2.Add the website favicon inserting the svg image inside the <head>. <link rel="icon" type="image/x-icon" href="./images/favicon-32x32.png">

3.IMPROVE YOUR WORKFLOW using VSCODE you can code your whole page using px and then in the end use a plugin called px to rem here's the link โ†’ https://marketplace.visualstudio.com/items?itemName=sainoba.px-to-rem to do the automatic conversion or use this website https://pixelsconverter.com/px-to-rem

4.Keep the image responsive. To manage the image size, you donโ€™t need to define the width and height together, if you do it with different values this will make the image lose proportions, to keep the image responsive and respect the container size use img { display: block; max-width: 100%} this way the image resize with the container whatever its size.

Here's my solution for this challenge if you wants to see how I build it: https://www.frontendmentor.io/solutions/qr-code-component-vanilla-cs-js-darklight-mode-nS2aOYYsJR

โœŒ๏ธ I hope this helps you and happy coding!

Marked as helpful

0

Ricoโ€ข 370

@Shuliii

Posted

@correlucas omg this is so helpful. thankyou Lucas.

0
Dunโ€ข 290

@DundeeA

Posted

This comment was deleted

0

Ricoโ€ข 370

@Shuliii

Posted

@DundeeA thankyou so much for the feedback.

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