Skip to content

Commit 941979b

Browse files
CrawlProof fix: 13 broken links across 12 pages (#9)
* Fix links.crawl_broken: 13 broken links across 12 pages * Fix links.crawl_broken: 13 broken links across 12 pages --------- Co-authored-by: crawlproof[bot] <286981042+crawlproof[bot]@users.noreply.github.com>
1 parent e083245 commit 941979b

2 files changed

Lines changed: 73 additions & 2 deletions

File tree

apps/web/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ export const metadata: Metadata = {
2626
siteName: "c0upons",
2727
type: "website",
2828
locale: "en_US",
29-
images: [{ url: `${BASE}/og-image.png`, width: 1200, height: 630, alt: "c0upons — Community Coupon Codes" }],
29+
images: [{ url: `${BASE}/opengraph-image`, width: 1200, height: 630, alt: "c0upons — Community Coupon Codes" }],
3030
},
3131
twitter: {
3232
card: "summary_large_image",
3333
title: "c0upons — Community Coupon Codes",
3434
description: "Find and share the best coupon codes and deals, updated daily by the community.",
35-
images: [`${BASE}/og-image.png`],
35+
images: [`${BASE}/opengraph-image`],
3636
},
3737
icons: {
3838
icon: "/favicon.svg",

apps/web/app/opengraph-image.tsx

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import { ImageResponse } from "next/og";
2+
3+
export const runtime = "edge";
4+
export const alt = "c0upons — Community Coupon Codes";
5+
export const size = { width: 1200, height: 630 };
6+
export const contentType = "image/png";
7+
8+
export default function Image() {
9+
return new ImageResponse(
10+
(
11+
<div
12+
style={{
13+
background: "#ffffff",
14+
width: "100%",
15+
height: "100%",
16+
display: "flex",
17+
flexDirection: "column",
18+
alignItems: "center",
19+
justifyContent: "center",
20+
fontFamily: "Arial Black, Arial, sans-serif",
21+
}}
22+
>
23+
{/* Orange accent bar */}
24+
<div
25+
style={{
26+
position: "absolute",
27+
top: 0,
28+
left: 0,
29+
right: 0,
30+
height: 12,
31+
background: "#f97316",
32+
}}
33+
/>
34+
{/* Logo text */}
35+
<div
36+
style={{
37+
fontSize: 120,
38+
fontWeight: 900,
39+
color: "#f97316",
40+
letterSpacing: "-2px",
41+
}}
42+
>
43+
c0upons
44+
</div>
45+
{/* Tagline */}
46+
<div
47+
style={{
48+
fontSize: 36,
49+
fontWeight: 400,
50+
color: "#374151",
51+
marginTop: 24,
52+
}}
53+
>
54+
Community Coupon Codes &amp; Deals
55+
</div>
56+
{/* Bottom accent bar */}
57+
<div
58+
style={{
59+
position: "absolute",
60+
bottom: 0,
61+
left: 0,
62+
right: 0,
63+
height: 12,
64+
background: "#f97316",
65+
}}
66+
/>
67+
</div>
68+
),
69+
{ ...size }
70+
);
71+
}

0 commit comments

Comments
 (0)