Skip to content

Commit f691c2c

Browse files
committed
style: phase two opensource page
1 parent 5854508 commit f691c2c

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

src/components/Card.astro

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,32 @@ const { title, description, imageSrc, imageAlt, url, icon = 'github' } = Astro.p
77
---
88

99
<div
10-
class="border-midnight-fjord bg-glacier-mist-700 relative flex flex-col justify-between gap-8 border px-9 py-8 md:gap-10 md:px-11 md:py-10 lg:gap-14 lg:px-15 lg:py-14"
10+
class="border-midnight-fjord bg-glacier-mist-700 relative flex flex-col justify-between gap-3 border p-6 md:gap-6 lg:gap-8 lg:p-9 xl:p-11"
1111
>
1212
<div class="flex items-start">
1313
{imageSrc && <Image src={imageSrc} alt={imageAlt || ''} class="size-auto max-h-16" />}
1414
</div>
1515

1616
<div class="flex items-end-safe justify-between gap-10">
17-
<div class="font-alliance text-midnight-fjord max-w-sm text-xl leading-[28px]">
18-
<h3 class="font-canela mb-6 text-4xl leading-tight font-normal tracking-tight">{title}</h3>
17+
<div class="datum-text-sm">
18+
<div class="mb-2 flex items-center gap-3">
19+
<h3 class="datum-text-xl font-medium">{title}</h3>
20+
21+
{
22+
url && (
23+
<a
24+
class="text-canyon-clay---links hover:text-canyon-clay---links/80 transition-all duration-200"
25+
href={url}
26+
target="_blank"
27+
rel="noopener noreferrer"
28+
>
29+
<Icon name={icon} size="md" />
30+
</a>
31+
)
32+
}
33+
</div>
34+
1935
<p>{description}</p>
2036
</div>
21-
{
22-
url && (
23-
<a
24-
class="border-midnight-fjord/10 hover:border-midnight-fjord/30 rounded-md border px-5 py-3 transition-all duration-200"
25-
href={url}
26-
target="_blank"
27-
rel="noopener noreferrer"
28-
>
29-
<Icon name={icon} size="md" />
30-
</a>
31-
)
32-
}
3337
</div>
3438
</div>

src/pages/resources/open-source.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const description = fm.description;
3636

3737
<div class="section--block bg-glacier-mist-700">
3838
<div
39-
class="fade-in--pure max-width m-auto grid grid-cols-1 gap-8 md:grid-cols-2"
39+
class="fade-in--pure max-width grid grid-cols-1 gap-8 md:grid-cols-3"
4040
data-reveal="fade-in--pure--visible"
4141
data-reveal-immediate="true"
4242
data-reveal-delay="100"

0 commit comments

Comments
 (0)