vision-agent / app /layout.tsx
MingruiZhang's picture
Layout updates and chat sidebar layout fixes #12
97e41aa unverified
raw history blame
No virus
1.66 kB
import { Toaster } from 'react-hot-toast';
import { GeistSans } from 'geist/font/sans';
import { GeistMono } from 'geist/font/mono';
import '@/app/globals.css';
import { cn } from '@/lib/utils';
import { TailwindIndicator } from '@/components/TailwindIndicator';
import { Providers } from '@/components/Providers';
import { Header } from '@/components/Header';
import { ThemeToggle } from '@/components/ThemeToggle';
export const metadata = {
metadataBase: new URL(`https://${process.env.VERCEL_URL}`),
title: {
default: 'Vision Agent',
template: `%s - Vision Agent`,
},
description: 'By Landing AI',
icons: {
icon: '/landing.png',
shortcut: '/landing.png',
apple: '/landing.png',
},
};
export const viewport = {
themeColor: [
{ media: '(prefers-color-scheme: light)', color: 'white' },
{ media: '(prefers-color-scheme: dark)', color: 'black' },
],
};
interface RootLayoutProps {
children: React.ReactNode;
}
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={cn(
'font-sans antialiased',
GeistSans.variable,
GeistMono.variable,
)}
>
<Toaster />
<Providers
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<div className="flex flex-col min-h-screen">
<Header />
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
</div>
<TailwindIndicator />
</Providers>
</body>
</html>
);
}