Skip to content

VTickner/frontend-mentor-single-price-grid-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Single price grid component solution

This is a solution to the Single price grid component challenge on Frontend Mentor.

Table of contents

Overview

The challenge was to build a responsive layout to show a single price grid component and get the design to look as close as possible to the provided design images.

Screenshot

Desktop single price grid screenshot

Links

My process

  • Created semantic HTML first
  • Created CSS selectors to:
    • create custom variables to contain the various colours, font sizes font weights used in the design
    • used a CSS reset
    • layout the design using Grid and Flexbox
    • style the various elements
    • added in :focus styling for accessibility purposes
    • create a different width layout for mobile version turning the component into a single grid column

Built with

  • Semantic HTML markup
  • CSS custom properties
  • Grid
  • Flexbox
  • Desktop-first workflow (responsive design)
  • Google Font

What I learned

I didn't learn anything new on this project, but did gain some extra practice with using a grid layout. From a blog post I read, using the 62.5% trick isn't ideal, so I redid my CSS to remove that particular CSS trick and use CSS variables to hold the values of appropriate font sizes in rems.

Continued development

Create more designs that have a more complicated grid layout, to gain extra practice using CSS grid.

Useful resources

Author