https://github.com/ninjainshade/price-grid-component
Single price grid component
https://github.com/ninjainshade/price-grid-component
css design grid-layout html
Last synced: 10 months ago
JSON representation
Single price grid component
- Host: GitHub
- URL: https://github.com/ninjainshade/price-grid-component
- Owner: NinjaInShade
- Created: 2021-08-06T09:43:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T16:14:49.000Z (almost 5 years ago)
- Last Synced: 2025-04-12T10:48:57.875Z (about 1 year ago)
- Topics: css, design, grid-layout, html
- Language: CSS
- Homepage: https://lm-price-grid-component.netlify.app/
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Single price grid component solution
This is a solution to the [Single price grid component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/single-price-grid-component-5ce41129d0ff452fec5abbbc). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)
## Overview
### The challenge
Users should be able to:
- View the optimal layout for the component depending on their device's screen size
- See a hover state on desktop for the Sign Up call-to-action
### Screenshot


### Links
- Solution URL: (https://www.frontendmentor.io/solutions/price-grid-component-with-css-vars-D95RbnWfj)
- Live Site URL: (https://lm-price-grid-component.netlify.app/)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties/vars
- CSS grid
- Desktop-first workflow
### What I learned
I practiced using flex grow. On the "Why Us" section, due to the list, this section was taller by default than the "Monthly Subscription" one.
So for example just adding a margin-top to the "Sign Up" button wouldn't make it aligned at the bottom with the list on the "Why Us" section.
I placed a flex-grow: 1; on the text above the button which made the button go all the way to the button so it aligned good. Alignment is very important in design so I took it seriously.
## Author
- Website - [Leon Michalak](https://www.leonmichalak.tech)
- Frontend Mentor - [@NinjaInShade](https://www.frontendmentor.io/profile/NinjaInShade)
- Instagram - [@lmdeveloper](https://www.instagram.com/lmdeveloper/)