Skip to content

Commit 6214984

Browse files
Add page metadata and OG image
1 parent 3bf6dbe commit 6214984

8 files changed

Lines changed: 47 additions & 8 deletions

File tree

public/og.png

41.7 KB
Loading

public/og.svg

Lines changed: 1 addition & 1 deletion
Loading

src/app/503/page.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
import type { Metadata } from "next";
12
import Link from "next/link";
23
import { cookies } from "next/headers";
34
import { copy } from "@/lib/i18n";
45

6+
export const metadata: Metadata = {
7+
title: "503 — Service Unavailable",
8+
description: "Temporary maintenance or high load.",
9+
robots: {
10+
index: false,
11+
follow: false,
12+
},
13+
};
14+
515
export default function ServiceUnavailable() {
616
const cookieStore = cookies();
717
const language = cookieStore.get("lang")?.value === "en" ? "en" : "tr";

src/app/about/page.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
import type { Metadata } from "next";
12
import Link from "next/link";
23
import { cookies } from "next/headers";
34
import { copy } from "@/lib/i18n";
45

6+
export const metadata: Metadata = {
7+
title: "About — Yamac",
8+
description:
9+
"About Yamac, an Electrical & Electronics student building full-stack projects.",
10+
};
11+
512
export default function AboutPage() {
613
const cookieStore = cookies();
714
const language = cookieStore.get("lang")?.value === "en" ? "en" : "tr";

src/app/contact/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
import type { Metadata } from "next";
12
import Link from "next/link";
23
import { cookies } from "next/headers";
34
import ContactForm from "@/components/ContactForm";
45
import { copy } from "@/lib/i18n";
56

7+
export const metadata: Metadata = {
8+
title: "Contact — Yamac",
9+
description: "Contact Yamac for projects and collaborations.",
10+
};
11+
612
export default function ContactPage() {
713
const cookieStore = cookies();
814
const language = cookieStore.get("lang")?.value === "en" ? "en" : "tr";

src/app/layout.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,27 @@ const mono = JetBrains_Mono({
2222
});
2323

2424
export const metadata: Metadata = {
25-
title: "Kinin Code — Full-Stack Developer",
25+
title: "Kinin Code — Yamac",
2626
description:
27-
"Full-stack developer portfolio with 3D scene, selected projects, and contact form.",
27+
"Electrical & Electronics student portfolio with 3D scene, selected projects, and contact form.",
2828
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL ?? "http://localhost:3000"),
2929
openGraph: {
30-
title: "Kinin Code — Full-Stack Developer",
30+
title: "Kinin Code — Yamac",
3131
description:
32-
"Full-stack developer portfolio with 3D scene, selected projects, and contact form.",
32+
"Electrical & Electronics student portfolio with 3D scene, selected projects, and contact form.",
3333
type: "website",
3434
images: [
3535
{
36-
url: "/og.svg",
36+
url: "/og.png",
3737
width: 1200,
3838
height: 630,
39-
alt: "Kinin Code — Yamaç portfolio",
39+
alt: "Kinin Code — Yamac portfolio",
4040
},
4141
],
4242
},
4343
twitter: {
4444
card: "summary_large_image",
45-
images: ["/og.svg"],
45+
images: ["/og.png"],
4646
},
4747
};
4848

src/app/not-found.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
import type { Metadata } from "next";
12
import Link from "next/link";
23
import { cookies } from "next/headers";
34
import { copy } from "@/lib/i18n";
45

6+
export const metadata: Metadata = {
7+
title: "404 — Not Found",
8+
description: "The page you are looking for does not exist.",
9+
robots: {
10+
index: false,
11+
follow: false,
12+
},
13+
};
14+
515
export default function NotFound() {
616
const cookieStore = cookies();
717
const language = cookieStore.get("lang")?.value === "en" ? "en" : "tr";

src/app/projects/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
import type { Metadata } from "next";
12
import Link from "next/link";
23
import { cookies } from "next/headers";
34
import { getGithubProjects } from "@/lib/github";
45
import { copy } from "@/lib/i18n";
56
import { site } from "@/lib/site";
67

8+
export const metadata: Metadata = {
9+
title: "Projects — Yamac",
10+
description: "Selected GitHub projects by Yamac.",
11+
};
12+
713
export default async function ProjectsPage() {
814
const cookieStore = cookies();
915
const language = cookieStore.get("lang")?.value === "en" ? "en" : "tr";

0 commit comments

Comments
 (0)