idk
This commit is contained in:
+9
-6
@@ -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
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user