Skip to content

Commit 9473e79

Browse files
ralyodioclaude
andauthored
Move the ad out of the footer to the top of the content (#69)
Anthony: no ads in footers. The root layout rendered four data-cp-ad units (300x250, 728x90, 320x50, text_link) after <Footer/>. Replaced them with one unit at the top of <main> (no data-format, so ad.js sizes it to the container). ad.js loader unchanged. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent e4df390 commit 9473e79

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎apps/web/app/layout.tsx‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ export default function RootLayout({ children }: { children: React.ReactNode })
8585
<html lang="en">
8686
<body className="flex min-h-screen flex-col">
8787
<Header />
88-
<main className="flex-1">{children}</main>
88+
<main className="flex-1">
89+
{/* One CrawlProof unit at the top of the content, never by the footer.
90+
* No data-format: ad.js picks the size from the container width. */}
91+
<div className="mx-auto max-w-6xl px-5 pt-6">
92+
<div data-cp-ad="" data-slot="8d21a830-acfe-40ba-9d0d-0078d66ca479" />
93+
</div>
94+
{children}
95+
</main>
8996
<Footer />
90-
<Script data-site="4f356371-83a0-4cb2-b570-75b961e6ddcb" src="https://crawlproof.com/stats.js" strategy="afterInteractive" />
91-
<div data-cp-ad="" data-slot="8d21a830-acfe-40ba-9d0d-0078d66ca479" data-format="banner_300x250" />
92-
<div data-cp-ad="" data-slot="8d21a830-acfe-40ba-9d0d-0078d66ca479" data-format="banner_728x90" />
93-
<div data-cp-ad="" data-slot="8d21a830-acfe-40ba-9d0d-0078d66ca479" data-format="banner_320x50" />
94-
<div data-cp-ad="" data-slot="8d21a830-acfe-40ba-9d0d-0078d66ca479" data-format="text_link" />
97+
<Script data-site="4f356371-83a0-4cb2-b570-75b961e6ddcb" src="https://crawlproof.com/stats.js" strategy="afterInteractive" />
9598
<Script src="https://crawlproof.com/ad.js" strategy="afterInteractive" />
9699
</body>
97100
</html>

0 commit comments

Comments
 (0)