svrjs-nextjs-website/app/(root)/layout.tsx

22 lines
456 B
TypeScript
Raw Normal View History

2024-06-20 15:38:05 +02:00
import Footer from "@/components/shared/Footer";
import Navbar from "@/components/shared/Navbar";
2024-06-22 10:30:51 +02:00
import { Metadata } from "next";
export const metadata: Metadata = {
title: "Home - SVRJS",
};
2024-06-20 15:38:05 +02:00
export default function PageLayout({
2024-06-22 10:30:51 +02:00
children,
2024-06-20 15:38:05 +02:00
}: {
2024-06-22 10:30:51 +02:00
children: React.ReactNode;
2024-06-20 15:38:05 +02:00
}) {
2024-06-22 10:30:51 +02:00
return (
<main className="flex flex-col min-h-screen">
<Navbar />
<div className="flex-grow flex-1">{children}</div>
<Footer />
</main>
);
2024-06-20 15:38:05 +02:00
}