@CornflakesPlus
Posted
Almost Pixeled Perfect solution. Well done Man! ๐โจ
Looking to hire developers?
Hi all, is there any way to fine tune my solution to closely match the design without having an access to figma/sketch files? Maybe some common letter spacing values or drop shadows throughout the challenges? I don't want to fine tune it to oblivion but small differences are driving me crazy sometimes ;)
@CornflakesPlus
Posted
Almost Pixeled Perfect solution. Well done Man! ๐โจ
@correlucas
Posted
๐พHello @miranlegin, Congratulations on completing this challenge!
Youโve done really good work here putting everything together, Iโve some suggestions to improve the design:
The html structure you've used is working but the code could be cleaner. To make it clean you start 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>
.
YOUR CURRENT CODE:
<body cz-shortcut-listen="true">
<main>
<div class="card">
<img class="card-image" src="images/image-qr-code.png" alt="QR code for Frontend Mentor">
<h1 class="card-title">Improve your front-end skills by building projects</h1>
<p class="card-text">Scan the QR code to visit Frontend Mentor and take your coding skills to the next level</p>
</div>
</main>
</body>
THE CODE CLEANED:
<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>
2.It's even better to use relative units
as rem
or em
that have a better fit if you want your site more accessible between different screen sizes and devices. REM
and EM
does not just apply to font size, but to all sizes as well.
โ๏ธ I hope this helps you and happy coding!
@miranlegin
Posted
@correlucas - Thank you for taking the time and evaluate my exercise.
Regarding shortening html tags/classes i can see on other examples that this is common practice right here on the platform and i will take that into consideration for next challenges.
I have scrolled thought my repository and only place where i can find px values are in declaring breakpoint variables in scss and using padding-inline on a body element of 28px. Is there something i am missing you are referring to?
Cheers, Miran
@correlucas
Posted
@miranlegin Keep it up Miran!
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