From be0a2079dff643ef96415e61f0916121ed065d12 Mon Sep 17 00:00:00 2001 From: oiupoyt Date: Sun, 11 Oct 2026 10:39:33 +0530 Subject: [PATCH] refactor: simplify layout and remove sidebar ad rails --- src/app/page.tsx | 18 ++-------------- src/components/ToolLayout.tsx | 40 +++++++++-------------------------- 2 files changed, 12 insertions(+), 46 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 778cc6f..87e3181 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,4 @@ import ToolCard from "@/components/ToolCard"; -import SidebarAd from "@/components/SidebarAd"; import { getToolsByCategory, tools } from "@/lib/tools"; import Link from "next/link"; @@ -8,15 +7,8 @@ export default function Home() { const featuredTools = tools.filter((t) => t.featured); return ( -
-
- {/* Left Side Rail (Ultra-wide) */} -
- -
- - {/* Main Content */} -
+
+
{/* Header intro */}
@@ -65,12 +57,6 @@ export default function Home() {
))} -
- - {/* Right Side Rail */} -
- -
); diff --git a/src/components/ToolLayout.tsx b/src/components/ToolLayout.tsx index fde59a2..fa8267f 100644 --- a/src/components/ToolLayout.tsx +++ b/src/components/ToolLayout.tsx @@ -1,42 +1,22 @@ -import SidebarAd from "@/components/SidebarAd"; - interface ToolLayoutProps { title: string; description: string; children: React.ReactNode; - showSideAds?: boolean; } -export default function ToolLayout({ title, description, children, showSideAds = true }: ToolLayoutProps) { +export default function ToolLayout({ title, description, children }: ToolLayoutProps) { return ( -
-
- {/* Left Side Ad (Ultra-wide screens) */} - {showSideAds && ( -
- -
- )} - - {/* Main Tool Content */} -
-
-
-

{title}

-
-

{description}

- -
- {children} -
+
+
+
+
+

{title}

+

{description}

- {/* Right Side Ad (Desktop & Laptops) */} - {showSideAds && ( -
- -
- )} +
+ {children} +
);