From 5fed039a181f325e951c90e0ef72619484389707 Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Wed, 21 Oct 2026 05:44:22 +0000 Subject: [PATCH] No ads on the homepage; low-profile text-link ads elsewhere - Homepage: removed the 300x250 "Advertisement" unit (its AdUnit component had no other user, so it is deleted). - Blog pages keep their single text_link unit at the top; ad.js stays in the root layout for them. Co-Authored-By: Claude Opus 5.5 --- apps/web/app/blog/layout.tsx | 2 +- apps/web/app/page.tsx | 4 ---- apps/web/components/AdUnit.tsx | 22 ---------------------- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 apps/web/components/AdUnit.tsx diff --git a/apps/web/app/blog/layout.tsx b/apps/web/app/blog/layout.tsx index f333d08..e685829 100644 --- a/apps/web/app/blog/layout.tsx +++ b/apps/web/app/blog/layout.tsx @@ -2,7 +2,7 @@ * Every blog page carries one CrawlProof unit at the top of the post, * above the content (never at the bottom, against the footer): the text strip, * filled by the ad.js loader the root layout already includes. It collapses - * to nothing when there is no advertiser. Same slot as components/AdUnit. + * to nothing when there is no advertiser. The home page carries no ad. */ export default function BlogLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index 8762007..e63684f 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -5,7 +5,6 @@ import Link from 'next/link'; import CouponCard from '@/components/CouponCard'; import StoreCard from '@/components/StoreCard'; import SearchBar from '@/components/SearchBar'; -import AdUnit from '@/components/AdUnit'; import { getDb } from '@/lib/db'; import { Coupon, Store } from '@/lib/types'; @@ -191,9 +190,6 @@ export default async function HomePage() { )} - {/* Advertisement */} - - {/* Top Stores */}
diff --git a/apps/web/components/AdUnit.tsx b/apps/web/components/AdUnit.tsx deleted file mode 100644 index d99cb58..0000000 --- a/apps/web/components/AdUnit.tsx +++ /dev/null @@ -1,22 +0,0 @@ -const AD_SLOT = '3cdc1ebf-cdad-4079-926a-5096837cf2b2'; - -/** - * Renders a CrawlProof ad slot inline within page content. - * The global crawlproof.com/ad.js loader (in app/layout.tsx) finds the - * `data-cp-ad` element and fills it in place with a 300x250 iframe. - */ -export default function AdUnit({ className = '' }: { className?: string }) { - return ( -
- - Advertisement - -
-
- ); -}