Skip to content

Commit 4e2e8a6

Browse files
committed
Update card look.
1 parent bfab659 commit 4e2e8a6

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const CardContainer = ({ children }: { children: React.ReactNode }) => (
2-
<section className="justify-around gap-12 flex flex-wrap px-6">
2+
<section className="justify-center gap-6 flex flex-wrap px-6">
33
{children}
44
</section>
55
);

src/components/card/card.astro

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,28 @@ export interface Props {
1313
const { title, subtitle, url, image } = Astro.props;
1414
---
1515

16-
<div class="block min-w-[250px] w-full md:w-[40%] lg:w-[30%] text-center">
16+
<div class="block min-w-[250px] w-full md:w-[40%] lg:w-[30%] p-4 bg-[#D5D6E6] rounded-2xl">
1717
<a href={url} class="block">
1818
<div class="relative w-full mb-4">
1919
<Image
2020
src={image}
2121
width={600}
2222
height={375}
2323
alt=""
24-
class="rounded-2xl aspect-[3/2] w-full"
24+
class="rounded-xl aspect-[3/2] w-full"
2525
loading="lazy"
2626
/>
2727
</div>
28-
<h3 class="text-3xl font-bold mt-2 mb-4 text-primary">{title}</h3>
2928
</a>
30-
<ButtonLink
31-
url={url}
32-
className="mb-4"
33-
isExternal={false}
34-
>
29+
<div class="flex flex-col items-start">
30+
<a href={url} class="block hover:underline">
31+
<h3 class="text-2xl text-primary">{title}</h3>
32+
</a>
33+
<slot />
34+
</div>
35+
<a class="mt-2 text-xs px-2 py-1 bg-[#141F36] text-white rounded-[10px] inline-block leading-4 hover:bg-button-hover not-prose rounded-[5px]" href="{url}">
3536
{subtitle}
36-
</ButtonLink>
37-
<p class="text-lg">
38-
<slot />
39-
</p>
37+
<span class="inline-block ml-1 font-system text-lg leading-4" >
38+
39+
</span></a>
4040
</div>

0 commit comments

Comments
 (0)