Responsive NFT card component with Starback.js as a background
Design comparison
Solution retrospective
Hey! As you might see, there are some stars moving in the background of the page. Well, I used Starback.js to do that. I used starback.js last summer for a small project, and I really think it matches so well on this NFT card as a background. If you want to use it too, just follow the link. It has all the instructions you will need.
https://github.com/zuramai/starback.js/
Community feedback
- @catherineisonlinePosted almost 2 years ago
Cool solution!
To improve semantics, make sure to wrap the entire code in the main tag not including header or footer tags. It will help to remove report issues and improve accessibility as well.
IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL π€©
0 - @VCaramesPosted almost 2 years ago
Hey there! π Here are some suggestions to help improve your code:
- It is best practice to use, classes for your naming convention as classes are reusable, making them ideal for CSS styling. IDs on the other hand, are not reusable and are mainly used for JavaScript.
- The NFT
alt tag
description needs to be improved upon. You want to describe what the image is; they need to be readable. Assume youβre describing the image to someone.
More Info:π
https://www.w3.org/WAI/tutorials/images/
- Along with the blank
alt tag
, you also want to include thearia-hidden=βtrueβ
to your βiconsβ to fully remove them from assistive technology.
More Info:π
https://www.w3.org/WAI/tutorials/images/
- Wrap the "NFT image", "Equilibrium #3429" and "Jules Wyvern" in an
anchor tags
. The anchor tag will allow users to click on content and have them directed to another part of your site.
More Info:π
If you have any questions or need further clarification, feel free to reach out to me.
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