-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNaviLink.vue
60 lines (58 loc) · 1.24 KB
/
NaviLink.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
<template>
<div class="inner-link-wrapper" :class="{ active: active }">
<div class="indicator"></div>
<div class="text">{{ pagetitle }}</div>
</div>
</template>
<script>
export default {
props: {
pagetitle: {
type: String,
default: "",
required: true,
},
active: Boolean,
},
setup(props) {
//console.log(props.pagetitle);
},
};
</script>
<style lang="scss">
.inner-link-wrapper {
display: flex;
transition: color .3s ease;
.indicator {
width: 1.5rem;
height: 1.5rem;
border-radius: 1.5rem;
border: 1px solid $orange;
background-color: white;
transition: background-color .3s ease;
margin-right: 0.2rem;
@include mobile {
width: 5.5rem;
height: 5.5rem;
border-radius: 5.5rem;
margin-top: 1.5rem;
margin-right: 1rem;
border: 2px solid $orange;
}
}
.text {
@include galaxieMedium;
font-size: 1.4rem;
@include mobile {
font-size: 7rem;
padding-left: 2rem;
}
}
&.active {
color: $orange;
.indicator {
background-color: $orange;
}
}
}
</style>