mizek1 / single-price-grid-component

Single Price Grid component for FrontEnd Mentor challenge.

Home Page:https://mizek1.github.io/single-price-grid-component/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

Screenshot-1
Desktop design

Screenshot-2
Mobile design

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • BEM methodology
  • Mobile first

What I learned

This one was pretty easy too! I added BEM methodology and did mobile layout first.

Some snippets:

The BEM methodology in HTML:

<div class="section-2">
    <div class="section-2__title">Monthly Subscription</div>
    <div class="section-2__price">
    <span class="section-2__value">&dollar;29</span
    ><span class="section-2__frequency"> per month</span>
    </div>
    <div class="section-2__subtitle">
    Full access for less than &dollar;1 a day
    </div>
    <div class="section-2__sign-up-button">Sign Up</div>
</div>

Continued development

I'm still learning BEM methodology and trying to make my code more clean and reusable!

Author

About

Single Price Grid component for FrontEnd Mentor challenge.

https://mizek1.github.io/single-price-grid-component/


Languages

Language:CSS 52.0%Language:HTML 48.0%