nolascoin commited on
Commit
d196029
·
verified ·
1 Parent(s): 6ed16cb

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +468 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Video Maker
3
- emoji:
4
- colorFrom: green
5
  colorTo: purple
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: video-maker
3
+ emoji: 🐳
4
+ colorFrom: pink
5
  colorTo: purple
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,468 @@
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>VidGen - AI Video Generator</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #6e8efb, #a777e3);
12
+ }
13
+ .video-card {
14
+ transition: all 0.3s ease;
15
+ transform-style: preserve-3d;
16
+ }
17
+ .video-card:hover {
18
+ transform: translateY(-5px) scale(1.02);
19
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
20
+ }
21
+ .loading-dots:after {
22
+ content: '.';
23
+ animation: dots 1.5s steps(5, end) infinite;
24
+ }
25
+ @keyframes dots {
26
+ 0%, 20% { content: '.'; }
27
+ 40% { content: '..'; }
28
+ 60% { content: '...'; }
29
+ 80%, 100% { content: ''; }
30
+ }
31
+ .wave-animation {
32
+ animation: wave 2s infinite;
33
+ }
34
+ @keyframes wave {
35
+ 0% { transform: rotate(0deg); }
36
+ 10% { transform: rotate(14deg); }
37
+ 20% { transform: rotate(-8deg); }
38
+ 30% { transform: rotate(14deg); }
39
+ 40% { transform: rotate(-4deg); }
40
+ 50% { transform: rotate(10deg); }
41
+ 60% { transform: rotate(0deg); }
42
+ 100% { transform: rotate(0deg); }
43
+ }
44
+ </style>
45
+ </head>
46
+ <body class="bg-gray-50 min-h-screen">
47
+ <!-- Header -->
48
+ <header class="gradient-bg text-white shadow-lg">
49
+ <div class="container mx-auto px-4 py-6">
50
+ <div class="flex justify-between items-center">
51
+ <div class="flex items-center space-x-2">
52
+ <i class="fas fa-video text-2xl"></i>
53
+ <h1 class="text-2xl font-bold">VidGen</h1>
54
+ </div>
55
+ <nav class="hidden md:flex space-x-6">
56
+ <a href="#" class="hover:text-gray-200 transition">Home</a>
57
+ <a href="#" class="hover:text-gray-200 transition">Templates</a>
58
+ <a href="#" class="hover:text-gray-200 transition">Pricing</a>
59
+ <a href="#" class="hover:text-gray-200 transition">About</a>
60
+ </nav>
61
+ <button class="md:hidden text-xl">
62
+ <i class="fas fa-bars"></i>
63
+ </button>
64
+ </div>
65
+ </div>
66
+ </header>
67
+
68
+ <!-- Hero Section -->
69
+ <section class="gradient-bg text-white py-16">
70
+ <div class="container mx-auto px-4 flex flex-col items-center text-center">
71
+ <h1 class="text-4xl md:text-6xl font-bold mb-6">Turn Ideas Into Videos <span class="wave-animation inline-block">🎬</span></h1>
72
+ <p class="text-xl md:text-2xl mb-8 max-w-3xl">Generate stunning short videos in seconds with our AI-powered video creator. Just describe your idea and let us do the magic!</p>
73
+
74
+ <!-- Video Generator Form -->
75
+ <div class="w-full max-w-2xl bg-white rounded-xl shadow-2xl p-6 mb-12">
76
+ <div class="flex flex-col space-y-4">
77
+ <div>
78
+ <label for="video-idea" class="block text-gray-700 font-medium mb-2">Describe your video idea</label>
79
+ <textarea id="video-idea" rows="3" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="E.g. A cat wearing sunglasses dancing on a beach at sunset"></textarea>
80
+ </div>
81
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
82
+ <div>
83
+ <label for="video-style" class="block text-gray-700 font-medium mb-2">Style</label>
84
+ <select id="video-style" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent">
85
+ <option>Animated</option>
86
+ <option>Realistic</option>
87
+ <option>Cartoon</option>
88
+ <option>Minimalist</option>
89
+ <option>Cinematic</option>
90
+ </select>
91
+ </div>
92
+ <div>
93
+ <label for="video-length" class="block text-gray-700 font-medium mb-2">Duration</label>
94
+ <select id="video-length" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent">
95
+ <option>15 seconds</option>
96
+ <option>30 seconds</option>
97
+ <option>45 seconds</option>
98
+ <option>60 seconds</option>
99
+ </select>
100
+ </div>
101
+ </div>
102
+ <button id="generate-btn" class="gradient-bg text-white font-bold py-3 px-6 rounded-lg hover:opacity-90 transition flex items-center justify-center">
103
+ <i class="fas fa-magic mr-2"></i> Generate Video
104
+ </button>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </section>
109
+
110
+ <!-- Loading State (Hidden by default) -->
111
+ <div id="loading-section" class="hidden container mx-auto px-4 py-12 text-center">
112
+ <div class="max-w-2xl mx-auto bg-white rounded-xl shadow-xl p-8">
113
+ <div class="flex flex-col items-center">
114
+ <div class="w-20 h-20 gradient-bg rounded-full flex items-center justify-center mb-6">
115
+ <i class="fas fa-film text-white text-3xl"></i>
116
+ </div>
117
+ <h2 class="text-2xl font-bold text-gray-800 mb-4">Creating your masterpiece<span class="loading-dots"></span></h2>
118
+ <p class="text-gray-600 mb-6">Our AI is working hard to bring your vision to life. This usually takes about 30-45 seconds.</p>
119
+ <div class="w-full bg-gray-200 rounded-full h-2.5">
120
+ <div id="progress-bar" class="gradient-bg h-2.5 rounded-full" style="width: 0%"></div>
121
+ </div>
122
+ </div>
123
+ </div>
124
+ </div>
125
+
126
+ <!-- Generated Video Section (Hidden by default) -->
127
+ <div id="result-section" class="hidden container mx-auto px-4 py-12">
128
+ <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-xl overflow-hidden">
129
+ <div class="p-6">
130
+ <h2 class="text-2xl font-bold text-gray-800 mb-2">Your Generated Video</h2>
131
+ <p id="generated-idea" class="text-gray-600 mb-6">Based on: <span class="font-medium">A cat wearing sunglasses dancing on a beach at sunset</span></p>
132
+
133
+ <div class="relative bg-black rounded-lg overflow-hidden mb-6" style="padding-bottom: 56.25%;">
134
+ <video id="generated-video" controls class="absolute top-0 left-0 w-full h-full">
135
+ <source src="" type="video/mp4">
136
+ Your browser does not support the video tag.
137
+ </video>
138
+ <div id="video-placeholder" class="absolute top-0 left-0 w-full h-full flex items-center justify-center">
139
+ <i class="fas fa-play-circle text-white text-6xl opacity-70"></i>
140
+ </div>
141
+ </div>
142
+
143
+ <div class="flex flex-col sm:flex-row justify-between space-y-4 sm:space-y-0">
144
+ <button class="gradient-bg text-white font-bold py-3 px-6 rounded-lg hover:opacity-90 transition flex items-center justify-center">
145
+ <i class="fas fa-download mr-2"></i> Download
146
+ </button>
147
+ <div class="flex space-x-4">
148
+ <button class="bg-gray-100 text-gray-700 font-medium py-3 px-6 rounded-lg hover:bg-gray-200 transition flex items-center justify-center">
149
+ <i class="fas fa-redo mr-2"></i> Regenerate
150
+ </button>
151
+ <button class="bg-gray-100 text-gray-700 font-medium py-3 px-6 rounded-lg hover:bg-gray-200 transition flex items-center justify-center">
152
+ <i class="fas fa-edit mr-2"></i> Edit
153
+ </button>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+ <!-- Features Section -->
161
+ <section class="py-16 bg-white">
162
+ <div class="container mx-auto px-4">
163
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Why Choose VidGen?</h2>
164
+
165
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
166
+ <div class="bg-gray-50 p-6 rounded-xl video-card">
167
+ <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
168
+ <i class="fas fa-bolt text-white text-xl"></i>
169
+ </div>
170
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Lightning Fast</h3>
171
+ <p class="text-gray-600">Generate videos in under a minute with our powerful AI technology.</p>
172
+ </div>
173
+
174
+ <div class="bg-gray-50 p-6 rounded-xl video-card">
175
+ <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
176
+ <i class="fas fa-palette text-white text-xl"></i>
177
+ </div>
178
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Multiple Styles</h3>
179
+ <p class="text-gray-600">Choose from various artistic styles to match your brand or vision.</p>
180
+ </div>
181
+
182
+ <div class="bg-gray-50 p-6 rounded-xl video-card">
183
+ <div class="w-14 h-14 gradient-bg rounded-full flex items-center justify-center mb-4">
184
+ <i class="fas fa-sliders-h text-white text-xl"></i>
185
+ </div>
186
+ <h3 class="text-xl font-bold text-gray-800 mb-2">Easy Customization</h3>
187
+ <p class="text-gray-600">Fine-tune your videos with simple controls before downloading.</p>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ </section>
192
+
193
+ <!-- Video Templates Section -->
194
+ <section class="py-16 bg-gray-50">
195
+ <div class="container mx-auto px-4">
196
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-4">Popular Video Templates</h2>
197
+ <p class="text-center text-gray-600 max-w-2xl mx-auto mb-12">Get inspired by our most popular video styles</p>
198
+
199
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
200
+ <!-- Template 1 -->
201
+ <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
202
+ <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
203
+ <div class="absolute inset-0 flex items-center justify-center">
204
+ <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
205
+ </div>
206
+ </div>
207
+ <div class="p-4">
208
+ <h3 class="font-bold text-gray-800 mb-1">Product Showcase</h3>
209
+ <p class="text-sm text-gray-600">Highlight your products in style</p>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- Template 2 -->
214
+ <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
215
+ <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
216
+ <div class="absolute inset-0 flex items-center justify-center">
217
+ <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
218
+ </div>
219
+ </div>
220
+ <div class="p-4">
221
+ <h3 class="font-bold text-gray-800 mb-1">Social Media Ad</h3>
222
+ <p class="text-sm text-gray-600">Engaging ads for Instagram & TikTok</p>
223
+ </div>
224
+ </div>
225
+
226
+ <!-- Template 3 -->
227
+ <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
228
+ <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
229
+ <div class="absolute inset-0 flex items-center justify-center">
230
+ <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
231
+ </div>
232
+ </div>
233
+ <div class="p-4">
234
+ <h3 class="font-bold text-gray-800 mb-1">Explainer Video</h3>
235
+ <p class="text-sm text-gray-600">Simplify complex ideas visually</p>
236
+ </div>
237
+ </div>
238
+
239
+ <!-- Template 4 -->
240
+ <div class="bg-white rounded-xl overflow-hidden shadow-md video-card">
241
+ <div class="relative bg-gray-200" style="padding-bottom: 56.25%;">
242
+ <div class="absolute inset-0 flex items-center justify-center">
243
+ <i class="fas fa-play-circle text-gray-400 text-4xl"></i>
244
+ </div>
245
+ </div>
246
+ <div class="p-4">
247
+ <h3 class="font-bold text-gray-800 mb-1">Travel Vlog</h3>
248
+ <p class="text-sm text-gray-600">Showcase destinations beautifully</p>
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ <div class="text-center mt-8">
254
+ <button class="border-2 border-purple-500 text-purple-500 font-bold py-2 px-6 rounded-lg hover:bg-purple-50 transition">
255
+ Browse All Templates
256
+ </button>
257
+ </div>
258
+ </div>
259
+ </section>
260
+
261
+ <!-- Testimonials -->
262
+ <section class="py-16 bg-white">
263
+ <div class="container mx-auto px-4">
264
+ <h2 class="text-3xl font-bold text-center text-gray-800 mb-12">What Our Users Say</h2>
265
+
266
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
267
+ <!-- Testimonial 1 -->
268
+ <div class="bg-gray-50 p-6 rounded-xl">
269
+ <div class="flex items-center mb-4">
270
+ <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
271
+ <span class="text-purple-600 font-bold">JD</span>
272
+ </div>
273
+ <div>
274
+ <h4 class="font-bold">Jane Doe</h4>
275
+ <p class="text-sm text-gray-500">Marketing Director</p>
276
+ </div>
277
+ </div>
278
+ <p class="text-gray-600">"VidGen has completely transformed our social media strategy. We can now create professional-looking videos in minutes instead of days!"</p>
279
+ <div class="flex mt-4">
280
+ <i class="fas fa-star text-yellow-400"></i>
281
+ <i class="fas fa-star text-yellow-400"></i>
282
+ <i class="fas fa-star text-yellow-400"></i>
283
+ <i class="fas fa-star text-yellow-400"></i>
284
+ <i class="fas fa-star text-yellow-400"></i>
285
+ </div>
286
+ </div>
287
+
288
+ <!-- Testimonial 2 -->
289
+ <div class="bg-gray-50 p-6 rounded-xl">
290
+ <div class="flex items-center mb-4">
291
+ <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
292
+ <span class="text-purple-600 font-bold">AS</span>
293
+ </div>
294
+ <div>
295
+ <h4 class="font-bold">Alex Smith</h4>
296
+ <p class="text-sm text-gray-500">Small Business Owner</p>
297
+ </div>
298
+ </div>
299
+ <p class="text-gray-600">"As a small business with no video budget, VidGen has been a game-changer. The quality rivals professional agencies at a fraction of the cost."</p>
300
+ <div class="flex mt-4">
301
+ <i class="fas fa-star text-yellow-400"></i>
302
+ <i class="fas fa-star text-yellow-400"></i>
303
+ <i class="fas fa-star text-yellow-400"></i>
304
+ <i class="fas fa-star text-yellow-400"></i>
305
+ <i class="fas fa-star text-yellow-400"></i>
306
+ </div>
307
+ </div>
308
+
309
+ <!-- Testimonial 3 -->
310
+ <div class="bg-gray-50 p-6 rounded-xl">
311
+ <div class="flex items-center mb-4">
312
+ <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
313
+ <span class="text-purple-600 font-bold">TM</span>
314
+ </div>
315
+ <div>
316
+ <h4 class="font-bold">Taylor Morgan</h4>
317
+ <p class="text-sm text-gray-500">Content Creator</p>
318
+ </div>
319
+ </div>
320
+ <p class="text-gray-600">"I use VidGen daily for my YouTube channel. The AI understands exactly what I need and delivers creative results every time."</p>
321
+ <div class="flex mt-4">
322
+ <i class="fas fa-star text-yellow-400"></i>
323
+ <i class="fas fa-star text-yellow-400"></i>
324
+ <i class="fas fa-star text-yellow-400"></i>
325
+ <i class="fas fa-star text-yellow-400"></i>
326
+ <i class="fas fa-star-half-alt text-yellow-400"></i>
327
+ </div>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </section>
332
+
333
+ <!-- CTA Section -->
334
+ <section class="gradient-bg text-white py-16">
335
+ <div class="container mx-auto px-4 text-center">
336
+ <h2 class="text-3xl md:text-4xl font-bold mb-6">Ready to Create Amazing Videos?</h2>
337
+ <p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of creators and businesses who are transforming their ideas into engaging video content.</p>
338
+ <button class="bg-white text-purple-600 font-bold py-3 px-8 rounded-lg hover:bg-gray-100 transition">
339
+ Get Started - It's Free
340
+ </button>
341
+ </div>
342
+ </section>
343
+
344
+ <!-- Footer -->
345
+ <footer class="bg-gray-900 text-white py-12">
346
+ <div class="container mx-auto px-4">
347
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
348
+ <div>
349
+ <div class="flex items-center space-x-2 mb-4">
350
+ <i class="fas fa-video text-2xl"></i>
351
+ <h3 class="text-xl font-bold">VidGen</h3>
352
+ </div>
353
+ <p class="text-gray-400">The easiest way to create professional videos with AI.</p>
354
+ </div>
355
+
356
+ <div>
357
+ <h4 class="text-lg font-bold mb-4">Product</h4>
358
+ <ul class="space-y-2">
359
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Features</a></li>
360
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Pricing</a></li>
361
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Templates</a></li>
362
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Integrations</a></li>
363
+ </ul>
364
+ </div>
365
+
366
+ <div>
367
+ <h4 class="text-lg font-bold mb-4">Resources</h4>
368
+ <ul class="space-y-2">
369
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
370
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Help Center</a></li>
371
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Tutorials</a></li>
372
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Community</a></li>
373
+ </ul>
374
+ </div>
375
+
376
+ <div>
377
+ <h4 class="text-lg font-bold mb-4">Company</h4>
378
+ <ul class="space-y-2">
379
+ <li><a href="#" class="text-gray-400 hover:text-white transition">About Us</a></li>
380
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li>
381
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
382
+ <li><a href="#" class="text-gray-400 hover:text-white transition">Press</a></li>
383
+ </ul>
384
+ </div>
385
+ </div>
386
+
387
+ <div class="pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center">
388
+ <p class="text-gray-400 mb-4 md:mb-0">© 2023 VidGen. All rights reserved.</p>
389
+ <div class="flex space-x-6">
390
+ <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
391
+ <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook"></i></a>
392
+ <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram"></i></a>
393
+ <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin"></i></a>
394
+ </div>
395
+ </div>
396
+ </div>
397
+ </footer>
398
+
399
+ <script>
400
+ document.addEventListener('DOMContentLoaded', function() {
401
+ const generateBtn = document.getElementById('generate-btn');
402
+ const loadingSection = document.getElementById('loading-section');
403
+ const resultSection = document.getElementById('result-section');
404
+ const videoIdeaInput = document.getElementById('video-idea');
405
+ const generatedIdea = document.getElementById('generated-idea');
406
+ const progressBar = document.getElementById('progress-bar');
407
+ const videoPlaceholder = document.getElementById('video-placeholder');
408
+ const generatedVideo = document.getElementById('generated-video');
409
+
410
+ // Sample video URLs (in a real app, these would come from your backend)
411
+ const sampleVideos = [
412
+ 'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_1mb.mp4',
413
+ 'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_2mb.mp4',
414
+ 'https://sample-videos.com/video123/mp4/720/big_buck_bunny_720p_5mb.mp4'
415
+ ];
416
+
417
+ generateBtn.addEventListener('click', function() {
418
+ const idea = videoIdeaInput.value.trim();
419
+
420
+ if (!idea) {
421
+ alert('Please describe your video idea first!');
422
+ return;
423
+ }
424
+
425
+ // Show loading section
426
+ loadingSection.classList.remove('hidden');
427
+ resultSection.classList.add('hidden');
428
+
429
+ // Update the generated idea text
430
+ generatedIdea.innerHTML = `Based on: <span class="font-medium">${idea}</span>`;
431
+
432
+ // Simulate progress
433
+ let progress = 0;
434
+ const interval = setInterval(() => {
435
+ progress += Math.random() * 10;
436
+ if (progress > 100) progress = 100;
437
+ progressBar.style.width = `${progress}%`;
438
+
439
+ if (progress === 100) {
440
+ clearInterval(interval);
441
+
442
+ // Hide loading, show result after a small delay
443
+ setTimeout(() => {
444
+ loadingSection.classList.add('hidden');
445
+ resultSection.classList.remove('hidden');
446
+
447
+ // Randomly select a sample video
448
+ const randomVideo = sampleVideos[Math.floor(Math.random() * sampleVideos.length)];
449
+ generatedVideo.src = randomVideo;
450
+
451
+ // When video is loaded, hide placeholder
452
+ generatedVideo.onloadeddata = function() {
453
+ videoPlaceholder.style.display = 'none';
454
+ };
455
+ }, 500);
456
+ }
457
+ }, 300);
458
+ });
459
+
460
+ // Play video when placeholder is clicked
461
+ videoPlaceholder.addEventListener('click', function() {
462
+ videoPlaceholder.style.display = 'none';
463
+ generatedVideo.play();
464
+ });
465
+ });
466
+ </script>
467
+ <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=nolascoin/video-maker" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
468
+ </html>