feat: better layout in a lot of places
This commit is contained in:
12
components/Grid.tsx
Normal file
12
components/Grid.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ComponentChildren } from "preact";
|
||||
|
||||
export const Grid = ({ children }: { children: ComponentChildren }) => {
|
||||
return (
|
||||
<div
|
||||
class="grid gap-4 py-6"
|
||||
style={{ gridTemplateColumns: "repeat(auto-fit, minmax(200px, 1fr))" }}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user