website/app/layout.tsx

29 lines
897 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-12-21 12:14:17 +07:00
import NextNProgress from "nextjs-progressbar"
2023-11-26 21:08:28 +07:00
2023-12-03 23:02:09 +07:00
import type { Metadata } from 'next';
import './globals.css';
import './components.css';
2023-11-26 21:08:28 +07:00
export const metadata: Metadata = {
title: "Thanawin Pattanaphol - ธนาวินทร์ พัฒนผล",
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 (
<html className="text-black bg-white dark:text-white dark:bg-slate-900" lang="en">
<body className="antialiased mt-8 mb-8 lg:max-w-4xl min-lg:flex min-lg:flex-col lg:mx-auto max-lg:grid max-lg:place-items-center max-sm:place-items-start">
<Navbar />
{children}
<Footer />
</body>
</html>
);
2023-11-26 21:08:28 +07:00
}