-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContextMenu.vue
66 lines (57 loc) · 1.35 KB
/
ContextMenu.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
<template>
<nav>
<div class="links">
<NuxtLink
class="flex flex-col space-y-1.5 items-center justify-center"
to="/"
>
<Icon class="mx-auto w-6 h-6" name="heroicons:home"></Icon>
<span class="label">Home</span>
</NuxtLink>
<NuxtLink
class="flex flex-col space-y-1.5 items-center justify-center"
to="/docs"
>
<Icon class="mx-auto w-6 h-6" name="heroicons:book-open"></Icon>
<span class="label">Docs</span>
</NuxtLink>
</div>
<div class="links">
<ColorMode />
<a href="https://github.com/rust-seq/rust-seq.github.io">
<Icon class="mx-auto w-7 h-7" name="mdi:github"></Icon>
</a>
</div>
</nav>
</template>
<style scoped lang="postcss">
nav {
.links {
@apply flex flex-col justify-start items-center space-y-6;
}
@apply flex;
@apply flex-col;
@apply justify-between;
@apply items-center;
@apply w-[50px];
@apply h-full;
@apply py-4;
@apply bg-slate-100;
@apply dark:bg-slate-950;
@apply text-gray-500;
@apply hover:text-gray-700;
@apply dark:text-gray-200;
@apply dark:hover:text-gray-50;
@apply border-2;
@apply border-slate-200;
@apply dark:border-slate-900;
a {
.label {
@apply text-xs;
@apply font-bold;
@apply uppercase;
@apply transition;
}
}
}
</style>