Files
worldcup/app/layout.tsx
T

30 lines
1016 B
TypeScript
Raw Normal View History

import type { Metadata } from 'next'
import { Bebas_Neue, Space_Grotesk } from 'next/font/google'
import './globals.css'
import { Nav } from '@/components/nav'
import { AppApolloProvider } from '@/components/apollo-provider'
const bebasNeue = Bebas_Neue({ weight: '400', subsets: ['latin'], variable: '--font-bebas' })
const spaceGrotesk = Space_Grotesk({ subsets: ['latin'], variable: '--font-space' })
export const metadata: Metadata = {
title: { default: 'World Cup', template: '%s · World Cup' },
description: 'Comprehensive World Cup statistics from 1930 to 2026',
icons: {
icon: '/favicon.svg',
},
}
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" data-scroll-behavior="smooth" className={`${bebasNeue.variable} ${spaceGrotesk.variable}`}>
<body>
<AppApolloProvider>
<Nav />
<main className="pt-[60px] min-h-screen">{children}</main>
</AppApolloProvider>
</body>
</html>
)
}