2023-09-03 14:41:19 +07:00
|
|
|
import dynamic from "next/dynamic";
|
2023-08-30 19:06:48 +07:00
|
|
|
import "./globals.css";
|
|
|
|
|
import Navbar from "@/components/Navbar";
|
2023-09-03 14:41:19 +07:00
|
|
|
import { config } from "@fortawesome/fontawesome-svg-core";
|
|
|
|
|
import "@fortawesome/fontawesome-svg-core/styles.css";
|
|
|
|
|
config.autoAddCss = false;
|
2023-08-29 16:57:18 +07:00
|
|
|
|
2023-09-03 13:23:39 +07:00
|
|
|
import "./nprogress.css";
|
2023-08-29 16:57:18 +07:00
|
|
|
export const metadata = {
|
2023-08-30 19:06:48 +07:00
|
|
|
title: "Create Next App",
|
|
|
|
|
description: "Generated by create next app",
|
|
|
|
|
};
|
2023-09-03 14:41:19 +07:00
|
|
|
|
|
|
|
|
const TopProgressBar = dynamic(() => import("@/components/TopProgressBar"), {
|
|
|
|
|
ssr: false,
|
|
|
|
|
});
|
|
|
|
|
|
2023-08-29 16:57:18 +07:00
|
|
|
export default function RootLayout({ children }) {
|
2023-09-03 14:41:19 +07:00
|
|
|
|
2023-08-30 19:06:48 +07:00
|
|
|
return (
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<body>
|
2023-09-03 13:23:39 +07:00
|
|
|
<TopProgressBar />
|
2023-08-30 19:06:48 +07:00
|
|
|
<Navbar />
|
|
|
|
|
{children}
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
2023-08-29 16:57:18 +07:00
|
|
|
}
|