From ffd5cd09d9711aa6825a5c525bc6c41d168960df Mon Sep 17 00:00:00 2001 From: Chewbaccalakis Date: Thu, 29 Jan 2026 05:28:59 -0800 Subject: [PATCH] idk --- src/HomePage.tsx | 15 +++++++++------ src/yes.tsx | 5 +++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/HomePage.tsx b/src/HomePage.tsx index f4652f6..677b2e5 100644 --- a/src/HomePage.tsx +++ b/src/HomePage.tsx @@ -74,20 +74,23 @@ export default function Homepage() { * ------------------------------------------------------------------ */ const handleAccept = () => { const bursts = 9; + const delay = 200; + const totalDuration = bursts * delay + 500; for (let i = 0; i < bursts; i++) { setTimeout(() => { confetti({ particleCount: 80, spread: 70, - origin: { - x: Math.random(), - y: 0.9, - // y: Math.random() * 0.6 - }, + origin: { x: Math.random(), y: 0.9 }, }); - }, i * 200); + }, i * delay); } + + // Navigate AFTER confetti finishes + setTimeout(() => { + navigate("/yes"); + }, totalDuration); }; const handleNo = () => { diff --git a/src/yes.tsx b/src/yes.tsx index 858d001..78d60e7 100644 --- a/src/yes.tsx +++ b/src/yes.tsx @@ -2,8 +2,9 @@ export default function YesPage() { return (

Congratulations, you're now my valentine!!! 💖🥳

-

Great job using the freewill the website gave you to make the right choice!!!

-

No takebacks allowed, you're stuck with me 🎉

+

No takebacks allowed, you're stuck with me 🎉

+

Great job using the freewill the website gave you to make the right choice

+
); }