Use Grid to dashboard

Took 22 minutes
This commit is contained in:
Lucàs
2023-03-23 15:59:39 +01:00
parent ae9fd9ee16
commit b8a862357f
3 changed files with 37 additions and 21 deletions
+6 -2
View File
@@ -9,7 +9,11 @@ import {
import {useRouter} from 'next/router';
import {signOut, useSession} from 'next-auth/react';
export default function Navbar() {
type Props = {
variant: "static" | "fixed"
}
export default function Navbar({variant = "fixed"}: Props) {
const router = useRouter();
const {data: session, status} = useSession();
@@ -40,7 +44,7 @@ export default function Navbar() {
};
return (
<Box position={'fixed'} zIndex={9999} top={0} width={'100vw'}
<Box position={variant} zIndex={9999} top={0} width={'100vw'}
backdropFilter={'auto'} backdropBlur={'20px'} px={10} py={2}>
<Flex align={'center'}>
<Box flexBasis={'100%'}>