-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
379 lines (347 loc) · 23.9 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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp"></script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Required chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="style.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
backColor: '#5840BB',
backLight: '#F3F6FF',
backOrder: '#C7F2FF',
textColor: '#8A74E8',
textColorp: '#42427D',
textSecondary: '#7979B2',
profit: '#FFE5EE',
light: '#F3F6FF',
}
}
}
}
</script>
</head>
<body class="bg-backColor h-screen">
<!-- sidebar-->
<div class="hidden md:fixed md:inset-y-0 md:flex md:w-64 md:flex-col">
<div class="flex flex-grow flex-col overflow-y-auto pt-5 my-12">
<div class="flex flex-shrink-0 justify-center items-center px-4 gap-x-2">
<img class="w-4 h-4" src="smile-face-logo.png" alt="Company Logo">
<p class="font-bold text-white text-lg">ForShop</p>
</div>
<div class="my-20 flex flex-1 flex-col">
<nav class="flex-1 space-y-1 ml-10 pb-4">
<!-- Current: "bg-indigo-800 text-white", Default: "text-indigo-100 hover:bg-indigo-600" -->
<a href="#"
class="bg-white text-white group flex gap-x-5 items-center pl-10 py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/home -->
<img class="w-4 h-4" src="dashboard.png" alt="dashboard-icon">
<p class="text-textColor">Dashboard</p>
</a>
<a href="#"
class="text-indigo-100 hover:bg-indigo-600 group gap-x-5 flex pl-10 items-center py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/users -->
<img class="w-4 h-4" src="orders.png" alt="order-icon">
<p>Orders</p>
</a>
<a href="#"
class="text-indigo-100 hover:bg-indigo-600 group flex gap-x-5 pl-10 items-center py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/users -->
<img class="w-4 h-4" src="products.png" alt="product-icon">
<p>Products</p>
</a>
<a href="#"
class="text-indigo-100 hover:bg-indigo-600 group flex gap-x-5 pl-10 items-center py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/users -->
<img class="w-4 h-4" src="marketing.png" alt="marketing-icon">
<p>Marketing</p>
</a>
<a href="#"
class="text-indigo-100 hover:bg-indigo-600 group flex gap-x-5 items-center pl-10 py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/users -->
<img class="w-4 h-4" src="rates.png" alt="rates-icon">
<p>Rates</p>
</a>
<a href="#"
class="text-indigo-100 hover:bg-indigo-600 group flex gap-x-5 items-center pl-10 py-4 text-sm font-medium rounded-l-[12px]">
<!-- Heroicon name: outline/users -->
<img class="w-4 h-4" src="reports.png" alt="report-icon">
<p>Reports</p>
</a>
</nav>
</div>
<div class="flex flex-shrink-0 justify-center items-center px-4 gap-x-2">
<p class="font-medium text-textColor text-sm flex gap-x-1"><span
class="text-[10px] items-start"> © </span> 2020 ForShop</p>
</div>
</div>
</div>
<!--main -->
<div class="flex flex-1 flex-col md:pl-60 ">
<main class="bg-white h-full my-5 p-8 mx-4 rounded-[50px]">
<!--HEADER -->
<div class="flex h-16 justify-between">
<div class="flex px-2 lg:px-0 items-center">
<p class="text-textColorp lg:text-3xl text-xl font-light">Welcome, <span
class="font-bold">Damian</span></p>
</div>
<div class="flex-1 items-center justify-end px-2 lg:ml-6 hidden lg:flex">
<div class="relative">
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-5">
<!-- Heroicon name: mini/magnifying-glass -->
<svg class="w-5 h-5" viewBox="0 0 24 24">
<path fill="#42427d"
d="m19.6 21l-6.3-6.3q-.75.6-1.725.95Q10.6 16 9.5 16q-2.725 0-4.612-1.887Q3 12.225 3 9.5q0-2.725 1.888-4.613Q6.775 3 9.5 3t4.613 1.887Q16 6.775 16 9.5q0 1.1-.35 2.075q-.35.975-.95 1.725l6.3 6.3ZM9.5 14q1.875 0 3.188-1.312Q14 11.375 14 9.5q0-1.875-1.312-3.188Q11.375 5 9.5 5Q7.625 5 6.312 6.312Q5 7.625 5 9.5q0 1.875 1.312 3.188Q7.625 14 9.5 14Z"/>
</svg>
</div>
<input id="search" name="search"
class="w-full text-sm rounded-tl-[15px] border-none rounded-br-[15px] rounded-bl rounded-tr bg-backLight text-textSecondary py-3 pr-24 pl-5 leading-5 placeholder-gray-500 focus:border-indigo-500 focus:placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500"
placeholder="Search for products..." type="search">
</div>
<div class="ml-4 flex items-center">
<span class="relative inline-block">
<button type="button"
class="flex-shrink-0 rounded-tl-[15px] rounded-br-[15px] rounded-bl rounded-tr bg-backLight p-3 text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
<svg class="w-5 h-5" viewBox="0 0 24 24"><path fill="#42427d"
d="M10.146 3.248a2 2 0 0 1 3.708 0A7.003 7.003 0 0 1 19 10v4.697l1.832 2.748A1 1 0 0 1 20 19h-4.535a3.501 3.501 0 0 1-6.93 0H4a1 1 0 0 1-.832-1.555L5 14.697V10c0-3.224 2.18-5.94 5.146-6.752zM10.586 19a1.5 1.5 0 0 0 2.829 0h-2.83zM12 5a5 5 0 0 0-5 5v5a1 1 0 0 1-.168.555L5.869 17H18.13l-.963-1.445A1 1 0 0 1 17 15v-5a5 5 0 0 0-5-5z"/></svg>
</button>
<span class="absolute top-1 right-0 block h-3 w-3 p-2 -translate-y-1/2 translate-x-1/2 transform rounded-full bg-backColor ring-4 ring-white"></span>
</span>
<div class="relative ml-4 flex-shrink-0">
<div>
<button type="button"
class="flex bg-white text-sm rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
id="user-menu-button" aria-expanded="false" aria-haspopup="true">
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] w-11 h-11"
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
alt="">
</button>
</div>
</div>
</div>
</div>
<div class="relative text-left flex flex-col lg:hidden mt-3">
<div class="flex gap-x-3">
<div class="relative ml-4 flex-shrink-0">
<div>
<button type="button"
class="flex bg-white text-sm rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
aria-expanded="false" aria-haspopup="true">
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] w-11 h-11"
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
alt="">
</button>
</div>
</div>
<button type="button" onclick="myFunction()" class="dropbtn inline-flex w-full justify-center items-center rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] border border-gray-300 bg-white px-3 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:ring-offset-gray-100" id="menu-button" aria-expanded="true" aria-haspopup="true">
<svg class="h-5 w-5" viewBox="0 0 24 24"><path fill="none" stroke="#5840bb" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 12h16M4 6h16M4 18h16"/></svg>
</button>
</div>
<div id="myDropdown" class="dropdown-content hidden absolute right-0 z-10 mt-12 w-56 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none" role="menu" aria-orientation="vertical" aria-labelledby="menu-button" tabindex="-1">
<div class="px-4 py-3" role="none">
<p class="text-sm" role="none">Signed in as</p>
<p class="truncate text-sm font-medium text-gray-900" role="none">damian@example.com</p>
</div>
<div class="py-1" role="none">
<!-- Active: "bg-gray-100 text-gray-900", Not Active: "text-gray-700" -->
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-0">Dashboard</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-1">Orders</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-2">Products</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-3">Marketing</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-4">Rates</a>
<a href="#" class="text-gray-700 block px-4 py-2 text-sm hover:bg-profit" role="menuitem" tabindex="-1" id="menu-item-5">Reports</a>
</div>
</div>
</div>
</div>
<div class="flex flex justify-between flex-col xl:flex-row">
<div class="max-w-7xl flex-col lg:flex-row ">
<div class="mt-4 lg:flex grid gap-5 justify-center xl:justify-start">
<div class="flex justify-center gap-x-3 py-8 lg:px-6 rounded-tl-[40px] rounded-br-[40px] rounded-bl-lg rounded-tr-lg bg-backOrder">
<span class="flex-shrink-0 rounded-tl-[15px] rounded-br-[15px] rounded-bl rounded-tr bg-white p-4 text-gray-400">
<img class="w-5" src="dark-orders.png" alt="order-icon">
</span>
<span class="flex flex-col whitespace-nowrap">
<p class="text-xl font-bold text-textColorp">23 789</p>
<p class="text-sm text-textColorp font-medium">Orders</p>
</span>
<span class="relative inline-block">
<span class="flex-shrink-0 rounded-tl-[10px] rounded-br-[10px] rounded-bl rounded-tr
bg-textColorp px-3 py-1.5 text-white text-sm">
+20
</span>
</span>
</div>
<div class="flex gap-x-3 p-8 rounded-tl rounded-br rounded-bl-[40px] rounded-tr-[40px] bg-profit ">
<span class="flex-shrink-0 rounded-tl-[15px] rounded-br-[15px] rounded-bl rounded-tr bg-white p-4 text-gray-400">
<img class="w-5" src="profit.png" alt="order-icon">
</span>
<span class="flex flex-col">
<p class="text-xl font-bold text-textColorp whitespace-nowrap">$ 12 890, 89</p>
<p class="text-sm text-textColorp font-medium">Profit</p>
</span>
<span class="relative inline-block">
<button type="button"
class="flex-shrink-0 whitespace-nowrap rounded-tl-[10px] rounded-br-[10px] rounded-bl rounded-tr bg-textColorp px-3 py-1.5 text-white text-sm">
+$ 840,00
</button>
</span>
</div>
</div>
<!-- chart -->
<div class="rounded-lg overflow-hidden pt-10">
<div class="flex justify-between items-center">
<p class="font-bold text-textColorp">Sales statistics</p>
<div class="relative inline-block text-left">
<div>
<select id="time" name="time" class="inline-flex w-full justify-start rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] border border-light bg-white px-6 py-2 text-sm font-medium text-textSecondary">
<option>Daily</option>
<option selected>Montly</option>
<option>Years</option>
</select>
</div>
</div>
</div>
<canvas class="mt-8" id="chartLine"></canvas>
</div>
</div>
<div aria-labelledby="list" class="right-0 lg:w-[400px] w-full">
<div class="flex flex-col justify-center py-5">
<div class="flex justify-between gap-x-12 items-center">
<h2 id="timeline-title" class="text-base font-bold text-backColor">Top selling products</h2>
<a href="#" class="text-backColor flex items-center text-sm gap-x-4">See all
<span>
<svg width="20" height="20" viewBox="0 0 24 24"><path fill="#5840bb"
d="M9.29 15.88L13.17 12L9.29 8.12a.996.996 0 1 1 1.41-1.41l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3a.996.996 0 0 1-1.41 0c-.38-.39-.39-1.03 0-1.42z"/></svg>
</span>
</a>
</div>
<!-- Activity Feed -->
<div class="mt-6 flow-root">
<ul role="list">
<li>
<div class="relative pb-8">
<div class="relative flex items-center space-x-3">
<span class="h-8 w-8 flex items-center justify-start text-textSecondary text-sm">1</span>
<div class="relative ml-4 flex-shrink-0">
<div>
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px]"
width="50px" height="50px"
src="tshirt.png"
alt="">
</div>
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div class="flex flex-col text-textColorp">
<p class="text-sm">Tshirt Levis</p>
<p class="text-base font-bold">$ 49,99</p>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<div class="relative flex items-center space-x-3">
<span class="h-8 w-8 flex items-center justify-start text-textSecondary text-sm">2</span>
<div class="relative ml-4 flex-shrink-0">
<div>
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px]"
width="50px" height="50px"
src="jeans.png"
alt="">
</div>
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div class="flex flex-col text-textColorp">
<p class="text-sm">Tshirt Levis</p>
<p class="text-base font-bold">$ 49,99</p>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<div class="relative flex items-center space-x-3">
<span class="h-8 w-8 flex items-center justify-start text-textSecondary text-sm">3</span>
<div class="relative ml-4 flex-shrink-0">
<div>
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px]"
width="50px" height="50px"
src="cap.png"
alt="">
</div>
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div class="flex flex-col text-textColorp">
<p class="text-sm">Tshirt Levis</p>
<p class="text-base font-bold">$ 49,99</p>
</div>
</div>
</div>
</div>
</li>
<li>
<div class="relative pb-8">
<div class="relative flex items-center space-x-3">
<span class="h-8 w-8 flex items-center justify-start text-textSecondary text-sm">4</span>
<div class="relative ml-4 flex-shrink-0">
<div>
<img class="rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px]"
width="50px" height="50px"
src="pants.png"
alt="">
</div>
</div>
<div class="flex min-w-0 flex-1 justify-between space-x-4 pt-1.5">
<div class="flex flex-col text-textColorp">
<p class="text-sm">Tshirt Levis</p>
<p class="text-base font-bold">$ 49,99</p>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<!-- chart -->
<div class="rounded-lg overflow-hidden">
<div class="flex justify-between items-center">
<p class="font-bold text-textColorp">Unique visitors</p>
<div class="relative inline-block text-left">
<div>
<button type="button"
class="inline-flex w-full justify-center rounded-tl-[15px] rounded-br-[15px] rounded-bl-[5px] rounded-tr-[5px] border border-light bg-white px-4 py-2 text-sm font-medium text-textSecondary"
id="menu-button-1" aria-expanded="true" aria-haspopup="true">
Weekly
<!-- Heroicon name: mini/chevron-down -->
<svg class="-mr-1 ml-2 h-5 w-5" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd"
d="M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z"
clip-rule="evenodd"/>
</svg>
</button>
</div>
</div>
</div>
<canvas class="mt-4" id="chartLineTwo"></canvas>
</div>
</div>
</div>
</div>
</main>
</div>
<script src="chart.js"></script>
<script src="chartTwo.js"></script>
<script src="dropdown_menu.js"></script>
</body>
</html>