From bce176f26f9fa25027cdea544bd835594a08bd3a Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 07:01:07 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 129 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 99 insertions(+), 30 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 9b67a56..6126139 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,9 +9,30 @@ import MetricCardOne from "@/components/sections/metrics/MetricCardOne"; import FaqDouble from "@/components/sections/faq/FaqDouble"; import ContactFaq from "@/components/sections/contact/ContactFaq"; import FooterBaseReveal from "@/components/sections/footer/FooterBaseReveal"; +import VirtualTryOnUpload from "@/components/virtualTryOn/VirtualTryOnUpload"; +import VirtualTryOnPreview from "@/components/virtualTryOn/VirtualTryOnPreview"; import { Clock, Package, Sparkles, Target, Zap } from "lucide-react"; +import { useState } from "react"; export default function LandingPage() { + const [userPhoto, setUserPhoto] = useState(null); + const [clothesPhoto, setClothesPhoto] = useState(null); + const [showPreview, setShowPreview] = useState(false); + + const handleUserPhotoUpload = (photo: string) => { + setUserPhoto(photo); + }; + + const handleClothesPhotoUpload = (photo: string) => { + setClothesPhoto(photo); + }; + + const handleStartTryOn = () => { + if (userPhoto && clothesPhoto) { + setShowPreview(true); + } + }; + return ( @@ -41,18 +63,21 @@ export default function LandingPage() {
+
+
+
+ {!showPreview ? ( +
+ + +
+ ) : ( + setShowPreview(false)} + /> + )} +
+
+
+
); -} +} \ No newline at end of file -- 2.49.1