Spaces:
Running
Running
| <html lang="fr" class="dark"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>Espace Codage - IA Développement</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| DEFAULT: '#2563eb', // blue-600 | |
| 50: '#eff6ff', | |
| 100: '#dbeafe', | |
| 200: '#bfdbfe', | |
| 300: '#93c5fd', | |
| 400: '#60a5fa', | |
| 500: '#3b82f6', | |
| 600: '#2563eb', | |
| 700: '#1d4ed8', | |
| 800: '#1e40af', | |
| 900: '#1e3a8a', | |
| }, | |
| secondary: { | |
| DEFAULT: '#9333ea', // purple-600 | |
| 50: '#faf5ff', | |
| 100: '#f3e8ff', | |
| 200: '#e9d5ff', | |
| 300: '#d8b4fe', | |
| 400: '#c084fc', | |
| 500: '#a855f7', | |
| 600: '#9333ea', | |
| 700: '#7e22ce', | |
| 800: '#6b21a8', | |
| 900: '#581c87', | |
| }, | |
| accent: { | |
| teal: '#06b6d4', | |
| pink: '#ec4899', | |
| }, | |
| surface: { | |
| DEFAULT: '#0d1b2a', | |
| 50: '#f8fafc', | |
| 100: '#f1f5f9', | |
| 200: '#e2e8f0', | |
| 300: '#cbd5e1', | |
| 400: '#94a3b8', | |
| 500: '#64748b', | |
| 600: '#475569', | |
| 700: '#334155', | |
| 800: '#1e293b', | |
| 900: '#0f172a', | |
| } | |
| }, | |
| boxShadow: { | |
| 'glow-sm': '0 0 0 1px rgba(59,130,246,0.2)', | |
| 'glow': '0 10px 25px rgba(59,130,246,0.25)', | |
| }, | |
| keyframes: { | |
| pulseDot: { | |
| '0%, 100%': { transform: 'scale(1)', opacity: '1' }, | |
| '50%': { transform: 'scale(1.1)', opacity: '0.6' }, | |
| }, | |
| typing: { | |
| '0%, 60%, 100%': { transform: 'translateY(0)' }, | |
| '30%': { transform: 'translateY(-10px)' }, | |
| }, | |
| appear: { | |
| '0%': { opacity: '0', transform: 'translateY(10px)' }, | |
| '100%': { opacity: '1', transform: 'translateY(0)' }, | |
| }, | |
| }, | |
| animation: { | |
| 'pulse-dot': 'pulseDot 2s infinite', | |
| 'typing': 'typing 1.5s infinite ease-in-out', | |
| 'appear': 'appear 0.3s ease-out', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-surface-900 text-slate-100 h-screen overflow-hidden"> | |
| <div class="app"> | |
| <!-- COLONNE 1 : NAVIGATION --> | |
| <aside class="sidebar"> | |
| <div class="sidebar-header"> | |
| <i class="fas fa-seedling text-primary-500 text-2xl"></i> | |
| <h2>DeepSeed</h2> | |
| </div> | |
| <nav class="sidebar-nav"> | |
| <button class="nav-btn primary" id="newTaskBtn"> | |
| <i class="fas fa-plus"></i> | |
| + Nouvelle tâche | |
| </button> | |
| <button class="nav-btn" id="searchBtn"> | |
| <i class="fas fa-search"></i> | |
| 🔍 Rechercher | |
| </button> | |
| <button class="nav-btn" id="libraryBtn"> | |
| <i class="fas fa-book"></i> | |
| 📚 Bibliothèque | |
| </button> | |
| <div class="nav-section"> | |
| <h4>PROJETS</h4> | |
| <button class="nav-btn" data-project="api-users"> | |
| <i class="fas fa-users"></i> | |
| API Utilisateurs | |
| </button> | |
| <button class="nav-btn" data-project="react-components"> | |
| <i class="fab fa-react"></i> | |
| Composants React | |
| </button> | |
| <button class="nav-btn" data-project="database"> | |
| <i class="fas fa-database"></i> | |
| Base de données | |
| </button> | |
| <button class="nav-btn" data-project="api-rest"> | |
| <i class="fas fa-plug"></i> | |
| API REST | |
| </button> | |
| </div> | |
| </nav> | |
| </aside> | |
| <!-- COLONNE 2 : GÉNÉRATEUR IA --> | |
| <main class="generator"> | |
| <!-- BARRE DE GÉNÉRATION (déplacée en haut) --> | |
| <div class="prompt-bar"> | |
| <input type="text" id="promptInput" placeholder="Décrivez votre idée de code..." /> | |
| <button class="generate-btn" id="generateBtn"> | |
| <i class="fas fa-magic"></i> | |
| Générer ✨ | |
| </button> | |
| <button class="mic-btn" id="micBtn" title="Commande vocale"> | |
| <i class="fas fa-microphone"></i> | |
| </button> | |
| </div> | |
| <!-- ZONE DE CODE GÉNÉRÉ --> | |
| <section class="code-area"> | |
| <div class="code-header"> | |
| <h3><i class="fas fa-code"></i> Code généré</h3> | |
| <div class="code-actions"> | |
| <button class="code-action-btn" id="copyCodeBtn" title="Copier"> | |
| <i class="fas fa-copy"></i> | |
| </button> | |
| <button class="code-action-btn" id="saveCodeBtn" title="Sauvegarder"> | |
| <i class="fas fa-save"></i> | |
| </button> | |
| <button class="code-action-btn" id="runCodeBtn" title="Exécuter"> | |
| <i class="fas fa-play"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <pre id="generatedCode"><code>// Le code apparaîtra ici après génération... | |
| // Utilisez la barre de recherche ci-dessus pour décrire ce que vous voulez créer.</code></pre> | |
| </section> | |
| </main> | |
| <!-- COLONNE 3 : ROSALINDA --> | |
| <aside class="assistant"> | |
| <div class="assistant-header"> | |
| <div class="assistant-avatar"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="assistant-info"> | |
| <h3>Rosalinda ∞</h3> | |
| <p>Prête à coder avec vous</p> | |
| </div> | |
| </div> | |
| <div class="assistant-stats"> | |
| <div class="stat-item"> | |
| <i class="fas fa-code"></i> | |
| <span>Langages : 20+</span> | |
| </div> | |
| <div class="stat-item"> | |
| <i class="fas fa-chart-line"></i> | |
| <span>Succès : 98.7%</span> | |
| </div> | |
| <div class="stat-item"> | |
| <i class="fas fa-bolt"></i> | |
| <span>Réponse : <500ms</span> | |
| </div> | |
| </div> | |
| <div class="assistant-chat" id="rosalindaChat"> | |
| <div class="chat-message assistant-message"> | |
| <div class="message-avatar"> | |
| <i class="fas fa-robot"></i> | |
| </div> | |
| <div class="message-content"> | |
| Bonjour ! Je suis Rosalinda, votre assistante IA. Décrivez-moi ce que vous souhaitez créer et je générerai le code pour vous ! | |
| </div> | |
| </div> | |
| </div> | |
| <div class="assistant-input"> | |
| <input type="text" id="rosalindaInput" placeholder="Posez une question à Rosalinda..." /> | |
| <button id="rosalindaSendBtn"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| <div class="assistant-config"> | |
| <h4>Configuration</h4> | |
| <div class="config-item"> | |
| <label>Modèle :</label> | |
| <select id="modelSelect"> | |
| <option>GPT-4 Turbo</option> | |
| <option>Claude 3</option> | |
| <option>Gemini Pro</option> | |
| </select> | |
| </div> | |
| <div class="config-item"> | |
| <label>Température :</label> | |
| <input type="range" id="tempSlider" min="0" max="1" step="0.1" value="0.7" /> | |
| </div> | |
| <div class="config-item"> | |
| <label>Max tokens :</label> | |
| <input type="number" id="maxTokens" value="2000" /> | |
| </div> | |
| </div> | |
| </aside> | |
| </div> | |
| <script src="script.js"></script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |