Frontend Mentor - Product preview card component solution

This is a solution to the Product 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 and focus states for interactive elements

My process

Built with

  • Semantic HTML5 markup
  • Sveltekit
  • TailwindCSS

What I learned

The srcset attribute from HTML5 is interesting to learn so I can provide multiple image size on specific viewport.

Continued development

If there is any suggestion I should try that or try with svelte-image plugin

Useful resources

Author

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes