Skip to content

dangelomedinag/frontendmentor-challenge

Repository files navigation

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

Note: Delete this note and update the table of contents based on what sections you keep.

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

Screenshot

mobile final card desktop final card

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox / CSS Grid
  • Mobile-first workflow
  • HTML and CSS only

What I learned

<picture class="card__img-wrapper">
  <source
    srcset="/images/image-product-desktop.jpg"
    media="(min-width: 1440px)"
  />
  <img
    class="card__img card__img--mobile"
    src="/images/image-product-mobile.jpg"
    alt="perfume Gabrielle CHANEL"
  />
</picture>

Continued development

Use this section to outline areas that you want to continue focusing on in future projects. These could be concepts you're still not completely comfortable with or techniques you found useful that you want to refine and perfect.

Author

Acknowledgments

  • css grid
  • css flex-box
  • layout

About

solutions of challenges on frontendmentor.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published