Design comparison
Solution retrospective
please feedback me on what and where to improve.
Community feedback
- @PhoenixDev22Posted almost 3 years ago
Hello @Tham-Bahadur-Pun,
I have some suggestions regarding your solution:
-
There should be two landmark components as children of the body element - a
main
(which will be the NFT card ) and afooter
(which will be the attribution).<Footer>
should be in the<main >
read more about A simplified web page, might look something like this:. There is an extradiv
- Anything with a hover style in a design means it's interactive. you need to add an interactive element
<a>
around the imageEquilibrium #3429, Jules Wyvern
.
- Anything with a hover style in a design means it's interactive. you need to add an interactive element
-
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
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 be aria-hidden or role presentation with empty alt. -
the avatar 's alt shouldn't be
"avatar image"
it's meaningless , you can set toJules Wyvern
.Also , the main image alt needs to be changed. -
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="inner-content
and in each<li>
, there would be<img >
and<p>
. -
Add
display: block ;
to the image to remove the slight gap I see under the image on mobile. -
No need for
<hr class="horizontal-line">
, you can useborder-top:
to the avatar's part. -
I recommend to use
em
andrem
units .Bothem
andrem
are flexible, Usingpx
won't allow the user to control the font size based on their needs. -
Never use
px
for font size. -
width: 300px;
an explicit width is not a good way . Remove the width from the main component and change it tomax width
instead. That will let it shrink a little when it needs to. -
min-height: 100vh; using vh
(viewport height) units to allow 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.
Overall, your solution is good, Hopefully this feedback helps.
Marked as helpful0@Tham-Bahadur-PunPosted over 2 years ago@PhoenixDev22 thanks for your suggestion it was wonderful.
0 -
- @NaveenGumastePosted almost 3 years ago
Hay ! Tham Bahadur Pun Good Job on challenge
These below mentioned tricks will help you remove any Accessibility Issues
-> Consider using
h2-h6
elements to add identifying headings to all sections.-> Learn more on accessibility issues
If this comment helps you then pls mark it as helpful!
Have a good day and keep coding 👍!
Marked as helpful0 - Account deleted
Hello there! 👋
Congratulations on finishing your challenge! 🎉
I have some feedback on this solution:
put the .container div inside <section> tag to be more setmantic
i hope this is helpful
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