Real-time AI-powered website generation using Google Gemini 2.0 Flash & CampEd UI Components
Transform your ideas into beautiful, responsive websites instantly with the power of AI and modern UI components.
π₯ Watch Demo Video
- Google Gemini 2.0 Flash Integration - Advanced AI reasoning for intelligent website structure
- Real-time Generation - Live updates as you type with configurable delay
- Smart Templates - 8+ professional templates for different industries
- Contextual Understanding - AI analyzes requirements and suggests optimal layouts
- CampEd UI Framework - Beautiful, responsive components
- Multiple Color Schemes - Primary, Secondary, Accent themes
- Advanced Styling - Gradients, animations, hover effects
- Mobile-First Design - Responsive across all devices
- Live Preview - See changes instantly
- Auto-Generation - Triggers on content changes
- Generation Statistics - Track your usage
- Settings Persistence - Remembers your preferences
- HTML Export - Download complete websites
- JSON Structure - Export website configuration
- Code Preview - View generated HTML
- Package Downloads - Get everything in one go
Prompt Pixel:You give prompt, we give pixel
βββ π€ Gemini AI Engine
β βββ Structure Generation
β βββ Content Creation
β βββ Component Selection
βββ π¨ CampEd UI System
β βββ Component Library
β βββ Styling Engine
β βββ Responsive Framework
βββ β‘ Real-time Engine
β βββ Change Detection
β βββ Auto-generation
β βββ State Management
βββ π± Streamlit Interface
βββ Configuration Panel
βββ Live Preview
βββ Export System
- Python 3.8+
- Google Gemini API Key (Get one free)
- Clone the repository
git clone https://github.com/Sanjana-m55/Prompt_Pixel
cd Prompt_Pixel- Install dependencies
pip install streamlit google-generativeai requests- Run the application
streamlit run app.py- Open your browser
Visit
http://localhost:8501and start creating!
- Get API Key - Visit Google AI Studio
- Enter Key - Paste in the sidebar configuration
- Choose Template - Select from 8+ professional templates
- Describe Your Vision - Write what you want to create
- Generate - Watch AI build your website in real-time!
| Template | Description | Best For |
|---|---|---|
| π Tech Startup | Modern SaaS landing page | Product launches, apps |
| π¨ Portfolio | Creative showcase | Designers, artists |
| π½οΈ Restaurant | Elegant dining experience | Food businesses |
| π E-commerce | Online store platform | Retail, products |
| π Blog | Content publication | Writers, content creators |
| π’ Agency | Professional services | Marketing, consulting |
| πΌ SaaS Platform | Software as a Service | B2B tools, platforms |
| π Educational | Learning platforms | Courses, training |
# Google Gemini Configuration
GEMINI_API_KEY = "your-api-key-here"
MODEL = "gemini-2.0-flash-exp"
TEMPERATURE = 0.7 # Creativity level (0.1-1.0)# CampEd UI Settings
COLOR_SCHEME = "primary" # primary, secondary, accent
LAYOUT_TYPE = "default" # default, centered, wide
REAL_TIME = True # Enable live generation
GENERATION_DELAY = 1.0 # Seconds before auto-trigger- β¨ Animations - Smooth transitions and effects
- π¨ Icons - Font Awesome integration
- π± Mobile-First - Responsive design priority
- π Modern Gradients - Contemporary visual effects
- π±οΈ Interactive Elements - Hover effects and micro-interactions
- βΏ Accessibility - WCAG compliance features
- Button - Primary, Secondary, Outline, Ghost variants
- Card - Header, content, footer with hover effects
- Typography - H1-H6, paragraphs, proper hierarchy
- Navigation - Responsive menu with brand
- Form - Input, textarea, select with validation
- Grid - 2, 3, 4 column responsive layouts
- Hero - Large impact sections with CTAs
- Section - Content organization blocks
- Container - Max-width content wrappers
- Modal - Dialog overlays
- Tabs - Content organization
- Progress - Loading states
- Alert - Status notifications
- Badge - Status indicators
Generate professional business sites with contact forms, service showcases, and team profiles.
Create product catalogs, shopping features, and customer testimonials.
Build content-focused sites with article layouts and subscription forms.
Showcase work with image galleries, project case studies, and contact information.
Develop course catalogs, instructor profiles, and enrollment systems.
# Example: Advanced Restaurant Site
prompt = """
Create an upscale Italian restaurant website with:
- Hero section with signature dish image
- Menu with wine pairings
- Chef's story and philosophy
- Private dining booking system
- Events calendar
- Customer testimonials with photos
Use warm colors and elegant typography
"""# Direct API usage
generator = GeminiWebsiteGenerator(api_key)
structure = generator.generate_website_structure(
prompt="Your website description",
color_scheme="primary",
layout_type="centered"
)# Custom CampEd UI generation
ui_generator = CampEdUIGenerator()
custom_card = ui_generator.generate_card(
title="Custom Feature",
content="Detailed description",
footer="Call to action"
)All generated websites include:
- Mobile-First approach
- Flexible Grid system
- Adaptive Typography scaling
- Touch-Friendly interactions
- Cross-Browser compatibility
/* Primary Theme */
--camped-primary: #2563eb;
--camped-accent: #1d4ed8;
/* Secondary Theme */
--camped-primary: #64748b;
--camped-accent: #475569;
/* Accent Theme */
--camped-primary: #f59e0b;
--camped-accent: #d97706;- Default - Standard layout with sidebar
- Centered - Content-focused center alignment
- Wide - Full-width utilization
- Fast Generation - Average 3-5 seconds
- Optimized CSS - Minimal, efficient styles
- CDN Integration - Font Awesome from CDN
- Responsive Images - Adaptive loading
- Clean HTML - Semantic, accessible markup
- API Key Protection - Secure key handling
- Input Validation - Prompt sanitization
- Rate Limiting - Prevents API abuse
- Error Handling - Graceful failure recovery
Track your usage with built-in statistics:
- Generation count
- Template preferences
- Success/failure rates
- Performance metrics
We welcome contributions! Please see our Contributing Guidelines.
# Clone and setup
git clone https://github.com/your-username/camped-ui-generator.git
cd camped-ui-generator
# Install dev dependencies
pip install -r requirements-dev.txt
# Run tests
pytest tests/
# Start development server
streamlit run app.py --logger.level=debugThis project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini - Powerful AI generation
- Streamlit - Rapid app development
- CampEd UI - Beautiful component system
- Font Awesome - Icon library
- Community - Feedback and contributions
- Multi-page website generation
- Database integration
- Advanced animations
- Custom component library
- Team collaboration features
- WordPress export
- React component generation
- A/B testing tools
- SEO optimization
- Analytics integration
Built with β€οΈ by the CampEd UI Team