From 203295aab69af4492e1f150e152c0a36f92248f1 Mon Sep 17 00:00:00 2001 From: miranshala Date: Tue, 11 Nov 2025 14:49:14 +0100 Subject: [PATCH] responsive --- app/page.tsx | 157 ++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 137 insertions(+), 20 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 4fe3ad1..64bca0d 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -22,6 +22,7 @@ export default function Home() { const { isAuthenticated, user, logout } = useAuth(); const [showSuccess, setShowSuccess] = useState(false); const [userSubscription, setUserSubscription] = useState(null); + const [mobileMenuOpen, setMobileMenuOpen] = useState(false); // Check for success message in URL useEffect(() => { @@ -208,6 +209,35 @@ export default function Home() { + + + Contact + + + + { + e.preventDefault(); + const pricingSection = + document.getElementById("pricing"); + if (pricingSection) { + pricingSection.scrollIntoView({ + behavior: "smooth", + }); + } + }} + className="cursor-pointer" + > + Pricing + + + + + Upload File + + +
My Subscriptions @@ -230,18 +260,43 @@ export default function Home() { ) : ( // Show login/signup buttons when not authenticated <> - setMobileMenuOpen(!mobileMenuOpen)} + className="md:hidden p-2 rounded-md text-gray-700 hover:bg-gray-100" + aria-label="Toggle menu" > - Log In - - - Sign Up - + + {mobileMenuOpen ? ( + + ) : ( + + )} + + + {/* Desktop Login/Signup Buttons */} + )}
@@ -249,26 +304,78 @@ export default function Home() { + {/* Mobile Menu Panel - Only show when logged out */} + {!isAuthenticated && ( +
+
+ {/* Navigation Links */} + setMobileMenuOpen(false)} + className="px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md transition-colors" + > + Contact + + + + {/* Divider */} + +
+ )} + {/* Main Content */}
-
+

Welcome to reYa Render

Whether you're working on animations, visualizations, or still images, our render farm is optimized to deliver high-quality @@ -276,22 +383,32 @@ export default function Home() { take care of the rendering process, saving you time and computing power so you can focus on the creative side of your work.

-
+ + {/* Image below text on mobile */} +
+ 3D Model +
-
+ {/* Image on desktop */} +