Skip to content

dinakonto/single-price-grid-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Single Price Grid Component

Design preview for the Single Price Grid Component coding challenge

What is this?

This is my response to a front-end coding challenge from Frontend Mentor. Frontend Mentor provides great development challenges alongside beautiful designs, enabling you to build your skills using realistic projects.

I plan to take on most, if not all, of the free challenges in order from easiest ('Newbie') to hardest ('Advanced').

The challenge

Challenge #7
Difficulty: Newbie

This challenge was to build out a price component and get it looking as close to the design as possible.

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

My approach

I started by building out the basic HTML page structure, making sure the page layout made sense at a fundamental level, particularly for screenreader users.

From there I took a mobile-first approach, completing styling and layout for a 375px viewport width before building out media queries to cater to larger widths.

I used Sass to easily implement elements from the style-guide.md provided, with a mix of CSS grid and flexbox to place the elements.

The end product is hosted on Vercel - https://single-price-grid-component-ruby.vercel.app/

Cheers! 🍻

Releases

No releases published

Packages

No packages published