This commit is contained in:
2026-01-29 05:28:59 -08:00
parent bd5575eb88
commit ffd5cd09d9
2 changed files with 12 additions and 8 deletions
+9 -6
View File
@@ -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 = () => {
+3 -2
View File
@@ -2,8 +2,9 @@ export default function YesPage() {
return (
<div className="container">
<h1>Congratulations, you're now my valentine!!! 💖🥳</h1>
<h2>Great job using the freewill the website gave you to make the right choice!!!</h2>
<h3>No takebacks allowed, you're stuck with me 🎉</h3>
<h2>No takebacks allowed, you're stuck with me 🎉</h2>
<h3>Great job using the freewill the website gave you to make the right choice</h3>
</div>
);
}