Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haquanq/fm-interactive-card-details-form
Solution for frontendmentor.io challenge: interactive-card-details-form
https://github.com/haquanq/fm-interactive-card-details-form
accessibility css frontendmentor frontendmentor-challenge frontendmentor-solution html javascript js
Last synced: 9 days ago
JSON representation
Solution for frontendmentor.io challenge: interactive-card-details-form
- Host: GitHub
- URL: https://github.com/haquanq/fm-interactive-card-details-form
- Owner: haquanq
- License: mit
- Created: 2024-07-25T12:57:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T12:34:17.000Z (about 2 months ago)
- Last Synced: 2024-09-18T12:07:25.988Z (about 2 months ago)
- Topics: accessibility, css, frontendmentor, frontendmentor-challenge, frontendmentor-solution, html, javascript, js
- Language: JavaScript
- Homepage: https://haquanq.github.io/fm-interactive-card-details-form/
- Size: 308 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 - Interactive card details form solution
This is a solution to the [Interactive card details form challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/interactive-card-details-form-XpS8cKZDWw). 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:
- Fill in the form and see the card details update in real-time
- Receive error messages when the form is submitted if:
- Any input field is empty
- The card number, expiry date, or CVC fields are in the wrong format
- View the optimal layout depending on their device's screen size
- See hover, active, and focus states for interactive elements on the page### Implemented features
Core features:
| Feature | Progress |
| ----------------------------------------- | ---------------------- |
| Show errors on incorrect input | [ :white_check_mark: ] |
| Change card image details on input change | [ :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.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-interactive-card-details-form` 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-interactive-card-details-form.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.