Skip to content

Commit 11d4248

Browse files
committed
add tsconfig.json, image on openGraph preview
1 parent 07167ea commit 11d4248

File tree

4 files changed

+43
-6
lines changed

4 files changed

+43
-6
lines changed

public/img/kv/iroh-kv-og-1.png

342 KB
Loading

src/app/api/og/route.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ export async function GET(request: Request) {
55

66
return new ImageResponse(
77
(
8-
<div tw="flex flex-col w-full h-full items-center justify-center bg-white">
9-
<div tw="bg-gray-50 flex w-full">
8+
<div tw="flex flex-col w-full h-full items-center justify-center bg-iroh-kv-og-1 bg-white">
9+
<div tw="flex w-full">
1010
<div tw="flex flex-col md:flex-row w-full py-12 px-4 m-8 md:items-center justify-between p-8">
11-
<h2 tw="flex flex-col text-3xl sm:text-4xl font-bold tracking-tight text-gray-900 text-left">
12-
<span>{ searchParams.get('title') }</span>
13-
<span tw="text-indigo-600">{ searchParams.get('subtitle') }</span>
14-
</h2>
11+
<h2 tw="flex flex-col text-3xl sm:text-4xl font-bold tracking-tight text-left">
12+
<span className="text-purple-500">Title</span>
13+
<span tw="mt-5 text-lg sm:text-2xl text-gray-500 text-left">Subtitle</span>
14+
</h2>
1515
</div>
1616
</div>
1717
</div>

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ module.exports = {
4646
'iroh-kv-2': "url('/img/kv/iroh-kv-2.png')",
4747
'iroh-kv-3': "url('/img/kv/iroh-kv-3.png')",
4848
'iroh-kv-4': "url('/img/kv/iroh-kv-4.png')",
49+
'iroh-kv-og-1': "url('/img/kv/iroh-kv-og-1.png')",
4950
},
5051
opacity: {
5152
1: '0.01',

tsconfig.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"compilerOptions": {
3+
"lib": [
4+
"dom",
5+
"dom.iterable",
6+
"esnext"
7+
],
8+
"allowJs": true,
9+
"skipLibCheck": true,
10+
"strict": false,
11+
"forceConsistentCasingInFileNames": true,
12+
"noEmit": true,
13+
"incremental": true,
14+
"esModuleInterop": true,
15+
"module": "esnext",
16+
"moduleResolution": "node",
17+
"resolveJsonModule": true,
18+
"isolatedModules": true,
19+
"jsx": "preserve",
20+
"plugins": [
21+
{
22+
"name": "next"
23+
}
24+
],
25+
"strictNullChecks": true
26+
},
27+
"include": [
28+
"next-env.d.ts",
29+
".next/types/**/*.ts",
30+
"**/*.ts",
31+
"**/*.tsx"
32+
],
33+
"exclude": [
34+
"node_modules"
35+
]
36+
}

0 commit comments

Comments
 (0)