Skip to content

Nix7amcm/FEM-product-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Product preview card component solution

This is my solution to the Product preview card component challenge on Frontend Mentor.

Table of contents


Overview

👩🏻‍💻 Frontend Mentor challenges help you improve your coding skills by building realistic projects.

⚡ This challenge was to build a responsive product preview card component.

🚀 I built this using HTML and CSS, with the help of Figma for studying the design.

Challenge Requirements

Users should be able to:

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

Screenshots


Links


My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Figma

Useful resources

  • Tailwind.css - This helped me add fallback fonts to cover all browsers, and the sr-only class style for the hidden header with the h1 title, so that it could still be accessed by screen readers.
  • box-shadow.dev - This is a great box-shadow generator! I've used a few of these to date and this is definitely one of the more straightforward options. You can style the element on the right similar to what you want to apply the shadow to in your project, tinker with the shadows, then simply copy the code for the box-shadow.

Author