A simple web application that allows users to display random car images by clicking the "Get Cars" button.
You can check out the live demo of the Car Pics Generator here.
Included relevant screenshots of the application here.
- Displays random car images.
- Simple and intuitive user interface.
- Click the "Get Cars" button to fetch and display a new car image.
The Car Pics Generator web application is built using HTML, CSS, and JavaScript. Here's a brief overview of how it works:
- A
maindiv element to hold the application content. - An
h2element to display the application title. - A
search-resultsdiv to display the fetched car images. - A "Get Cars" button with the ID
searchButtonto trigger the image fetch.
- Styles to make the application visually appealing.
- Responsive design for various screen sizes.
- CSS transitions for image hover effects.
- The JavaScript code fetches random car images from the Unsplash API when the "Get Cars" button is clicked.
- It updates the
search-resultsdiv with the fetched car images. - Error handling for network requests is included.
To run the Car Pics Generator web application locally, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/22pankajsahu/m6Day15ClassChallenge.git -
Open the project folder in your code editor.
- Open the Car Pics Generator application in a web browser.
- Click the "Get Cars" button to fetch and display random car images.
Contributions to this project are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository to your own GitHub account.
- Create a new branch for your feature:
git checkout -b feature/new-feature - Make your changes and commit them:
git commit -m "Add new feature" - Push your changes to your forked repository:
git push origin feature/new-feature - Open a pull request to the original repository.
This project is licensed under the MIT License.
- Name: PANKAJ SAHU
- Email: 22pankajsahu@gmail.com
- GitHub: 22pankajsahu

