web: added the base for the web project

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-26 20:53:11 +02:00
parent 15e29edaa7
commit 8a87fff689
107 changed files with 3607 additions and 512 deletions

View File

@@ -0,0 +1,29 @@
import { NavbarUserDropdown } from "../navbar/NavbarUserDropdown";
import { NavbarMenu } from "../navbar/NavbarMenu";
import { Container } from "../Container";
import Link from "next/link";
type MainLayoutProps = {
children: React.ReactNode;
className?: string;
};
export function MainLayout({ children, className }: MainLayoutProps) {
return (
<>
<div className="h-2 w-full bg-gradient-to-r from-blue-900 to-purple-600"></div>
<nav className="border-b border-border">
<Container className="flex h-20 items-center justify-between ">
<Link href="/" className="text-3xl">mixan</Link>
<div className="flex items-center gap-8">
<NavbarMenu />
<div>
<NavbarUserDropdown />
</div>
</div>
</Container>
</nav>
<main className={className}>{children}</main>
</>
);
}