An open API service indexing awesome lists of open source software.

https://github.com/khairul25556/quote-generator

A simple web app that fetches random quotes from an API and displays them. Users can share quotes on Twitter with a click of a button. It includes a clean, responsive design with a loading spinner and smooth interactions.
https://github.com/khairul25556/quote-generator

css html javascript quotes-api web-development

Last synced: 3 months ago
JSON representation

A simple web app that fetches random quotes from an API and displays them. Users can share quotes on Twitter with a click of a button. It includes a clean, responsive design with a loading spinner and smooth interactions.

Awesome Lists containing this project

README

          

# Quote Generator

A simple web-based **Quote Generator** that fetches random quotes from an API and allows users to tweet them. You can use this app to get inspiring, motivational, or philosophical quotes and share them instantly on Twitter!

## Features
- Fetches random quotes from the [API Ninjas Quotes API](https://www.api-ninjas.com/api).
- Allows you to tweet the displayed quote directly to Twitter using a pre-filled tweet.
- Beautiful design with a loading animation while the quote is being fetched.

## Links
- **API URL**: [API Ninjas Quotes API](https://www.api-ninjas.com/api)
Fetches random quotes for display on the app.

- **Twitter URL**: [Tweet Quote](https://twitter.com/intent/tweet?)
Directly posts the current quote to Twitter.

- **Loader Design**: [CSS Loader from W3Schools](https://www.w3schools.com/howto/howto_css_loader.asp)
CSS spinner used while waiting for the quote to load.

- **Background Image Patterns**: [Hero Patterns](https://heropatterns.com/)
Beautiful background patterns used to enhance the design.

- **Page Title Icon**: ![CSS-Tricks Icon](https://www.google.com/s2/u/0/favicons?domain=css-tricks.com)
Custom favicon used for the page.

## Usage

1. **Get a Quote**
Click the **"New Quote"** button to generate a random quote.

2. **Tweet the Quote**
Click the **"Tweet"** button to open a new Twitter window with the quote pre-filled.

## Technologies Used
- **HTML**: For the structure and layout of the page.
- **CSS**: For styling and UI design.
- **JavaScript**: To fetch quotes from the API and handle interactions.
- **API Ninjas Quotes API**: Provides the random quotes.

## How to Run the Project Locally

To run this project on your local machine:

1. Clone the repository:
```bash
git clone https://github.com/Khairul25556/quote-generator.git