-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.vue
108 lines (91 loc) · 1.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
<script setup lang="ts">
import components from "@/components";
</script>
<template>
<div id="app">
<aside id="nav">
<router-link to="/" class="theme-label">
<img
class="image__oruga"
src="https://oruga-ui.com/logo.png"
alt="Logo Oruga Default Theme" />
<b>Oruga Default Theme</b>
</router-link>
<hr />
<router-link
v-for="component in components"
:key="component"
:to="{ name: component }">
{{ component }}
</router-link>
</aside>
<main class="main">
<router-view />
</main>
</div>
</template>
<style lang="scss">
@import "./assets/scss/utils/variables";
#app {
display: flex;
width: 100%;
main {
flex-grow: 1;
height: 100vh;
padding: 2rem;
padding-bottom: 6rem;
overflow-y: scroll;
> section {
margin: 1rem 0;
h3 {
font-size: 1.75rem;
}
.buttons > *:not(:last-child) {
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}
}
}
#nav {
display: flex;
flex-direction: column;
height: 100vh;
min-width: var(--vp-sidebar-width);
padding: 20px;
padding-top: 0px;
overflow-y: scroll;
background-color: var(--vp-sidebar-bg-color);
.theme-label {
font-size: 1.25rem;
text-align: center;
padding: 1rem 0;
}
hr {
width: 100%;
margin-top: 0;
}
a {
font-weight: 500;
color: var(--vp-c-text-1);
text-decoration: none;
padding: 5px;
font-size: 1rem;
&.router-link-exact-active {
color: var(--vp-c-brand-1);
}
}
}
}
.image__oruga {
height: 64px;
display: flex;
margin: 0 auto;
}
@media (max-width: 576px) {
#app {
#nav {
display: none;
}
}
}
</style>