Spaces:
Running
Running
Download index.html from Andreiblack/undefined: direct link, hf CLI and curl.
- Browser
- Download file 27.4 kB
-
https://huggingface.co/spaces/Andreiblack/undefined/resolve/main/index.html
- Command line
-
hf download hf://spaces/Andreiblack/undefined/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Andreiblack/undefined/resolve/main/index.html
27.4 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PRIME FL | Будущее единоборств</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&family=Orbitron:wght@700&display=swap" rel="stylesheet"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script> | |
| <style> | |
| @font-face { | |
| font-family: 'Neue Haas Grotesk'; | |
| src: url('https://fonts.cdnfonts.com/css/neue-haas-grotesk-display-pro') format('woff2'); | |
| } | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| background-color: #0D0D0D; | |
| color: #F0F0F0; | |
| overflow-x: hidden; | |
| } | |
| .hero-section { | |
| height: 100vh; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .fist-animation { | |
| position: absolute; | |
| width: 200px; | |
| height: 200px; | |
| background-size: contain; | |
| background-repeat: no-repeat; | |
| z-index: 10; | |
| } | |
| .fist-left { | |
| left: 20%; | |
| background-image: url('http://static.photos/sport/400x400/1'); | |
| transform: translateX(-100vw); | |
| } | |
| .fist-right { | |
| right: 20%; | |
| background-image: url('http://static.photos/sport/400x400/2'); | |
| transform: translateX(100vw); | |
| } | |
| .energy-burst { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| background: radial-gradient(circle, rgba(255,215,0,0.7) 0%, rgba(255,229,143,0.3) 50%, rgba(0,0,0,0) 100%); | |
| opacity: 0; | |
| z-index: 5; | |
| } | |
| .impact-smoke { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| background-image: url('http://static.photos/black/1200x630/10'); | |
| background-size: cover; | |
| opacity: 0; | |
| z-index: 6; | |
| mix-blend-mode: screen; | |
| } | |
| .logo-reveal { | |
| opacity: 0; | |
| transform: scale(0.8); | |
| position: relative; | |
| z-index: 15; | |
| } | |
| .gold-text { | |
| text-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 213, 0, 0.5); | |
| } | |
| .gold-border { | |
| box-shadow: 0 0 15px #FFD700; | |
| transition: box-shadow 0.3s ease; | |
| } | |
| .gold-border:hover { | |
| box-shadow: 0 0 25px #FFE58F; | |
| } | |
| .glow-effect { | |
| position: relative; | |
| } | |
| .glow-effect:after { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: radial-gradient(circle, rgba(255,229,143,0.1) 0%, rgba(255,213,0,0) 70%); | |
| opacity: 0; | |
| transition: opacity 0.3s ease; | |
| } | |
| .glow-effect:hover:after { | |
| opacity: 1; | |
| } | |
| .parallax-section { | |
| background-attachment: fixed; | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| background-size: cover; | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-10px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 255, 157, 0.1), 0 10px 10px -5px rgba(0, 255, 0, 0.04); | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link:after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -5px; | |
| left: 0; | |
| background-color: #00FF9D; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover:after { | |
| width: 100%; | |
| } | |
| .fighter-card { | |
| background: linear-gradient(145deg, #111, #1b1b1b); | |
| border: 1px solid rgba(255, 215, 0, 0.5); | |
| border-radius: 20px; | |
| box-shadow: 0 0 25px rgba(255, 215, 0, 0.3); | |
| transition: all 0.3s ease; | |
| } | |
| .fighter-card:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); | |
| } | |
| .fighter-card img { | |
| width: 100%; | |
| border-radius: 20px 20px 0 0; | |
| } | |
| .fighter-card h3 { | |
| color: #ffd700; | |
| font-family: 'Inter', sans-serif; | |
| font-weight: bold; | |
| letter-spacing: 1px; | |
| padding: 15px 15px 5px; | |
| } | |
| .fighter-card p { | |
| color: #ccc; | |
| font-size: 0.9em; | |
| padding: 0 15px 15px; | |
| } | |
| </style> | |
| </head> | |
| <body class="antialiased"> | |
| <!-- Hero Section with Fist Animation --> | |
| <section class="hero-section flex items-center justify-center" id="fistAnimation"> | |
| <div class="fist-animation fist-left" id="leftFist"></div> | |
| <div class="fist-animation fist-right" id="rightFist"></div> | |
| <div class="energy-burst" id="impactFlash"></div> | |
| <div class="impact-smoke"></div> | |
| <div class="gold-glow" id="goldGlow"></div> | |
| <div class="logo-reveal text-center" id="logoReveal"> | |
| <h1 class="text-6xl md:text-8xl font-bold mb-6 font-orbitron gold-text">PRIME <span class="text-[#FFD700]">FL</span></h1> | |
| <p class="text-xl md:text-2xl text-[#F0F0F0]">Будущее единоборств уже здесь</p> | |
| </div> | |
| </section> | |
| <div id="mainContent" style="opacity: 0;"> | |
| <!-- Navigation --> | |
| <nav class="fixed w-full z-50 bg-black bg-opacity-80 backdrop-blur-sm py-4 hidden" id="mainNav"> | |
| <div class="container mx-auto px-6 flex justify-between items-center"> | |
| <a href="#" class="text-2xl font-bold font-orbitron neon-text">PRIME<span class="text-[#00FF9D]">FL</span></a> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Главная</a> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Бойцы</a> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Турниры</a> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Новости</a> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Медиа</a> | |
| <a href="#" class="nav-link text-[#E0E0E0] hover:text-[#00FF9D]">Контакты</a> | |
| </div> | |
| <button class="md:hidden text-[#E0E0E0]"> | |
| <i data-feather="menu"></i> | |
| </button> | |
| </div> | |
| </nav> | |
| <!-- Fighters Section --> | |
| <section class="py-20 px-6 bg-[#0D0D0D] parallax-section section-reveal" style="background-image: url('http://static.photos/black/1200x630/11')"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-4xl font-bold mb-16 text-center font-orbitron neon-text">НАШИ БОЙЦЫ</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10"> | |
| <!-- Fighter Card 1 --> | |
| <div class="card-hover glow-effect bg-[#111111] rounded-xl overflow-hidden transition-all duration-300 ease-in-out gold-border"> | |
| <div class="relative h-80 bg-cover bg-center" style="background-image: url('http://static.photos/sport/640x360/3');"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent"></div> | |
| <div class="absolute bottom-0 left-0 p-6"> | |
| <h3 class="text-2xl font-bold">Иван "Гроза" Петров</h3> | |
| <p class="text-[#FFD700]">16-2-0 | Тяжёлый вес</p> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <p class="text-[#E0E0E0] mb-4">Специализация: бокс, грэпплинг</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="instagram"></i></a> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="twitter"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Fighter Card 2 --> | |
| <div class="card-hover bg-[#111111] rounded-xl overflow-hidden transition-all duration-300 ease-in-out"> | |
| <div class="relative h-80 bg-cover bg-center" style="background-image: url('http://static.photos/sport/640x360/4');"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent"></div> | |
| <div class="absolute bottom-0 left-0 p-6"> | |
| <h3 class="text-2xl font-bold">Алексей "Титан" Смирнов</h3> | |
| <p class="text-[#00FF9D]">12-1-0 | Полутяжёлый вес</p> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <p class="text-[#E0E0E0] mb-4">Специализация: муай-тай, джиу-джитсу</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="instagram"></i></a> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="twitter"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Events Section --> | |
| <section class="py-20 px-6 parallax-section section-reveal" style="background-image: url('http://static.photos/black/1200x630/6');"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-4xl font-bold mb-16 text-center font-orbitron neon-text">БЛИЖАЙШИЕ ТУРНИРЫ</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <!-- Event 1 --> | |
| <div class="bg-black bg-opacity-70 p-8 rounded-xl neon-border"> | |
| <h3 class="text-2xl font-bold mb-2">PRIME FL 25: ВОЗМЕЗДИЕ</h3> | |
| <p class="text-[#00FF9D] mb-4">15 декабря 2023 | Москва, ВТБ Арена</p> | |
| <div class="flex space-x-4 mb-6"> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="days1">00</div> | |
| <div class="text-sm">Дней</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="hours1">00</div> | |
| <div class="text-sm">Часов</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="minutes1">00</div> | |
| <div class="text-sm">Минут</div> | |
| </div> | |
| </div> | |
| <button class="bg-[#FFD700] hover:bg-[#FFE58F] text-black font-bold py-2 px-6 rounded-full transition-all duration-300 gold-border">Купить билеты</button> | |
| </div> | |
| <!-- Event 2 --> | |
| <div class="bg-black bg-opacity-70 p-8 rounded-xl neon-border"> | |
| <h3 class="text-2xl font-bold mb-2">PRIME FL 26: НОВЫЙ УРОВЕНЬ</h3> | |
| <p class="text-[#00FF9D] mb-4">27 января 2024 | Санкт-Петербург, СИБУР Арена</p> | |
| <div class="flex space-x-4 mb-6"> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="days2">00</div> | |
| <div class="text-sm">Дней</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="hours2">00</div> | |
| <div class="text-sm">Часов</div> | |
| </div> | |
| <div class="text-center"> | |
| <div class="text-3xl font-bold" id="minutes2">00</div> | |
| <div class="text-sm">Минут</div> | |
| </div> | |
| </div> | |
| <button class="bg-[#00FF9D] hover:bg-[#00FF00] text-black font-bold py-2 px-6 rounded-full transition-all duration-300">Купить билеты</button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- News Section --> | |
| <section class="py-20 px-6 bg-black section-reveal"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-4xl font-bold mb-16 text-center font-orbitron neon-text">ПОСЛЕДНИЕ НОВОСТИ</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> | |
| <!-- News 1 --> | |
| <div class="card-hover bg-[#111111] rounded-xl overflow-hidden transition-all duration-300 ease-in-out"> | |
| <div class="relative h-48 bg-cover bg-center" style="background-image: url('http://static.photos/sport/640x360/7');"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300 flex items-center justify-center"> | |
| <button class="bg-[#00FF9D] hover:bg-[#00FF00] text-black font-bold py-2 px-6 rounded-full transition-all duration-300">Смотреть</button> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold mb-2">Петров нокаутировал Силву в первом раунде</h3> | |
| <p class="text-[#E0E0E0] text-sm mb-4">12 ноября 2023</p> | |
| <p class="text-[#E0E0E0]">Иван "Гроза" Петров продемонстрировал свою мощь...</p> | |
| </div> | |
| </div> | |
| <!-- News 2 --> | |
| <div class="card-hover bg-[#111111] rounded-xl overflow-hidden transition-all duration-300 ease-in-out"> | |
| <div class="relative h-48 bg-cover bg-center" style="background-image: url('http://static.photos/sport/640x360/8');"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300 flex items-center justify-center"> | |
| <button class="bg-[#00FF9D] hover:bg-[#00FF00] text-black font-bold py-2 px-6 rounded-full transition-all duration-300">Смотреть</button> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold mb-2">Анонсирован турнир PRIME FL 26</h3> | |
| <p class="text-[#E0E0E0] text-sm mb-4">5 ноября 2023</p> | |
| <p class="text-[#E0E0E0]">Организаторы объявили дату и место проведения...</p> | |
| </div> | |
| </div> | |
| <!-- News 3 --> | |
| <div class="card-hover bg-[#111111] rounded-xl overflow-hidden transition-all duration-300 ease-in-out"> | |
| <div class="relative h-48 bg-cover bg-center" style="background-image: url('http://static.photos/sport/640x360/9');"> | |
| <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent opacity-0 hover:opacity-100 transition-opacity duration-300 flex items-center justify-center"> | |
| <button class="bg-[#00FF9D] hover:bg-[#00FF00] text-black font-bold py-2 px-6 rounded-full transition-all duration-300">Смотреть</button> | |
| </div> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-bold mb-2">Козлов сохранил непобеждённый статус</h3> | |
| <p class="text-[#E0E0E0] text-sm mb-4">29 октября 2023</p> | |
| <p class="text-[#E0E0E0]">Дмитрий "Буря" Козлов одержал победу единогласным...</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="py-12 px-6 bg-[#0D0D0D] border-t border-[#FFD700] section-reveal"> | |
| <div class="container mx-auto"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4 font-orbitron gold-text">PRIME<span class="text-[#FFD700]">FL</span></h3> | |
| <p class="text-[#E0E0E0]">Будущее единоборств уже здесь</p> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Разделы</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]">Главная</a></li> | |
| <li><a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]">Бойцы</a></li> | |
| <li><a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]">Турниры</a></li> | |
| <li><a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]">Новости</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Контакты</h4> | |
| <ul class="space-y-2"> | |
| <li class="flex items-center"><i data-feather="mail" class="mr-2"></i> <a href="mailto:info@primefl.ru" class="text-[#E0E0E0] hover:text-[#00FF9D]">info@primefl.ru</a></li> | |
| <li class="flex items-center"><i data-feather="phone" class="mr-2"></i> <a href="tel:+78005553535" class="text-[#E0E0E0] hover:text-[#00FF9D]">8 800 555 35 35</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-bold mb-4">Соцсети</h4> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="instagram"></i></a> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="youtube"></i></a> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="twitter"></i></a> | |
| <a href="#" class="text-[#E0E0E0] hover:text-[#00FF9D]"><i data-feather="facebook"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-[#333333] mt-12 pt-8 text-center text-[#666666]"> | |
| <p>© 2023 PRIME Fighting League. Все права защищены.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| feather.replace(); | |
| gsap.registerPlugin(ScrollTrigger); | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const leftFist = document.getElementById('leftFist'); | |
| const rightFist = document.getElementById('rightFist'); | |
| const impactFlash = document.getElementById('impactFlash'); | |
| const goldGlow = document.getElementById('goldGlow'); | |
| const logoReveal = document.getElementById('logoReveal'); | |
| const fistAnimation = document.getElementById('fistAnimation'); | |
| const mainContent = document.getElementById('mainContent'); | |
| // ===== Функция генерации частиц ===== | |
| function createParticles(count) { | |
| const particles = []; | |
| for (let i = 0; i < count; i++) { | |
| const particle = document.createElement('div'); | |
| particle.classList.add('particle'); | |
| particle.style.left = '50%'; | |
| particle.style.top = '50%'; | |
| document.body.appendChild(particle); | |
| particles.push(particle); | |
| const angle = Math.random() * Math.PI * 2; | |
| const distance = 50 + Math.random() * 100; | |
| gsap.to(particle, { | |
| x: Math.cos(angle) * distance, | |
| y: Math.sin(angle) * distance, | |
| opacity: 0, | |
| duration: 1 + Math.random(), | |
| ease: "power3.out", | |
| onComplete: () => particle.remove() | |
| }); | |
| } | |
| } | |
| // ===== Функция генерации дыма ===== | |
| function createSmoke(count) { | |
| for (let i = 0; i < count; i++) { | |
| const smoke = document.createElement('div'); | |
| smoke.classList.add('smoke'); | |
| smoke.style.left = `calc(50% + ${Math.random()*100 - 50}px)`; | |
| smoke.style.top = `calc(50% + ${Math.random()*100 - 50}px)`; | |
| document.body.appendChild(smoke); | |
| gsap.to(smoke, { | |
| scale: 3 + Math.random()*2, | |
| opacity: 0, | |
| duration: 2 + Math.random(), | |
| ease: "power1.out", | |
| onComplete: () => smoke.remove() | |
| }); | |
| } | |
| } | |
| // ===== БЛОК 1: АНИМАЦИЯ КУЛАКОВ С ЭФФЕКТАМИ ===== | |
| const fistsTimeline = gsap.timeline({ defaults: { duration: 2, ease: "power2.out" } }); | |
| fistsTimeline | |
| .to(leftFist, { x: '40vw', delay: 0.5 }) | |
| .to(rightFist, { x: '-40vw' }, "<") | |
| .add(() => { | |
| // Вспышка и золотое сияние | |
| gsap.to(impactFlash, { opacity: 1, duration: 0.1, onComplete: () => { | |
| gsap.to(impactFlash, { opacity: 0, duration: 0.3 }); | |
| }}); | |
| gsap.to(goldGlow, { opacity: 0.6, duration: 0.2, onComplete: () => { | |
| gsap.to(goldGlow, { opacity: 0, duration: 1.5 }); | |
| }}); | |
| // Вибрация экрана | |
| gsap.to(fistAnimation, { x: 10, duration: 0.05, repeat: 3, yoyo: true }); | |
| // Частицы и дым | |
| createParticles(50); | |
| createSmoke(15); | |
| }) | |
| .to(logoReveal, { | |
| opacity: 1, scale: 1, duration: 1, ease: "back.out(1.7)", | |
| onComplete: () => { | |
| gsap.to(fistAnimation, { opacity: 0, duration: 1.5, delay: 1, onComplete: () => { | |
| fistAnimation.style.display = 'none'; | |
| gsap.to(mainContent, { opacity: 1, duration: 1 }); | |
| // ===== БЛОК 2: СЕКЦИИ ===== | |
| gsap.utils.toArray('.section-reveal').forEach(section => { | |
| gsap.to(section, { | |
| opacity: 1, | |
| y: 0, | |
| duration: 1, | |
| scrollTrigger: { | |
| trigger: section, | |
| start: "top 80%", | |
| end: "bottom 20%", | |
| toggleActions: "play none none reverse" | |
| } | |
| }); | |
| }); | |
| // ===== БЛОК 3: ПАРАЛЛАКС ===== | |
| gsap.utils.toArray('.parallax-bg').forEach(bg => { | |
| gsap.to(bg, { | |
| yPercent: 30, | |
| ease: "none", | |
| scrollTrigger: { | |
| trigger: bg, | |
| start: "top bottom", | |
| end: "bottom top", | |
| scrub: true | |
| } | |
| }); | |
| }); | |
| }}); | |
| } | |
| }); | |
| }); | |
| // Countdown timers | |
| function updateCountdown() { | |
| const event1Date = new Date('2023-12-15T20:00:00').getTime(); | |
| const event2Date = new Date('2024-01-27T19:00:00').getTime(); | |
| const now = new Date().getTime(); | |
| // Event 1 | |
| const distance1 = event1Date - now; | |
| const days1 = Math.floor(distance1 / (1000 * 60 * 60 * 24)); | |
| const hours1 = Math.floor((distance1 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | |
| const minutes1 = Math.floor((distance1 % (1000 * 60 * 60)) / (1000 * 60)); | |
| document.getElementById('days1').innerHTML = days1.toString().padStart(2, '0'); | |
| document.getElementById('hours1').innerHTML = hours1.toString().padStart(2, '0'); | |
| document.getElementById('minutes1').innerHTML = minutes1.toString().padStart(2, '0'); | |
| // Event 2 | |
| const distance2 = event2Date - now; | |
| const days2 = Math.floor(distance2 / (1000 * 60 * 60 * 24)); | |
| const hours2 = Math.floor((distance2 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); | |
| const minutes2 = Math.floor((distance2 % (1000 * 60 * 60)) / (1000 * 60)); | |
| document.getElementById('days2').innerHTML = days2.toString().padStart(2, '0'); | |
| document.getElementById('hours2').innerHTML = hours2.toString().padStart(2, '0'); | |
| document.getElementById('minutes2').innerHTML = minutes2.toString().padStart(2, '0'); | |
| } | |
| updateCountdown(); | |
| setInterval(updateCountdown, 60000); | |
| // Background animation | |
| VANTA.GLOBE({ | |
| el: ".hero-section", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0xFFD700, | |
| backgroundColor: 0x0D0D0D, | |
| size: 0.8 | |
| }); | |
| </script> | |
| </body> | |
| </html> | |