A beautiful, responsive AI chatbot built with React, TypeScript, and Tailwind CSS. Features a modern glassmorphism design with smooth animations and dark/light mode support.
- 🎨 Stunning UI/UX - Modern glassmorphism design with smooth animations
- 🌓 Dark/Light Mode - Seamless theme switching
- 📱 Responsive Design - Works perfectly on all devices
- ⚡ Fast Performance - Built with Vite for lightning-fast development
- 🎭 Smooth Animations - Powered by Framer Motion
- 💬 Real-time Chat - Smooth conversation flow with typing indicators
- 🔒 Type Safe - Built with TypeScript for better development experience
- 🎯 Accessible - WCAG compliant design
- Node.js 18+
- npm or yarn
-
Clone the repository
git clone https://github.com/your-username/stunning-ai-chatbot.git cd stunning-ai-chatbot -
Install dependencies
npm install # or yarn install -
Start development server
npm run dev # or yarn dev -
Open your browser Navigate to
http://localhost:3000
The chatbot currently uses a mock AI service. To integrate with a real AI service like OpenAI:
-
Create a
.envfile in the root directory:VITE_OPENAI_API_KEY=your_openai_api_key_here
-
Update the AI service in
src/services/ai.tsto use the actual OpenAI API (commented code is provided) -
Install OpenAI SDK (if not already installed):
npm install openai
- Colors: Modify the color palette in
tailwind.config.js - Animations: Customize animations in
src/index.css - Components: All components are in
src/components/
npm run build
# or
yarn buildThe build files will be in the dist/ directory.
- Push your code to GitHub
- Connect your repository to Vercel
- Deploy with one click!
- Push your code to GitHub
- Connect your repository to Netlify
- Set build command:
npm run build - Set publish directory:
dist
-
Install gh-pages:
npm install --save-dev gh-pages
-
Add to package.json scripts:
"deploy": "gh-pages -d dist"
-
Build and deploy:
npm run build npm run deploy
For production deployment, set these environment variables:
VITE_OPENAI_API_KEY- Your OpenAI API key (optional, for real AI integration)
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Commit your changes:
git commit -am 'Add feature' - Push to the branch:
git push origin feature-name - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- React - UI library
- TypeScript - Type safety
- Tailwind CSS - Styling
- Framer Motion - Animations
- Lucide React - Icons
- Vite - Build tool
If you have any questions or need help, please open an issue or contact [email protected].
Made with ❤️ by [Your Name]