Skip to content

Commit c9a3951

Browse files
author
rxyhn
committed
chore: update card components
1 parent 81f4d59 commit c9a3951

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/components/Card.astro

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const { url, name, description, highlights, technologies } = Astro.props;
1111
---
1212

1313
<section
14-
class="group flex items-center gap-4 rounded-lg border border-black/25 bg-white/80 p-4 saturate-200 backdrop-blur-sm transition-all duration-300 ease-in-out hover:scale-[1.02] hover:shadow-lg dark:border-white/25 dark:bg-black/50 dark:hover:shadow-white/10"
14+
class="group flex items-center rounded-lg border border-black/25 bg-white/80 p-4 saturate-200 backdrop-blur-sm transition-all duration-300 ease-in-out hover:scale-[1.02] hover:shadow-lg dark:border-white/25 dark:bg-black/50 dark:hover:shadow-white/10"
1515
>
1616
<a href={url} target="_blank" rel="noopener noreferrer" class="w-full">
17-
<div class="w-full">
17+
<div class="flex flex-col gap-2">
1818
<div class="flex items-center gap-2">
1919
<div class="text-base font-bold text-black/80 dark:text-white/80">
2020
{name}
@@ -43,21 +43,19 @@ const { url, name, description, highlights, technologies } = Astro.props;
4343
</g>
4444
</svg>
4545
</div>
46-
<div class="mt-2 flex flex-col gap-2">
47-
<p class="text-sm text-black/80 dark:text-white/80">{description}</p>
48-
<p class="text-sm text-black/50 dark:text-white/50">
49-
{highlights.join(" ")}
50-
</p>
51-
<ul class="flex flex-wrap gap-2">
52-
{
53-
technologies.map((tech) => (
54-
<li class="flex items-center gap-1 rounded-md border border-black/25 bg-neutral-200/50 px-2 py-1 text-xs text-black/80 dark:border-white/25 dark:bg-neutral-800/50 dark:text-white/80">
55-
{tech}
56-
</li>
57-
))
58-
}
59-
</ul>
60-
</div>
46+
<p class="text-sm text-black/80 dark:text-white/80">{description}</p>
47+
<ul class="list-disc pl-5 text-sm text-black/50 dark:text-white/50">
48+
{highlights.map((highlight) => <li>{highlight}</li>)}
49+
</ul>
50+
<ul class="flex flex-wrap gap-2">
51+
{
52+
technologies.map((tech) => (
53+
<li class="rounded-md border border-black/25 bg-neutral-200/50 px-2 py-1 text-xs text-black/80 dark:border-white/25 dark:bg-neutral-800/50 dark:text-white/80">
54+
{tech}
55+
</li>
56+
))
57+
}
58+
</ul>
6159
</div>
6260
</a>
6361
</section>

0 commit comments

Comments
 (0)