From e62750500271c6d1c6a3d523130486f6c757c5d5 Mon Sep 17 00:00:00 2001 From: Cali Castle Date: Fri, 2 Jun 2023 10:20:31 +0800 Subject: [PATCH] chore: update metadata and font (#4) --- src/app/layout.tsx | 44 ++++++++++++++++++++++++++++++------ src/app/opengraph-image.png | Bin 0 -> 155679 bytes src/app/page.tsx | 9 +++++--- src/app/twitter-image.png | Bin 0 -> 155679 bytes tailwind.config.js | 5 ++++ 5 files changed, 48 insertions(+), 10 deletions(-) create mode 100644 src/app/opengraph-image.png create mode 100644 src/app/twitter-image.png diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 86ec230..8c1c543 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,15 +1,45 @@ import Link from 'next/link' import './globals.css' -import { Inter } from 'next/font/google' +import { Manrope } from 'next/font/google' import { LogoHelmet } from '~/icons' +import type { Metadata } from 'next' -const inter = Inter({ subsets: ['latin'] }) +const fontSans = Manrope({ + subsets: ['latin'], + weight: ['400', '500', '600', '700', '800'], + variable: '--font-sans', +}) +const title = 'Pong' +const description = + 'Pong: The ultimate edge network speed test for your website' export const metadata = { - title: 'Pong', - description: '', + title, + description, manifest: '/site.webmanifest', -} + robots: { + index: true, + follow: true, + googleBot: { + index: true, + follow: true, + }, + }, + openGraph: { + title, + description, + type: 'website', + url: 'https://pong.zol.ai', + siteName: 'Pong, Powered by Zolplay', + }, + twitter: { + site: '@zolplay', + creator: '@zolplay', + card: 'summary_large_image', + title, + description, + }, +} satisfies Metadata export default function RootLayout({ children, @@ -17,8 +47,8 @@ export default function RootLayout({ children: React.ReactNode }) { return ( - - + + {children}