-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.vue
More file actions
61 lines (56 loc) · 982 Bytes
/
app.vue
File metadata and controls
61 lines (56 loc) · 982 Bytes
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
<template>
<div>
<nav class="tab-nav">
<NuxtLink :to="tab.path" v-for="tab in tabs" :key="tab.index" class="link"
><h2>{{ tab.name }}</h2></NuxtLink
>
</nav>
<NuxtPage />
</div>
</template>
<script lang="ts" setup>
const tabs = ref([
{
index: 0,
name: 'Scanner',
path: '/',
},
{
index: 1,
name: 'Checklist',
path: '/checklist',
},
]);
</script>
<style>
*,
html,
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.tab-nav {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
height: 5vh;
}
.link {
width: 50%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: lighter;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
.router-link-active {
border-bottom: 4px solid #3472f0;
background-color: rgba(0, 0, 0, 0.1);
}
</style>