Spaces:
Running
Running
create a see demo button . when user click that in a UI box load this youtube video https://www.youtube.com/watch?v=LRkj_ObV0T0 make it look profesional - Follow Up Deployment
Browse files- index.html +54 -3
index.html
CHANGED
@@ -96,9 +96,14 @@
|
|
96 |
<section id="home" class="text-center py-16">
|
97 |
<h1 class="text-4xl font-bold text-gray-800 mb-4">Create Your Digital Twin</h1>
|
98 |
<p class="text-xl text-gray-600 mb-8">Generate AI-powered avatars that look just like you</p>
|
99 |
-
<
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
102 |
</section>
|
103 |
|
104 |
<!-- Features Section -->
|
@@ -392,7 +397,53 @@
|
|
392 |
</div>
|
393 |
</div>
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
396 |
// Mock user data
|
397 |
const mockUser = {
|
398 |
name: "John Doe",
|
|
|
96 |
<section id="home" class="text-center py-16">
|
97 |
<h1 class="text-4xl font-bold text-gray-800 mb-4">Create Your Digital Twin</h1>
|
98 |
<p class="text-xl text-gray-600 mb-8">Generate AI-powered avatars that look just like you</p>
|
99 |
+
<div class="flex space-x-4 justify-center">
|
100 |
+
<button id="get-started-btn" class="bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-8 py-3 rounded-full font-medium shadow-lg hover:opacity-90 transition">
|
101 |
+
Get Started
|
102 |
+
</button>
|
103 |
+
<button id="demo-btn" class="bg-white text-indigo-600 border-2 border-indigo-600 px-8 py-3 rounded-full font-medium shadow-lg hover:bg-indigo-50 transition">
|
104 |
+
See Demo
|
105 |
+
</button>
|
106 |
+
</div>
|
107 |
</section>
|
108 |
|
109 |
<!-- Features Section -->
|
|
|
397 |
</div>
|
398 |
</div>
|
399 |
|
400 |
+
<!-- Demo Video Modal -->
|
401 |
+
<div id="demo-modal" class="fixed inset-0 z-50 hidden flex items-center justify-center bg-black bg-opacity-75">
|
402 |
+
<div class="relative w-full max-w-4xl mx-4">
|
403 |
+
<div class="bg-white rounded-lg overflow-hidden shadow-xl">
|
404 |
+
<div class="flex justify-between items-center px-6 py-4 border-b">
|
405 |
+
<h3 class="text-xl font-semibold text-gray-800">AI Clone Demo</h3>
|
406 |
+
<button id="close-modal" class="text-gray-500 hover:text-gray-700">
|
407 |
+
<i class="fas fa-times text-2xl"></i>
|
408 |
+
</button>
|
409 |
+
</div>
|
410 |
+
<div class="p-4">
|
411 |
+
<div class="aspect-w-16 aspect-h-9">
|
412 |
+
<iframe id="demo-video" class="w-full h-96" src="https://www.youtube.com/embed/LRkj_ObV0T0?enablejsapi=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
413 |
+
</div>
|
414 |
+
</div>
|
415 |
+
</div>
|
416 |
+
</div>
|
417 |
+
</div>
|
418 |
+
|
419 |
<script>
|
420 |
+
// Demo Video Modal
|
421 |
+
const demoBtn = document.getElementById('demo-btn');
|
422 |
+
const demoModal = document.getElementById('demo-modal');
|
423 |
+
const closeModal = document.getElementById('close-modal');
|
424 |
+
const demoVideo = document.getElementById('demo-video');
|
425 |
+
|
426 |
+
demoBtn.addEventListener('click', () => {
|
427 |
+
demoModal.classList.remove('hidden');
|
428 |
+
document.body.style.overflow = 'hidden';
|
429 |
+
});
|
430 |
+
|
431 |
+
closeModal.addEventListener('click', () => {
|
432 |
+
demoModal.classList.add('hidden');
|
433 |
+
document.body.style.overflow = 'auto';
|
434 |
+
// Reset video when closing modal
|
435 |
+
demoVideo.src = demoVideo.src;
|
436 |
+
});
|
437 |
+
|
438 |
+
// Close modal when clicking outside
|
439 |
+
demoModal.addEventListener('click', (e) => {
|
440 |
+
if (e.target === demoModal) {
|
441 |
+
demoModal.classList.add('hidden');
|
442 |
+
document.body.style.overflow = 'auto';
|
443 |
+
demoVideo.src = demoVideo.src;
|
444 |
+
}
|
445 |
+
});
|
446 |
+
|
447 |
// Mock user data
|
448 |
const mockUser = {
|
449 |
name: "John Doe",
|