Skip to content

Commit bc3d282

Browse files
committed
fix og image
1 parent af324c0 commit bc3d282

File tree

1 file changed

+54
-43
lines changed

1 file changed

+54
-43
lines changed

apps/docs/app/og/docs/[...slug]/route.tsx

Lines changed: 54 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,39 @@ export async function GET(
2424
flexDirection: "column",
2525
alignItems: "flex-start",
2626
justifyContent: "flex-end",
27-
backgroundColor: "#09090b",
27+
backgroundColor: "#000000",
2828
padding: "60px 80px",
2929
position: "relative",
3030
}}
3131
>
32-
{/* Background gradient */}
32+
{/* Spotlight gradient - matching hero aesthetic */}
3333
<div
3434
style={{
3535
position: "absolute",
36-
top: 0,
37-
left: 0,
38-
right: 0,
39-
bottom: 0,
36+
top: "-40%",
37+
left: "20%",
38+
width: "800px",
39+
height: "600px",
4040
background:
41-
"radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.3), transparent)",
41+
"radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 70%)",
42+
transform: "rotate(-15deg)",
4243
}}
4344
/>
4445

45-
{/* Grid pattern overlay */}
46+
{/* Secondary subtle glow */}
47+
<div
48+
style={{
49+
position: "absolute",
50+
top: "0%",
51+
right: "5%",
52+
width: "500px",
53+
height: "400px",
54+
background:
55+
"radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03), transparent 60%)",
56+
}}
57+
/>
58+
59+
{/* Subtle grid pattern */}
4660
<div
4761
style={{
4862
position: "absolute",
@@ -51,7 +65,7 @@ export async function GET(
5165
right: 0,
5266
bottom: 0,
5367
backgroundImage:
54-
"linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px)",
68+
"linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px)",
5569
backgroundSize: "60px 60px",
5670
}}
5771
/>
@@ -64,36 +78,32 @@ export async function GET(
6478
left: "80px",
6579
display: "flex",
6680
alignItems: "center",
67-
gap: "12px",
81+
gap: "16px",
6882
}}
6983
>
70-
<div
71-
style={{
72-
width: "40px",
73-
height: "40px",
74-
borderRadius: "8px",
75-
backgroundColor: "#a855f7",
76-
display: "flex",
77-
alignItems: "center",
78-
justifyContent: "center",
79-
}}
84+
{/* Pixel-art D logo - black bg with white D */}
85+
<svg
86+
aria-hidden="true"
87+
height="44"
88+
style={{ borderRadius: "4px" }}
89+
viewBox="0 0 8 8"
90+
width="44"
91+
xmlns="http://www.w3.org/2000/svg"
8092
>
81-
<svg
82-
aria-hidden="true"
83-
fill="white"
84-
height="24"
85-
viewBox="0 0 24 24"
86-
width="24"
87-
>
88-
<path d="M3 3v18h18V3H3zm16 16H5V5h14v14zM7 7h2v10H7V7zm4 4h2v6h-2v-6zm4-2h2v8h-2V9z" />
89-
</svg>
90-
</div>
93+
<path d="M0 0h8v8H0z" fill="#000" />
94+
<path
95+
d="M1 1h1v6H1zm1 0h4v1H2zm4 1h1v1H6zm0 1h1v1H6zm0 1h1v1H6zm0 1h1v1H6zM2 6h4v1H2zm1-3h1v1H3zm1 1h1v1H4z"
96+
fill="#fff"
97+
/>
98+
</svg>
9199
<span
92100
style={{
93-
color: "#fafafa",
94-
fontSize: "24px",
101+
color: "#ffffff",
102+
fontSize: "22px",
95103
fontWeight: 600,
96-
letterSpacing: "-0.02em",
104+
fontFamily: "monospace",
105+
letterSpacing: "0.1em",
106+
textTransform: "uppercase",
97107
}}
98108
>
99109
Databuddy
@@ -108,18 +118,18 @@ export async function GET(
108118
gap: "8px",
109119
marginBottom: "24px",
110120
padding: "8px 16px",
111-
backgroundColor: "rgba(168, 85, 247, 0.15)",
121+
backgroundColor: "rgba(255, 255, 255, 0.06)",
112122
borderRadius: "9999px",
113-
border: "1px solid rgba(168, 85, 247, 0.3)",
123+
border: "1px solid rgba(255, 255, 255, 0.1)",
114124
}}
115125
>
116126
<span
117127
style={{
118-
color: "#a855f7",
119-
fontSize: "14px",
128+
color: "#a3a3a3",
129+
fontSize: "13px",
120130
fontWeight: 500,
121131
textTransform: "uppercase",
122-
letterSpacing: "0.05em",
132+
letterSpacing: "0.08em",
123133
}}
124134
>
125135
Documentation
@@ -129,8 +139,8 @@ export async function GET(
129139
{/* Title */}
130140
<h1
131141
style={{
132-
color: "#fafafa",
133-
fontSize: "64px",
142+
color: "#ffffff",
143+
fontSize: "60px",
134144
fontWeight: 700,
135145
lineHeight: 1.1,
136146
letterSpacing: "-0.03em",
@@ -145,9 +155,9 @@ export async function GET(
145155
{page.data.description && (
146156
<p
147157
style={{
148-
color: "#a1a1aa",
158+
color: "#737373",
149159
fontSize: "24px",
150-
lineHeight: 1.4,
160+
lineHeight: 1.5,
151161
maxWidth: "800px",
152162
}}
153163
>
@@ -168,8 +178,9 @@ export async function GET(
168178
>
169179
<span
170180
style={{
171-
color: "#71717a",
181+
color: "#525252",
172182
fontSize: "18px",
183+
fontFamily: "monospace",
173184
}}
174185
>
175186
databuddy.cc/docs

0 commit comments

Comments
 (0)