Skip to content

Commit 9dc0cc4

Browse files
committed
wip
1 parent efb17b1 commit 9dc0cc4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

app/api/og/route.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export async function GET(request: Request) {
88
(
99
<div
1010
style={{
11+
backgroundImage: `url(${"https://llamacoder.io/dynamic-og.png"})`,
12+
backgroundSize: "1200px 630px",
13+
backgroundRepeat: "no-repeat",
14+
backgroundPosition: "center center",
1115
fontSize: 40,
1216
color: "black",
1317
background: "white",
@@ -19,7 +23,7 @@ export async function GET(request: Request) {
1923
alignItems: "center",
2024
}}
2125
>
22-
{prompt}
26+
{prompt && prompt.length > 100 ? prompt.slice(0, 97) + "..." : prompt}
2327
</div>
2428
),
2529
{

public/dynamic-og.png

46.1 KB
Loading

0 commit comments

Comments
 (0)