An open API service indexing awesome lists of open source software.

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

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

![](./screenshots/Desktop_solution.png)
![](./screenshots/Mobile_solution.png)

### 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/)