From a33eaaecd1c30f7fd03b7fb45073d2d0c5de1bc8 Mon Sep 17 00:00:00 2001 From: rxyhn Date: Tue, 10 Sep 2024 15:41:07 +0700 Subject: [PATCH] fix: inconsistent styles --- src/components/Boxes.tsx | 8 ++--- src/components/Card.astro | 70 ++++++++++++++++++--------------------- 2 files changed, 36 insertions(+), 42 deletions(-) diff --git a/src/components/Boxes.tsx b/src/components/Boxes.tsx index 73bb8ed..6deecfa 100644 --- a/src/components/Boxes.tsx +++ b/src/components/Boxes.tsx @@ -52,11 +52,11 @@ export default function Boxes({ className = "" }: GridProps) { {/* Left gradient overlay */}
-
+
{Array.from({ length: rows }).map((_, rowIndex) => (
{Array.from({ length: Math.ceil(columns / 2) }).map( @@ -74,11 +74,11 @@ export default function Boxes({ className = "" }: GridProps) { {/* Right gradient overlay */}
-
+
{Array.from({ length: rows }).map((_, rowIndex) => (
{Array.from({ length: Math.ceil(columns / 2) }).map( diff --git a/src/components/Card.astro b/src/components/Card.astro index 78de430..f088b42 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -13,48 +13,42 @@ const { url, description, highlights, name } = Astro.props as CardProps; href={url} target="_blank" rel="noopener noreferrer" - class="group relative flex h-full flex-col items-stretch rounded-2xl p-7 duration-300 ease-out sm:p-5" + class="group relative flex h-full flex-col gap-3 rounded-lg border border-white/25 bg-black p-4 transition-colors duration-300 ease-in-out hover:bg-white/10" > - - - -
-

+
+
+

{name} - - - - - -

-

{description}

-

+ + + + + + +

+
+

{description}

+

{highlights.join(" ")}

- +