Skip to content

Commit f84217a

Browse files
committed
Add site configuration and metadata
1 parent 96944c3 commit f84217a

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

config/site.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const siteConfig = {
2+
name: 'zway.app',
3+
url: 'https://zway.vercel.app',
4+
ogImage: 'https://zway.vercel.app/og.png',
5+
description: 'Your go-to web playground for HTML, CSS, and JavaScript.',
6+
links: {
7+
twitter: 'https://x.com/jozefzin',
8+
github: 'https://github.com/JJozef/zway.app'
9+
}
10+
}
File renamed without changes.

src/app/layout.js

+46-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,59 @@ import { ThemeProvider } from '@/provider/theme-provider'
77

88
import AppProviders from '@/provider/app-providers'
99
import MenubarNavigation from '@/components/menubar-navigation'
10+
import { siteConfig } from '../../config/site'
1011

1112
export const fontSans = FontSans({
1213
subsets: ['latin'],
1314
variable: '--font-sans'
1415
})
1516

1617
export const metadata = {
17-
title: 'zway.app | Real-time HTML, CSS, JavaScript Playground',
18-
description:
19-
'Your go-to web playground for HTML, CSS, and JavaScript. Code, tweak, and visualize your creations instantly with our live editor.'
18+
title: siteConfig.name,
19+
description: siteConfig.description,
20+
keywords: [
21+
'Next.js',
22+
'React',
23+
'Tailwind CSS',
24+
'Playground',
25+
'HTML',
26+
'CSS',
27+
'JavaScript',
28+
'Code',
29+
'Editor',
30+
'Real-time',
31+
'Monaco Editor'
32+
],
33+
authors: [
34+
{
35+
name: 'Jose Ignacio (@Jozefzin)',
36+
url: 'https://zway.vercel.app'
37+
}
38+
],
39+
creator: 'Jose Ignacio (@Jozefzin)',
40+
openGraph: {
41+
type: 'website',
42+
locale: 'en_US',
43+
url: siteConfig.url,
44+
title: siteConfig.name,
45+
description: siteConfig.description,
46+
siteName: siteConfig.name,
47+
images: [
48+
{
49+
url: siteConfig.ogImage,
50+
width: 1200,
51+
height: 630,
52+
alt: siteConfig.name
53+
}
54+
]
55+
},
56+
twitter: {
57+
card: 'summary_large_image',
58+
title: siteConfig.name,
59+
description: siteConfig.description,
60+
images: [siteConfig.ogImage],
61+
creator: '@Jozefzin'
62+
}
2063
}
2164

2265
export default function RootLayout({ children }) {

0 commit comments

Comments
 (0)