Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/haquanq/fm-pricing-component-with-toggle

Solution for frontendmentor.io challenge: pricing-component-with-toggle
https://github.com/haquanq/fm-pricing-component-with-toggle

css frontendmentor frontendmentor-challenge frontendmentor-solution html javascript js

Last synced: 14 days ago
JSON representation

Solution for frontendmentor.io challenge: pricing-component-with-toggle

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

- [Project overview](#rocket-project-overview)
- [My workflow](#boat-my-workflow)
- [How to work in this repository](#astronaut-how-to-work-in-this-repository)
- [License](#page_with_curl-license)

## :rocket: Project overview

### Challenge requirements

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

### Implemented features

Core features:

| Feature | Progress |
| ------------------------------------ | ---------------------- |
| Toggle between annually/monthly plan | [ :white_check_mark: ] |

Accessibility features:

| Feature | Progress |
| ------------------------------------------------------ | ---------------------- |
| Reponse optimally across different screen size | [ :white_check_mark: ] |
| Highlight interactive elements when hover/focus/active | [ :white_check_mark: ] |

### Screenshots

![](./.docs/design/desktop-design-monthly.jpg)

## :boat: My workflow

### Approach

Developed with mobile-first workflow.

### Built with

| Tool | Note |
| ------------ | ------------------------ |
| `JavaScript` | Programming language |
| `HTML` | Standard markup language |
| `CSS` | Style sheet language |

## :astronaut: Working in `fm-pricing-component-with-toggle` repository

### Presequisites

Having these tools installed:

- Git (prefer lastest LTS version)
- NodeJS (prefer latest LTS version)

### Clone this project to your machine

Open new terminal, run the following command:

```
git clone https://github.com/haquanq/fm-pricing-component-with-toggle.git
```

Then, run `npm install` to install all dependencies.

```
npm install
```

### Development workflow

In terminal, run `npm run dev` to start development server:

```
npm run dev
```

## :page_with_curl: License

This project follows [MIT License](./LICENSE). **Do not** use this project as your solution on [Frontend mentor](https://www.frontendmentor.io/solutions) as this will prove you are too lazy to complete anything in your life and you are a moron.