Design comparison
Community feedback
- @PhoenixDev22Posted almost 3 years ago
Hello @Kaupaunha,
I have some suggestions regarding your solution:
-
Anything with a hover style in a design means it's interactive. you need to add an interactive element
<a>
around the image(image-equilibrium.jpg), Equilibrium #3429, Jules Wyvern`. -
the
icon-view
doesn't really need to be in the html, you could do it with css. If you want it to stay in html it needs to bearia-hidden:true
orrole presentation
with empty alt -
For any decorative images, each img tag should have empty
alt=""
andaria-hidden="true"
attributes to make all web assistive technologies such as screen reader ignore those images in(icon-view,icon-ethereum, icon-clock
).
-The avatar' alt text shouldn't be
user avatar
. set it toJules Wyvern
.-
the link should be wrapping the original image and either have
Sr-only
text, anaria-label
oralt
text that says where that link takes you. -
You can use an unordered list
<ul>
to wrapclass="eth-days"
and in each<li>
, there would be<img >
and<p>
.
CSS
- To center the card on the middle of the page , you can use the flexbox properties and
min-height: 100vh
for the<body>
(remove position absolute )like this:
body{ display:flex; align-items: center; justify-content: center; width: 100%; min-height: 100vh;
body { box-sizing: border-box; margin: 0; padding: 0; background-color: hsl(217, 54%, 11%); font-family: "Outfit", sans-serif; color: hsl(215, 51%, 70%); display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100%; } .container { /* position: absolute; */ /* top: 0; */ /* bottom: 0; */ /* left: 0; */ /* right: 0; */ /* margin: auto; */ padding: 2rem; width: 26rem;/*an explicit width is not a good way . Remove the width from the main component and change it to ``max width`` instead. That will let it shrink a little when it needs to. */ height: 47rem/*Also you would never want to set the ``height`` of the element. Let the content inside the card element dictate the height of it.*/ background-color: hsl(216, 50%, 16%); border-radius: 1.3rem; text-align: left; box-shadow: 0 0 4rem hsl(216deg 53% 9%); }
A general point - try to put classes directly on anything you want to style.
Overall, your solution is good, Hopefully this feedback helps.
Marked as helpful1@KaupaunhaPosted almost 3 years ago@PhoenixDev22 Thank you so much for your feedbacks, it's really helpful ! Just learnt lot of things thanks to you ! I'll work on it !
1 -
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