Skip to content

This Repository has the solution to Frontend Mentor's challenge "Pricing component with toggle".

Notifications You must be signed in to change notification settings

ameyadeokule/price-table-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Links

My process

Built with

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

What I learned

  • To use checkbox to as a toggle between classes.

Continued development

  • Use only CSS to do the slider effect with changes
  • Redo the project in ReactJS with Material UI

Useful resources

  • A Complete Guide to Flexbox - This section helped me in better understanding flexbox and how the arrangements world.

  • The “Checkbox Hack” - This article explains with examples how to use checkbox as toggles between multiple pages and elements.

  • A Complete Guide to CSS Media Queries - This is an amazing article which helped me finally understand breakpoints and how to handle HTML elements on a much smaller screen using CSS media queries.

Author

Acknowledgments

I would like thank Kethmar Salumets @developerhabits for encouraging me to start completing challenges on Frontend Mentor.

About

This Repository has the solution to Frontend Mentor's challenge "Pricing component with toggle".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published