Skip to content

Commit bb5b294

Browse files
Merge branch 'docs/updating-terragrunt-homepage' into headers-fix
2 parents d6fa1f7 + 30877bd commit bb5b294

File tree

2 files changed

+32
-19
lines changed

2 files changed

+32
-19
lines changed

docs-starlight/src/components/dv-OpenSourceCard.astro

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,31 @@ import { Image } from 'astro:assets';
55
const { icon, title, description, href } = Astro.props;
66
---
77

8-
<a href={href}
9-
class="group relative flex w-full items-center border border-dashed border-[var(--color-gray-3)] px-8 py-6 bg-[#FAFAFA] hover:bg-white hover:cursor-pointer transition-colors duration-200"
10-
target="_blank"
11-
rel="noopener noreferrer"
8+
<a
129
aria-label={`Learn more about ${title}`}
10+
class="opensourcecard group relative flex w-full items-start border border-dashed border-[var(--color-gray-3)] px-4 py-4 lg:px-8 lg:py-8 bg-[#FAFAFA] no-underline hover:bg-white hover:cursor-pointer transition-colors duration-200"
11+
href={href}
12+
rel="noopener noreferrer"
13+
target="_blank"
1314
>
14-
<div class="flex flex-col items-start gap-3">
15-
<div class="flex gap-1.5 items-center">
16-
<Image
17-
src={icon}
18-
alt={`${title} Icon`}
19-
class="w-6 h-6"
20-
/>
21-
<p class="text-lg font-semibold text-dark-blue-1">{title}</p>
22-
</div>
23-
<p class="text-sm font-sans text-[var(--color-gray-1)]">{description}</p>
24-
</div>
25-
<div class="absolute right-8 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transform transition-opacity duration-200">
26-
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
27-
<path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"></path>
28-
</svg>
15+
<div class="grid grid-cols-[1fr_24px] gap-1 w-full">
16+
<div class="flex flex-col gap-4 items-start">
17+
<div class="flex gap-1.5 items-center">
18+
<Image
19+
alt={`${title} Icon`}
20+
class="w-6 h-6"
21+
src={icon}
22+
/>
23+
<p class="text-lg font-semibold text-[var(--color-dark-blue-1)] m-0">{title}</p>
24+
</div>
25+
<p class="text-sm font-sans text-[var(--color-gray-1)] m-0">{description}</p>
26+
</div>
27+
<div class="flex items-center justify-end">
28+
<div class="opacity-0 group-hover:opacity-100 transform transition-opacity duration-200">
29+
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
30+
<path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"></path>
31+
</svg>
32+
</div>
33+
</div>
2934
</div>
3035
</a>

docs-starlight/src/styles/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,3 +455,11 @@ p code {
455455
#starlight__sidebar details summary {
456456
padding-left: 0;
457457
}
458+
459+
.opensourcecard {
460+
border-left: 0;
461+
}
462+
463+
.opensourcecard:last-child {
464+
border-right: 0;
465+
}

0 commit comments

Comments
 (0)