Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```