Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/app/home-content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import { useI18n } from '@/lib/hooks/useI18n.js';

const INSTALL_CMD = 'curl -fsSL https://qrypt.chat/install.sh | sh';

// qrypt.chat's ad.network listing (a CrawlProof slot). Like the blog's BlogAd,
// a plain cross-origin <iframe> to CrawlProof's server-rendered ad: no
// third-party JavaScript runs in this page.
const AD_NETWORK_CODE = 'LifRx90nnLMtBYAw';
const AD_SLOT = 'db16349c-888d-4f7a-b04e-1a4bf1afcb57';
const AD_FORMAT = 'banner_300x250';

export default function HomeContent() {
const { t } = useI18n();
const [copied, setCopied] = useState(false);
Expand Down Expand Up @@ -51,6 +58,25 @@ export default function HomeContent() {
</div>
</div>

<aside
data-ad-network={AD_NETWORK_CODE}
data-cp-ad=""
data-slot={AD_SLOT}
data-format={AD_FORMAT}
className="container"
style={{ display: 'flex', justifyContent: 'center', padding: '1.5rem 0' }}
>
<iframe
src={`https://crawlproof.com/api/ads/frame?slot=${AD_SLOT}&format=${AD_FORMAT}`}
title="Advertisement"
width={300}
height={250}
scrolling="no"
loading="lazy"
style={{ border: 0, width: 300, height: 250, maxWidth: '100%' }}
/>
</aside>

<section className="features">
<div className="container">
<div className="section-header">
Expand Down
2 changes: 2 additions & 0 deletions src/app/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const SITE_URL = (process.env.NEXT_PUBLIC_APP_URL ?? process.env.NEXT_PUBLIC_BAS
export const metadata = {
alternates: { canonical: '/' },
openGraph: { url: '/' },
// ad.network verifies the site by fetching this page's raw HTML for the code.
other: { 'ad.network': 'LifRx90nnLMtBYAw' },
};

const softwareApplicationJsonLd = {
Expand Down
Loading