Design comparison
Solution retrospective
Could you give me feedback? (Anything is accepted)
Community feedback
- @correlucasPosted about 2 years ago
👾Hi Arturo Gonzalez, congrats on completing this challenge!
You’ve done really good work here putting everything together, I’ve some suggestions you can consider applying to your code to improve the html markup/semantic:
The colors you’ve used are a little bit different from the original colors.When you download the project files there’s a file called
style-guide.md
where you can find information such asfont-family
,hsl color codes
, device sizes and thefont-size
for the headings.The html structure is fine and works, but you can reduce at least 20% of your code 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>
.<body> <main> <img src="./images/image-qr-code.png" alt="Qr Code Image" > <h1>Improve your front-end skills by building projects</h1> <p>Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p> </main> </body>
✌️ I hope this helps you and happy coding!
Marked as helpful0 - @akramAdjabPosted about 2 years ago
Hello, I happy for you because you complete this challenge. But there are some mistakes when I saw your code
- Page should contain
<h1>
. In this challenge, you may use<h1>
, because every page should always contain<h1>
to improve your SEO. - In the wrapper, there is no need to center it using
position: absolute
, because you declare in thebody
tagdisplay: flex
just give italign-items: center
and the component will be perfectly centered. - Also in
justify-content: top
thetop
value doesn't exist, instead, you can useflex-start
and this is the default value, and you don't have to use it because your content is already starting from the top. - Don't use
<br>
in this challenge, let the content fill the entire width. - Don't give the wrapper a
height
, always set theheight: auto
, because you broke theaspect-ratio
for the image.
I hope my feedback is helpful to you! You also check my code for this challenge and compare it to yours!
Marked as helpful0 - Page should contain
- @AlexMartosPPosted about 2 years ago
Good job! I see that you tried using the font from the design. To use it you have to.
- Get the Google fonts via the link here: https://fonts.google.com/specimen/Outfit?query=outfit
- Get the font family by
font-family: 'Outfit', sans-serif
(sans-serif is the fallback)
Other thing you can think about is using padding/margin instead of <br> and "font-weight" instead of <strong>
But again, good job!
Marked as helpful0 - @milosshomyPosted about 2 years ago
You can use min-height instead of height on div with a class wrapper. That way the text won't be outside of the wrapper. Good job, keep coding! :D
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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