pancy fants

This commit is contained in:
john 2025-05-06 12:53:32 +02:00
parent a4fd3a3556
commit b6633d6f25
15 changed files with 339 additions and 116 deletions

View file

@ -1,15 +0,0 @@
import { PropsWithChildren } from 'react'
import { Link } from 'react-router'
export default function AppLayout({ children }: PropsWithChildren) {
return (
<div>
<nav className={`w-full flex flex-row-reverse px-4 md:px-8 py-0.5`}>
<Link className={`text-gray-800`} to="/signup">
create account
</Link>
</nav>
<main className={`w-full`}>{children}</main>
</div>
)
}

View file

@ -0,0 +1,17 @@
import { PropsWithChildren, ReactNode } from 'react'
interface SingleColumnLayoutProps {
navbar?: ReactNode
}
export default function SingleColumnLayout({
children,
navbar,
}: PropsWithChildren<SingleColumnLayoutProps>) {
return (
<div>
{navbar}
<main className={`w-full max-w-3xl mx-auto`}>{children}</main>
</div>
)
}