# BotKonzept Frontend Modernes, responsives Frontend fΓΌr die BotKonzept SaaS-Plattform. ## πŸ“ Projektstruktur ``` customer-frontend/ β”œβ”€β”€ index.html # Landing Page mit Registrierung β”œβ”€β”€ dashboard.html # Kunden-Dashboard β”œβ”€β”€ css/ β”‚ β”œβ”€β”€ style.css # Haupt-Stylesheet β”‚ └── dashboard.css # Dashboard-spezifische Styles β”œβ”€β”€ js/ β”‚ β”œβ”€β”€ main.js # Landing Page JavaScript β”‚ └── dashboard.js # Dashboard JavaScript └── logo/ └── 20250119_Logo_Botkozept.svg ``` ## πŸš€ Features ### Landing Page (index.html) - βœ… Modernes, responsives Design - βœ… Hero-Section mit animiertem Chat-Preview - βœ… Feature-Übersicht - βœ… "So funktioniert's" Sektion - βœ… Pricing-Tabelle mit Rabatt-Timeline - βœ… Registrierungsformular - βœ… FAQ-Akkordeon - βœ… Mobile-optimiert ### Dashboard (dashboard.html) - βœ… Übersicht mit Statistiken - βœ… PDF-Upload mit Drag & Drop - βœ… Dokumenten-Verwaltung - βœ… Chatbot-Test-Interface - βœ… Embed-Code Generator - βœ… Einstellungen - βœ… Trial-Status & Upgrade-Banner ## 🎨 Design-System ### Farben ```css --primary: #6366f1; /* Indigo */ --secondary: #0ea5e9; /* Sky Blue */ --accent: #f59e0b; /* Amber */ --success: #10b981; /* Emerald */ --error: #ef4444; /* Red */ ``` ### Typografie - Font: Inter (Google Fonts) - Responsive Schriftgrâßen mit `clamp()` ### Komponenten - Buttons (Primary, Outline, White) - Cards - Forms - Modals - Notifications ## πŸ”§ Konfiguration ### API-Endpunkte In `js/main.js`: ```javascript const CONFIG = { WEBHOOK_URL: 'https://n8n.userman.de/webhook/botkonzept-registration', API_BASE_URL: 'https://api.botkonzept.de', }; ``` ### Webhook-Integration Das Registrierungsformular sendet folgende Daten an den Webhook: ```json { "firstName": "Max", "lastName": "Mustermann", "email": "max@beispiel.de", "company": "Muster GmbH", "website": "https://beispiel.de", "newsletter": true, "timestamp": "2025-01-25T10:00:00.000Z", "source": "website" } ``` ## πŸ“± Responsive Breakpoints - Desktop: > 1024px - Tablet: 768px - 1024px - Mobile: < 768px - Small Mobile: < 480px ## πŸš€ Deployment ### Lokales Testen ```bash cd customer-frontend python3 -m http.server 8000 # Γ–ffnen: http://localhost:8000 ``` ### Produktion ```bash # Dateien auf Webserver kopieren rsync -avz . user@botkonzept.de:/var/www/botkonzept/ ``` ### NGINX Konfiguration ```nginx server { listen 80; server_name botkonzept.de www.botkonzept.de; root /var/www/botkonzept; index index.html; location / { try_files $uri $uri/ /index.html; } # Cache static assets location ~* \.(css|js|svg|png|jpg|jpeg|gif|ico)$ { expires 30d; add_header Cache-Control "public, immutable"; } } ``` ## πŸ”’ Sicherheit - HTTPS erforderlich fΓΌr Produktion - CORS-Header fΓΌr API-Calls - Input-Validierung auf Client-Seite - XSS-Schutz durch HTML-Escaping ## πŸ“Š Analytics Google Analytics 4 Integration vorbereitet: ```html ``` Conversion-Tracking: ```javascript trackConversion('registration_complete', { email: '...' }); ``` ## 🎯 Customer Journey 1. **Besucher** kommt auf botkonzept.de 2. **Registrierung** ΓΌber Formular 3. **Instanz-Erstellung** (automatisch via n8n Workflow) 4. **Dashboard-Zugang** per E-Mail 5. **PDF-Upload** in Wissensdatenbank 6. **Embed-Code** fΓΌr Website kopieren 7. **Trial-Reminder** (Tag 3, 5, 7) 8. **Upgrade** oder Ablauf ## πŸ“ TODO - [ ] Stripe/PayPal Integration - [ ] E-Mail-Verifizierung - [ ] Passwort-Reset - [ ] Multi-Language Support - [ ] Dark Mode - [ ] PWA Support ## πŸ“„ Lizenz ProprietΓ€r - Alle Rechte vorbehalten --- **Version:** 1.0.0 **Erstellt:** Januar 2025