Spaces:
Running
Running
| <html lang="de"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI Control Center</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary-color: #4a6bff; | |
| --secondary-color: #2a3f8f; | |
| --accent-color: #ff6b6b; | |
| --text-color: #333; | |
| --light-bg: #f8f9fa; | |
| --dark-bg: #1e1e1e; | |
| --border-radius: 12px; | |
| --transition: all 0.3s ease; | |
| --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| --glow: 0 0 15px rgba(74, 107, 255, 0.4); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| body { | |
| background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); | |
| min-height: 100vh; | |
| padding: 20px; | |
| color: var(--text-color); | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 30px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid rgba(0, 0, 0, 0.1); | |
| } | |
| .logo { | |
| font-size: 1.8rem; | |
| font-weight: 700; | |
| color: var(--primary-color); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .logo i { | |
| font-size: 2rem; | |
| } | |
| .header-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| } | |
| .anycoder-link { | |
| color: var(--primary-color); | |
| text-decoration: none; | |
| font-weight: 500; | |
| transition: var(--transition); | |
| } | |
| .anycoder-link:hover { | |
| color: var(--accent-color); | |
| } | |
| .user-profile { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| background: white; | |
| padding: 8px 15px; | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--shadow); | |
| } | |
| .user-avatar { | |
| width: 35px; | |
| height: 35px; | |
| border-radius: 50%; | |
| background: var(--primary-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: white; | |
| font-weight: bold; | |
| } | |
| .main-grid { | |
| display: grid; | |
| grid-template-columns: 1fr 2fr; | |
| gap: 30px; | |
| margin-bottom: 30px; | |
| } | |
| .control-panel { | |
| background: white; | |
| border-radius: var(--border-radius); | |
| padding: 25px; | |
| box-shadow: var(--shadow); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .control-panel h2 { | |
| color: var(--primary-color); | |
| margin-bottom: 15px; | |
| font-size: 1.5rem; | |
| } | |
| .mode-selector { | |
| display: flex; | |
| gap: 10px; | |
| margin-bottom: 20px; | |
| } | |
| .mode-btn { | |
| flex: 1; | |
| padding: 12px; | |
| border: none; | |
| border-radius: var(--border-radius); | |
| background: var(--light-bg); | |
| color: var(--text-color); | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .mode-btn i { | |
| font-size: 1.5rem; | |
| } | |
| .mode-btn.active { | |
| background: var(--primary-color); | |
| color: white; | |
| box-shadow: var(--glow); | |
| } | |
| .mode-btn:not(.active):hover { | |
| background: rgba(74, 107, 255, 0.1); | |
| } | |
| .control-section { | |
| display: none; | |
| flex-direction: column; | |
| gap: 15px; | |
| } | |
| .control-section.active { | |
| display: flex; | |
| } | |
| .input-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .input-group label { | |
| font-weight: 500; | |
| color: var(--secondary-color); | |
| } | |
| .input-group input, | |
| .input-group textarea, | |
| .input-group select { | |
| padding: 12px; | |
| border: 1px solid #ddd; | |
| border-radius: var(--border-radius); | |
| font-size: 1rem; | |
| transition: var(--transition); | |
| } | |
| .input-group input:focus, | |
| .input-group textarea:focus, | |
| .input-group select:focus { | |
| outline: none; | |
| border-color: var(--primary-color); | |
| box-shadow: var(--glow); | |
| } | |
| .slider-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 10px; | |
| } | |
| .slider { | |
| -webkit-appearance: none; | |
| appearance: none; | |
| height: 6px; | |
| border-radius: 3px; | |
| background: var(--light-bg); | |
| outline: none; | |
| } | |
| .slider::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| appearance: none; | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 50%; | |
| background: var(--primary-color); | |
| cursor: pointer; | |
| } | |
| .slider::-moz-range-thumb { | |
| width: 20px; | |
| height: 20px; | |
| border-radius: 50%; | |
| background: var(--primary-color); | |
| cursor: pointer; | |
| border: none; | |
| } | |
| .slider-value { | |
| display: flex; | |
| justify-content: space-between; | |
| font-size: 0.9rem; | |
| color: var(--secondary-color); | |
| } | |
| .output-preview { | |
| flex: 1; | |
| background: white; | |
| border-radius: var(--border-radius); | |
| padding: 25px; | |
| box-shadow: var(--shadow); | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .preview-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| } | |
| .preview-title { | |
| font-size: 1.5rem; | |
| color: var(--primary-color); | |
| font-weight: 600; | |
| } | |
| .preview-actions { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .action-btn { | |
| background: var(--light-bg); | |
| border: none; | |
| border-radius: 50%; | |
| width: 35px; | |
| height: 35px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| color: var(--text-color); | |
| } | |
| .action-btn:hover { | |
| background: var(--primary-color); | |
| color: white; | |
| } | |
| .preview-content { | |
| flex: 1; | |
| border: 1px dashed #ddd; | |
| border-radius: var(--border-radius); | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| min-height: 300px; | |
| background: var(--light-bg); | |
| } | |
| .preview-content.empty { | |
| color: var(--secondary-color); | |
| text-align: center; | |
| } | |
| .preview-content.empty i { | |
| font-size: 3rem; | |
| margin-bottom: 15px; | |
| opacity: 0.5; | |
| } | |
| .generate-btn { | |
| background: var(--primary-color); | |
| color: white; | |
| border: none; | |
| padding: 15px 30px; | |
| border-radius: var(--border-radius); | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| box-shadow: var(--shadow); | |
| margin-top: auto; | |
| } | |
| .generate-btn:hover { | |
| background: #3a5bef; | |
| transform: translateY(-2px); | |
| box-shadow: var(--glow); | |
| } | |
| .history-panel { | |
| background: white; | |
| border-radius: var(--border-radius); | |
| padding: 25px; | |
| box-shadow: var(--shadow); | |
| } | |
| .history-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| margin-bottom: 20px; | |
| } | |
| .history-title { | |
| font-size: 1.5rem; | |
| color: var(--primary-color); | |
| font-weight: 600; | |
| } | |
| .clear-history { | |
| background: none; | |
| border: none; | |
| color: var(--secondary-color); | |
| cursor: pointer; | |
| transition: var(--transition); | |
| } | |
| .clear-history:hover { | |
| color: var(--accent-color); | |
| } | |
| .history-items { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 15px; | |
| max-height: 400px; | |
| overflow-y: auto; | |
| } | |
| .history-item { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px; | |
| border-radius: var(--border-radius); | |
| background: var(--light-bg); | |
| transition: var(--transition); | |
| cursor: pointer; | |
| } | |
| .history-item:hover { | |
| background: rgba(74, 107, 255, 0.1); | |
| } | |
| .history-item i { | |
| color: var(--primary-color); | |
| margin-right: 10px; | |
| } | |
| .history-item .time { | |
| color: var(--secondary-color); | |
| font-size: 0.9rem; | |
| } | |
| .history-item .type { | |
| padding: 4px 10px; | |
| border-radius: 20px; | |
| font-size: 0.8rem; | |
| font-weight: 600; | |
| } | |
| .history-item .type.text { | |
| background: rgba(74, 107, 255, 0.2); | |
| color: var(--primary-color); | |
| } | |
| .history-item .type.image { | |
| background: rgba(255, 107, 107, 0.2); | |
| color: var(--accent-color); | |
| } | |
| .history-item .type.video { | |
| background: rgba(107, 255, 107, 0.2); | |
| color: #2ecc71; | |
| } | |
| @media (max-width: 900px) { | |
| .main-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .control-panel { | |
| order: 1; | |
| } | |
| .output-preview { | |
| order: 2; | |
| } | |
| .history-panel { | |
| order: 3; | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| .mode-selector { | |
| flex-direction: column; | |
| } | |
| .mode-btn { | |
| flex-direction: row; | |
| justify-content: flex-start; | |
| gap: 15px; | |
| } | |
| .header-right { | |
| flex-direction: column; | |
| align-items: flex-end; | |
| gap: 10px; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <header> | |
| <div class="logo"> | |
| <i class="fas fa-robot"></i> | |
| <span>AI Control Center</span> | |
| </div> | |
| <div class="header-right"> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank">Built with anycoder</a> | |
| <div class="user-profile"> | |
| <div class="user-avatar">U</div> | |
| <span>User</span> | |
| </div> | |
| </div> | |
| </header> | |
| <div class="main-grid"> | |
| <div class="control-panel"> | |
| <h2>Steuerungszentrale</h2> | |
| <div class="mode-selector"> | |
| <button class="mode-btn active" data-mode="text"> | |
| <i class="fas fa-font"></i> | |
| <span>Text</span> | |
| </button> | |
| <button class="mode-btn" data-mode="image"> | |
| <i class="fas fa-image"></i> | |
| <span>Bild</span> | |
| </button> | |
| <button class="mode-btn" data-mode="video"> | |
| <i class="fas fa-video"></i> | |
| <span>Video</span> | |
| </button> | |
| </div> | |
| <!-- Text Controls --> | |
| <div class="control-section active" id="text-controls"> | |
| <div class="input-group"> | |
| <label for="text-prompt">Eingabeaufforderung</label> | |
| <textarea id="text-prompt" rows="4" placeholder="Beschreiben Sie den Text, den Sie generieren möchten..."></textarea> | |
| </div> | |
| <div class="input-group"> | |
| <label for="text-style">Stil</label> | |
| <select id="text-style"> | |
| <option value="standard">Standard</option> | |
| <option value="creative">Kreativ</option> | |
| <option value="professional">Professionell</option> | |
| <option value="casual">Lässig</option> | |
| </select> | |
| </div> | |
| <div class="slider-container"> | |
| <label for="text-length">Länge (Wörter)</label> | |
| <input type="range" id="text-length" class="slider" min="50" max="1000" value="300"> | |
| <div class="slider-value"> | |
| <span>50</span> | |
| <span id="text-length-value">300</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Image Controls --> | |
| <div class="control-section" id="image-controls"> | |
| <div class="input-group"> | |
| <label for="image-prompt">Bildbeschreibung</label> | |
| <textarea id="image-prompt" rows="4" placeholder="Beschreiben Sie das Bild, das Sie generieren möchten..."></textarea> | |
| </div> | |
| <div class="input-group"> | |
| <label for="image-style">Stil</label> | |
| <select id="image-style"> | |
| <option value="realistic">Realistisch</option> | |
| <option value="cartoon">Cartoon</option> | |
| <option value="watercolor">Aquarell</option> | |
| <option value="cyberpunk">Cyberpunk</option> | |
| <option value="fantasy">Fantasy</option> | |
| </select> | |
| </div> | |
| <div class="slider-container"> | |
| <label for="image-resolution">Auflösung</label> | |
| <input type="range" id="image-resolution" class="slider" min="256" max="2048" value="1024" step="256"> | |
| <div class="slider-value"> | |
| <span>256px</span> | |
| <span id="image-resolution-value">1024px</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Video Controls --> | |
| <div class="control-section" id="video-controls"> | |
| <div class="input-group"> | |
| <label for="video-prompt">Videobeschreibung</label> | |
| <textarea id="video-prompt" rows="4" placeholder="Beschreiben Sie das Video, das Sie generieren möchten..."></textarea> | |
| </div> | |
| <div class="input-group"> | |
| <label for="video-style">Stil</label> | |
| <select id="video-style"> | |
| <option value="cinematic">Kinematisch</option> | |
| <option value="animation">Animation</option> | |
| <option value="documentary">Dokumentation</option> | |
| <option value="vlog">Vlog</option> | |
| </select> | |
| </div> | |
| <div class="slider-container"> | |
| <label for="video-duration">Dauer (Sekunden)</label> | |
| <input type="range" id="video-duration" class="slider" min="5" max="60" value="15"> | |
| <div class="slider-value"> | |
| <span>5s</span> | |
| <span id="video-duration-value">15s</span> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="generate-btn" id="generate-btn"> | |
| <i class="fas fa-magic"></i> Generieren | |
| </button> | |
| </div> | |
| <div class="output-preview"> | |
| <div class="preview-header"> | |
| <h2 class="preview-title">Vorschau</h2> | |
| <div class="preview-actions"> | |
| <button class="action-btn" title="Herunterladen"> | |
| <i class="fas fa-download"></i> | |
| </button> | |
| <button class="action-btn" title="Teilen"> | |
| <i class="fas fa-share-alt"></i> | |
| </button> | |
| <button class="action-btn" title="Vollbild"> | |
| <i class="fas fa-expand"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="preview-content empty" id="preview-content"> | |
| <i class="fas fa-robot"></i> | |
| <p>Wählen Sie einen Modus und generieren Sie Inhalte</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="history-panel"> | |
| <div class="history-header"> | |
| <h2 class="history-title">Verlauf</h2> | |
| <button class="clear-history"> | |
| <i class="fas fa-trash"></i> Verlauf löschen | |
| </button> | |
| </div> | |
| <div class="history-items" id="history-items"> | |
| <!-- History items will be added dynamically --> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| </script> | |
| </body> | |
| </html> |