Skip to content

Commit 3c2aecf

Browse files
committed
feat: A new design for the services cards
1 parent 5af2cda commit 3c2aecf

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/components/Services.astro

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Icon } from "astro-icon/components";
33
import DecryptedText from "./react/DecryptedText";
44
import GlowingHeader from "./react/GlowingHeader";
55
import SpotlightCard from "./react/SpotlightCard";
6+
import GlowingText from "./react/GlowingText";
67
const services: Array<{
78
starting_price: number;
89
title: string;
@@ -68,10 +69,15 @@ const services: Array<{
6869
spotlightColor="rgba(0, 229, 255, 0.2)"
6970
className="mx-auto h-[300px] aspect-square flex flex-col justify-between px-auto py-5 cursor-default"
7071
>
71-
<div>
72-
<h2 class="mx-auto text-xl font-bold">
73-
{service.title}
74-
</h2>
72+
<div class="flex flex-col justify-between h-full gap-3">
73+
<GlowingText
74+
client:only="react"
75+
className="my-auto"
76+
>
77+
<h2 class="mx-auto text-xl font-bold text-center">
78+
{service.title}
79+
</h2>
80+
</GlowingText>
7581
<span class="text-sm text-gray-500">
7682
{service.description}
7783
</span>

0 commit comments

Comments
 (0)