Skip to content

This is a solution to the "Product preview card component" challenge on Frontend Mentor challenges.

Notifications You must be signed in to change notification settings

MelvinAguilar/product-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

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.

Links


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
  • Flexbox
  • SASS - Sass modules

Useful resources

HTML picture Element

Author

Acknowledgments

When using sass in order to build this solution

  • Install sass if not yet installed:
npm install -g sass
  • Run build command from command line:
sass assets/sass/main.scss assets/css/style.css
  • If you want to edit the code and test, in the root folder of this repository, run this command from the command line:
sass --watch assets/sass/main.scss assets/css/style.css

File structure

.
├── assets
│   ├── css
│   │   ├── style.css
│   │   └── style.css.map
│   ├── images
│   │   ├── favicon-32x32.png
│   │   ├── icon-cart.svg
│   │   ├── image-product-desktop.jpg
│   │   └── image-product-mobile.jpg
│   └── sass
│       ├── abstracts
│       │   ├── _mixins.scss
│       │   └── _variables.scss
│       ├── base
│       │   ├── _page.scss
│       │   └── _reset.scss
│       ├── component
│       │   ├── _attribution.scss
│       │   ├── _button.scss
│       │   ├── _card-product.scss
│       │   └── _heading.scss
│       ├── layout
│       │   └── _section.scss
│       └── main.scss
├── design
│   ├── active-states.jpg
│   ├── desktop-design.jpg
│   ├── desktop-preview.jpg
│   ├── mobile-design.jpg
│   └── screenshot.png
├── index.html
└── README.md

Releases

No releases published

Packages

No packages published