51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import type { Metadata } from 'next';
|
|
import '@styles/sf-pro-display.css';
|
|
import 'swiper/css';
|
|
import 'swiper/css/navigation';
|
|
import 'swiper/css/pagination';
|
|
import '@styles/globals.css';
|
|
import Header from '@/components/Other/Header';
|
|
import Footer from '@/components/Other/Footer';
|
|
import MSWProvider from '@/components/Common/MSWProvider';
|
|
import { ErrorBoundary } from '@/components/Common/ErrorBoundary';
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: 'Nguyễn Công PC - Máy tính, Laptop, Linh kiện chính hãng',
|
|
template: '%s | Nguyễn Công PC',
|
|
},
|
|
description:
|
|
'Nguyễn Công PC - Chuyên cung cấp máy tính, laptop, linh kiện, phụ kiện chính hãng với giá tốt nhất thị trường. Bảo hành uy tín, giao hàng nhanh toàn quốc.',
|
|
keywords: ['máy tính', 'laptop', 'linh kiện máy tính', 'nguyễn công pc', 'pc gaming'],
|
|
authors: [{ name: 'Nguyễn Công PC' }],
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'vi_VN',
|
|
siteName: 'Nguyễn Công PC',
|
|
title: 'Nguyễn Công PC - Máy tính, Laptop, Linh kiện chính hãng',
|
|
description:
|
|
'Chuyên cung cấp máy tính, laptop, linh kiện, phụ kiện chính hãng với giá tốt nhất.',
|
|
},
|
|
robots: { index: true, follow: true },
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html suppressHydrationWarning>
|
|
<body>
|
|
<Header />
|
|
<MSWProvider>
|
|
<main>
|
|
<ErrorBoundary>{children}</ErrorBoundary>
|
|
</main>
|
|
</MSWProvider>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|