Skip to content

Commit 044fa1b

Browse files
committed
og用の画像追加など
1 parent 2a5504d commit 044fa1b

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

app/layout.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ export const metadata: Metadata = {
2020
template: "%s - my.code();",
2121
default: "my.code();",
2222
},
23+
openGraph: {
24+
type: "website",
25+
siteName: "my.code();",
26+
images: "/icon_title.png",
27+
},
28+
twitter: {
29+
card: "summary",
30+
site: "@utokyo_code",
31+
images: "/icon_pad.png",
32+
},
2333
};
2434

2535
export default async function RootLayout({

app/manifest.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ export default function manifest(): MetadataRoute.Manifest {
88
description: pageMetadata.description as string,
99
start_url: "/",
1010
display: "standalone",
11-
// TODO:
12-
// background_color: "#fff",
13-
// theme_color: "#fff",
11+
background_color: "#fef7f2", // base-100
12+
theme_color: "#ba6900", // primary
1413
icons: [
14+
{
15+
src: "/icon_pad.png", // これだけ背景色もついている
16+
sizes: "512x512",
17+
purpose: "maskable",
18+
type: "image/png",
19+
},
1520
{
1621
src: "/favicon.ico",
1722
sizes: "any",

app/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ export default async function Home() {
2222
const pagesList = await getPagesList();
2323
return (
2424
<div className="w-full p-4 pb-16 md:pb-20 lg:pb-24">
25+
<figure className="border w-[1200px] h-[630px]">
26+
<div className="flex gap-1 items-center justify-center w-[240px] h-[126px] scale-500 origin-top-left">
27+
<img src="/icon.svg" alt="my.code(); Logo" className="size-[48px]" />
28+
<span className="text-[32px] font-bold font-mono drop-shadow-sm text-primary">
29+
my.code();
30+
</span>
31+
</div>
32+
</figure>
2533
<div className="max-w-docs mx-auto">
2634
<div
2735
className={clsx(

public/icon_pad.png

17.3 KB
Loading

public/icon_title.png

115 KB
Loading

0 commit comments

Comments
 (0)