mirror of
https://github.com/morten-olsen/bob.git
synced 2026-02-08 01:46:29 +01:00
docs: improved webpage
This commit is contained in:
41
packages/playground/src/components/frame/index.tsx
Normal file
41
packages/playground/src/components/frame/index.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
Navbar,
|
||||
NavbarBrand,
|
||||
NavbarContent,
|
||||
NavbarItem,
|
||||
Link,
|
||||
} from '@nextui-org/react';
|
||||
import { Link as RouterLink } from 'react-router-dom';
|
||||
|
||||
type FrameProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
const Frame = ({ children }: FrameProps) => {
|
||||
return (
|
||||
<div className="h-screen flex flex-col">
|
||||
<Navbar shouldHideOnScroll isBordered isBlurred>
|
||||
<NavbarBrand>
|
||||
<RouterLink to="/">
|
||||
<p className="font-bold text-inherit">Bob</p>
|
||||
</RouterLink>
|
||||
</NavbarBrand>
|
||||
<NavbarContent className="hidden sm:flex gap-4" justify="center">
|
||||
<NavbarItem>
|
||||
<RouterLink to="/">
|
||||
<Link color="foreground">Home</Link>
|
||||
</RouterLink>
|
||||
</NavbarItem>
|
||||
<NavbarItem>
|
||||
<RouterLink to="/experiments">
|
||||
<Link color="foreground">Experiments</Link>
|
||||
</RouterLink>
|
||||
</NavbarItem>
|
||||
</NavbarContent>
|
||||
</Navbar>
|
||||
<div className="flex flex-col flex-1">{children}</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export { Frame };
|
||||
Reference in New Issue
Block a user