Skip to content

Commit 5dcde4e

Browse files
committed
chore: fmt
1 parent 22ae8c1 commit 5dcde4e

2 files changed

Lines changed: 24 additions & 19 deletions

File tree

app/[lang]/layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ export function generateStaticParams() {
99
return staticLangParams;
1010
}
1111

12-
export async function generateMetadata({ params }: LangLayoutProps): Promise<Metadata> {
12+
export async function generateMetadata(
13+
{ params }: LangLayoutProps,
14+
): Promise<Metadata> {
1315
const lang = (await params).lang;
14-
const title = lang === 'ja' ? 'ツールズ' : 'Tools';
16+
const title = lang === "ja" ? "ツールズ" : "Tools";
1517

1618
return {
17-
metadataBase: new URL('https://tools.ryu.app'),
19+
metadataBase: new URL("https://tools.ryu.app"),
1820
title,
1921
openGraph: {
2022
title,

app/[lang]/og.webp/route.tsx

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
1-
import { ImageResponse } from 'next/og';
1+
import { ImageResponse } from "next/og";
22

33
export function generateStaticParams() {
44
return [
5-
{ lang: 'en' },
6-
{ lang: 'ja' },
5+
{ lang: "en" },
6+
{ lang: "ja" },
77
];
88
}
99

10-
export async function GET(_: Request, { params }: { params: Promise<{ lang: string }> }) {
11-
const lang = (await params).lang
12-
const text = lang === 'ja' ? 'ツールズ' : 'Tools';
10+
export async function GET(
11+
_: Request,
12+
{ params }: { params: Promise<{ lang: string }> },
13+
) {
14+
const lang = (await params).lang;
15+
const text = lang === "ja" ? "ツールズ" : "Tools";
1316

1417
return new ImageResponse(
1518
(
1619
<div
1720
style={{
18-
height: '100%',
19-
width: '100%',
20-
display: 'flex',
21-
flexDirection: 'column',
22-
alignItems: 'center',
23-
justifyContent: 'center',
24-
backgroundColor: '#0a0a0a',
21+
height: "100%",
22+
width: "100%",
23+
display: "flex",
24+
flexDirection: "column",
25+
alignItems: "center",
26+
justifyContent: "center",
27+
backgroundColor: "#0a0a0a",
2528
fontSize: 120,
2629
fontWeight: 700,
27-
color: 'white',
30+
color: "white",
2831
}}
2932
>
3033
<div>
@@ -35,6 +38,6 @@ export async function GET(_: Request, { params }: { params: Promise<{ lang: stri
3538
{
3639
width: 1200,
3740
height: 630,
38-
}
41+
},
3942
);
40-
}
43+
}

0 commit comments

Comments
 (0)