Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions assets/interactivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ document.addEventListener("DOMContentLoaded", () => {
const heroSection = document.getElementById('hero-section');
if (heroImg && heroSection) {
heroSection.addEventListener('mousemove', (e) => {
const x = (window.innerWidth / 2 - e.pageX) / 25;
const y = (window.innerHeight / 2 - e.pageY) / 25;
// The hero img has md:scale-125, so we incorporate a base scale
heroImg.style.transform = `translate(${x}px, ${y}px) scale(1.15)`;
const x = (window.innerWidth / 2 - e.pageX) / 40;
const y = (window.innerHeight / 2 - e.pageY) / 40;
heroImg.style.transform = `translate(${x}px, ${y}px)`;
heroImg.style.transition = 'transform 0.1s ease-out';
});
heroSection.addEventListener('mouseleave', () => {
heroImg.style.transform = `translate(0px, 0px) scale(1.0)`;
heroImg.style.transform = `translate(0px, 0px)`;
heroImg.style.transition = 'transform 0.5s ease-out';
});
}
Expand Down
10 changes: 5 additions & 5 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@
"url": "https://hackathon-website-sooty-delta.vercel.app/"
}
}
]</script><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8663425706426895" crossorigin="anonymous"></script> <script type="module" crossorigin src="/assets/main-DTa-Iwlz.js"></script>
]</script><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8663425706426895" crossorigin="anonymous"></script> <script type="module" crossorigin src="/assets/main-BUiyzvwP.js"></script>
<link rel="modulepreload" crossorigin href="/assets/particles-CBDe3tZi.js">
<link rel="modulepreload" crossorigin href="/assets/interactivity-DGTbsNvm.js">
<link rel="modulepreload" crossorigin href="/assets/interactivity-bWdJlt_1.js">
<link rel="stylesheet" crossorigin href="/assets/particles-BSNTVfzG.css">
<link rel="stylesheet" crossorigin href="/assets/main-CSOKYSO-.css">
</head><body class="bg-background text-on-surface antialiased flex flex-col min-h-screen relative grid-bg overflow-x-hidden">
Expand Down Expand Up @@ -192,12 +192,12 @@ <h1 class="text-4xl sm:text-5xl md:text-display-lg font-headline-md text-on-surf
</div>
</div>

<div class="flex items-center justify-center relative z-10 w-full h-full min-h-[280px] sm:min-h-[420px] md:min-h-[600px] overflow-hidden">
<div class="flex items-center justify-center relative z-10 w-full h-full min-h-[280px] sm:min-h-[420px] md:min-h-[550px] p-2 sm:p-4">
<!-- Base: Soft radial red glow -->
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[300px] h-[300px] sm:w-[450px] sm:h-[450px] md:w-[600px] md:h-[600px] bg-primary/20 rounded-full blur-[80px] md:blur-[120px] z-0 pointer-events-none"></div>

<!-- Middle: Animated concentric rings -->
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full flex items-center justify-center z-0 pointer-events-none">
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full flex items-center justify-center z-0 pointer-events-none overflow-hidden">
<div class="absolute w-[180px] h-[180px] sm:w-[260px] sm:h-[260px] md:w-[350px] md:h-[350px] border border-primary/30 rounded-full animate-[ping_3s_cubic-bezier(0,0,0.2,1)_infinite]"></div>
<div class="absolute w-[260px] h-[260px] sm:w-[380px] sm:h-[380px] md:w-[500px] md:h-[500px] border border-primary/20 rounded-full animate-[ping_4s_cubic-bezier(0,0,0.2,1)_infinite]" style="animation-delay: 1s;"></div>
<div class="absolute w-[320px] h-[320px] sm:w-[480px] sm:h-[480px] md:w-[650px] md:h-[650px] border border-primary/10 rounded-full animate-[ping_5s_cubic-bezier(0,0,0.2,1)_infinite]" style="animation-delay: 2s;"></div>
Expand All @@ -217,7 +217,7 @@ <h1 class="text-4xl sm:text-5xl md:text-display-lg font-headline-md text-on-surf
</div>

<!-- Top: The graphic -->
<img src="/assets/image-rAX6-vYd.png" alt="Omnikon community hero graphic" class="hero-img max-h-[300px] sm:max-h-[450px] md:max-h-[650px] scale-100 md:scale-125 w-auto object-contain drop-shadow-2xl relative z-10 hover:scale-[1.05] md:hover:scale-[1.3] transition-transform duration-700 ease-out">
<img src="/assets/image-rAX6-vYd.png" alt="Omnikon community hero graphic" class="hero-img max-h-[280px] sm:max-h-[420px] md:max-h-[520px] lg:max-h-[560px] w-full max-w-full object-contain drop-shadow-2xl relative z-10 hover:brightness-110 transition-all duration-500 ease-out">
</div>
</section>

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ <h1 class="text-4xl sm:text-5xl md:text-display-lg font-headline-md text-on-surf
</div>
</div>

<div class="flex items-center justify-center relative z-10 w-full h-full min-h-[280px] sm:min-h-[420px] md:min-h-[600px] overflow-hidden">
<div class="flex items-center justify-center relative z-10 w-full h-full min-h-[280px] sm:min-h-[420px] md:min-h-[550px] p-2 sm:p-4">
<!-- Base: Soft radial red glow -->
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[300px] h-[300px] sm:w-[450px] sm:h-[450px] md:w-[600px] md:h-[600px] bg-primary/20 rounded-full blur-[80px] md:blur-[120px] z-0 pointer-events-none"></div>

<!-- Middle: Animated concentric rings -->
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full flex items-center justify-center z-0 pointer-events-none">
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full flex items-center justify-center z-0 pointer-events-none overflow-hidden">
<div class="absolute w-[180px] h-[180px] sm:w-[260px] sm:h-[260px] md:w-[350px] md:h-[350px] border border-primary/30 rounded-full animate-[ping_3s_cubic-bezier(0,0,0.2,1)_infinite]"></div>
<div class="absolute w-[260px] h-[260px] sm:w-[380px] sm:h-[380px] md:w-[500px] md:h-[500px] border border-primary/20 rounded-full animate-[ping_4s_cubic-bezier(0,0,0.2,1)_infinite]" style="animation-delay: 1s;"></div>
<div class="absolute w-[320px] h-[320px] sm:w-[480px] sm:h-[480px] md:w-[650px] md:h-[650px] border border-primary/10 rounded-full animate-[ping_5s_cubic-bezier(0,0,0.2,1)_infinite]" style="animation-delay: 2s;"></div>
Expand All @@ -218,7 +218,7 @@ <h1 class="text-4xl sm:text-5xl md:text-display-lg font-headline-md text-on-surf
</div>

<!-- Top: The graphic -->
<img src="./image.png" alt="Omnikon community hero graphic" class="hero-img max-h-[300px] sm:max-h-[450px] md:max-h-[650px] scale-100 md:scale-125 w-auto object-contain drop-shadow-2xl relative z-10 hover:scale-[1.05] md:hover:scale-[1.3] transition-transform duration-700 ease-out">
<img src="./image.png" alt="Omnikon community hero graphic" class="hero-img max-h-[280px] sm:max-h-[420px] md:max-h-[520px] lg:max-h-[560px] w-full max-w-full object-contain drop-shadow-2xl relative z-10 hover:brightness-110 transition-all duration-500 ease-out">
</div>
</section>

Expand Down
Loading