Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-bipu/age-calculator-react
An age calculator that instantly computes your age in years, months, and days. Enjoy error-free input validation, responsive layout, and interactive elements for effortless usability.
https://github.com/the-bipu/age-calculator-react
reactjs
Last synced: 14 days ago
JSON representation
An age calculator that instantly computes your age in years, months, and days. Enjoy error-free input validation, responsive layout, and interactive elements for effortless usability.
- Host: GitHub
- URL: https://github.com/the-bipu/age-calculator-react
- Owner: the-bipu
- Created: 2023-08-11T15:22:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T06:34:02.000Z (10 months ago)
- Last Synced: 2024-11-10T07:40:16.637Z (2 months ago)
- Topics: reactjs
- Language: JavaScript
- Homepage: https://age-calculator-module.netlify.app/
- Size: 1.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Age calculator app
![Design preview for the Age calculator app coding challenge](./design/desktop-preview.jpg)
# 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.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)## Overview
### The challenge
Users should be able to:
- View an age in years, months, and days after submitting a valid date through the form
- Receive validation errors if:
- Any field is empty when the form is submitted
- The day number is not between 1-31
- The month number is not between 1-12
- The year is in the future
- The date is invalid e.g. 31/04/1991 (there are 30 days in April)
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page
- **Bonus**: See the age numbers animate to their final number when the form is submitted### Screenshot
![](./screenshot.png)
- Screenshot with Input
![](./screenshot-2.png)
### Links
- Solution URL: [https://github.com/the-bipu/Age-Calculator-App](https://github.com/the-bipu/Age-Calculator-App)
- Live Site URL: [https://age-calculator-module.netlify.app/](https://age-calculator-module.netlify.app/)## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- [React](https://reactjs.org/) - JS library### What I learned
```html
Some HTML code I'm proud of
```
```css
.proud-of-this-css {
color: papayawhip;
}
```
```js
const proudOfThisFunc = () => {
console.log('🎉')
}
```### Continued development
Although this project is fully complete as per the given challenges but i want to add some more modules in this like birthday wisher and 100 birthday card. In future project i want to focus on the useState and useEffect from react so that i can be more familiar with these topics.
### Useful resources
- [Example resource 1](https://www.example.com) - This helped me for XYZ reason. I really liked this pattern and will use it going forward.
- [Example resource 2](https://www.example.com) - This is an amazing article which helped me finally understand XYZ. I'd recommend it to anyone still learning this concept.## Author
- Github - [The-Bipu](https://github.com/the-bipu)
- Frontend Mentor - [@the-bipu](https://www.frontendmentor.io/profile/the-bipu)## Acknowledgments