/image-generator

Image-Generator is a web app that allows users to search for images using the Unsplash API and display the results. It fetches images based on user input and provides a simple and intuitive experience for finding and viewing images.

Primary LanguageJavaScriptMIT LicenseMIT

Image-Generator

Description

Image-Generator is a simple web application that allows users to search for images using the Unsplash API and display the search results on the webpage. The application is built using HTML and JavaScript and it fetches images based on the user's input.

Features

  • Search for images based on a keyword or search term.
  • Display the images from the Unsplash API in a regular size on the webpage.

Getting Started

Prerequisites

To run this project, you need a code editor and a modern web browser.

Installation

  1. Clone the repository or download the ZIP file.
$ git clone https://github.com/your-username/image-generator.git
  1. Open the index.html file in your web browser.

Usage

  1. Open the index.html file in your web browser.
  2. Enter a keyword or search term in the input field.
  3. Click the "Search Image" button.
  4. The application will fetch and display images related to the entered search term from the Unsplash API.

API Key

The application uses the Unsplash API to fetch images. To use the Unsplash API, you need to obtain an API key by signing up as a developer on the Unsplash website. Replace YOUR_API_KEY in the JavaScript code with your actual Unsplash API key.

const API_KEY = "YOUR_API_KEY";

Contributing

Contributions are welcome! If you have any improvements or feature suggestions, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

  • This project uses the Unsplash API to fetch images. Thanks to the Unsplash team for providing the API.
  • The project was inspired by various tutorials and examples on web development.

Remember to replace your-username in the "Installation" section with your GitHub username if you are cloning the repository.