Skip to content

My Solution to the NFT Preview Card Component challenge on Frontend Mentor

Notifications You must be signed in to change notification settings

Aperlae/kart0lina

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kart0lina

Frontend Mentor - NFT preview card component solution

This is a solution to the NFT preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size
  • See hover states for interactive elements

Screenshot

Mobile

Screenshot_mobile.png

Desktop

Screenshot_destktop.png

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

What I learned

One new thing I came across while building this card, is that in terms of accessibility, it is important to distinguish between meaningful and decorative images. Screen readers will ignore decorative images. A decorative image does not add to the functionality or the content of a web page. Using an empty alt attribute will set an image as decorative.

Continued development

  • Do more small projects like this one to practice flexbox and grid.
  • Keep reading up on Accessibility

Useful resources

  • W3Schools - This helped me design this card for accessibility. Still reading up on it and will keep updating if need be.
  • W3Docs - This helped me figure out how to do the image overlay with background colour and icon.

Author

About

My Solution to the NFT Preview Card Component challenge on Frontend Mentor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published