187ee2e312
Wikipedia stores match times as "6:00 p.m." (1-digit hour) which didn't
match the \d{2}:\d{2} regex, producing NULL for those matches. Introduced
parseTime12h() to handle 1-2 digit hours + AM/PM and convert to 24h.
Also sort upcomingMatches by NULLS LAST so unscheduled games appear after
timed ones rather than first. Dropped "openfootball" data attribution.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
52 lines
2.0 KiB
TypeScript
52 lines
2.0 KiB
TypeScript
import type { Metadata } from 'next'
|
|
import { Bebas_Neue, Space_Grotesk } from 'next/font/google'
|
|
import Script from 'next/script'
|
|
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: [
|
|
{ url: '/favicon.svg', type: 'image/svg+xml' },
|
|
{ url: '/favicon-32x32.png', sizes: '32x32', type: 'image/png' },
|
|
],
|
|
apple: [
|
|
{ url: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png' },
|
|
],
|
|
},
|
|
}
|
|
|
|
const umamiId = process.env.UMAMI_ID
|
|
const umamiSrc = process.env.UMAMI_SRC
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="en" data-scroll-behavior="smooth" className={`${bebasNeue.variable} ${spaceGrotesk.variable}`}>
|
|
<body>
|
|
{umamiId && umamiSrc && (
|
|
<Script src={umamiSrc} data-website-id={umamiId} strategy="lazyOnload" />
|
|
)}
|
|
<AppApolloProvider>
|
|
<Nav />
|
|
<main className="pt-[60px] min-h-screen">{children}</main>
|
|
<footer className="border-t mt-8" style={{ borderColor: 'rgba(34,197,94,0.08)' }}>
|
|
<div className="max-w-[1200px] mx-auto px-7 py-6 flex flex-col sm:flex-row items-center justify-between gap-2 text-[11px] text-[#1a3a22]">
|
|
<span>© {new Date().getFullYear()} World Cup Statistics.</span>
|
|
<a href="https://dev.pivoine.art" target="_blank" rel="noopener noreferrer"
|
|
className="text-[#2a5c35] hover:text-[#22c55e] transition-colors">
|
|
dev.pivoine.art
|
|
</a>
|
|
</div>
|
|
</footer>
|
|
</AppApolloProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|