39 lines
1.3 KiB
TypeScript
39 lines
1.3 KiB
TypeScript
import type {Metadata, Viewport} from 'next';
|
|
import type {ReactNode} from 'react';
|
|
import {Vazirmatn} from 'next/font/google';
|
|
import './globals.css';
|
|
import Providers from './providers';
|
|
import Header from '@/components/Header';
|
|
import Footer from '@/components/Footer';
|
|
import DevelopmentNotice from '@/components/DevelopmentNotice';
|
|
|
|
const vazirmatn = Vazirmatn({
|
|
subsets: ['arabic'],
|
|
variable: '--font-vazirmatn',
|
|
display: 'swap',
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'روبات مارکت | دستگاههای وندینگ هوشمند',
|
|
description: 'روبات مارکت؛ دستگاههای فروش خودکار هوشمند با مدیریت آنلاین، تحویل نرم و طراحی مدرن.',
|
|
};
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: '#00a693',
|
|
};
|
|
|
|
export default function RootLayout({children}: {children: ReactNode}) {
|
|
return (
|
|
<html lang="fa" dir="rtl" className={`${vazirmatn.variable} light`} suppressHydrationWarning>
|
|
<body className="bg-page text-primary antialiased transition-colors duration-300">
|
|
<Providers>
|
|
<Header />
|
|
{children}
|
|
<Footer />
|
|
<DevelopmentNotice />
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|