You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
1.9 KiB
TypeScript
89 lines
1.9 KiB
TypeScript
import { Analytics } from '@vercel/analytics/react'
|
|
import type { Metadata } from 'next'
|
|
import { Inter } from 'next/font/google'
|
|
import './globals.css'
|
|
|
|
const TITLE = 'draw my ui'
|
|
const DESCRIPTION = 'Draw a ui with tldraw.'
|
|
const TWITTER_HANDLE = '@tldraw'
|
|
const TWITTER_CARD = 'social-twitter.png'
|
|
const FACEBOOK_CARD = 'social-og.png'
|
|
const THEME_COLOR = '#FFFFFF'
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL('https://www.tldraw.dev'),
|
|
title: {
|
|
default: TITLE,
|
|
template: `%s • ${TITLE}`,
|
|
},
|
|
description: DESCRIPTION,
|
|
openGraph: {
|
|
title: TITLE,
|
|
description: DESCRIPTION,
|
|
siteName: TITLE,
|
|
type: 'website',
|
|
url: 'https://tldraw.dev',
|
|
images: FACEBOOK_CARD,
|
|
},
|
|
twitter: {
|
|
creator: TWITTER_HANDLE,
|
|
description: DESCRIPTION,
|
|
card: 'summary_large_image',
|
|
images: TWITTER_CARD,
|
|
},
|
|
applicationName: TITLE,
|
|
appleWebApp: {
|
|
capable: true,
|
|
title: TITLE,
|
|
statusBarStyle: 'black',
|
|
},
|
|
formatDetection: {
|
|
telephone: false,
|
|
},
|
|
icons: [
|
|
{ rel: 'mask-icon', url: 'safari-pinned-tab.svg', color: THEME_COLOR },
|
|
{ rel: 'shortcut icon', url: '/favicon.svg' },
|
|
{ rel: 'icon', url: 'favicon-32x32.png', sizes: '32x32' },
|
|
{ rel: 'icon', url: 'favicon-16x16.png', sizes: '16x16' },
|
|
{ rel: 'apple-touch-icon', url: 'touch-icon-iphone.png' },
|
|
{
|
|
rel: 'apple-touch-icon',
|
|
url: 'apple-touch-icon-152x152.png',
|
|
sizes: '152x152',
|
|
},
|
|
{
|
|
rel: 'apple-touch-icon',
|
|
url: 'apple-touch-icon-180x180.png',
|
|
sizes: '180x180',
|
|
},
|
|
{
|
|
rel: 'apple-touch-icon',
|
|
url: 'apple-touch-icon-167x167.png',
|
|
sizes: '167x167',
|
|
},
|
|
],
|
|
}
|
|
|
|
const inter = Inter({ subsets: ['latin'] })
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<head>
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, viewport-fit=cover, maximum-scale=1"
|
|
/>
|
|
</head>
|
|
<body className={inter.className}>
|
|
{children}
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|