Get Motivation is a simple web application that displays motivational quotes with random colors and fonts. The quotes are fetched from a local JSON file and are displayed in an <h1> element with a dynamic style that changes with each interaction.
- Random Quotes: Displays quotes fetched from a local JSON file.
- Random Colors: Each word in the quote is styled with a random color.
- Random Fonts: The entire quote is styled with a randomly selected font-family.
- Responsive Design: Utilizes Bootstrap for responsive layout.
- HTML
- CSS
- JavaScript (jQuery)
- Bootstrap (for responsive design)
To get started with this project, follow these steps:
- Clone the Repository
git clone git@github.com:jmrashed/get-motivation.git- Navigate to the Project Directory
cd get-motivation-
Open the
index.htmlFileOpen the
index.htmlfile in your preferred web browser to view the application.
index.html: The main HTML file for the project.assets/css/styles.css: Contains the CSS styles for the application.assets/fonts/stylesheet.css: Contains font-face definitions for custom fonts.assets/data/motivation.json: JSON file containing motivational quotes.
You can customize the application by modifying the following:
- Quotes: Update the
assets/data/motivation.jsonfile with your own quotes. - Fonts: Add or change fonts in the
assets/fonts/stylesheet.cssfile and update thefontFamilyarray inindex.html. - Colors: Adjust the
getRandomColor()function in the script to change the color generation logic.
- Initial Load: When the page loads, a random quote is displayed with a random color and font.
- Update on Click: Clicking anywhere on the body updates the quote with a new random color and font.
Contributions are welcome! If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, please reach out to jmrashed@mail.com.