/pricing-component-v2

helping fix JavaScript bugs

Primary LanguageCSS

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

Hello this is my solution to the pricing component with toggle challenge, i did it using html5, css3 and javascript.

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

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • desktop-first workflow
  • JavaScript

What I learned

I learnt how to add JavaScript to the html, and how to use it to change some layout on the webpage! Also learnt how to make the toggle master using only css.

Continued development

JavaScript and CSS!

Useful resources

Author

Acknowledgments

thanks to MR Coder channel in youtube, he's solution to the challenge was really insightful!