website/app/layout.tsx

31 lines
947 B
TypeScript
Raw Normal View History

2023-12-03 23:02:09 +07:00
import Navbar from "./components/Navbar"
import Footer from "./components/Footer"
2023-11-26 21:08:28 +07:00
2023-12-03 23:02:09 +07:00
import type { Metadata } from 'next';
2024-05-03 10:52:31 +07:00
import { Inter } from 'next/font/google';
2023-12-03 23:02:09 +07:00
import './globals.css';
import './components.css';
2024-05-03 10:52:31 +07:00
const inter = Inter({ subsets: ['latin'] });
2023-11-26 21:08:28 +07:00
export const metadata: Metadata = {
2024-05-03 10:52:31 +07:00
title: "Win Pattanaphol - Personal Website",
description: "A hobbyist full-stack developer, high schooler, enjoyer of 60s-80s music, language nerd, a hobbyist electrician from Thailand.",
2023-12-03 23:02:09 +07:00
};
2023-11-26 21:08:28 +07:00
export default function RootLayout({
2023-12-03 23:02:09 +07:00
children,
2023-11-26 21:08:28 +07:00
}: {
2023-12-03 23:02:09 +07:00
children: React.ReactNode;
2023-11-26 21:08:28 +07:00
}) {
2023-12-03 23:02:09 +07:00
return (
2024-05-03 10:52:31 +07:00
<html className={`${inter.className} text-black bg-white dark:text-white dark:bg-slate-900`} lang="en">
2024-09-18 18:29:17 +07:00
<body className="antialiased mt-8 mb-8 lg:max-w-screen-xl min-lg:flex min-lg:flex-col 2xl:mx-auto xl:mx-4 lg:mx-4 max-lg:grid max-lg:place-items-center max-sm:place-items-start">
2023-12-03 23:02:09 +07:00
<Navbar />
{children}
<Footer />
</body>
</html>
);
2023-11-26 21:08:28 +07:00
}