feat: init
This commit is contained in:
21
components/layouts/main.tsx
Normal file
21
components/layouts/main.tsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
export type Props = {
|
||||
children: ComponentChildren;
|
||||
title?: string;
|
||||
name?: string;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
export const MainLayout = ({ children }: Props) => {
|
||||
return (
|
||||
<>
|
||||
<main
|
||||
class="max-w-2xl mx-auto lg:max-w-4xl py-5"
|
||||
style={{ fontFamily: "Work Sans" }}
|
||||
>
|
||||
{children}
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user