Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random-Advice-Site

Random-Advice-Site is a simple and engaging web application that generates and displays random advice to users with each visit or refresh. It’s a fun project built using HTML, CSS, and JavaScript, with integrated API functionality to fetch random pieces of advice from an external service. The background is animated with a captivating particle effect to enhance the user experience.

Features

  • Random Advice: Each time the site is loaded or refreshed, a new piece of advice is displayed, providing users with endless wisdom and inspiration.
  • API Integration: The site leverages an external API to fetch random advice, ensuring a wide variety of advice with each visit.
  • Interactive Background: A dynamic particle background adds visual appeal and keeps the interface lively.

Hosted Site

You can experience the Random-Advice-Site live here.

API Used

This project uses the Advice Slip API to generate random pieces of advice. The API is straightforward to use and returns a new piece of advice each time a request is made.

Background Effect

The interactive background effect is created using particles.js, a lightweight JavaScript library that enables easy integration of particle effects. This adds a dynamic and engaging element to the site, enhancing the overall user experience.

Screenshots

Here is a screenshot showcasing the Random-Advice-Site:

Random Advice Site

How It Works

  1. Page Load: When the page is loaded, a JavaScript function sends a request to the Advice Slip API.
  2. API Response: The API returns a JSON object containing a random piece of advice.
  3. Display Advice: The advice is then extracted from the response and displayed on the webpage.
  4. Dynamic Background: The background effect is continuously animated, providing a visually appealing environment as users read their random advice.

Future Enhancements

  • Share Feature: Implement a feature that allows users to share the advice on social media platforms.
  • Favorites: Add a "Favorite" button to let users save advice they particularly like.
  • Multiple Languages: Expand the project to offer advice in multiple languages, making it accessible to a broader audience.

Contributing

Contributions are welcome! If you have ideas for new features or improvements, please submit a pull request or open an issue to discuss your suggestions.

About

A Site that randomly displays a advice

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages