This application allows users to generate custom banner images using Gemini AI. Users input text, select themes, choose resolutions, and optionally upload images. The AI backend processes this information to create an advertisement banner, which is then displayed and can be further edited and downloaded.
This project provides a React application built with Vite, enabling efficient development with Hot Module Replacement (HMR) and ESLint for code quality. It's designed to generate AI-powered banners.
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd <project_directory>
-
Install dependencies:
npm install
or
yarn install
-
Start the development server:
npm run dev
or
yarn dev
This will start the development server and open the application in your browser. You can then interact with the banner generation features.
This project utilizes Vite plugins for enhanced development experience:
@vitejs/plugin-react
: Uses Babel for Fast Refresh, providing quick feedback during development.@vitejs/plugin-react-swc
: Uses SWC for Fast Refresh, offering another high-performance option. (Choose one; they are mutually exclusive).
To build the application for production, run:
npm run build
or
yarn build
This will create an optimized build in the dist
directory.