-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
186 lines (174 loc) · 11.4 KB
/
index.html
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>side_nav_bar</title>
<link rel="stylesheet" href="style.css">
<!-- google font -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap"
rel="stylesheet">
</head>
<body>
<div class="bg-gray-200">
<div class="bg-gray-900 flex flex-col h-screen menu">
<a class="block p-7 text-2xl text-white/80 hover:text-white" href="#">Opty X</a>
<nav class="flex flex-col pr-9 flex-1 overflow-auto">
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chart-bar" width="16"
height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<rect x="3" y="12" width="6" height="8" rx="1"></rect>
<rect x="9" y="8" width="6" height="12" rx="1"></rect>
<rect x="15" y="4" width="6" height="16" rx="1"></rect>
<line x1="4" y1="20" x2="18" y2="20"></line>
</svg>
Dashboard
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-left ml-auto"
width="30" height="30" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<polyline points="15 6 9 12 15 18"></polyline>
</svg>
</a>
<nav class="hidden flex-col relative py-2">
<a class="sub-nav-link hover:text-white" href="">Op10y</a>
<a class="sub-nav-link hover:text-white" href="">C/V</a>
</nav>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-board-split"
width="16" height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<rect x="4" y="4" width="16" height="16" rx="2"></rect>
<path d="M4 12h8"></path>
<path d="M12 15h8"></path>
<path d="M12 9h8"></path>
<path d="M12 4v16"></path>
</svg>
Pages
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-chevron-left ml-auto"
width="30" height="30" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<polyline points="15 6 9 12 15 18"></polyline>
</svg></a>
<nav class="hidden flex-col relative py-2">
<a class="sub-nav-link hover:text-white" href="">Users</a>
<a class="sub-nav-link hover:text-white" href="">Profile</a>
<a class="sub-nav-link hover:text-white" href="">Orders</a>
<a class="sub-nav-link hover:text-white" href="">Activities</a>
</nav>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-message-circle-2"
width="16" height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M3 20l1.3 -3.9a9 8 0 1 1 3.4 2.9l-4.7 1"></path>
</svg>
Chat
<span
class="flex justify-center items-center rounded-full ml-auto w-6 h-6 bg-pink-600 text-white text-xs">6</span>
</a>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-event"
width="16" height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<rect x="4" y="5" width="16" height="16" rx="2"></rect>
<line x1="16" y1="3" x2="16" y2="7"></line>
<line x1="8" y1="3" x2="8" y2="7"></line>
<line x1="4" y1="11" x2="20" y2="11"></line>
<rect x="8" y="15" width="2" height="2"></rect>
</svg>
Calender</a>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mail" width="16"
height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<rect x="3" y="5" width="18" height="14" rx="2"></rect>
<polyline points="3 7 12 13 21 7"></polyline>
</svg>
Email</a>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-list-check" width="16"
height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M3.5 5.5l1.5 1.5l2.5 -2.5"></path>
<path d="M3.5 11.5l1.5 1.5l2.5 -2.5"></path>
<path d="M3.5 17.5l1.5 1.5l2.5 -2.5"></path>
<line x1="11" y1="6" x2="20" y2="6"></line>
<line x1="11" y1="12" x2="20" y2="12"></line>
<line x1="11" y1="18" x2="20" y2="18"></line>
</svg>
Tasks
<span
class="flex justify-center items-center rounded-full ml-auto w-6 h-6 bg-orange-600 text-white text-xs">7</span>
</a>
<a class="nav-link font-extralight hover:text-white hover:bg-white/10" href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-files" width="16"
height="16" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M15 3v4a1 1 0 0 0 1 1h4"></path>
<path d="M18 17h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h4l5 5v7a2 2 0 0 1 -2 2z"></path>
<path d="M16 17v2a2 2 0 0 1 -2 2h-7a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2"></path>
</svg>
File Manager</a>
</nav>
<nav class="flex border-t border-white/10">
<a href="#"
class="flex flex-1 justify-center gap-4 text-white/70 hover:text-white hover:bg-white/5 py-4 font-extralight text-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-settings" width="28"
height="28" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path
d="M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z">
</path>
<circle cx="12" cy="12" r="3"></circle>
</svg>
Settings</a>
<a href="#"
class="flex flex-1 justify-center gap-4 text-white/70 hover:text-white hover:bg-white/5 py-4 font-extralight text-lg">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-logout" width="28"
height="28" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2">
</path>
<path d="M7 12h14l-3 -3m0 6l3 -3"></path>
</svg>
Logout</a>
</nav>
</div>
</div>
</div>
</div>
<script>
// toggle icon or rotate icon start...................................
let navLinks = document.querySelectorAll('.nav-link');
navLinks.forEach(navLink => {
navLink.onclick = e => {
e.target.classList.toggle('open');
}
});
// active each click.................................................
let navLink = document.querySelectorAll('.nav-link');
navLink.forEach((link) => {
link.addEventListener('click', (e) => {
navLink.forEach((link) => {
link.classList.remove('active');
});
e.target.classList.add('active');
});
});
</script>
</body>
</html>