-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathindex.astro
35 lines (31 loc) · 991 Bytes
/
index.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
---
import { getCollection } from "astro:content";
import Layout from "../../layouts/Layout.astro";
import Hero from "../../components/Hero.astro";
import HorizontalContainer from "../../components/HorizontalContainer.astro";
import Grid2 from "../../components/Grid2.astro";
import HoverableLink from "../../components/HoverableLink.astro";
import { startPagePath } from "../../lib/utils";
const title = "Start";
const heroTitle = "Quick start";
const description =
"Get a taste of Nix's power and learn key concepts along the way";
const startPages = await getCollection("start");
---
<Layout {title} {description}>
<HorizontalContainer>
<Hero title={heroTitle} {description} />
<Grid2>
{
startPages.map(({ slug, data: { title, order } }) => (
<HoverableLink
text={title}
{order}
href={startPagePath(slug)}
size="normal"
/>
))
}
</Grid2>
</HorizontalContainer>
</Layout>