Spaces:
Running
Running
Download index.html from Mercurygraph/mercuryscript: direct link, hf CLI and curl.
- Browser
- Download file 19.8 kB
-
https://huggingface.co/spaces/Mercurygraph/mercuryscript/resolve/main/index.html
- Command line
-
hf download hf://spaces/Mercurygraph/mercuryscript/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Mercurygraph/mercuryscript/resolve/main/index.html
19.8 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Mercuryscript - AI Screenwriting Assistant</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: #1e293b; | |
| --secondary: #0f172a; | |
| --accent: #7c3aed; | |
| --light: #f8fafc; | |
| } | |
| body { | |
| font-family: 'Roboto', sans-serif; | |
| background-color: #f1f5f9; | |
| color: var(--primary); | |
| } | |
| .title-font { | |
| font-family: 'Playfair Display', serif; | |
| } | |
| .sidebar { | |
| transition: all 0.3s ease; | |
| } | |
| .script-container { | |
| background-color: #ffffff; | |
| box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); | |
| } | |
| .scene-number { | |
| color: var(--accent); | |
| font-weight: bold; | |
| } | |
| .character-name { | |
| color: var(--secondary); | |
| font-weight: bold; | |
| text-transform: uppercase; | |
| } | |
| .dialogue { | |
| margin-left: 2.5rem; | |
| } | |
| .parenthetical { | |
| margin-left: 1.5rem; | |
| font-style: italic; | |
| } | |
| .transition { | |
| text-transform: uppercase; | |
| text-align: right; | |
| margin-right: 2rem; | |
| } | |
| .action { | |
| line-height: 1.5; | |
| } | |
| .storyboard-panel { | |
| border: 1px solid #e2e8f0; | |
| background-color: white; | |
| transition: all 0.2s ease; | |
| } | |
| .storyboard-panel:hover { | |
| transform: scale(1.02); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .shot-list-item { | |
| border-left: 3px solid var(--accent); | |
| } | |
| .director-analysis { | |
| background-color: #f5f3ff; | |
| border-left: 4px solid var(--accent); | |
| } | |
| .language-switch { | |
| position: fixed; | |
| bottom: 20px; | |
| right: 20px; | |
| z-index: 100; | |
| } | |
| /* Animation for AI response */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .ai-response { | |
| animation: fadeIn 0.3s ease-out forwards; | |
| } | |
| /* Custom scrollbar */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #f1f1f1; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: #cbd5e1; | |
| border-radius: 4px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #94a3b8; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <!-- Language Switch --> | |
| <div class="language-switch"> | |
| <div class="flex items-center space-x-2 bg-white p-2 rounded-full shadow-lg"> | |
| <button id="switch-to-en" class="px-3 py-1 rounded-full bg-indigo-100 text-indigo-700 font-medium">EN</button> | |
| <button id="switch-to-fr" class="px-3 py-1 rounded-full hover:bg-indigo-50">FR</button> | |
| </div> | |
| </div> | |
| <!-- Sidebar --> | |
| <div class="sidebar fixed inset-y-0 left-0 w-64 bg-slate-800 text-white overflow-y-auto"> | |
| <div class="p-4 flex items-center space-x-3"> | |
| <div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center"> | |
| <i class="fas fa-feather-alt text-white text-xl"></i> | |
| </div> | |
| <h1 class="title-font text-xl font-bold">Mercuryscript</h1> | |
| </div> | |
| <nav class="mt-6"> | |
| <div class="px-4 mb-4"> | |
| <button id="new-script-btn" class="w-full flex items-center space-x-3 bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg transition"> | |
| <i class="fas fa-plus"></i> | |
| <span class="en-text">New Script</span> | |
| <span class="fr-text hidden">Nouveau Script</span> | |
| </button> | |
| </div> | |
| <div class="px-4 mb-2"> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Current Project</h3> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Projet Actuel</h3> | |
| </div> | |
| <div class="px-2"> | |
| <div class="flex items-center space-x-3 px-2 py-3 bg-slate-700 rounded-lg"> | |
| <div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center"> | |
| <i class="fas fa-file-alt text-white"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-medium">The Midnight Heist</h4> | |
| <p class="text-xs text-slate-300">Last edited: 2 hours ago</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="px-4 mt-6 mb-2"> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Tools</h3> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Outils</h3> | |
| </div> | |
| <div class="space-y-1 px-2"> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="analysis"> | |
| <i class="fas fa-chart-bar text-indigo-400"></i> | |
| <span class="en-text">Script Analysis</span> | |
| <span class="fr-text hidden">Analyse de Script</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="director"> | |
| <i class="fas fa-film text-indigo-400"></i> | |
| <span class="en-text">Director Vision</span> | |
| <span class="fr-text hidden">Vision du Réalisateur</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="storyboard"> | |
| <i class="fas fa-images text-indigo-400"></i> | |
| <span class="en-text">Storyboard</span> | |
| <span class="fr-text hidden">Storyboard</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="shotlist"> | |
| <i class="fas fa-list-ol text-indigo-400"></i> | |
| <span class="en-text">Shot List</span> | |
| <span class="fr-text hidden">Liste des Plans</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="characters"> | |
| <i class="fas fa-users text-indigo-400"></i> | |
| <span class="en-text">Character Development</span> | |
| <span class="fr-text hidden">Développement des Personnages</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="research"> | |
| <i class="fas fa-book text-indigo-400"></i> | |
| <span class="en-text">Research</span> | |
| <span class="fr-text hidden">Recherche</span> | |
| </button> | |
| </div> | |
| <div class="px-4 mt-6 mb-2"> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Knowledge Base</h3> | |
| <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Base de Connaissances</h3> | |
| </div> | |
| <div class="space-y-1 px-2"> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="writers"> | |
| <i class="fas fa-pen-fancy text-indigo-400"></i> | |
| <span class="en-text">Screenwriters</span> | |
| <span class="fr-text hidden">Scénaristes</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="auteurs"> | |
| <i class="fas fa-user-tie text-indigo-400"></i> | |
| <span class="en-text">Auteur-Directors</span> | |
| <span class="fr-text hidden">Réalisateurs-Auteurs</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="films"> | |
| <i class="fas fa-video text-indigo-400"></i> | |
| <span class="en-text">Films & TV</span> | |
| <span class="fr-text hidden">Films & Séries</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="literature"> | |
| <i class="fas fa-book-open text-indigo-400"></i> | |
| <span class="en-text">Literature</span> | |
| <span class="fr-text hidden">Littérature</span> | |
| </button> | |
| <button class="tool-btn w-full flex items-center space-x-3 hover:bg-slate-700 px-3 py-2 rounded-lg transition" data-tool="theory"> | |
| <i class="fas fa-brain text-indigo-400"></i> | |
| <span class="en-text">Narrative Theory</span> | |
| <span class="fr-text hidden">Théorie Narrative</span> | |
| </button> | |
| </div> | |
| </nav> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="ml-64 p-6"> | |
| <!-- Script Editor --> | |
| <div id="script-editor" class="script-container rounded-lg p-8 mb-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <div> | |
| <h2 class="title-font text-2xl font-bold text-slate-800">THE MIDNIGHT HEIST</h2> | |
| <p class="text-slate-500 en-text">by Alex Carter • First Draft</p> | |
| <p class="text-slate-500 fr-text hidden">par Alex Carter • Premier Jet</p> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="px-4 py-2 bg-slate-100 hover:bg-slate-200 rounded-lg text-slate-700 en-text">Export PDF</button> | |
| <button class="px-4 py-2 bg-slate-100 hover:bg-slate-200 rounded-lg text-slate-700 fr-text hidden">Exporter PDF</button> | |
| <button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white en-text">Save</button> | |
| <button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white fr-text hidden">Sauvegarder</button> | |
| </div> | |
| </div> | |
| <div class="script-content font-mono text-sm leading-relaxed"> | |
| <p class="text-center uppercase mb-8">FADE IN:</p> | |
| <p class="action mb-4">EXT. LUXURY PENTHOUSE - NIGHT</p> | |
| <p class="action mb-4">A sleek high-rise towers over the city skyline. On the top floor, lights flicker through floor-to-ceiling windows. RAIN PELTS against the glass.</p> | |
| <p class="scene-number mb-4">1.</p> | |
| <p class="action mb-4">INT. PENTHOUSE - CONTINUOUS</p> | |
| <p class="action mb-4">JASON VAUGHN (30s, sharp suit, sharper eyes) studies blueprints spread across a glass table. His crew -- LENA, MARCUS, and TOMMY -- watch intently.</p> | |
| <p class="character-name mb-1">LENA</p> | |
| <p class="parenthetical mb-2">(tapping the plans)</p> | |
| <p class="dialogue mb-4">The vault's on sub-level three. Motion sensors, pressure plates, the works.</p> | |
| <p class="character-name mb-1">MARCUS</p> | |
| <p class="parenthetical mb-2">(grinning)</p> | |
| <p class="dialogue mb-4">So what's the play, boss?</p> | |
| <p class="character-name mb-1">JASON</p> | |
| <p class="parenthetical mb-2">(smirks)</p> | |
| <p class="dialogue mb-4">We go in during the gala. Two hundred guests, chaos as cover.</p> | |
| <p class="action mb-4">Tommy whistles low. Jason's phone BUZZES. He checks it, frowns.</p> | |
| <p class="character-name mb-1">JASON (CONT'D)</p> | |
| <p class="dialogue mb-4">Change of plans. We move tonight.</p> | |
| <p class="transition mb-8">SMASH CUT TO:</p> | |
| <p class="scene-number mb-4">2.</p> | |
| <p class="action mb-4">EXT. CITY STREETS - LATER</p> | |
| <p class="action mb-4">A BLACK VAN slides through rain-slicked streets. Inside, the crew suits up in tactical gear.</p> | |
| </div> | |
| </div> | |
| <!-- AI Tools Panel --> | |
| <div id="ai-tools-panel" class="bg-white rounded-lg shadow-lg overflow-hidden hidden"> | |
| <div class="border-b border-slate-200"> | |
| <div class="flex"> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="analysis">Analysis</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 fr-text hidden" data-tab="analysis">Analyse</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="director">Director Vision</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 fr-text hidden" data-tab="director">Vision du Réalisateur</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="storyboard">Storyboard</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 fr-text hidden" data-tab="storyboard">Storyboard</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="shotlist">Shot List</button> | |
| <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 fr-text hidden" data-tab="shotlist">Liste des Plans</button> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <!-- Analysis Tab --> | |
| <div id="analysis-tab" class="ai-tab-content hidden"> | |
| <div class="mb-6"> | |
| <h3 class="text-lg font-semibold mb-4 en-text">Script Analysis Report</h3> | |
| <h3 class="text-lg font-semibold mb-4 fr-text hidden">Rapport d'Analyse du Script</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6"> | |
| <div class="bg-slate-50 p-4 rounded-lg"> | |
| <h4 class="font-medium text-slate-700 mb-2 en-text">Structure</h4> | |
| <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Structure</h4> | |
| <p class="text-sm text-slate-600 en-text">Opening establishes high stakes and urgency effectively. Consider adding more character background earlier.</p> | |
| <p class="text-sm text-slate-600 fr-text hidden">L'ouverture établit efficacement des enjeux élevés et un sentiment d'urgence. Pensez à ajouter plus de contexte sur les personnages plus tôt.</p> | |
| <div class="mt-2"> | |
| <div class="w-full bg-slate-200 rounded-full h-2"> | |
| <div class="bg-indigo-600 h-2 rounded-full" style="width: 75%"></div> | |
| </div> | |
| <p class="text-xs text-slate-500 mt-1 en-text">75% Effective</p> | |
| <p class="text-xs text-slate-500 mt-1 fr-text hidden">75% Efficace</p> | |
| </div> | |
| </div> | |
| <div class="bg-slate-50 p-4 rounded-lg"> | |
| <h4 class="font-medium text-slate-700 mb-2 en-text">Dialogue</h4> | |
| <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Dialogue</h4> | |
| <p class="text-sm text-slate-600 en-text">Character voices are distinct. Lena's technical dialogue feels authentic. Could add more subtext.</p> | |
| <p class="text-sm text-slate-600 fr-text hidden">Les voix des personnages sont distinctes. Le dialogue technique de Lena semble authentique. Pourrait ajouter plus de sous-texte.</p> | |
| <div class="mt-2"> | |
| <div class="w-full bg-slate-200 rounded-full h-2"> | |
| <div class="bg-indigo-600 h-2 rounded-full" style="width: 82%"></div> | |
| </div> | |
| <p class="text-xs text-slate-500 mt-1 en-text">82% Effective</p> | |
| <p class="text-xs text-slate-500 mt-1 fr-text hidden">82% Efficace</p> | |
| </div> | |
| </div> | |
| <div class="bg-slate-50 p-4 rounded-lg"> | |
| <h4 class="font-medium text-slate-700 mb-2 en-text">Visual Potential</h4> | |
| <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Potentiel Visuel</h4> | |
| <p class="text-sm text-slate-600 en-text">Strong visual opening with rain and cityscape. More sensory details could enhance immersion.</p> | |
| <p class="text-sm text-slate-600 fr-text hidden">Une ouverture visuelle forte avec la pluie et la skyline. Plus de détails sensoriels pourraient améliorer l'immersion.</p> | |
| <div class="mt-2"> | |
| <div class="w-full bg-slate-200 rounded-full h-2"> | |
| <div class="bg-indigo-600 h-2 rounded-full" style="width: 68%"></div> | |
| </div> | |
| <p class="text-xs text-slate-500 mt-1 en-text">68% Effective</p> | |
| <p class="text-xs text-slate-500 mt-1 fr-text hidden">68% Efficace</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-slate-50 p-4 rounded-lg mb-4"> | |
| </html> |