blob: 35641abfdb81645688a4eab1e6d8c06ef5578f02 (
plain)
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
|
<script setup lang="ts">
import Panel from '~/components/Panel.vue';
const scheduleStore = useScheduleStore();
</script>
<template>
<Panel v-if="scheduleStore.schedule">
<h2 class="tracks-title">Tracks</h2>
<ul class="tracks-list">
<li
v-for="track in scheduleStore.schedule.tracks"
:key="track.name"
class="tracks-item"
>
<NuxtLink :to="'/tracks/' + track.slug" class="track-item">
{{ track.name }}
</NuxtLink>
</li>
</ul>
</Panel>
</template>
<style scoped>
.tracks-list {
list-style: none;
margin: 0.5rem 0 0 0;
padding: 0;
display: grid;
}
.track-item {
position: relative;
border-bottom: 1px solid var(--color-background-muted);
padding: 0.5rem 1rem;
left: -1rem;
width: calc(100%);
display: block;
text-decoration: none;
}
.track-item:last-child {
border-bottom: none;
}
.track-item:hover {
background-color: var(--color-background-muted);
}
</style>
|