Initial commit
This commit is contained in:
37
app/(main)/layout.tsx
Normal file
37
app/(main)/layout.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
import { Metadata, Viewport } from 'next';
|
||||
import Layout from '../../layout/layout';
|
||||
import ProtectedLayout from '../../components/ProtectedLayout';
|
||||
|
||||
interface MainLayoutProps {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'BTP Xpress',
|
||||
description: 'Votre plateforme de gestion BTP moderne pour tous vos projets de construction.',
|
||||
robots: { index: false, follow: false },
|
||||
openGraph: {
|
||||
type: 'website',
|
||||
title: 'BTP Xpress - Gestion de projets BTP',
|
||||
url: 'https://btpxpress.com',
|
||||
description: 'Votre plateforme de gestion BTP moderne pour tous vos projets de construction.',
|
||||
images: ['https://btpxpress.com/static/social/btpxpress.png'],
|
||||
ttl: 604800
|
||||
},
|
||||
icons: {
|
||||
icon: '/favicon.ico'
|
||||
}
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
initialScale: 1,
|
||||
width: 'device-width'
|
||||
};
|
||||
|
||||
export default function MainLayout({ children }: MainLayoutProps) {
|
||||
return (
|
||||
<ProtectedLayout>
|
||||
<Layout>{children}</Layout>
|
||||
</ProtectedLayout>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user