This project is a Random Quote Machine, created as part of the FreeCodeCamp Front End Development Libraries Certification. It generates random quotes and allows users to tweet them.
- Displays random quotes with their authors
- Generates a new random quote on button click
- Allows tweeting the current quote
- HTML5
- CSS3
- JavaScript (ES6+)
- React
- Font Awesome (for icons)
- I can see a wrapper element with a corresponding
id="quote-box"
. - Within
#quote-box
, I can see an element with a correspondingid="text"
. - Within
#quote-box
, I can see an element with a correspondingid="author"
. - Within
#quote-box
, I can see a clickable element with a correspondingid="new-quote"
. - Within
#quote-box
, I can see a clickablea
element with a correspondingid="tweet-quote"
. - On first load, my quote machine displays a random quote in the element with
id="text"
. - On first load, my quote machine displays the random quote's author in the element with
id="author"
. - When the
#new-quote
button is clicked, my quote machine should fetch a new quote and display it in the#text
element. - My quote machine should fetch the new quote's author when the
#new-quote
button is clicked and display it in the#author
element. - I can tweet the current quote by clicking on the
#tweet-quote
a
element. Thisa
element should include the"twitter.com/intent/tweet"
path in itshref
attribute to tweet the current quote. - The
#quote-box
wrapper element should be horizontally centered.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Open
index.html
in your web browser.
- Click the "New Quote" button to generate a new random quote.
- Click the Twitter icon to tweet the current quote.
- The design adapts to different screen sizes for optimal viewing on various devices.
- The app supports dark mode based on system preferences.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
This project is open source and available under the MIT License.
- FreeCodeCamp for the project idea and requirements.
- Font Awesome for the icons used in this project.