-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNavBar.vue
More file actions
executable file
·115 lines (100 loc) · 2.03 KB
/
NavBar.vue
File metadata and controls
executable file
·115 lines (100 loc) · 2.03 KB
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
<!--导航栏-->
<template>
<header class="ui-top-area">
<nav class="ui-topbar">
<div class="ui-topbar__layer">
<div class="ui-topbar__brand-wrap">
<a class="ui-topbar__brand" href="/">
<el-icon size="2rem" class="ui-topbar__logo">
<img src="../../src/assets/icons/drycc.svg" />
</el-icon>
</a>
</div>
<div class="ui-topbar__right">
<div class="ui-topbar__center">
<nav-menu />
</div>
<div class="ui-topbar__actions">
<user-menu :user="user" />
</div>
</div>
</div>
</nav>
</header>
</template>
<script>
import NavBar from "./NavBar"
export default NavBar
</script>
<style scoped>
.ui-top-area {
position: sticky;
top: 0;
z-index: 40;
}
.ui-topbar {
height: 68px;
background: rgba(255, 255, 255, 0.95);
border-bottom: 1px solid rgba(217, 226, 239, 0.88);
backdrop-filter: blur(8px);
box-shadow: 0 4px 14px rgba(16, 42, 72, 0.06);
}
.ui-topbar__layer {
width: min(var(--ui-shell-max-width), calc(100% - (var(--ui-shell-gutter) * 2)));
max-width: none;
margin: 0 auto;
height: 100%;
padding: 0;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.ui-topbar__brand {
display: inline-flex;
align-items: center;
justify-content: center;
width: auto;
height: auto;
padding: 0;
border: none;
background: transparent;
text-decoration: none;
line-height: 0;
}
.ui-topbar__brand-wrap {
flex: 0 0 auto;
}
.ui-topbar__right {
display: inline-flex;
align-items: center;
gap: 2px;
}
.ui-topbar__center {
display: inline-flex;
align-items: center;
}
.ui-topbar__actions {
display: flex;
align-items: center;
}
.ui-topbar__logo img {
width: 40px;
height: 40px;
display: block;
}
@media (max-width: 900px) {
.ui-topbar__layer {
gap: 8px;
}
.ui-topbar {
height: 60px;
}
.ui-topbar__center {
justify-self: end;
}
.ui-topbar__right {
gap: 0;
}
}
</style>