Skip to content

Uzmakh/pricing-component-with-toggle-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Pricing component with toggle solution

This is a solution to the Pricing component with toggle challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

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
  • Control the toggle with both their mouse/trackpad and their keyboard
  • Bonus: Complete the challenge with just HTML and CSS

Screenshot

pricing-component-with-toggle-mobile

pricing-comp-with-toggle-desktop

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow

===> Completed the semantic markup structure of the page. ===> Set the style.css according to the style-guide.md --> import the google-fonts link for the Montserrat font for weights 700-bold --> reset the browser-default css --> set the color-theme in root selector --> set the html font-size to 15px

--> set the utility classes for section, container, buttons for spacing and font-sizes. --> set the hover states of the buttons --> used flexbox for the layout --> used media queries for desktop screen.

What I learned

Toggling with JS