Submitted about 1 year ago
Next.js, TypeScript & Tailwind Advice Generator Solution
@adamrichardturner
Design comparison
SolutionDesign
Solution retrospective
Advice generator app solution
This is a solution to the Advice generator app challenge on Frontend Mentor.
Overview
This challenge is about calling the Advice Slip API to display an interesting random quote on the screen.
The user can click a button to generate further random quotes.
I completed this challenge using Next.js, TypeScript and Tailwind.
It uses one single component for handling getting advice from the API and undertakes an API call to Advice Slip API using the useEffect hook and useState for storing the advice slip object.
The challenge
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
Screenshot Preview
Links
- Live Site URL: https://advice-generator-sooty-tau.vercel.app/
Built with
- React - JS library
- Next.js - React framework
- TypeScript - Programming language
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord