2023-07-15 16:55:22 +02:00
|
|
|
/*
|
|
|
|
* The default full-page FreeSewing layout
|
|
|
|
*/
|
|
|
|
export const BaseLayout = ({ children = [] }) => (
|
2023-09-09 17:58:44 +02:00
|
|
|
<div className="flex flex-row items-start w-full justify-between 2xl:px-36 xl:px-12 px-4 gap-0 lg:gap-4 xl:gap-8 3xl: gap-12">
|
2023-07-15 16:55:22 +02:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The left column of the default layout
|
|
|
|
*/
|
|
|
|
export const BaseLayoutLeft = ({ children = [] }) => (
|
2023-09-09 17:58:44 +02:00
|
|
|
<div className="max-w-96 w-1/4 hidden lg:block shrink-0 my-8">{children}</div>
|
2023-07-15 16:55:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The right column of the default layout
|
|
|
|
*/
|
|
|
|
export const BaseLayoutRight = ({ children = [] }) => (
|
2023-09-09 17:58:44 +02:00
|
|
|
<div className="max-w-96 w-1/4 hidden xl:block my-8">{children}</div>
|
2023-07-15 16:55:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The main column for prose (text like docs and so on)
|
|
|
|
*/
|
|
|
|
export const BaseLayoutProse = ({ children = [] }) => (
|
2023-09-09 17:58:44 +02:00
|
|
|
<div className="grow w-full m-auto max-w-prose my-8">{children}</div>
|
2023-07-15 16:55:22 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The central column for wide content (no max-width)
|
|
|
|
*/
|
|
|
|
export const BaseLayoutWide = ({ children = [] }) => (
|
2023-09-09 17:58:44 +02:00
|
|
|
<div className="grow w-full m-auto my-8 grow">{children}</div>
|
2023-07-15 16:55:22 +02:00
|
|
|
)
|