-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
169 lines (141 loc) · 3.79 KB
/
app.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<template>
<Head>
<Title>SOTFC</Title>
</Head>
<div class="body">
<div class="bg absolute -z-10 w-full h-screen"></div>
<div class="flex flex-col h-screen gap-2 p-2">
<div class="menubar">
<div class="navgroup justify-end">
<NuxtLink class="navitem" to="/" active-class="active">
<span>
Home
</span>
</NuxtLink>
<NuxtLink class="navitem" to="/events" active-class="active">
<span>
Events
</span>
</NuxtLink>
</div>
<div class="flex justify-center col-span-1">
<NuxtLink class="navitem" to="/">
<img src="assets/SOTFC_Banner.png" class="w-24 hover:scale-150 transition" />
</NuxtLink>
</div>
<div class="navgroup justify-start">
<NuxtLink class="navitem" to="/leaderboard" active-class="active">
<span>
Leaderboard
</span>
</NuxtLink>
<NuxtLink class="navitem" to="/contestants" active-class="active">
<span>
Contestants
</span>
</NuxtLink>
</div>
</div>
<div class="content">
<NuxtPage />
</div>
</div>
</div>
</template>
<script setup lang="ts">
</script>
<style scoped lang="postcss">
.body {
overflow-x: hidden;
overflow-y: hidden;
}
.bg {
background-image: url('assets/background.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
filter: blur(18px) brightness(2);
@media (prefers-color-scheme: dark) {
filter: blur(8px) brightness(1);
}
}
.content {
@apply bg-[#111111cc] rounded h-full p-2;
overflow: auto;
&:hover::-webkit-scrollbar-thumb {
background-color: #88888888;
width: 5px;
}
/* Width */
&::-webkit-scrollbar {
background-color: transparent;
width: 5px;
}
/* Track */
&::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 5rem;
}
/* Handle */
&::-webkit-scrollbar-thumb {
background-color: transparent;
width: 0px;
border-radius: 5rem;
transition: width 0.2s ease-in-out;
}
/* Handle on hover */
&::-webkit-scrollbar-thumb:hover {
background: #555;
}
}
.menubar {
@apply p-2 text-white rounded justify-center grid grid-cols-5;
background-color: var(--sotfc-primary);
}
.navgroup {
@apply flex col-span-2 gap-6
}
.navitem {
@apply px-4 py-2 rounded cursor-pointer select-none;
&.active {
transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.1s ease-in-out;
box-shadow: 0px 0px 0px 0px var(--sotfc-accent-fade);
-webkit-box-shadow: 0px 0px 0px 0px var(--sotfc-accent-fade);
-moz-box-shadow: 0px 0px 0px 0px var(--sotfc-accent-fade);
&:hover {
background-color: rgba(110, 250, 251, 0.85);
color: black;
box-shadow: 0px 0px 25px 1px var(--sotfc-accent-fade);
-webkit-box-shadow: 0px 0px 25px 1px var(--sotfc-accent-fade);
-moz-box-shadow: 0px 0px 25px 1px var(--sotfc-accent-fade);
span {
transition: 0.2s, background-position 0s 0.2s;
--p: 0;
--d: 0;
background:
linear-gradient(var(--sotfc-accent) 0 0) var(--p, 0) 100% /var(--d, 0) 3px no-repeat;
}
}
span {
@apply pb-1;
--p: 100%;
--d: 100%;
background:
linear-gradient(var(--sotfc-accent) 0 0) var(--p, 0) 100% /var(--d, 0) 3px no-repeat;
transition: 0.25s, background-position 0s 0.25s;
}
}
span {
@apply pb-1;
background:
linear-gradient(var(--sotfc-accent) 0 0) var(--p, 0) 100% /var(--d, 0) 3px no-repeat;
transition: 0.25s, background-position 0s 0.25s;
}
&:hover {
span {
--d: 100%;
--p: 100%;
}
}
}
</style>