Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melvinaguilar/product-preview-card-component
This is a solution to the "Product preview card component" challenge on Frontend Mentor challenges.
https://github.com/melvinaguilar/product-preview-card-component
accessibility front-end frontend-mentor frontend-mentor-challenges html-css product-preview-card-component sass
Last synced: about 2 months ago
JSON representation
This is a solution to the "Product preview card component" challenge on Frontend Mentor challenges.
- Host: GitHub
- URL: https://github.com/melvinaguilar/product-preview-card-component
- Owner: MelvinAguilar
- Created: 2022-09-24T15:41:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T04:14:09.000Z (about 2 years ago)
- Last Synced: 2023-03-06T08:48:52.256Z (almost 2 years ago)
- Topics: accessibility, front-end, frontend-mentor, frontend-mentor-challenges, html-css, product-preview-card-component, sass
- Language: SCSS
- Homepage: https://product-preview-card-component-sol.vercel.app/
- Size: 425 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Frontend Mentor - Product preview card component solution
![](./design/screenshot.png)
This is a solution to the [Product preview card component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/product-preview-card-component-GO7UmttRfa). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Links
- Solution URL: [Product Preview Card (SASS + Flexbox) | Frontend Mentor](https://www.frontendmentor.io/solutions/product-preview-card-sass-css-flexbox-z56A4ly7aN)
- Live Site URL: [https://product-preview-card-component-sol.vercel.app/](https://product-preview-card-component-sol.vercel.app/)
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [My process](#my-process)
- [Built with](#built-with)
- [Author](#author)
- [Acknowledgments](#acknowledgments)## 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](https://sass-lang.com/documentation/modules) - Sass modules### Useful resources
[HTML picture Element](https://www.w3schools.com/html/html_images_picture.asp)
## Author
- Frontend Mentor - [@melvinaguilar](https://www.frontendmentor.io/profile/melvinaguilar)
## Acknowledgments
When using `sass` in order to build this solution
- Install `sass` if not yet installed:
```bash
npm install -g sass
```- Run build command from command line:
```bash
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:
```bash
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
```