Skip to content

The Random Quote Generator is a simple web app that displays a randomly selected quote and its author every time the user clicks the "New Quote" button. This project was built using HTML, CSS, and JavaScript to practice DOM manipulation and API fetching, while showcasing an aesthetically pleasing design and smooth user experience.

Notifications You must be signed in to change notification settings

IamLRBA/Random-Quote-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview:

The Random Quote Generator is a simple web app that displays a randomly selected quote every time the user clicks a button. This project is built using HTML, CSS, and JavaScript to practice DOM manipulation, API fetching, and social media integration, while showcasing an aesthetically pleasing design and smooth user experience. Users can also share their favorite quotes directly on Twitter with a single click.

Features:

-Displays random quotes plus its author from a predefined list or fetched from an external API.
-Allows users to get a new quote by clicking a button.
-Twitter Integration: Users can share the current quote directly to Twitter with a "Tweet" button.
-Responsive and modern design, ensuring it works well on both desktop and mobile devices.
-Easy to understand code structure, making it a beginner-friendly project.

How It Works:

-When the page loads, a random quote is displayed.
-Users can click the "New Quote" button to generate another random quote.
-Users can also click the "Tweet" button to post the displayed quote directly to their Twitter account.
-Quotes can either be hardcoded into the project or fetched dynamically from a quotes API.
-The app uses JavaScript to handle the logic, DOM manipulation, and Twitter integration for sharing quotes.

Technologies Used:

-HTML5: Provides the basic structure of the app.
-CSS3: Adds style and visual design.
-JavaScript: Handles logic for generating and displaying random quotes.
-Twitter API: Enables users to share quotes directly to Twitter.

Installation and Setup:

-Clone the repository:
-bash
 git clone https://github.com/IamLRBA/random-quote-generator.git
-Open the index.html file in your browser to view the app.
-Alternatively, you can host the project using any web server or view it live at the deployed GitHub Pages link.
 To use the Twitter sharing feature, you will need to configure API keys (if applicable) or use the provided Twitter web intent link.

Future Improvements:

-Add more quote categories (motivational, humorous, etc.).
-Include functionality for users to share quotes on additional social media platforms.
-Add animations or transitions for a more interactive experience.
-Fetch quotes from multiple APIs or sources to increase variety.

License: This project is open-source and available under the MIT License.

About

The Random Quote Generator is a simple web app that displays a randomly selected quote and its author every time the user clicks the "New Quote" button. This project was built using HTML, CSS, and JavaScript to practice DOM manipulation and API fetching, while showcasing an aesthetically pleasing design and smooth user experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published