Design comparison
Community feedback
- @PhoenixDev22Posted over 2 years ago
Hello @princej02,
Congratulation on completing frontend mentor challenge.
I have some suggestions regarding your solution:
-
First of all , I would suggest to have a separate file for the styles.
-
To tackle the accessibility issues: Page should contain a level-one heading . In this challenge , you can use
<h1>
withclass="sr-only"
(Hidden visually, but present for assistive tech). -
You should use a header for
Equilibrium #3429
,<h2>
will do. -
Anything with a hover style in design means it's interactive. you need to add an interactive element
<a>
around the image ,Equilibrium #3429 and Jules Wyvern
.and add the hover effects on them -
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's alt should not be
empty
, you can use the creator nameJules Wyvern
. Read more how to write an alt text -
The link wrapping the equilibrium image should either have
Sr-only
text, anaria-label
oralt
text that says where that link takes you. -
To use more semantic tags , you can use <ul> to wrap
class="bottom"
and in each<li>
there would be<img>
and<p>
. -
For the avatar's part
class="creator-footer "
, you would use<figure>
and<figcaption>
. -
Use
min-height: 100vh;
instead ofheight: 100vh
allows the body to set a minimum height value based upon the full height of the viewport. This also allows the body to to grow taller if the content outgrows the visible page. -
width: 20rem;
an explicit width is not a good way . consider usingmax-width
to card instead and a little margin to the card .That will let it shrink a little when it needs to. -
height: 33rem
It's rarely ever a good practice to set heights on elements . Let the content inside the card element dictate the height of it. -
You should use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs.
General point : Really important to keep css specificity as low/flat as possible. The best way to do styling is single class selectors.
Overall , your solution is good. Hopefully this feedback helps.
Marked as helpful0 -
- @princej02Posted over 2 years ago
Oh my days i forgot to add that, thanks for the feedback.
1 - @denieldenPosted over 2 years ago
Hi Prince, I took some time to look at your solution and you did a great job!
You can add the effect
:hover
creating adiv
that appears on hover. I used tailwind but you can still see and understand which css properties you can use to do the same. Look here -> my solutionOverall you did well :)
Hope this help and happy coding!
0
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