Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/haquanq/fm-pricing-component-with-toggle
- Owner: haquanq
- License: mit
- Created: 2024-06-05T10:10:56.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T12:42:30.000Z (4 months ago)
- Last Synced: 2024-11-07T02:23:31.728Z (2 months ago)
- Topics: css, frontendmentor, frontendmentor-challenge, frontendmentor-solution, html, javascript, js
- Language: CSS
- Homepage: https://haquanq.github.io/fm-pricing-component-with-toggle/
- Size: 316 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.