An open API service indexing awesome lists of open source software.

https://github.com/uzmakh/pricing-component-with-toggle-master


https://github.com/uzmakh/pricing-component-with-toggle-master

flexbox-css mobile-first semantic-structure semantic-ui toggling-with-js

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Frontend Mentor - Pricing component with toggle solution

This is a solution to the [Pricing component with toggle challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/pricing-component-with-toggle-8vPwRMIC). Frontend Mentor challenges help you improve your coding skills by building realistic projects.

## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)

## 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](https://github.com/user-attachments/assets/affa3cd8-b576-4f47-a084-d0f3eac6aed7)

![pricing-comp-with-toggle-desktop](https://github.com/user-attachments/assets/2e77576d-b8c8-489c-b86a-d712266b0869)

### Links

- Solution URL:https://www.frontendmentor.io/solutions/responsive-pricing-component-with-toggle-zY6iLSv-eF
- Live Site URL: https://uzmakh.github.io/pricing-component-with-toggle-master/

## 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**