Match font for launcher flag

This commit is contained in:
Lncvrt committed 2026-05-07 14:03:59 -07:00
1 parent c0c43ef79f
commit 68fd34f095
1 file changed
+35 -19
+35 -19
View File
@@ -1,6 +1,6 @@
'use client' 'use client'
import { Lexend } from 'next/font/google' import { Lexend, Roboto } from 'next/font/google'
import './globals.css' import './globals.css'
import { Suspense } from 'react' import { Suspense } from 'react'
import { useSearchParams } from 'next/navigation' import { useSearchParams } from 'next/navigation'
@@ -9,6 +9,10 @@ const lexend = Lexend({
subsets: ['latin'] subsets: ['latin']
}) })
const roboto = Roboto({
subsets: ['latin']
})
function Layout ({ function Layout ({
children children
}: Readonly<{ }: Readonly<{
@@ -17,9 +21,21 @@ function Layout ({
const params = useSearchParams() const params = useSearchParams()
return ( return (
<body className={(params.get('theme') ?? 'blue') + '-theme'}> <html
{children} lang='en'
</body> className={params.get('launcher') ? roboto.className : lexend.className}
>
<head>
<link
rel='icon'
type='image/png'
href='https://cdn.lncvrt.xyz/pfp-round.png'
/>
</head>
<body className={(params.get('theme') ?? 'blue') + '-theme'}>
{children}
</body>
</html>
) )
} }
@@ -29,23 +45,23 @@ export default function RootLayout ({
children: React.ReactNode children: React.ReactNode
}>) { }>) {
return ( return (
<html lang='en' className={lexend.className}> <Suspense
<head> fallback={
<link <html lang='en' className={lexend.className}>
rel='icon' <head>
type='image/png' <link
href='https://cdn.lncvrt.xyz/pfp-round.png' rel='icon'
/> type='image/png'
</head> href='https://cdn.lncvrt.xyz/pfp-round.png'
<Suspense />
fallback={ </head>
<body className='blue-theme'> <body className='blue-theme'>
<p className='px-8 -mt-2 -mb-2 text-center'>Loading...</p> <p className='px-8 -mt-2 -mb-2 text-center'>Loading...</p>
</body> </body>
} </html>
> }
<Layout>{children}</Layout> >
</Suspense> <Layout>{children}</Layout>
</html> </Suspense>
) )
} }