feat: optimize grid responsiveness

This commit is contained in:
2023-08-02 17:35:10 +02:00
parent 289b699c12
commit c8c745bb05
4 changed files with 14 additions and 7 deletions

View File

@ -12,7 +12,7 @@ export function Card(
class="text-white rounded-3xl shadow-md p-4 relative overflow-hidden
lg:w-56 lg:h-56
sm:w-48 sm:h-48
w-32 h-32"
w-[37vw] h-[37vw]"
>
<div class="h-full flex flex-col justify-between relative z-10">
<div>

View File

@ -2,10 +2,7 @@ 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))" }}
>
<div class="grid gap-4 py-6 custom-grid">
{children}
</div>
);