From 8775060846a1c05cd867656097cb5ea514bb792d Mon Sep 17 00:00:00 2001 From: rxyhn Date: Mon, 9 Sep 2024 03:59:31 +0700 Subject: [PATCH] fix: inconsistent colors --- src/components/Card.astro | 60 ++++++++++++++------------------------- src/pages/index.astro | 4 +-- 2 files changed, 24 insertions(+), 40 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index bd50b77..c9a9608 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -16,63 +16,47 @@ const { url, description, highlights, name } = Astro.props as CardProps; class="group relative flex h-full flex-col items-stretch rounded-2xl p-7 duration-300 ease-out sm:p-5" > + class="absolute inset-0 z-20 rounded-2xl border border-dashed border-neutral-600 bg-black duration-300 ease-out group-hover:-translate-x-1 group-hover:-translate-y-1" + > + class="absolute inset-0 z-10 rounded-2xl border border-dashed border-neutral-600 duration-300 ease-out group-hover:translate-x-1 group-hover:translate-y-1" + > - - +

-

- {name} -

+ {name} - - - - - - + + -
-

- {description} -

+ +

{description}

{highlights.join(" ")}

-
+
diff --git a/src/pages/index.astro b/src/pages/index.astro index 527cdb8..7085c04 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -42,13 +42,13 @@ const { name, label, summary } = basics;
Rayhan Kafi Pratama