forked from DeterminateSystems/zero-to-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.vue
77 lines (72 loc) · 2.43 KB
/
index.vue
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template layout="default">
<section class="bg-darker-gray py-16 md:py-20 lg:py-24">
<HorizontalContainer>
<div class="space-y-6 md:space-y-8 lg:space-y-10">
<div>
<div class="space-y-4 md:space-y-6 lg:space-y-8">
<h1
class="text-5xl tracking-tight text-pale md:text-6xl lg:text-7xl"
>
{{ $site.title }}
</h1>
<h2
class="one-liner text-xl tracking-tight text-light-gray md:text-2xl lg:text-3xl"
v-html="md($site.description)"
/>
</div>
</div>
<div>
<TabGroup>
<TabList class="inline-flex items-center space-x-3">
<Tab
v-for="({ text, href, highlight }, idx) in $site.heroButtons"
:key="idx"
as="template"
class="rounded-full tracking-tight transition-colors duration-150 md:text-base lg:text-lg"
:class="[
highlight &&
'lg:py-2.4 bg-primary py-1.5 px-3.5 text-white hover:bg-orange md:py-2 md:px-5 lg:px-6',
!highlight &&
'lg:px-4.5 bg-gray py-1 px-3 text-white hover:bg-light-gray hover:text-dark md:py-1.5 md:px-3.5 lg:py-2',
]"
>
<a
:href="href"
:class="[highlight && 'font-bold md:text-lg lg:text-xl']"
>
{{ text }}
</a>
</Tab>
</TabList>
</TabGroup>
</div>
</div>
</HorizontalContainer>
</section>
<HorizontalContainer>
<section class="my-12 space-y-16">
<div class="space-y-6">
<h2
class="text-2xl tracking-tight hover:text-gray dark:hover:text-light-gray md:text-3xl lg:text-4xl"
id="features"
>
<a href="#features">What the Nix ecosystem offers</a>
</h2>
<Features />
</div>
<div class="space-y-6">
<h2
class="text-2xl tracking-tight hover:text-gray dark:hover:text-light-gray md:text-3xl lg:text-4xl"
id="key-terms"
>
<a href="#key-terms">Core Nix components</a>
</h2>
<NixTerms />
</div>
</section>
</HorizontalContainer>
</template>
<script setup lang="ts">
import { Tab, TabGroup, TabList } from "@headlessui/vue";
import { md } from "~/logic/content";
</script>