Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/melvinaguilar/order-summary-component
This is a solution to the "Order Summary component" challenge on Frontend Mentor challenges.
https://github.com/melvinaguilar/order-summary-component
bem bem-naming frontend frontend-mentor frontend-mentor-challenge frontend-mentor-challenges mobile-first mobile-first-workflow sass sass-files
Last synced: 2 days ago
JSON representation
This is a solution to the "Order Summary component" challenge on Frontend Mentor challenges.
- Host: GitHub
- URL: https://github.com/melvinaguilar/order-summary-component
- Owner: MelvinAguilar
- Created: 2022-09-30T17:09:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T04:18:44.000Z (about 2 years ago)
- Last Synced: 2024-11-21T19:12:47.438Z (2 months ago)
- Topics: bem, bem-naming, frontend, frontend-mentor, frontend-mentor-challenge, frontend-mentor-challenges, mobile-first, mobile-first-workflow, sass, sass-files
- Language: SCSS
- Homepage: https://order-summary-component-melvinhdz.vercel.app/
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Order summary card solution
![](./design/desktop-preview.jpg)
This is a solution to the [Order summary card challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/order-summary-component-QlPmajDUj). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Links
- Solution URL: [Order Summary Component (SASS + Mobile first + BEM) | Frontend Mentor](https://www.frontendmentor.io/solutions/order-summary-component-sass-mobile-first-bem-BlfUdr5oBv)
- Live Site URL: [https://order-summary-component-melvinhdz.vercel.app/](https://order-summary-component-melvinhdz.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:
- See hover states for interactive elements
## My process
### Built with
- Semantic HTML5 markup
- Mobile-first approach
- Flex Layout
- BEM naming convention
- [SASS](https://sass-lang.com/documentation/modules) - Sass modules### Useful resources
- [Mobile-first approach](https://www.freecodecamp.org/news/taking-the-right-approach-to-responsive-web-design/)
- [CSS Guidelines](https://cssguidelin.es/#bem-like-naming)
- [BEM naming convention](https://css-tricks.com/bem-101/)
- [BEM naming examples](https://getbem.com/naming/)- [Material Design Box Shadows](https://codepen.io/sdthornton/pen/wBZdXq)
- [CSS background Property](https://www.w3schools.com/cssref/css3_pr_background.asp)- [Solving Sticky Hover States with @media (hover: hover)](https://css-tricks.com/solving-sticky-hover-states-with-media-hover-hover/)
## 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-music.svg
│ │ ├── illustration-hero.svg
│ │ ├── pattern-background-desktop.svg
│ │ └── pattern-background-mobile.svg
│ └── sass
│ ├── abstracts
│ │ ├── _mixins.scss
│ │ └── _variables.scss
│ ├── base
│ │ ├── _page.scss
│ │ └── _reset.scss
│ ├── component
│ │ ├── _attribution.scss
│ │ ├── _buttons.scss
│ │ ├── _heading.scss
│ │ └── _screen-reader.scss
│ ├── layout
│ │ └── _order-card.scss
│ └── main.scss
├── design
│ ├── active-states.jpg
│ ├── desktop-design.jpg
│ ├── desktop-preview.jpg
│ ├── mobile-design.jpg
│ └── screenshot.png
├── index.html
└── README.md
```