Spaces:
Running
Running
Download index.html from Mercurygraph/mercuryscript07: direct link, hf CLI and curl.
- Browser
- Download file 51.9 kB
-
https://huggingface.co/spaces/Mercurygraph/mercuryscript07/resolve/main/index.html
- Command line
-
hf download hf://spaces/Mercurygraph/mercuryscript07/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Mercurygraph/mercuryscript07/resolve/main/index.html
51.9 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Mercuryscript - Assistant d'écriture de scénario IA</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap'); | |
| :root { | |
| --primary: #1a365d; | |
| --secondary: #2c5282; | |
| --accent: #ecc94b; | |
| --dark: #1a202c; | |
| --light: #f7fafc; | |
| } | |
| body { | |
| font-family: 'Roboto', sans-serif; | |
| background-color: #f0f4f8; | |
| color: var(--dark); | |
| } | |
| .title-font { | |
| font-family: 'Playfair Display', serif; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .script-textarea { | |
| min-height: 500px; | |
| font-family: 'Courier New', Courier, monospace; | |
| line-height: 1.5; | |
| } | |
| .storyboard-panel { | |
| aspect-ratio: 16/9; | |
| background-color: #e2e8f0; | |
| border: 1px solid #cbd5e0; | |
| } | |
| .shot-list-item { | |
| border-left: 4px solid var(--accent); | |
| } | |
| .director-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| } | |
| .language-toggle { | |
| position: relative; | |
| width: 60px; | |
| height: 30px; | |
| } | |
| .language-toggle input { | |
| opacity: 0; | |
| width: 0; | |
| height: 0; | |
| } | |
| .language-slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: var(--secondary); | |
| transition: .4s; | |
| border-radius: 34px; | |
| } | |
| .language-slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 22px; | |
| width: 22px; | |
| left: 4px; | |
| bottom: 4px; | |
| background-color: white; | |
| transition: .4s; | |
| border-radius: 50%; | |
| } | |
| input:checked + .language-slider { | |
| background-color: #3182ce; | |
| } | |
| input:checked + .language-slider:before { | |
| transform: translateX(30px); | |
| } | |
| .language-labels { | |
| position: absolute; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| width: 100%; | |
| display: flex; | |
| justify-content: space-between; | |
| padding: 0 8px; | |
| pointer-events: none; | |
| } | |
| .tab-active { | |
| border-bottom: 3px solid var(--accent); | |
| font-weight: 500; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.5; | |
| } | |
| } | |
| .animate-pulse { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| /* Ajouts pour la fonctionnalité */ | |
| .hidden { | |
| display: none; | |
| } | |
| .french { | |
| display: none; | |
| } | |
| .loading { | |
| position: relative; | |
| } | |
| .loading:after { | |
| content: ""; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: rgba(255,255,255,0.7); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar w-64 bg-white shadow-lg hidden md:block"> | |
| <div class="gradient-bg text-white p-4 flex items-center"> | |
| <i class="fas fa-pen-nib text-2xl mr-3"></i> | |
| <h1 class="title-font text-2xl font-bold english">Mercuryscript</h1> | |
| <h1 class="title-font text-2xl font-bold french">Mercuryscript</h1> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex items-center justify-between mb-6"> | |
| <span class="text-sm font-medium english">Language:</span> | |
| <span class="text-sm font-medium french">Langue:</span> | |
| <label class="language-toggle"> | |
| <input type="checkbox" id="languageToggle"> | |
| <span class="language-slider"></span> | |
| <div class="language-labels"> | |
| <span class="text-xs text-white">EN</span> | |
| <span class="text-xs text-white">FR</span> | |
| </div> | |
| </label> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 english">Projects</h3> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 french">Projets</h3> | |
| <button id="newProjectBtn" class="w-full flex items-center justify-between py-2 px-3 bg-blue-50 rounded-lg text-blue-700 mb-2"> | |
| <span class="english">New Screenplay</span> | |
| <span class="french">Nouveau scénario</span> | |
| <i class="fas fa-plus"></i> | |
| </button> | |
| <div class="space-y-1" id="projectList"> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 english">The Last Sunset</a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 french">Le Dernier Coucher</a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 english">Midnight in Paris</a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 french">Minuit à Paris</a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 english">Echoes of Silence</a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 french">Échos de Silence</a> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 english">Tools</h3> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 french">Outils</h3> | |
| <nav class="space-y-1"> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-lightbulb mr-2 text-yellow-500"></i> | |
| <span class="english">Idea Generator</span> | |
| <span class="french">Générateur d'idées</span> | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-project-diagram mr-2 text-purple-500"></i> | |
| <span class="english">Structure Assistant</span> | |
| <span class="french">Assistant structure</span> | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-users mr-2 text-green-500"></i> | |
| <span class="english">Character Builder</span> | |
| <span class="french">Créateur de personnages</span> | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-comments mr-2 text-blue-500"></i> | |
| <span class="english">Dialogue Polisher</span> | |
| <span class="french">Polissage de dialogue</span> | |
| </a> | |
| </nav> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 english">Resources</h3> | |
| <h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider mb-2 french">Ressources</h3> | |
| <nav class="space-y-1"> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-book mr-2 text-indigo-500"></i> | |
| <span class="english">Knowledge Base</span> | |
| <span class="french">Base de connaissances</span> | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-film mr-2 text-red-500"></i> | |
| <span class="english">Film References</span> | |
| <span class="french">Références cinéma</span> | |
| </a> | |
| <a href="#" class="block py-2 px-3 rounded-lg hover:bg-gray-100 flex items-center"> | |
| <i class="fas fa-format-align-left mr-2 text-gray-500"></i> | |
| <span class="english">Formatting Guide</span> | |
| <span class="french">Guide de formatage</span> | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="flex-1 flex flex-col overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm z-10"> | |
| <div class="flex items-center justify-between px-6 py-3"> | |
| <div class="flex items-center"> | |
| <button id="mobileMenuBtn" class="md:hidden mr-4 text-gray-600"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| <h2 class="title-font text-xl font-semibold english">The Last Sunset</h2> | |
| <h2 class="title-font text-xl font-semibold french">Le Dernier Coucher</h2> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="saveBtn" class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-save text-blue-500"></i> | |
| </button> | |
| <button id="shareBtn" class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-share-alt text-green-500"></i> | |
| </button> | |
| <button id="settingsBtn" class="p-2 rounded-full hover:bg-gray-100"> | |
| <i class="fas fa-cog text-gray-500"></i> | |
| </button> | |
| <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-semibold"> | |
| JD | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-b border-gray-200"> | |
| <nav class="flex -mb-px"> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-blue-500 font-medium text-sm text-blue-600 english">Editor</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-blue-500 font-medium text-sm text-blue-600 french">Éditeur</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 english">Analysis</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 french">Analyse</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 english">Versions</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 french">Versions</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 english">Collaborators</a> | |
| <a href="#" class="mr-8 py-3 px-1 border-b-2 border-transparent font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 french">Collaborateurs</a> | |
| </nav> | |
| </div> | |
| </header> | |
| <!-- Main Content Area --> | |
| <main class="flex-1 overflow-auto p-6 bg-white"> | |
| <div class="max-w-6xl mx-auto"> | |
| <div class="flex flex-col lg:flex-row gap-6"> | |
| <!-- Editor Column --> | |
| <div class="flex-1"> | |
| <div class="mb-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="title-font text-lg font-semibold english">Screenplay Editor</h3> | |
| <h3 class="title-font text-lg font-semibold french">Éditeur de scénario</h3> | |
| <div class="flex space-x-2"> | |
| <button id="formatBtn" class="px-3 py-1 bg-gray-100 rounded text-sm hover:bg-gray-200 english">Format</button> | |
| <button id="formatBtnFr" class="px-3 py-1 bg-gray-100 rounded text-sm hover:bg-gray-200 french">Formater</button> | |
| <button id="exportBtn" class="px-3 py-1 bg-gray-100 rounded text-sm hover:bg-gray-200 english">Export</button> | |
| <button id="exportBtnFr" class="px-3 py-1 bg-gray-100 rounded text-sm hover:bg-gray-200 french">Exporter</button> | |
| </div> | |
| </div> | |
| <div class="bg-white border border-gray-300 rounded-lg overflow-hidden"> | |
| <textarea id="scriptTextarea" class="w-full script-textarea p-4 focus:outline-none" placeholder="FADE IN:"> | |
| INT. ABANDONED HOTEL - NIGHT | |
| A flickering neon sign casts eerie shadows across the peeling wallpaper. The CAMERA TRACKS SLOWLY down the hallway, revealing... | |
| JAMES (30s), rugged but refined, steps carefully over broken glass. His eyes scan the darkness, alert to every sound. | |
| </textarea> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h3 class="title-font text-lg font-semibold mb-4 english">Director Vision Analysis</h3> | |
| <h3 class="title-font text-lg font-semibold mb-4 french">Analyse vision réalisateur</h3> | |
| <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <div class="flex items-center mb-4"> | |
| <span class="mr-3 text-sm font-medium english">Select Director:</span> | |
| <span class="mr-3 text-sm font-medium french">Sélectionner réalisateur:</span> | |
| <select id="directorSelect" class="flex-1 bg-white border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-blue-500"> | |
| <option value="">Choose a director...</option> | |
| <option value="hitchcock">Alfred Hitchcock</option> | |
| <option value="kubrick">Stanley Kubrick</option> | |
| <option value="scorsese">Martin Scorsese</option> | |
| <option value="ptanderson">Paul Thomas Anderson</option> | |
| <option value="nolan">Christopher Nolan</option> | |
| <option value="godard">Jean-Luc Godard</option> | |
| <option value="truffaut">François Truffaut</option> | |
| </select> | |
| <button id="analyzeBtn" class="ml-3 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 english">Analyze</button> | |
| <button id="analyzeBtnFr" class="ml-3 px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 french">Analyser</button> | |
| </div> | |
| <div id="directorAnalysis" class="bg-white p-4 rounded border border-gray-200 hidden"> | |
| <div class="flex items-center mb-3"> | |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3"> | |
| <i class="fas fa-user-tie text-blue-500"></i> | |
| </div> | |
| <div> | |
| <h4 id="directorName" class="font-semibold"></h4> | |
| <p id="directorStyle" class="text-xs text-gray-500"></p> | |
| </div> | |
| </div> | |
| <div id="analysisContent" class="text-sm text-gray-700 space-y-3"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Tools Column --> | |
| <div class="w-full lg:w-80 flex flex-col gap-6"> | |
| <div> | |
| <h3 class="title-font text-lg font-semibold mb-4 english">Storyboard</h3> | |
| <h3 class="title-font text-lg font-semibold mb-4 french">Storyboard</h3> | |
| <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <div id="storyboardPanels" class="grid grid-cols-2 gap-3 mb-4"> | |
| <div class="storyboard-panel rounded flex items-center justify-center"> | |
| <i class="fas fa-image text-gray-400 text-2xl"></i> | |
| </div> | |
| <div class="storyboard-panel rounded flex items-center justify-center"> | |
| <i class="fas fa-image text-gray-400 text-2xl"></i> | |
| </div> | |
| <div class="storyboard-panel rounded flex items-center justify-center"> | |
| <i class="fas fa-image text-gray-400 text-2xl"></i> | |
| </div> | |
| <div class="storyboard-panel rounded flex items-center justify-center"> | |
| <i class="fas fa-image text-gray-400 text-2xl"></i> | |
| </div> | |
| </div> | |
| <button id="generateStoryboardBtn" class="w-full py-2 bg-blue-600 text-white rounded hover:bg-blue-700 flex items-center justify-center"> | |
| <i class="fas fa-magic mr-2"></i> | |
| <span class="english">Generate Storyboard</span> | |
| <span class="french">Générer storyboard</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="title-font text-lg font-semibold mb-4 english">Scene Breakdown</h3> | |
| <h3 class="title-font text-lg font-semibold mb-4 french">Découpage technique</h3> | |
| <div class="bg-gray-50 p-4 rounded-lg border border-gray-200"> | |
| <div id="shotList" class="space-y-3 mb-4"> | |
| <div class="shot-list-item bg-white p-3 rounded"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <span class="font-medium english">SHOT 1</span> | |
| <span class="font-medium french">PLAN 1</span> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded ml-2">WS</span> | |
| </div> | |
| <span class="text-xs text-gray-500">00:00:00:00</span> | |
| </div> | |
| <p class="text-sm mt-1 english">Establishing shot of abandoned hotel exterior, neon sign flickering</p> | |
| <p class="text-sm mt-1 french">Plan d'ensemble de l'hôtel abandonné, enseigne au néon clignotante</p> | |
| </div> | |
| <div class="shot-list-item bg-white p-3 rounded"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <span class="font-medium english">SHOT 2</span> | |
| <span class="font-medium french">PLAN 2</span> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded ml-2">TRACK</span> | |
| </div> | |
| <span class="text-xs text-gray-500">00:00:05:12</span> | |
| </div> | |
| <p class="text-sm mt-1 english">Slow tracking shot down hallway, revealing peeling wallpaper</p> | |
| <p class="text-sm mt-1 french">Travelling lent dans le couloir, révélant le papier peint écaillé</p> | |
| </div> | |
| <div class="shot-list-item bg-white p-3 rounded"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <span class="font-medium english">SHOT 3</span> | |
| <span class="font-medium french">PLAN 3</span> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded ml-2">MS</span> | |
| </div> | |
| <span class="text-xs text-gray-500">00:00:12:24</span> | |
| </div> | |
| <p class="text-sm mt-1 english">James steps carefully over broken glass, eyes scanning</p> | |
| <p class="text-sm mt-1 french">James enjambe prudemment des verres brisés, les yeux scrutant</p> | |
| </div> | |
| </div> | |
| <button id="generateShotListBtn" class="w-full py-2 bg-blue-600 text-white rounded hover:bg-blue-700 flex items-center justify-center"> | |
| <i class="fas fa-list-ol mr-2"></i> | |
| <span class="english">Generate Shot List</span> | |
| <span class="french">Générer liste de plans</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="title-font text-lg font-semibold mb-4 english">Suggested Directors</h3> | |
| <h3 class="title-font text-lg font-semibold mb-4 french">Réalisateurs suggérés</h3> | |
| <div class="grid grid-cols-2 gap-3"> | |
| <div class="director-card bg-white p-3 rounded-lg border border-gray-200 text-center cursor-pointer transition duration-300" data-director="lynch"> | |
| <div class="w-16 h-16 mx-auto mb-2 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="https://via.placeholder.com/64" alt="Director" class="w-full h-full object-cover"> | |
| </div> | |
| <h4 class="font-medium text-sm">David Lynch</h4> | |
| <p class="text-xs text-gray-500 english">Dreamlike Mystery</p> | |
| <p class="text-xs text-gray-500 french">Mystère onirique</p> | |
| </div> | |
| <div class="director-card bg-white p-3 rounded-lg border border-gray-200 text-center cursor-pointer transition duration-300" data-director="godard"> | |
| <div class="w-16 h-16 mx-auto mb-2 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="https://via.placeholder.com/64" alt="Director" class="w-full h-full object-cover"> | |
| </div> | |
| <h4 class="font-medium text-sm">Jean-Luc Godard</h4> | |
| <p class="text-xs text-gray-500 english">Avant-Garde</p> | |
| <p class="text-xs text-gray-500 french">Avant-Garde</p> | |
| </div> | |
| <div class="director-card bg-white p-3 rounded-lg border border-gray-200 text-center cursor-pointer transition duration-300" data-director="nolan"> | |
| <div class="w-16 h-16 mx-auto mb-2 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="https://via.placeholder.com/64" alt="Director" class="w-full h-full object-cover"> | |
| </div> | |
| <h4 class="font-medium text-sm">Christopher Nolan</h4> | |
| <p class="text-xs text-gray-500 english">Complex Narrative</p> | |
| <p class="text-xs text-gray-500 french">Narratif complexe</p> | |
| </div> | |
| <div class="director-card bg-white p-3 rounded-lg border border-gray-200 text-center cursor-pointer transition duration-300" data-director="truffaut"> | |
| <div class="w-16 h-16 mx-auto mb-2 rounded-full bg-gray-200 overflow-hidden"> | |
| <img src="https://via.placeholder.com/64" alt="Director" class="w-full h-full object-cover"> | |
| </div> | |
| <h4 class="font-medium text-sm">François Truffaut</h4> | |
| <p class="text-xs text-gray-500 english">Humanist Drama</p> | |
| <p class="text-xs text-gray-500 french">Drame humaniste</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- AI Assistant Panel --> | |
| <div class="border-t border-gray-200 bg-white p-4 shadow-inner"> | |
| <div class="max-w-6xl mx-auto"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 mr-3"> | |
| <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center"> | |
| <i class="fas fa-robot text-blue-500"></i> | |
| </div> | |
| </div> | |
| <div class="flex-1 min-w-0"> | |
| <div class="flex items-center mb-1"> | |
| <p class="text-sm font-medium text-gray-900 mr-2 english">Mercury AI Assistant</p> | |
| <p class="text-sm font-medium text-gray-900 mr-2 french">Assistant IA Mercury</p> | |
| <span class="px-2 py-0.5 text-xs rounded-full bg-green-100 text-green-800 english">Active</span> | |
| <span class="px-2 py-0.5 text-xs rounded-full bg-green-100 text-green-800 french">Actif</span> | |
| </div> | |
| <div class="relative"> | |
| <input id="aiQueryInput" type="text" class="w-full border border-gray-300 rounded-full py-2 px-4 pr-10 focus:outline-none focus:ring-1 focus:ring-blue-500 english" placeholder="Ask me anything about your screenplay..."> | |
| <input id="aiQueryInputFr" type="text" class="w-full border border-gray-300 rounded-full py-2 px-4 pr-10 focus:outline-none focus:ring-1 focus:ring-blue-500 french" placeholder="Posez-moi une question sur votre scénario..."> | |
| <button id="sendQueryBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-blue-500"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Base de données des réalisateurs | |
| const directors = { | |
| hitchcock: { | |
| name: "Alfred Hitchcock", | |
| styleEn: "Master of Suspense | Psychological Tension", | |
| styleFr: "Maître du suspense | Tension psychologique", | |
| analysisEn: [ | |
| "The abandoned hotel setting has excellent potential for suspense. I would emphasize the play of shadows and use the neon sign's flickering to create unease.", | |
| "Consider adding a subjective POV shot when James hears a sound - let the audience see what he sees, then reveal it's just a rat. This misdirection builds tension.", | |
| "The slow tracking shot is effective, but I'd suggest making it even slower, almost imperceptibly moving, to heighten the audience's anticipation." | |
| ], | |
| analysisFr: [ | |
| "Le cadre de l'hôtel abandonné a un excellent potentiel pour le suspense. J'insisterais sur le jeu des ombres et utiliserais le clignotement de l'enseigne au néon pour créer un malaise.", | |
| "Envisagez d'ajouter un plan subjectif lorsque James entend un bruit - montrez au public ce qu'il voit, puis révélez que ce n'est qu'un rat. Cette fausse piste accroît la tension.", | |
| "Le travelling lent est efficace, mais je suggère de le rendre encore plus lent, presque imperceptible, pour augmenter l'anticipation du public." | |
| ] | |
| }, | |
| kubrick: { | |
| name: "Stanley Kubrick", | |
| styleEn: "Extreme Formal Rigor | Visual Symbolism", | |
| styleFr: "Rigueur formelle extrême | Symbolisme visuel", | |
| analysisEn: [ | |
| "The setting is promising but could benefit from more geometric composition. Consider aligning the hallway with perfect symmetry to create a sense of unease.", | |
| "The neon sign should have a specific color - perhaps an eerie green - that becomes a recurring visual motif throughout the film.", | |
| "I would shoot this scene with a wide-angle lens to exaggerate the perspective and create a more unsettling atmosphere." | |
| ], | |
| analysisFr: [ | |
| "Le cadre est prometteur mais pourrait bénéficier d'une composition plus géométrique. Envisagez d'aligner le couloir avec une symétrie parfaite pour créer un sentiment de malaise.", | |
| "L'enseigne au néon devrait avoir une couleur spécifique - peut-être un vert inquiétant - qui deviendrait un motif visuel récurrent tout au long du film.", | |
| "Je filmerais cette scène avec un objectif grand angle pour exagérer la perspective et créer une atmosphère plus déstabilisante." | |
| ] | |
| }, | |
| godard: { | |
| name: "Jean-Luc Godard", | |
| styleEn: "Avant-Garde | Narrative Deconstruction", | |
| styleFr: "Avant-Garde | Déconstruction narrative", | |
| analysisEn: [ | |
| "Why not break the fourth wall here? Have James suddenly address the audience about the nature of fear.", | |
| "The tracking shot is too conventional. Try a series of jump cuts to disorient the viewer.", | |
| "Add some text on screen - perhaps a philosophical quote about darkness - to create layers of meaning." | |
| ], | |
| analysisFr: [ | |
| "Pourquoi ne pas briser le quatrième mur ici ? Faites que James s'adresse soudainement au public sur la nature de la peur.", | |
| "Le travelling est trop conventionnel. Essayez une série de cuts pour désorienter le spectateur.", | |
| "Ajoutez du texte à l'écran - peut-être une citation philosophique sur l'obscurité - pour créer des niveaux de sens." | |
| ] | |
| }, | |
| truffaut: { | |
| name: "François Truffaut", | |
| styleEn: "Humanist Drama | Emotional Authenticity", | |
| styleFr: "Drame humaniste | Authenticité émotionnelle", | |
| analysisEn: [ | |
| "Focus more on James' facial expressions - what is he really feeling in this moment? Fear? Nostalgia?", | |
| "The setting is atmospheric, but don't forget the human element. Add a flashback to show why this place is significant to him.", | |
| "Use natural light sources whenever possible to maintain realism and emotional truth." | |
| ], | |
| analysisFr: [ | |
| "Concentrez-vous davantage sur les expressions faciales de James - que ressent-il vraiment à ce moment ? Peur ? Nostalgie ?", | |
| "Le cadre est atmosphérique, mais n'oubliez pas l'élément humain. Ajoutez un flashback pour montrer pourquoi cet endroit est significatif pour lui.", | |
| "Utilisez des sources de lumière naturelle autant que possible pour maintenir le réalisme et la vérité émotionnelle." | |
| ] | |
| }, | |
| lynch: { | |
| name: "David Lynch", | |
| styleEn: "Dreamlike Mystery | Subconscious Exploration", | |
| styleFr: "Mystère onirique | Exploration subconsciente", | |
| analysisEn: [ | |
| "The scene needs more surreal elements. Perhaps the wallpaper patterns start moving subtly.", | |
| "Add a low-frequency hum to the soundtrack - something barely audible but unsettling.", | |
| "The neon sign should flicker in an irregular pattern, almost like it's trying to communicate." | |
| ], | |
| analysisFr: [ | |
| "La scène a besoin d'éléments plus surréalistes. Peut-être que les motifs du papier peint commencent à bouger subtilement.", | |
| "Ajoutez un bourdonnement basse fréquence à la bande sonore - quelque chose de barely audible mais inquiétant.", | |
| "L'enseigne au néon devrait clignoter selon un motif irrégulier, comme si elle essayait de communiquer." | |
| ] | |
| }, | |
| nolan: { | |
| name: "Christopher Nolan", | |
| styleEn: "Complex Narrative | Conceptual Depth", | |
| styleFr: "Narratif complexe | Profondeur conceptuelle", | |
| analysisEn: [ | |
| "Consider making time nonlinear - intercut this scene with a future or past event to create mystery.", | |
| "The setting could represent a psychological state. Is the hotel a metaphor for James' mind?", | |
| "Use practical effects for the neon sign flicker - CGI would lose the tactile realism." | |
| ], | |
| analysisFr: [ | |
| "Envisagez de rendre le temps non linéaire - intercalez cette scène avec un événement futur ou passé pour créer du mystère.", | |
| "Le cadre pourrait représenter un état psychologique. L'hôtel est-il une métaphore de l'esprit de James ?", | |
| "Utilisez des effets pratiques pour le clignotement de l'enseigne au néon - les effets numériques perdraient le réalisme tactile." | |
| ] | |
| } | |
| }; | |
| // Gestion de la langue | |
| const languageToggle = document.getElementById('languageToggle'); | |
| languageToggle.addEventListener('change', function() { | |
| if(this.checked) { | |
| // Passer en français | |
| document.querySelectorAll('.english').forEach(el => el.style.display = 'none'); | |
| document.querySelectorAll('.french').forEach(el => el.style.display = ''); | |
| } else { | |
| // Passer en anglais | |
| document.querySelectorAll('.french').forEach(el => el.style.display = 'none'); | |
| document.querySelectorAll('.english').forEach(el => el.style.display = ''); | |
| } | |
| }); | |
| // Initialiser en anglais | |
| document.querySelectorAll('.french').forEach(el => el.style.display = 'none'); | |
| // Menu mobile | |
| document.getElementById('mobileMenuBtn').addEventListener('click', function() { | |
| document.querySelector('.sidebar').classList.toggle('hidden'); | |
| }); | |
| // Analyse du réalisateur | |
| document.getElementById('analyzeBtn').addEventListener('click', analyzeScript); | |
| document.getElementById('analyzeBtnFr').addEventListener('click', analyzeScript); | |
| // Clic sur les cartes de réalisateur | |
| document.querySelectorAll('.director-card').forEach(card => { | |
| card.addEventListener('click', function() { | |
| const directorKey = this.getAttribute('data-director'); | |
| document.getElementById('directorSelect').value = directorKey; | |
| analyzeScript(); | |
| }); | |
| }); | |
| function analyzeScript() { | |
| const directorKey = document.getElementById('directorSelect').value; | |
| if (!directorKey) return; | |
| const director = directors[directorKey]; | |
| if (!director) return; | |
| const isFrench = languageToggle.checked; | |
| document.getElementById('directorName').textContent = director.name; | |
| document.getElementById('directorStyle').textContent = isFrench ? director.styleFr : director.styleEn; | |
| const analysisContent = document.getElementById('analysisContent'); | |
| analysisContent.innerHTML = ''; | |
| const analysisPoints = isFrench ? director.analysisFr : director.analysisEn; | |
| analysisPoints.forEach(point => { | |
| const p = document.createElement('p'); | |
| p.textContent = point; | |
| analysisContent.appendChild(p); | |
| }); | |
| document.getElementById('directorAnalysis').classList.remove('hidden'); | |
| } | |
| // Génération de storyboard | |
| document.getElementById('generateStoryboardBtn').addEventListener('click', function() { | |
| const panels = document.getElementById('storyboardPanels'); | |
| panels.innerHTML = ''; | |
| const scriptText = document.getElementById('scriptTextarea').value; | |
| const scenes = scriptText.split('\n\n').filter(s => s.trim()); | |
| // Limiter à 4 panneaux pour l'exemple | |
| const panelCount = Math.min(4, scenes.length); | |
| for (let i = 0; i < panelCount; i++) { | |
| const panel = document.createElement('div'); | |
| panel.className = 'storyboard-panel rounded flex flex-col items-center justify-center p-2'; | |
| const icon = document.createElement('i'); | |
| icon.className = 'fas fa-image text-gray-400 text-2xl mb-2'; | |
| const desc = document.createElement('div'); | |
| desc.className = 'text-xs text-center text-gray-600'; | |
| desc.textContent = scenes[i].split('\n')[0].substring(0, 30) + '...'; | |
| panel.appendChild(icon); | |
| panel.appendChild(desc); | |
| panels.appendChild(panel); | |
| } | |
| // Remplir avec des panneaux vides si nécessaire | |
| for (let i = panelCount; i < 4; i++) { | |
| const panel = document.createElement('div'); | |
| panel.className = 'storyboard-panel rounded flex items-center justify-center'; | |
| const icon = document.createElement('i'); | |
| icon.className = 'fas fa-image text-gray-400 text-2xl'; | |
| panel.appendChild(icon); | |
| panels.appendChild(panel); | |
| } | |
| alert(languageToggle.checked ? | |
| "Storyboard généré avec succès !" : | |
| "Storyboard generated successfully!"); | |
| }); | |
| // Génération de liste de plans | |
| document.getElementById('generateShotListBtn').addEventListener('click', function() { | |
| const shotList = document.getElementById('shotList'); | |
| shotList.innerHTML = ''; | |
| const scriptText = document.getElementById('scriptTextarea').value; | |
| const scenes = scriptText.split('\n\n').filter(s => s.trim()); | |
| const isFrench = languageToggle.checked; | |
| // Limiter à 3 plans pour l'exemple | |
| const shotCount = Math.min(3, scenes.length); | |
| for (let i = 0; i < shotCount; i++) { | |
| const sceneLines = scenes[i].split('\n'); | |
| const shotType = i === 0 ? 'WS' : i === 1 ? 'TRACK' : 'MS'; | |
| const shotItem = document.createElement('div'); | |
| shotItem.className = 'shot-list-item bg-white p-3 rounded'; | |
| const header = document.createElement('div'); | |
| header.className = 'flex justify-between items-start'; | |
| const shotNum = document.createElement('div'); | |
| const shotNumSpan = document.createElement('span'); | |
| shotNumSpan.className = 'font-medium'; | |
| shotNumSpan.textContent = isFrench ? `PLAN ${i+1}` : `SHOT ${i+1}`; | |
| const shotTypeSpan = document.createElement('span'); | |
| shotTypeSpan.className = 'text-xs bg-blue-100 text-blue-800 px-2 py-0.5 rounded ml-2'; | |
| shotTypeSpan.textContent = shotType; | |
| shotNum.appendChild(shotNumSpan); | |
| shotNum.appendChild(shotTypeSpan); | |
| const timecode = document.createElement('span'); | |
| timecode.className = 'text-xs text-gray-500'; | |
| timecode.textContent = `00:00:${i*5}:${i*12}`; | |
| header.appendChild(shotNum); | |
| header.appendChild(timecode); | |
| const description = document.createElement('p'); | |
| description.className = 'text-sm mt-1'; | |
| if (isFrench) { | |
| const frenchDescriptions = [ | |
| "Plan d'ensemble de l'hôtel abandonné, enseigne au néon clignotante", | |
| "Travelling lent dans le couloir, révélant le papier peint écaillé", | |
| "James enjambe prudemment des verres brisés, les yeux scrutant" | |
| ]; | |
| description.textContent = frenchDescriptions[i] || sceneLines[0].substring(0, 50) + '...'; | |
| } else { | |
| const englishDescriptions = [ | |
| "Establishing shot of abandoned hotel exterior, neon sign flickering", | |
| "Slow tracking shot down hallway, revealing peeling wallpaper", | |
| "James steps carefully over broken glass, eyes scanning" | |
| ]; | |
| description.textContent = englishDescriptions[i] || sceneLines[0].substring(0, 50) + '...'; | |
| } | |
| shotItem.appendChild(header); | |
| shotItem.appendChild(description); | |
| shotList.appendChild(shotItem); | |
| } | |
| alert(isFrench ? | |
| "Liste de plans générée avec succès !" : | |
| "Shot list generated successfully!"); | |
| }); | |
| // Assistant IA | |
| document.getElementById('sendQueryBtn').addEventListener('click', function() { | |
| const isFrench = languageToggle.checked; | |
| const input = isFrench ? | |
| document.getElementById('aiQueryInputFr') : | |
| document.getElementById('aiQueryInput'); | |
| const query = input.value.trim(); | |
| if (!query) return; | |
| // Simuler une réponse de l'IA | |
| const responses = isFrench ? [ | |
| "Votre scène a un bon potentiel dramatique. Pour renforcer la tension, vous pourriez ajouter des détails sensoriels comme des bruits inquiétants ou des odeurs de moisi.", | |
| "Le personnage de James semble intéressant. Pour le développer, envisagez de révéler progressivement son passé à travers des objets qu'il trouve dans l'hôtel.", | |
| "La description visuelle est forte. Pensez à varier les angles de caméra pour créer une dynamique plus cinématographique." | |
| ] : [ | |
| "Your scene has good dramatic potential. To heighten tension, consider adding sensory details like unsettling sounds or musty smells.", | |
| "James is an interesting character. To develop him, consider revealing his backstory gradually through objects he finds in the hotel.", | |
| "The visual description is strong. Think about varying camera angles to create more cinematic dynamism." | |
| ]; | |
| const randomResponse = responses[Math.floor(Math.random() * responses.length)]; | |
| alert(isFrench ? | |
| `Réponse de l'IA:\n\n${randomResponse}` : | |
| `AI Response:\n\n${randomResponse}`); | |
| input.value = ''; | |
| }); | |
| // Gestion des boutons | |
| document.getElementById('saveBtn').addEventListener('click', function() { | |
| alert(languageToggle.checked ? | |
| "Scénario sauvegardé avec succès !" : | |
| "Screenplay saved successfully!"); | |
| }); | |
| document.getElementById('shareBtn').addEventListener('click', function() { | |
| alert(languageToggle.checked ? | |
| "Fonctionnalité de partage à venir !" : | |
| "Share functionality coming soon!"); | |
| }); | |
| document.getElementById('settingsBtn').addEventListener('click', function() { | |
| alert(languageToggle.checked ? | |
| "Paramètres de l'application" : | |
| "Application settings"); | |
| }); | |
| document.getElementById('formatBtn').addEventListener('click', function() { | |
| alert(languageToggle.checked ? | |
| "Scénario formaté selon les standards professionnels" : | |
| "Script formatted to professional standards"); | |
| }); | |
| document.getElementById('exportBtn').addEventListener('click', function() { | |
| alert(languageToggle.checked ? | |
| "Options d'export disponibles : PDF, Fountain, Final Draft" : | |
| "Export options available: PDF, Fountain, Final Draft"); | |
| }); | |
| document.getElementById('newProjectBtn').addEventListener('click', function() { | |
| const isFrench = languageToggle.checked; | |
| const projectName = prompt( | |
| isFrench ? | |
| "Entrez le nom du nouveau projet :" : | |
| "Enter new project name:", | |
| isFrench ? "Nouveau Scénario" : "New Screenplay" | |
| ); | |
| if (projectName) { | |
| const projectList = document.getElementById('projectList'); | |
| const newProject = document.createElement('a'); | |
| newProject.className = 'block py-2 px-3 rounded-lg hover:bg-gray-100'; | |
| newProject.textContent = projectName; | |
| projectList.appendChild(newProject); | |
| alert(isFrench ? | |
| `Projet "${projectName}" créé avec succès !` : | |
| `Project "${projectName}" created successfully!`); | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Mercurygraph/mercuryscript07" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |