This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Generate a new piece of advice by clicking the dice icon
Live Site: https://advice-generator-nh.vercel.app/
Solution URL: https://www.frontendmentor.io/solutions/random-advice-generator-using-nextjs-1xwvNbKjSR
- Next.js - React framework
- Tailwind CSS - For styles
Clone the project
git clone https://github.com/nandanholla/advice-generator.gitGo to the project directory
cd project-folder-nameInstall dependencies
npm installStart the server
npm run devThe designs were created to the following widths:
- Mobile: 375px
- Desktop: 1440px
GET /api/advice| HTTP Method | GET |
|---|---|
| URL | https://api.adviceslip.com/advice |
| Description | Returns a random advice slip as a slip object. |
Note: Advice is cached for 2 seconds. Any repeat-request within 2 seconds will return the same piece of advice.
| Color | Hex |
|---|---|
| Light Cyan | |
| Neon Green | |
| Dark Grayish Blue | |
| Dark Blue |
- Frontend Mentor - @nandanholla
- Twitter - @nandanholla


