From 6ebe4eed3d7f8ef6bedea5dcf742bc73462a8af8 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Fri, 3 Oct 2025 22:04:12 +0200 Subject: [PATCH] fix: footer problems --- src/app/about-us/page.tsx | 4 +-- src/app/components/PageLayout.tsx | 8 ++--- src/app/globals.css | 16 +++++---- src/app/page.tsx | 57 ++++++++++++++----------------- 4 files changed, 40 insertions(+), 45 deletions(-) diff --git a/src/app/about-us/page.tsx b/src/app/about-us/page.tsx index a89aa85..5e6d686 100644 --- a/src/app/about-us/page.tsx +++ b/src/app/about-us/page.tsx @@ -208,7 +208,7 @@ const footerNavigation = { export default function AboutUsPage() { return ( -
+
{/* Background */}
- +
) diff --git a/src/app/components/PageLayout.tsx b/src/app/components/PageLayout.tsx index 72cdec9..1f5e2d7 100644 --- a/src/app/components/PageLayout.tsx +++ b/src/app/components/PageLayout.tsx @@ -25,7 +25,7 @@ export default function PageLayout({ const isMobile = isMobileDevice(); return ( -
+
{showHeader && (
@@ -33,10 +33,10 @@ export default function PageLayout({
)} - {/* Main content now participates in normal document flow */} -
+ {/* Main content grows to fill available space */} +
{children} -
+ {showFooter && (
diff --git a/src/app/globals.css b/src/app/globals.css index 292b445..00cff9c 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -11,12 +11,7 @@ --color-brand-background: #FFFFFF; } -@theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); -} +/* Theme variables moved to :root for compatibility */ @media (prefers-color-scheme: dark) { :root { @@ -25,8 +20,15 @@ } } -body { +html, body { + margin: 0; + padding: 0; + height: 100%; background: var(--background); color: var(--foreground); font-family: Arial, Helvetica, sans-serif; } + +#__next { + height: 100%; +} diff --git a/src/app/page.tsx b/src/app/page.tsx index dd96a7f..c6d56cf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -6,7 +6,7 @@ export default function HomePage() { {/* Hero Section */}
{/* ...existing code (pattern SVG + blurred polygon) ... */}
- {/* Background layering */} -
- {/* ...existing code (absolute layers) ... */} -
-
-
-
+ {/* Background layers */} +
+
+
+
- {/* Content wrapper now fills and centers vertically */} -
-
+ {/* Content wrapper */} +
+
-

+

Profit Planet

-

+

Building a Community that will bring change

-

+

Profit Planet is a platform building a vibrant community where members access diverse services and products from within. Users enjoy benefits like cashback and discounts, fostering a smart, rewarding ecosystem.

- - {/* Removed sm:-mt-44 to prevent height reduction */} -
- {/* ...existing code (image stacks) ... */} -
-
+ {/* Mobile-hidden image gallery */} +
+
+
-
-
+
+
-
+
-
-
+
+
-
+
- - {/* Bottom fade (optional) */} -
-
);