2025-11-09 12:07:23 +01:00
import type { Metadata } from 'next' ;
import './globals.css' ;
2025-11-09 13:21:13 +01:00
import { ToastProvider } from '@/components/ui/Toast' ;
2025-11-09 12:07:23 +01:00
export const metadata : Metadata = {
title : 'Figlet UI - ASCII Art Text Generator' ,
2025-11-09 13:21:13 +01:00
description : 'A modern web UI for generating ASCII art text with 373 figlet fonts. Preview custom text in any figlet font, export to multiple formats, and share your creations.' ,
2025-11-09 12:07:23 +01:00
keywords : [ 'figlet' , 'ascii art' , 'text generator' , 'banner' , 'ascii' , 'text art' ] ,
authors : [ { name : 'Valknar' } ] ,
openGraph : {
title : 'Figlet UI - ASCII Art Text Generator' ,
2025-11-09 13:21:13 +01:00
description : 'Generate beautiful ASCII art text with 373 fonts' ,
2025-11-09 12:07:23 +01:00
type : 'website' ,
} ,
} ;
export default function RootLayout ( {
children ,
} : Readonly < {
children : React.ReactNode ;
} > ) {
return (
2025-11-09 13:34:49 +01:00
< html lang = "en" suppressHydrationWarning >
< head >
< script
dangerouslySetInnerHTML = { {
__html : `
( function ( ) {
try {
const theme = localStorage . getItem ( 'theme' ) ;
const prefersDark = window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ;
const shouldBeDark = theme === 'dark' || ( ! theme && prefersDark ) ;
if ( shouldBeDark ) {
document . documentElement . classList . add ( 'dark' ) ;
}
} catch ( e ) { }
} ) ( ) ;
` ,
} }
/ >
< / head >
2025-11-09 12:07:23 +01:00
< body className = "antialiased" >
2025-11-09 13:21:13 +01:00
< ToastProvider >
{ children }
< / ToastProvider >
2025-11-09 12:07:23 +01:00
< / body >
< / html >
) ;
}