-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
275 lines (260 loc) · 9.92 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://glitch.com/favicon.ico" />
<title>Hello Sidebar!</title>
<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@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="./script.js"></script>
<style type="text/tailwindcss">
@layer utilities {
html, body {
@apply text-gray-600 text-base overflow-x-hidden transition-all bg-neutral-200;
font-family: 'Poppins', sans-serif;
}
.dashboard-sidebar {
@apply absolute px-3 py-4 top-3 left-3 bottom-3 min-h-[734px] rounded-md shadow-md bg-white transition-all duration-300;
}
.dashboard-sidebar.expanded {
@apply w-80;
}
.dashboard-sidebar.collapsed {
@apply w-[137px];
}
.sidebar-toggle {
@apply absolute -right-3 cursor-pointer border border-white top-6 w-6 h-6 rounded-full bg-slate-200 text-center;
}
.sidebar-toggle::after {
content: '<>';
}
.font-double {
@apply font-semibold text-lg text-neutral-900;
}
.sidebar-nav-item {
@apply flex justify-between items-center py-[6px] mb-1 hover:bg-neutral-100 px-2 rounded-md transition-all duration-300 cursor-pointer;
}
.collapsed .sidebar-nav-text {
@apply hidden;
}
.sidebar-nav-notification {
@apply px-3 rounded-full bg-gray-200 text-slate-600 text-sm;
}
.sidebar-nav-button {
@apply flex justify-between items-center bg-neutral-100 px-2 py-2 rounded-full;
}
.circle-icon {
@apply w-6 h-6 rounded-full border border-slate-300 flex items-center justify-center;
}
.sidebar-group-container {
@apply flex flex-row gap-2;
}
.collapsed .sidebar-group-container {
@apply flex-col;
}
.collapsed .sidebar-group-container > div:first-child {
@apply mb-3;
}
.sidebar-group-item {
@apply w-full bg-neutral-100 py-3 px-2 rounded flex justify-center items-center;
}
.expanded .sidebar-group-container > div {
@apply w-1/2;
}
.profiles-circle {
@apply w-8 h-8 -ml-1 border border-white flex justify-center items-center rounded-full;
}
.profiles-circle {
@apply w-8 h-8;
}
.collapsed .profiles-circle {
@apply w-6 h-6
}
.expanded .profiles-grid > div:nth-child(2) {
@apply -mt-2;
}
.profiles-grid {
@apply flex items-center;
}
.expanded .profiles-grid {
@apply flex-col;
}
.collapsed .profiles-grid {
@apply flex-row;
}
}
</style>
</head>
<body>
<div class="flex items-stretch min-h-screen relative">
<sidebar class="dashboard-sidebar expanded">
<div class="mt-2">
<h1 class="font-double mb-4">
Private
</h1>
<div class="flex flex-col mb-1 items-stretch">
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-house mr-3 text-xl text-orange-600"></i>
<span class="sidebar-nav-text text-sm font-medium">Home</span>
</div>
<div class="sidebar-nav-notification">
<span>8</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-app mr-3 text-xl text-slate-900"></i>
<span class="sidebar-nav-text text-sm font-medium">Completed</span>
</div>
<div class="sidebar-nav-notification">
<span>16</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-app mr-3 text-xl text-fuchsia-600"></i>
<span class="sidebar-nav-text text-sm font-medium">Personal</span>
</div>
<div class="sidebar-nav-notification">
<span>4</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-app mr-3 text-xl text-blue-600"></i>
<span class="sidebar-nav-text text-sm font-medium">Work</span>
</div>
<div class="sidebar-nav-notification">
<span>6</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-egg-fried mr-3 text-xl text-amber-600"></i>
<span class="sidebar-nav-text text-sm font-medium">Diet</span>
</div>
<div class="sidebar-nav-notification">
<span>3</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-journal-text mr-3 text-xl text-lime-600"></i>
<span class="sidebar-nav-text text-sm font-medium">List of Book</span>
</div>
<div class="sidebar-nav-notification">
<span>8</span>
</div>
</div>
<div class="sidebar-nav-item">
<div class="flex items-center">
<i class="bi bi-car-front mr-3 text-xl text-red-600"></i>
<span class="sidebar-nav-text text-sm font-medium">Road Trip List</span>
</div>
<div class="sidebar-nav-notification">
<span>6</span>
</div>
</div>
</div>
<a href="#" class="sidebar-nav-button">
<div class="flex items-center">
<i class="bi bi-plus text-xl text-black mr-2"></i>
<span class="sidebar-nav-text text-sm font-medium">Create New List</span>
</div>
<div class="flex items-center">
<div class="circle-icon mr-2">
<i class="bi bi-command text-sm"></i>
</div>
<div class="circle-icon mr-2">
<span>L</span>
</div>
</div>
</a>
</div>
<div class="my-8">
<h2 class="font-double">
Group
</h2>
<div class="sidebar-group-container my-4">
<div>
<div class="sidebar-group-item">
<div class="profiles-grid">
<div class="flex items-center">
<div class="profiles-circle bg-amber-500">
<i class="bi bi-person"></i>
</div>
<div class="profiles-circle bg-fuchsia-400">
<i class="bi bi-person"></i>
</div>
</div>
<div class="flex items-center">
<div class="profiles-circle bg-purple-500 text-white">
<i class="bi bi-person"></i>
</div>
<div class="profiles-circle bg-indigo-500 text-white">
<i class="bi bi-person"></i>
</div>
<div class="profiles-circle bg-orange-500">
<i class="bi bi-person"></i>
</div>
</div>
</div>
</div>
<p class="font-medium text-sm text-gray-900 -mb-1">
Mobal Project
</p>
<span class="text-[11px] sidebar-nav-text">5 People</span>
</div>
<div>
<div class="sidebar-group-item">
<div class="profiles-grid">
<div class="flex items-center">
<div class="profiles-circle bg-amber-500">
<i class="bi bi-person"></i>
</div>
<div class="profiles-circle bg-fuchsia-400">
<i class="bi bi-person"></i>
</div>
</div>
<div class="flex items-center">
<div class="profiles-circle bg-purple-500 text-white">
<i class="bi bi-person"></i>
</div>
<div class="profiles-circle bg-indigo-500 text-white">
<i class="bi bi-person"></i>
</div>
</div>
</div>
</div>
<p class="font-medium text-sm text-gray-900 -mb-1">
Futur Project
</p>
<span class="text-[11px] sidebar-nav-text">4 People</span>
</div>
</div>
<a href="#" class="sidebar-nav-button">
<div class="flex items-center">
<i class="bi bi-plus text-xl text-black mr-2"></i>
<span class="sidebar-nav-text text-sm font-medium">Create New Group</span>
</div>
<div class="flex items-center">
<div class="circle-icon mr-2">
<i class="bi bi-command text-sm"></i>
</div>
<div class="circle-icon mr-2">
<span>G</span>
</div>
</div>
</a>
</div>
<div class="sidebar-toggle"></div>
</sidebar>
<main class="dashboard-playground"></main>
</div>
</body>
</html>