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 handleAccept = () => {
const bursts = 9; const bursts = 9;
const delay = 200;
const totalDuration = bursts * delay + 500;
for (let i = 0; i < bursts; i++) { for (let i = 0; i < bursts; i++) {
setTimeout(() => { setTimeout(() => {
confetti({ confetti({
particleCount: 80, particleCount: 80,
spread: 70, spread: 70,
origin: { origin: { x: Math.random(), y: 0.9 },
x: Math.random(),
y: 0.9,
// y: Math.random() * 0.6
},
}); });
}, i * 200); }, i * delay);
} }
// Navigate AFTER confetti finishes
setTimeout(() => {
navigate("/yes");
}, totalDuration);
}; };
const handleNo = () => { const handleNo = () => {
+3 -2
View File
@@ -2,8 +2,9 @@ export default function YesPage() {
return ( return (
<div className="container"> <div className="container">
<h1>Congratulations, you're now my valentine!!! 💖🥳</h1> <h1>Congratulations, you're now my valentine!!! 💖🥳</h1>
<h2>Great job using the freewill the website gave you to make the right choice!!!</h2> <h2>No takebacks allowed, you're stuck with me 🎉</h2>
<h3>No takebacks allowed, you're stuck with me 🎉</h3> <h3>Great job using the freewill the website gave you to make the right choice</h3>
</div> </div>
); );
} }