Design comparison
Solution retrospective
There were a couple of things I couldn't figure out. 1) How to get the desktop background to align with the card like in the desktop design. 2) How to match the shadow for the payment button. I wasn't sure if I was supposed to use one of the provided colors or a different color for the shadow.. so I ended up just using one of the provided colors but I think it's too dark? Any feedback or suggestions would be kindly appreciated. Thank you!
Edit: I realize my card isn't properly centered vertically, which is the solution to my first question.
Community feedback
- @kens-visualsPosted about 3 years ago
Hey @codewithcindy 👋🏻
I have some suggestions on how to fix the accessibility, HTML and some other issues
- In the markup,
<div class="card">...</div>
should be<main class="card">...</main>
and<div class="attribution">...</div>
should be<footer class="attribution">...</footer>
. These will fix the accessibility issues. Don't forget to generate a new repot once you fix the issues. - In this line
<div class=
item-left - For the music icon, add
aria-hidden="true”
, because it's for decoration. You can read more aboutaria-hidden
here. - Also, you can add
min-height: 100vh;
tobody
and it will bring the card to the center. - To answer your first question, in the screenshot it seems like you got the background perfectly, but in the website the pattern is missing. I'm not sure if you did something after submission, but there's only the color.
- And to answer your second question, there's no right or perfect way to match
box-shadow
. It's the trickiest part to match, so here's a cool library of CSS box-shadows that I personally use. You can try to grab one that seems the closest and then tweak it a bit to make it look "perfect".
I hope this was helpful 👨🏻💻 all in all, you did a great job for the second project, keep the pace. Cheers 👾
0 - In the markup,
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