rosalinda-code-wizard / index.html
Abmacode12's picture
import React, { useState } from 'react';
3376581 verified
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rosalinda Code Wizard</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="components/navbar.js"></script>
<script src="components/sidebar.js"></script>
<script src="components/chat.js"></script>
</head>
<body class="bg-gray-50">
<div class="flex h-screen">
<!-- Sidebar -->
<custom-sidebar></custom-sidebar>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Navbar -->
<custom-navbar></custom-navbar>
<!-- Dynamic Content -->
<main class="flex-1 overflow-y-auto p-6">
<div id="home-view" class="max-w-5xl mx-auto">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Left - Chat -->
<div class="bg-white rounded-xl border border-gray-200 p-6 shadow-sm">
<h3 class="text-xl font-bold text-gray-900 mb-4">Demander à Rosalinda</h3>
<div class="space-y-3">
<p class="text-sm text-gray-600">Exemples:</p>
<button onclick="setView('chat')" class="w-full text-left p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition border border-gray-200 text-sm">
✨ Créer un site portfolio
</button>
<button onclick="setView('chat')" class="w-full text-left p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition border border-gray-200 text-sm">
🛍️ Générer une page e-shop
</button>
<button onclick="setView('chat')" class="w-full text-left p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition border border-gray-200 text-sm">
📱 Faire une landing page
</button>
<button onclick="setView('chat')" class="w-full text-left p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition border border-gray-200 text-sm">
💻 Code React moderne
</button>
<button onclick="setView('chat')" class="w-full text-left p-3 bg-gray-50 hover:bg-blue-50 rounded-lg transition border border-gray-200 text-sm">
🎨 Dashboard admin
</button>
</div>
</div>
<!-- Right - Features -->
<div class="space-y-4">
<div class="bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl p-6 text-white shadow-lg">
<h3 class="text-lg font-bold mb-2">🤖 Rosalinda - Votre IA</h3>
<p class="text-sm">Génère du code complet, professionnel et fonctionnel instantanément. Propriétaire à 100%.</p>
</div>
<div class="bg-white rounded-xl border border-gray-200 p-6">
<h4 class="font-bold text-gray-900 mb-3">Capacités:</h4>
<ul class="space-y-2 text-sm text-gray-600">
<li>✅ HTML/CSS/JavaScript complet</li>
<li>✅ React & composants modernes</li>
<li>✅ Design responsive</li>
<li>✅ Intégrations API</li>
<li>✅ Export code prêt à l'emploi</li>
</ul>
</div>
</div>
</div>
</div>
<div id="chat-view" class="hidden max-w-4xl mx-auto">
<custom-chat></custom-chat>
</div>
<div id="projects-view" class="hidden">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:shadow-lg transition">
<div class="h-32 bg-gradient-to-br from-blue-500 to-purple-600"></div>
<div class="p-4">
<h4 class="font-bold text-gray-900">Portfolio Pro</h4>
<p class="text-xs text-gray-500 mb-4">2 jours</p>
<div class="flex gap-2">
<button onclick="setView('chat')" class="flex-1 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition font-semibold text-sm">
Éditer
</button>
<button onclick="setView('code')" class="flex-1 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition font-semibold text-sm">
Code
</button>
</div>
</div>
</div>
<!-- More projects... -->
</div>
</div>
<div id="code-view" class="hidden max-w-6xl mx-auto">
<div class="bg-white rounded-xl border border-gray-200 overflow-hidden">
<div class="bg-gray-900 text-gray-100 p-4 overflow-x-auto">
<pre class="text-sm font-mono" id="generated-code"></pre>
</div>
</div>
<button class="mt-4 px-6 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 transition font-semibold">
💾 Sauvegarder dans le projet
</button>
</div>
<div id="library-view" class="hidden grid grid-cols-2 md:grid-cols-4 gap-4">
<!-- Library items... -->
</div>
</main>
</div>
</div>
<script src="script.js"></script>
<script>
feather.replace();
</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>