49 lines
2.2 KiB
TypeScript
49 lines
2.2 KiB
TypeScript
import type { Metadata } from 'next';
|
|
import { Kanit } from 'next/font/google';
|
|
import '@/styles/globals.css';
|
|
import Header from '@/components/layout/Header';
|
|
import Footer from '@/components/layout/Footer';
|
|
import FloatingContact from '@/components/layout/FloatingContact';
|
|
|
|
const kanit = Kanit({
|
|
subsets: ['latin', 'thai'],
|
|
weight: ['300', '400', '500', '600', '700'],
|
|
variable: '--font-kanit',
|
|
display: 'swap',
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: 'ดีลพลัสเทค - ผู้เชี่ยวชาญด้านวัสดุท่อและอุปกรณ์ระบบท่อ',
|
|
template: '%s | ดีลพลัสเทค',
|
|
},
|
|
description: 'ดีลพลัสเทค - ผู้เชี่ยวชาญด้านวัสดุท่อและอุปกรณ์ระบบท่อ ท่อพีพีอาร์ ท่อ HDPE ท่อ PVC วาล์ว และอุปกรณ์ต่อท่อครบวงจร',
|
|
keywords: ['ท่อพีพีอาร์', 'ท่อ HDPE', 'ท่อ PVC', 'วาล์ว', 'อุปกรณ์ท่อ', 'ดีลพลัสเทค'],
|
|
authors: [{ name: 'Deal Plus Tech' }],
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'th_TH',
|
|
url: 'https://dealplustech.co.th',
|
|
siteName: 'ดีลพลัสเทค',
|
|
title: 'ดีลพลัสเทค - ผู้เชี่ยวชาญด้านวัสดุท่อและอุปกรณ์ระบบท่อ',
|
|
description: 'ดีลพลัสเทค - ผู้เชี่ยวชาญด้านวัสดุท่อและอุปกรณ์ระบบท่อ ท่อพีพีอาร์ ท่อ HDPE ท่อ PVC วาล์ว และอุปกรณ์ต่อท่อครบวงจร',
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="th" className={kanit.variable}>
|
|
<body className="font-sans">
|
|
<Header />
|
|
<main className="min-h-screen">{children}</main>
|
|
<Footer />
|
|
<FloatingContact />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|