diff --git a/src/app/page.tsx b/src/app/page.tsx index ef8656e..88b1c17 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,339 +2,198 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import ReactLenis from "lenis/react"; -import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen'; -import FooterBaseCard from '@/components/sections/footer/FooterBaseCard'; -import HeroSplit from '@/components/sections/hero/HeroSplit'; -import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; -import SocialProofOne from '@/components/sections/socialProof/SocialProofOne'; -import SplitAbout from '@/components/sections/about/SplitAbout'; -import TeamCardOne from '@/components/sections/team/TeamCardOne'; -import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive'; -import { Compass, Heart, Sparkles } from "lucide-react"; +import HeroSplit from "@/components/sections/hero/HeroSplit"; +import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple"; +import { Heart, Sparkles } from "lucide-react"; +import React, { useState } from "react"; + +const noMessages = [ + "Please kar lo na 🥺", "Main tum se bohat pyar karta hoon ❤️", "Ab to yes kar do na 🥹", "Please Jully, maan jao na ❤️", "Mere liye yes kar do 💕", "Last time bol raha hoon, yes kar do ❤️" +]; export default function LandingPage() { + const [noClickCount, setNoClickCount] = useState(0); + const [showCelebration, setShowCelebration] = useState(false); + const [proposalTitle, setProposalTitle] = useState("Jully, will you marry me?"); + const [proposalDescription, setProposalDescription] = useState("My dearest Jully, every moment with you is a treasure. You are my greatest joy, my best friend, and the love of my life. Will you make me the happiest person and say yes to forever?"); + const [showNoButton, setShowNoButton] = useState(true); + + const handleYes = () => { + setProposalTitle("I love you Jully ❤️"); + setProposalDescription(""); // Clear description on Yes + setShowCelebration(true); + setShowNoButton(false); + }; + + const handleNo = () => { + if (noClickCount < noMessages.length - 1) { + setNoClickCount(prev => prev + 1); + setProposalDescription(noMessages[noClickCount]); + } else { + // After 6 'No' clicks, remove 'No' button and prompt for 'Yes' + setShowNoButton(false); + setProposalDescription("Seriously, Jully? Just say yes! ❤️"); + } + }; + + const getHeroButtons = () => { + if (showCelebration) { + return []; + } + const buttons = []; + buttons.push({ text: "Yes", onClick: handleYes }); + if (showNoButton) { + buttons.push({ text: "No", onClick: handleNo }); + } else if (noClickCount >= noMessages.length - 1) { + // If no button is removed, and it's past the messages, show two Yes buttons + buttons.push({ text: "Yes!", onClick: handleYes }); + } + return buttons; + }; + return ( - + -
- -
+
+ +
-
- -
+ {showCelebration && ( +
+ {/* Confetti Effect */} + {Array.from({ length: 50 }).map((_, i) => ( +
+ ))} -
- -
+ {/* Hearts Effect */} + {Array.from({ length: 20 }).map((_, i) => ( + + ❤️ + + ))} -
- -
+ {/* Balloons Effect */} + {Array.from({ length: 10 }).map((_, i) => ( + + 🎈 + + ))} -
- -
- -
- -
- - + +
+ )} );