Created
September 1, 2023 15:32
-
-
Save mfrancois3k/235fad81631be3e412cc823b2ca151f7 to your computer and use it in GitHub Desktop.
react navigation #React
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './globals.css' | |
import NavBar from "../app/components/navbar"; | |
export const metadata = { | |
title: 'Create Next App', | |
description: 'Gennerated by create next app', | |
} | |
export default function RootLayout({ | |
children, | |
}) { | |
return ( | |
<html lang="en"> | |
<body className="bg-gradient-to-tr overflow-x-hidden min-w-screen from-zinc-950 via-stone-900 to-neutral-950 flex min-h-screen flex-col items-center justify-between"> | |
<main className="p-4 py-24 gap-6 w-full lg:w-[55%]"> | |
<section className="w-full flex gap-4 justify-start mb-6 p-2"> | |
<div> | |
<img | |
src="https://avatars.githubusercontent.com/u/68690233?s=100&v=4" | |
alt="avatar" | |
className="w-12 h-12 rounded-full shadow-lg grayscale hover:grayscale-0 duration-300" | |
/> | |
</div> | |
<div className="flex flex-col gap-2 justify-center"> | |
<h2 className="mb-0 text-zinc-100 font-bold">Ashish</h2> | |
<p className="mb-0 text-zinc-400 font-semibold leading-none"> | |
Student • Dev • Ailurophile | |
</p> | |
</div> | |
</section> | |
<NavBar /> | |
{children} | |
</main> | |
</body> | |
</html> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment