-
Notifications
You must be signed in to change notification settings - Fork 153
/
page.tsx
45 lines (41 loc) · 1.01 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import type { Metadata } from "next";
import OgPhoto from "./assets/og.png";
import { Code } from "./code";
import { BASE_URL } from "@/utils/common";
const title = "Create beautiful images of your code";
const description =
"Turn your code into beautiful images. Choose from a range of syntax colors, hide or show the background, and toggle between a dark and light window.";
const ogUrl = OgPhoto.src;
export const metadata: Metadata = {
title: title,
description: description,
openGraph: {
url: BASE_URL,
title: title,
description: description,
images: [
{
url: ogUrl,
width: 1200,
height: 630,
alt: title,
},
],
},
twitter: {
title: title,
description: description,
images: [
{
url: ogUrl,
width: 1200,
height: 630,
alt: title,
},
],
},
keywords: "generate, create, convert, source, code, snippet, image, picture, share, export",
};
export default function Page() {
return <Code />;
}