Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haquanq/fm-age-calculator-app
Solution for frontendmentor.io challenge: age-calculator-app
https://github.com/haquanq/fm-age-calculator-app
css html
Last synced: 14 days ago
JSON representation
Solution for frontendmentor.io challenge: age-calculator-app
- Host: GitHub
- URL: https://github.com/haquanq/fm-age-calculator-app
- Owner: haquanq
- License: mit
- Created: 2024-05-28T11:39:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-03T14:36:55.000Z (7 months ago)
- Last Synced: 2024-11-07T02:24:12.932Z (2 months ago)
- Topics: css, html
- Language: CSS
- Homepage: https://haquanq.github.io/frontendmentor-age-calculator-app/
- Size: 661 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 - Age calculator app solution
This is a solution to the [Age calculator app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/age-calculator-app-dF9DFFpj-Q).
Frontend Mentor challenges help you improve your coding skills by building realistic projects.### The challenge
- No access to design files :expressionless:
Users should be able to:
- View an age in years, months, and days after submitting a valid date through the form :yum:
- Receive validation errors if:
- Any field is empty when the form is submitted :yum:
- The day number is not between 1-31 :yum:
- The month number is not between 1-12 :yum:
- The year is in the future :yum:
- The date is invalid e.g. 31/04/1991 (there are 30 days in April) :yum:
- View the optimal layout for the interface depending on their device's screen size :yum:
- See hover and focus states for all interactive elements on the page :yum:
- **Bonus**: See the age numbers animate to their final number when the form is submitted :yum:### Solution
- Built with: `HTML` `CSS` `JS`
- Mobile first workflow:link: [`Solution Link`](https://www.frontendmentor.io/solutions/only-html-and-css-i1rsBUEQ8I) :link: [`Live Site Link`](https://haquanq.github.io/fm-age-calculator-app/)
![](./.docs/design/desktop-design.jpg)
## Working in `fm-age-calculator-app` repository
### Packages being used
- [`browser-sync`](https://github.com/BrowserSync/browser-sync)
### Clone this project to your machine
Make sure you have Git installed in your system, open new terminal, run the following command:
```
git clone https://github.com/haquanq/fm-age-calculator-app.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
```