Spaces:
Running

Mercurygraph commited on
Commit
0c259e0
·
verified ·
1 Parent(s): 6aa9705

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +376 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Mercuryscript
3
- emoji: 🌍
4
- colorFrom: red
5
- colorTo: yellow
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: mercuryscript
3
+ emoji: 🐳
4
+ colorFrom: purple
5
+ colorTo: blue
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,376 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Mercuryscript - AI Screenwriting Assistant</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');
11
+
12
+ :root {
13
+ --primary: #1e293b;
14
+ --secondary: #0f172a;
15
+ --accent: #7c3aed;
16
+ --light: #f8fafc;
17
+ }
18
+
19
+ body {
20
+ font-family: 'Roboto', sans-serif;
21
+ background-color: #f1f5f9;
22
+ color: var(--primary);
23
+ }
24
+
25
+ .title-font {
26
+ font-family: 'Playfair Display', serif;
27
+ }
28
+
29
+ .sidebar {
30
+ transition: all 0.3s ease;
31
+ }
32
+
33
+ .script-container {
34
+ background-color: #ffffff;
35
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
36
+ }
37
+
38
+ .scene-number {
39
+ color: var(--accent);
40
+ font-weight: bold;
41
+ }
42
+
43
+ .character-name {
44
+ color: var(--secondary);
45
+ font-weight: bold;
46
+ text-transform: uppercase;
47
+ }
48
+
49
+ .dialogue {
50
+ margin-left: 2.5rem;
51
+ }
52
+
53
+ .parenthetical {
54
+ margin-left: 1.5rem;
55
+ font-style: italic;
56
+ }
57
+
58
+ .transition {
59
+ text-transform: uppercase;
60
+ text-align: right;
61
+ margin-right: 2rem;
62
+ }
63
+
64
+ .action {
65
+ line-height: 1.5;
66
+ }
67
+
68
+ .storyboard-panel {
69
+ border: 1px solid #e2e8f0;
70
+ background-color: white;
71
+ transition: all 0.2s ease;
72
+ }
73
+
74
+ .storyboard-panel:hover {
75
+ transform: scale(1.02);
76
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
77
+ }
78
+
79
+ .shot-list-item {
80
+ border-left: 3px solid var(--accent);
81
+ }
82
+
83
+ .director-analysis {
84
+ background-color: #f5f3ff;
85
+ border-left: 4px solid var(--accent);
86
+ }
87
+
88
+ .language-switch {
89
+ position: fixed;
90
+ bottom: 20px;
91
+ right: 20px;
92
+ z-index: 100;
93
+ }
94
+
95
+ /* Animation for AI response */
96
+ @keyframes fadeIn {
97
+ from { opacity: 0; transform: translateY(10px); }
98
+ to { opacity: 1; transform: translateY(0); }
99
+ }
100
+
101
+ .ai-response {
102
+ animation: fadeIn 0.3s ease-out forwards;
103
+ }
104
+
105
+ /* Custom scrollbar */
106
+ ::-webkit-scrollbar {
107
+ width: 8px;
108
+ }
109
+
110
+ ::-webkit-scrollbar-track {
111
+ background: #f1f1f1;
112
+ }
113
+
114
+ ::-webkit-scrollbar-thumb {
115
+ background: #cbd5e1;
116
+ border-radius: 4px;
117
+ }
118
+
119
+ ::-webkit-scrollbar-thumb:hover {
120
+ background: #94a3b8;
121
+ }
122
+ </style>
123
+ </head>
124
+ <body class="min-h-screen">
125
+ <!-- Language Switch -->
126
+ <div class="language-switch">
127
+ <div class="flex items-center space-x-2 bg-white p-2 rounded-full shadow-lg">
128
+ <button id="switch-to-en" class="px-3 py-1 rounded-full bg-indigo-100 text-indigo-700 font-medium">EN</button>
129
+ <button id="switch-to-fr" class="px-3 py-1 rounded-full hover:bg-indigo-50">FR</button>
130
+ </div>
131
+ </div>
132
+
133
+ <!-- Sidebar -->
134
+ <div class="sidebar fixed inset-y-0 left-0 w-64 bg-slate-800 text-white overflow-y-auto">
135
+ <div class="p-4 flex items-center space-x-3">
136
+ <div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center">
137
+ <i class="fas fa-feather-alt text-white text-xl"></i>
138
+ </div>
139
+ <h1 class="title-font text-xl font-bold">Mercuryscript</h1>
140
+ </div>
141
+
142
+ <nav class="mt-6">
143
+ <div class="px-4 mb-4">
144
+ <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">
145
+ <i class="fas fa-plus"></i>
146
+ <span class="en-text">New Script</span>
147
+ <span class="fr-text hidden">Nouveau Script</span>
148
+ </button>
149
+ </div>
150
+
151
+ <div class="px-4 mb-2">
152
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Current Project</h3>
153
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Projet Actuel</h3>
154
+ </div>
155
+
156
+ <div class="px-2">
157
+ <div class="flex items-center space-x-3 px-2 py-3 bg-slate-700 rounded-lg">
158
+ <div class="w-8 h-8 rounded-full bg-indigo-500 flex items-center justify-center">
159
+ <i class="fas fa-file-alt text-white"></i>
160
+ </div>
161
+ <div>
162
+ <h4 class="font-medium">The Midnight Heist</h4>
163
+ <p class="text-xs text-slate-300">Last edited: 2 hours ago</p>
164
+ </div>
165
+ </div>
166
+ </div>
167
+
168
+ <div class="px-4 mt-6 mb-2">
169
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Tools</h3>
170
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Outils</h3>
171
+ </div>
172
+
173
+ <div class="space-y-1 px-2">
174
+ <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">
175
+ <i class="fas fa-chart-bar text-indigo-400"></i>
176
+ <span class="en-text">Script Analysis</span>
177
+ <span class="fr-text hidden">Analyse de Script</span>
178
+ </button>
179
+
180
+ <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">
181
+ <i class="fas fa-film text-indigo-400"></i>
182
+ <span class="en-text">Director Vision</span>
183
+ <span class="fr-text hidden">Vision du Réalisateur</span>
184
+ </button>
185
+
186
+ <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">
187
+ <i class="fas fa-images text-indigo-400"></i>
188
+ <span class="en-text">Storyboard</span>
189
+ <span class="fr-text hidden">Storyboard</span>
190
+ </button>
191
+
192
+ <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">
193
+ <i class="fas fa-list-ol text-indigo-400"></i>
194
+ <span class="en-text">Shot List</span>
195
+ <span class="fr-text hidden">Liste des Plans</span>
196
+ </button>
197
+
198
+ <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">
199
+ <i class="fas fa-users text-indigo-400"></i>
200
+ <span class="en-text">Character Development</span>
201
+ <span class="fr-text hidden">Développement des Personnages</span>
202
+ </button>
203
+
204
+ <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">
205
+ <i class="fas fa-book text-indigo-400"></i>
206
+ <span class="en-text">Research</span>
207
+ <span class="fr-text hidden">Recherche</span>
208
+ </button>
209
+ </div>
210
+
211
+ <div class="px-4 mt-6 mb-2">
212
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 en-text">Knowledge Base</h3>
213
+ <h3 class="text-xs uppercase tracking-wider text-slate-400 fr-text hidden">Base de Connaissances</h3>
214
+ </div>
215
+
216
+ <div class="space-y-1 px-2">
217
+ <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">
218
+ <i class="fas fa-pen-fancy text-indigo-400"></i>
219
+ <span class="en-text">Screenwriters</span>
220
+ <span class="fr-text hidden">Scénaristes</span>
221
+ </button>
222
+
223
+ <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">
224
+ <i class="fas fa-user-tie text-indigo-400"></i>
225
+ <span class="en-text">Auteur-Directors</span>
226
+ <span class="fr-text hidden">Réalisateurs-Auteurs</span>
227
+ </button>
228
+
229
+ <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">
230
+ <i class="fas fa-video text-indigo-400"></i>
231
+ <span class="en-text">Films & TV</span>
232
+ <span class="fr-text hidden">Films & Séries</span>
233
+ </button>
234
+
235
+ <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">
236
+ <i class="fas fa-book-open text-indigo-400"></i>
237
+ <span class="en-text">Literature</span>
238
+ <span class="fr-text hidden">Littérature</span>
239
+ </button>
240
+
241
+ <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">
242
+ <i class="fas fa-brain text-indigo-400"></i>
243
+ <span class="en-text">Narrative Theory</span>
244
+ <span class="fr-text hidden">Théorie Narrative</span>
245
+ </button>
246
+ </div>
247
+ </nav>
248
+ </div>
249
+
250
+ <!-- Main Content -->
251
+ <div class="ml-64 p-6">
252
+ <!-- Script Editor -->
253
+ <div id="script-editor" class="script-container rounded-lg p-8 mb-6">
254
+ <div class="flex justify-between items-center mb-6">
255
+ <div>
256
+ <h2 class="title-font text-2xl font-bold text-slate-800">THE MIDNIGHT HEIST</h2>
257
+ <p class="text-slate-500 en-text">by Alex Carter • First Draft</p>
258
+ <p class="text-slate-500 fr-text hidden">par Alex Carter • Premier Jet</p>
259
+ </div>
260
+ <div class="flex space-x-2">
261
+ <button class="px-4 py-2 bg-slate-100 hover:bg-slate-200 rounded-lg text-slate-700 en-text">Export PDF</button>
262
+ <button class="px-4 py-2 bg-slate-100 hover:bg-slate-200 rounded-lg text-slate-700 fr-text hidden">Exporter PDF</button>
263
+ <button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white en-text">Save</button>
264
+ <button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-lg text-white fr-text hidden">Sauvegarder</button>
265
+ </div>
266
+ </div>
267
+
268
+ <div class="script-content font-mono text-sm leading-relaxed">
269
+ <p class="text-center uppercase mb-8">FADE IN:</p>
270
+
271
+ <p class="action mb-4">EXT. LUXURY PENTHOUSE - NIGHT</p>
272
+
273
+ <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>
274
+
275
+ <p class="scene-number mb-4">1.</p>
276
+
277
+ <p class="action mb-4">INT. PENTHOUSE - CONTINUOUS</p>
278
+
279
+ <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>
280
+
281
+ <p class="character-name mb-1">LENA</p>
282
+ <p class="parenthetical mb-2">(tapping the plans)</p>
283
+ <p class="dialogue mb-4">The vault's on sub-level three. Motion sensors, pressure plates, the works.</p>
284
+
285
+ <p class="character-name mb-1">MARCUS</p>
286
+ <p class="parenthetical mb-2">(grinning)</p>
287
+ <p class="dialogue mb-4">So what's the play, boss?</p>
288
+
289
+ <p class="character-name mb-1">JASON</p>
290
+ <p class="parenthetical mb-2">(smirks)</p>
291
+ <p class="dialogue mb-4">We go in during the gala. Two hundred guests, chaos as cover.</p>
292
+
293
+ <p class="action mb-4">Tommy whistles low. Jason's phone BUZZES. He checks it, frowns.</p>
294
+
295
+ <p class="character-name mb-1">JASON (CONT'D)</p>
296
+ <p class="dialogue mb-4">Change of plans. We move tonight.</p>
297
+
298
+ <p class="transition mb-8">SMASH CUT TO:</p>
299
+
300
+ <p class="scene-number mb-4">2.</p>
301
+
302
+ <p class="action mb-4">EXT. CITY STREETS - LATER</p>
303
+
304
+ <p class="action mb-4">A BLACK VAN slides through rain-slicked streets. Inside, the crew suits up in tactical gear.</p>
305
+ </div>
306
+ </div>
307
+
308
+ <!-- AI Tools Panel -->
309
+ <div id="ai-tools-panel" class="bg-white rounded-lg shadow-lg overflow-hidden hidden">
310
+ <div class="border-b border-slate-200">
311
+ <div class="flex">
312
+ <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="analysis">Analysis</button>
313
+ <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>
314
+ <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>
315
+ <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>
316
+ <button class="ai-tab px-6 py-3 border-b-2 border-transparent hover:bg-slate-50 en-text" data-tab="storyboard">Storyboard</button>
317
+ <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>
318
+ <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>
319
+ <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>
320
+ </div>
321
+ </div>
322
+
323
+ <div class="p-6">
324
+ <!-- Analysis Tab -->
325
+ <div id="analysis-tab" class="ai-tab-content hidden">
326
+ <div class="mb-6">
327
+ <h3 class="text-lg font-semibold mb-4 en-text">Script Analysis Report</h3>
328
+ <h3 class="text-lg font-semibold mb-4 fr-text hidden">Rapport d'Analyse du Script</h3>
329
+
330
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
331
+ <div class="bg-slate-50 p-4 rounded-lg">
332
+ <h4 class="font-medium text-slate-700 mb-2 en-text">Structure</h4>
333
+ <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Structure</h4>
334
+ <p class="text-sm text-slate-600 en-text">Opening establishes high stakes and urgency effectively. Consider adding more character background earlier.</p>
335
+ <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>
336
+ <div class="mt-2">
337
+ <div class="w-full bg-slate-200 rounded-full h-2">
338
+ <div class="bg-indigo-600 h-2 rounded-full" style="width: 75%"></div>
339
+ </div>
340
+ <p class="text-xs text-slate-500 mt-1 en-text">75% Effective</p>
341
+ <p class="text-xs text-slate-500 mt-1 fr-text hidden">75% Efficace</p>
342
+ </div>
343
+ </div>
344
+
345
+ <div class="bg-slate-50 p-4 rounded-lg">
346
+ <h4 class="font-medium text-slate-700 mb-2 en-text">Dialogue</h4>
347
+ <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Dialogue</h4>
348
+ <p class="text-sm text-slate-600 en-text">Character voices are distinct. Lena's technical dialogue feels authentic. Could add more subtext.</p>
349
+ <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>
350
+ <div class="mt-2">
351
+ <div class="w-full bg-slate-200 rounded-full h-2">
352
+ <div class="bg-indigo-600 h-2 rounded-full" style="width: 82%"></div>
353
+ </div>
354
+ <p class="text-xs text-slate-500 mt-1 en-text">82% Effective</p>
355
+ <p class="text-xs text-slate-500 mt-1 fr-text hidden">82% Efficace</p>
356
+ </div>
357
+ </div>
358
+
359
+ <div class="bg-slate-50 p-4 rounded-lg">
360
+ <h4 class="font-medium text-slate-700 mb-2 en-text">Visual Potential</h4>
361
+ <h4 class="font-medium text-slate-700 mb-2 fr-text hidden">Potentiel Visuel</h4>
362
+ <p class="text-sm text-slate-600 en-text">Strong visual opening with rain and cityscape. More sensory details could enhance immersion.</p>
363
+ <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>
364
+ <div class="mt-2">
365
+ <div class="w-full bg-slate-200 rounded-full h-2">
366
+ <div class="bg-indigo-600 h-2 rounded-full" style="width: 68%"></div>
367
+ </div>
368
+ <p class="text-xs text-slate-500 mt-1 en-text">68% Effective</p>
369
+ <p class="text-xs text-slate-500 mt-1 fr-text hidden">68% Efficace</p>
370
+ </div>
371
+ </div>
372
+ </div>
373
+
374
+ <div class="bg-slate-50 p-4 rounded-lg mb-4">
375
+
376
+ </html>