pancy fants
This commit is contained in:
parent
a4fd3a3556
commit
b6633d6f25
15 changed files with 339 additions and 116 deletions
|
@ -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>
|
||||
)
|
||||
}
|
17
src/layouts/SingleColumnLayout.tsx
Normal file
17
src/layouts/SingleColumnLayout.tsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue