-
Notifications
You must be signed in to change notification settings - Fork 69
/
Features.astro
39 lines (36 loc) · 960 Bytes
/
Features.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
import Link from "./Link.astro";
import Grid2 from "./Grid2.astro";
import { site } from "../site";
import { md } from "../lib/utils";
const { features } = site;
---
<Grid2>
{
features.map(({ title, description, links }) => (
<div class="space-y-4">
<p
class="text-lg font-bold md:text-xl lg:text-2xl"
set:html={md(title)}
/>
<p
class="text-sm font-light md:text-base lg:text-lg"
set:html={md(description)}
/>
<ul>
{links.map(({ text, href }) => (
<li class="flex items-center space-x-2 md:text-lg lg:text-xl">
<span>→</span>
<Link
{href}
class="text-dark underline hover:text-primary dark:text-light-gray dark:hover:text-light-blue"
>
{text}
</Link>
</li>
))}
</ul>
</div>
))
}
</Grid2>