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
+20 -4
+20 -4
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 (
<html
lang='en'
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'}> <body className={(params.get('theme') ?? 'blue') + '-theme'}>
{children} {children}
</body> </body>
</html>
) )
} }
@@ -29,6 +45,8 @@ export default function RootLayout ({
children: React.ReactNode children: React.ReactNode
}>) { }>) {
return ( return (
<Suspense
fallback={
<html lang='en' className={lexend.className}> <html lang='en' className={lexend.className}>
<head> <head>
<link <link
@@ -37,15 +55,13 @@ export default function RootLayout ({
href='https://cdn.lncvrt.xyz/pfp-round.png' href='https://cdn.lncvrt.xyz/pfp-round.png'
/> />
</head> </head>
<Suspense
fallback={
<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> <Layout>{children}</Layout>
</Suspense> </Suspense>
</html>
) )
} }