onlyoneritz's picture
Goal
deae168 verified
Raw History Blame Contribute Delete
11.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CyberSync Activation</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></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.12.2/gsap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Space Grotesk', sans-serif;
overflow: hidden;
touch-action: none;
background-color: #04070A;
color: #E8E8E8;
}
.cyber-text {
text-shadow: 0 0 8px #12E6FF;
letter-spacing: 0.2em;
}
.cyber-glow {
box-shadow: 0 0 15px #12E6FF;
}
.pulse {
animation: pulse 3s infinite;
}
@keyframes pulse {
0% { opacity: 0.3; }
50% { opacity: 1; }
100% { opacity: 0.3; }
}
.holographic-line {
height: 1px;
background: linear-gradient(90deg, transparent, #12E6FF, transparent);
box-shadow: 0 0 10px #12E6FF;
}
</style>
</head>
<body class="w-full h-screen flex items-center justify-center bg-[#04070A]">
<div id="vanta-bg" class="absolute w-full h-full"></div>
<!-- Main Container -->
<div id="main-container" class="relative w-full h-full flex flex-col items-center justify-center">
<!-- Idle State -->
<div id="idle-state" class="flex flex-col items-center justify-center z-10">
<div class="holographic-line w-64 pulse"></div>
<h1 class="cyber-text text-4xl mt-8">PRESS TO INITIATE</h1>
<div class="mt-4 flex items-center">
<span class="text-xs opacity-70 mr-2">(SPACEBAR OR CLICK)</span>
<i data-feather="arrow-down" class="opacity-70"></i>
</div>
</div>
<!-- Activation Sequence (hidden initially) -->
<div id="activation-sequence" class="hidden absolute w-full h-full">
<!-- Stage 1: Awakening -->
<div id="stage-1" class="hidden absolute w-full h-full flex flex-col items-center justify-center">
<div id="horizon-line" class="holographic-line w-full pulse"></div>
<p id="caption-1" class="cyber-text mt-12 text-xl opacity-0">INITIALIZING HADATHA_SYSTEM... OK</p>
</div>
<!-- Stage 2: Energy Surge -->
<div id="stage-2" class="hidden absolute w-full h-full flex items-center justify-center">
<div id="plasma-sphere" class="w-32 h-32 rounded-full bg-gradient-to-br from-[#12E6FF] to-[#00FFD5] opacity-0 cyber-glow"></div>
</div>
<!-- Stage 3: Lattice Genesis -->
<div id="stage-3" class="hidden absolute w-full h-full">
<canvas id="neural-lattice" class="absolute w-full h-full"></canvas>
</div>
<!-- Stage 4: Threat Breach -->
<div id="stage-4" class="hidden absolute w-full h-full flex items-center justify-center">
<p id="threat-text" class="cyber-text text-3xl text-[#FF3366] opacity-0">UNAUTHORIZED SIGNAL DETECTED</p>
</div>
<!-- Stage 5: AI Countermeasure -->
<div id="stage-5" class="hidden absolute w-full h-full flex items-center justify-center">
<div id="defense-wave" class="absolute w-0 h-0 rounded-full border-2 border-[#12E6FF] opacity-0"></div>
</div>
<!-- Stage 6: Quantum Seal -->
<div id="stage-6" class="hidden absolute w-full h-full flex items-center justify-center">
<div id="encryption-rings" class="relative flex items-center justify-center">
<!-- Rings will be generated by JS -->
</div>
<p id="caption-6" class="cyber-text absolute text-xl mt-64 opacity-0">ENCRYPTION PROTOCOL ACTIVE</p>
</div>
<!-- Stage 7: Sentinel -->
<div id="stage-7" class="hidden absolute w-full h-full flex items-center justify-center">
<div id="sentinel-orb" class="w-64 h-64 rounded-full border-4 border-[#12E6FF] opacity-0 flex items-center justify-center">
<div class="w-56 h-56 rounded-full border-2 border-[#00FFD5] opacity-70"></div>
</div>
</div>
<!-- Stage 8: Network Sync -->
<div id="stage-8" class="hidden absolute w-full h-full flex flex-col items-center justify-center">
<canvas id="network-globe" class="absolute w-full h-full"></canvas>
<p id="caption-8" class="cyber-text text-3xl z-10 opacity-0">GLOBAL NETWORK SYNCHRONIZED</p>
</div>
<!-- Hero Frame -->
<div id="hero-frame" class="hidden absolute w-full h-full flex flex-col items-center justify-center">
<h1 class="cyber-text text-5xl md:text-7xl mb-4 opacity-0">HADATHA CENTRE</h1>
<h2 class="cyber-text text-2xl md:text-3xl mb-16 opacity-0">FOR CYBER SECURITY INDUSTRY</h2>
<p class="cyber-text text-xl mb-2 opacity-0">NOW LIVE AT MIDDLE EAST COLLEGE</p>
<div class="flex items-center justify-center mt-16 space-x-8">
<div class="w-32 h-32 bg-white opacity-0 flex items-center justify-center"></div>
<div class="w-32 h-32 bg-white opacity-0 flex items-center justify-center"></div>
<div class="w-32 h-32 bg-white opacity-0 flex items-center justify-center"></div>
</div>
<p class="absolute bottom-8 text-sm opacity-70">SECURING OMAN'S DIGITAL FUTURE</p>
</div>
</div>
<!-- Audio Elements (hidden) -->
<audio id="activation-sound" preload="auto">
<source src="https://assets.mixkit.co/sfx/preview/mixkit-sci-fi-positive-interface-266.mp3" type="audio/mpeg">
</audio>
<audio id="threat-sound" preload="auto">
<source src="https://assets.mixkit.co/sfx/preview/mixkit-quick-jump-arcade-game-239.mp3" type="audio/mpeg">
</audio>
<audio id="success-sound" preload="auto">
<source src="https://assets.mixkit.co/sfx/preview/mixkit-achievement-bell-600.mp3" type="audio/mpeg">
</audio>
</div>
<script>
// Initialize Feather Icons
feather.replace();
// Vanta.js background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: false,
touchControls: false,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x12e6ff,
backgroundColor: 0x4070a,
size: 0.5,
zoom: 1.5
});
// Animation timeline
const tl = gsap.timeline({ paused: true });
// Stage 1: Awakening (0-3s)
tl.to("#idle-state", { opacity: 0, duration: 0.5 }, 0)
.to("#horizon-line", { width: "80%", duration: 1.5 }, 0.5)
.fromTo("#caption-1", { opacity: 0 }, { opacity: 1, duration: 1 }, 1)
.fromTo("#caption-1", { opacity: 1 }, { opacity: 0, duration: 1 }, 2)
// Stage 2: Energy Surge (3-7s)
.add("stage2", 3)
.set("#stage-1", { display: "none" }, "stage2")
.set("#stage-2", { display: "flex" }, "stage2")
.to("#plasma-sphere", { opacity: 1, scale: 1.5, duration: 1 }, "stage2")
.to("#plasma-sphere", { scale: 0.8, duration: 0.5, repeat: 3, yoyo: true }, "stage2+=1")
// Stage 3: Lattice Genesis (7-11s)
.add("stage3", 7)
.set("#stage-2", { display: "none" }, "stage3")
.set("#stage-3", { display: "block" }, "stage3")
// Lattice animation would be implemented here
// Stage 4: Threat Breach (11-15s)
.add("stage4", 11)
.set("#stage-3", { display: "none" }, "stage4")
.set("#stage-4", { display: "flex" }, "stage4")
.to("#threat-text", { opacity: 1, duration: 0.5 }, "stage4")
.to("#threat-text", { opacity: 0, duration: 0.5 }, "stage4+=3")
// Stage 5: AI Countermeasure (15-19s)
.add("stage5", 15)
.set("#stage-4", { display: "none" }, "stage5")
.set("#stage-5", { display: "flex" }, "stage5")
.to("#defense-wave", {
width: 10, height: 10, opacity: 1,
duration: 0.1
}, "stage5")
.to("#defense-wave", {
width: 2000, height: 2000, opacity: 0,
duration: 3, ease: "power4.out"
}, "stage5+=0.1")
// Stage 6: Quantum Seal (19-23s)
.add("stage6", 19)
.set("#stage-5", { display: "none" }, "stage6")
.set("#stage-6", { display: "flex" }, "stage6")
.fromTo("#caption-6", { opacity: 0 }, { opacity: 1, duration: 1 }, "stage6")
.fromTo("#caption-6", { opacity: 1 }, { opacity: 0, duration: 1 }, "stage6+=3")
// Stage 7: Sentinel Awakening (23-27s)
.add("stage7", 23)
.set("#stage-6", { display: "none" }, "stage7")
.set("#stage-7", { display: "flex" }, "stage7")
.to("#sentinel-orb", { opacity: 1, duration: 1 }, "stage7")
// Stage 8: Network Sync (27-31s)
.add("stage8", 27)
.set("#stage-7", { display: "none" }, "stage8")
.set("#stage-8", { display: "flex" }, "stage8")
.fromTo("#caption-8", { opacity: 0 }, { opacity: 1, duration: 1 }, "stage8")
// Hero Frame (31-40s)
.add("hero", 31)
.set("#stage-8", { display: "none" }, "hero")
.set("#hero-frame", { display: "flex" }, "hero")
.to("#hero-frame h1", { opacity: 1, duration: 1 }, "hero")
.to("#hero-frame h2", { opacity: 1, duration: 1 }, "hero+=0.5")
.to("#hero-frame p", { opacity: 1, duration: 1 }, "hero+=1")
.to("#hero-frame div div:nth-child(1)", { opacity: 1, duration: 0.5 }, "hero+=1.5")
.to("#hero-frame div div:nth-child(2)", { opacity: 1, duration: 0.5 }, "hero+=1.6")
.to("#hero-frame div div:nth-child(3)", { opacity: 1, duration: 0.5 }, "hero+=1.7")
.to("#hero-frame p:last-child", { opacity: 1, duration: 1 }, "hero+=2");
// Event listeners
document.addEventListener('click', startSequence);
document.addEventListener('keydown', (e) => {
if (e.code === 'Space') startSequence();
if (e.code === 'KeyR') resetSequence();
});
function startSequence() {
document.getElementById('activation-sound').play();
document.getElementById('activation-sequence').classList.remove('hidden');
tl.play();
}
function resetSequence() {
tl.restart().pause();
document.getElementById('activation-sequence').classList.add('hidden');
document.getElementById('idle-state').classList.remove('hidden');
}
</script>
</body>
</html>