Skip to content

Sanjana-m55/Prompt_Pixel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€Prompt_Pixel-You give prompt,We give pixel

Python Streamlit Gemini License

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

✨ Features

πŸ€– AI-Powered Generation

  • 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

🎨 Modern UI Components

  • 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

⚑ Real-Time Features

  • Live Preview - See changes instantly
  • Auto-Generation - Triggers on content changes
  • Generation Statistics - Track your usage
  • Settings Persistence - Remembers your preferences

πŸ› οΈ Professional Tools

  • HTML Export - Download complete websites
  • JSON Structure - Export website configuration
  • Code Preview - View generated HTML
  • Package Downloads - Get everything in one go

πŸ—οΈ Architecture

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

πŸš€ Quick Start

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/Sanjana-m55/Prompt_Pixel
cd Prompt_Pixel
  1. Install dependencies
pip install streamlit google-generativeai requests
  1. Run the application
streamlit run app.py
  1. Open your browser Visit http://localhost:8501 and start creating!

First Website

  1. Get API Key - Visit Google AI Studio
  2. Enter Key - Paste in the sidebar configuration
  3. Choose Template - Select from 8+ professional templates
  4. Describe Your Vision - Write what you want to create
  5. Generate - Watch AI build your website in real-time!

πŸ“‹ Templates

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

βš™οΈ Configuration

API Settings

# 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)

UI Customization

# 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

Enhancement Options

  • ✨ 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

πŸ“Š Components Library

Core Components

  • 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

Layout Components

  • Grid - 2, 3, 4 column responsive layouts
  • Hero - Large impact sections with CTAs
  • Section - Content organization blocks
  • Container - Max-width content wrappers

Interactive Components

  • Modal - Dialog overlays
  • Tabs - Content organization
  • Progress - Loading states
  • Alert - Status notifications
  • Badge - Status indicators

🎯 Use Cases

🏒 Business Websites

Generate professional business sites with contact forms, service showcases, and team profiles.

πŸ›οΈ E-commerce Stores

Create product catalogs, shopping features, and customer testimonials.

πŸ“ Blogs & Publications

Build content-focused sites with article layouts and subscription forms.

🎨 Creative Portfolios

Showcase work with image galleries, project case studies, and contact information.

πŸ“š Educational Platforms

Develop course catalogs, instructor profiles, and enrollment systems.

πŸ”§ Advanced Usage

Custom Prompts

# 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
"""

API Integration

# Direct API usage
generator = GeminiWebsiteGenerator(api_key)
structure = generator.generate_website_structure(
    prompt="Your website description",
    color_scheme="primary",
    layout_type="centered"
)

Component Customization

# Custom CampEd UI generation
ui_generator = CampEdUIGenerator()
custom_card = ui_generator.generate_card(
    title="Custom Feature",
    content="Detailed description",
    footer="Call to action"
)

πŸ“± Responsive Design

All generated websites include:

  • Mobile-First approach
  • Flexible Grid system
  • Adaptive Typography scaling
  • Touch-Friendly interactions
  • Cross-Browser compatibility

🎨 Theming System

Color Schemes

/* Primary Theme */
--camped-primary: #2563eb;
--camped-accent: #1d4ed8;

/* Secondary Theme */
--camped-primary: #64748b;
--camped-accent: #475569;

/* Accent Theme */
--camped-primary: #f59e0b;
--camped-accent: #d97706;

Layout Types

  • Default - Standard layout with sidebar
  • Centered - Content-focused center alignment
  • Wide - Full-width utilization

πŸš€ Performance

  • 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

πŸ›‘οΈ Security

  • API Key Protection - Secure key handling
  • Input Validation - Prompt sanitization
  • Rate Limiting - Prevents API abuse
  • Error Handling - Graceful failure recovery

πŸ“ˆ Analytics

Track your usage with built-in statistics:

  • Generation count
  • Template preferences
  • Success/failure rates
  • Performance metrics

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

Development Setup

# 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=debug

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Google Gemini - Powerful AI generation
  • Streamlit - Rapid app development
  • CampEd UI - Beautiful component system
  • Font Awesome - Icon library
  • Community - Feedback and contributions

πŸ—ΊοΈ Roadmap

v2.0 (Coming Soon)

  • Multi-page website generation
  • Database integration
  • Advanced animations
  • Custom component library
  • Team collaboration features

v2.1 (Future)

  • WordPress export
  • React component generation
  • A/B testing tools
  • SEO optimization
  • Analytics integration

Built with ❀️ by the CampEd UI Team

⭐ Star this repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages