🚀 Add Sidebar

This commit is contained in:
Asim Shrestha
2023-04-07 12:56:24 -07:00
parent 5247fe44b0
commit 95ac012c59
4 changed files with 95 additions and 45 deletions

View File

@@ -1,32 +1,23 @@
// import Footer from "../components/Footer";
// import Header from "../components/Header";
import { ReactNode } from "react";
import { type ReactNode } from "react";
import Head from "next/head";
import DottedGridBackground from "../components/DottedGridBackground";
import Header from "../components/Header";
interface LayoutProps {
children: ReactNode;
children: ReactNode;
}
const DefaultLayout = (props: LayoutProps) => {
return (
<div
className="flex min-h-screen flex-col min-h-screen bg-gradient-to-b from-[#2B2B2B] to-[#1F1F1F]"
>
<Head>
<title>Agent-GPT</title>
<meta name="description" content="Agent-GPT b Reworkd.ai"/>
<link rel="icon" href="/favicon.ico"/>
</Head>
<DottedGridBackground>
<main className="flex flex-col justify-center items-center w-screen h-screen ">
{props.children}
</main>
</DottedGridBackground>
{/*<Footer />*/}
</div>
);
return (
<div className="flex min-h-screen min-h-screen flex-col bg-gradient-to-b from-[#2B2B2B] to-[#1F1F1F]">
<Head>
<title>Agent-GPT</title>
<meta name="description" content="Agent-GPT b Reworkd.ai" />
<link rel="icon" href="/favicon.ico" />
</Head>
<DottedGridBackground>{props.children}</DottedGridBackground>
{/*<Footer />*/}
</div>
);
};
export default DefaultLayout;