A simple web application that displays random inspirational quotes and allows users to share them on Twitter.
- Random Quote Display – Fetches and displays random quotes from an external API
- Dynamic Author Attribution – Shows the quote author or "Unknown" if unavailable
- Responsive Typography – Automatically adjusts font size for longer quotes
- Twitter Share – One-click sharing of quotes directly to Twitter
- Loading Indicator – Visual spinner while fetching quotes
- Animated UI – Smooth button animations and hover effects
- HTML5 – Semantic markup and structure
- CSS3 – Modern styling with flexbox, animations, and responsive design
- JavaScript (ES6) – Async/await, DOM manipulation, and event handling
- Font Awesome – Icons for Twitter and quote styling
- Google Fonts – "Oi" custom font for unique typography
quote-generator/
├── index.html # HTML markup and structure
├── script.js # Core JavaScript logic
├── style.css # Styling and animations
└── README.md # This file
- Open
index.htmlin your web browser - Click the "New Quote" button to display a random quote
- Share the quote on Twitter using the Twitter icon button
- Enjoy inspirational quotes on demand!
Quotes are fetched from: Jacinto Design - Quotes API
No installation required! Simply:
- Clone or download this repository
- Open
index.htmlin your browser - Start generating quotes
- Loading Spinner – Shows while fetching quotes from the API
- Long Quote Styling – Font size reduces automatically for quotes longer than 120 characters
- Twitter Integration – Pre-fills Twitter with the quote text and author
- Responsive Design – Works on desktop and mobile devices
Works on all modern browsers supporting ES6 JavaScript (Chrome, Firefox, Safari, Edge)
Open source project for educational purposes.