-
Notifications
You must be signed in to change notification settings - Fork 0
/
logged-dashboard.html
158 lines (152 loc) · 5.85 KB
/
logged-dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/skeleton.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script src="https://kit.fontawesome.com/a076d05399.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js"></script>
</head>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="navbar-container">
<span class="navbar-toggle" id="js-navbar-toggle">
<i class="fas fa-bars"></i>
</span>
<a href="#" class="logo">Subscribeful</a>
<ul class="main-nav" id="js-menu">
<li>
<a href="./logged-dashboard.html" class="nav-links">Home</a>
</li>
<li>
<a href="./logged-customers.html" class="nav-links">Customers</a>
</li>
<li>
<a href="./logged-products.html" class="nav-links">Products</a>
</li>
<li>
<a href="#" class="nav-links"><i class="fas fa-bell"></i></a>
</li>
<li>
<a href="#" onclick="toggleProfileDropdown()" class="nav-links nav-profile">
<img src="images/user-image.png" alt="Heath">
</a>
<div class="profile-dropdown-wrapper" >
<ul class="profile-dropdown" id="profile-dropdown">
<li><a href="index.html">Log out</a></li>
</ul>
</div>
</li>
</ul>
</div>
</nav>
<script>
let mainNav = document.getElementById("js-menu");
let navBarToggle = document.getElementById("js-navbar-toggle");
navBarToggle.addEventListener("click", function() {
mainNav.classList.toggle("active");
});
</script>
<!-- Navbar end -->
<div class="basic-container">
<!-- Date selector -->
<div class="row">
<div class="four columns">
<label for="startdate">Start Date</label>
<input class="u-full-width" type="date" placeholder="Search for customer..." id="startdate">
</div>
<div class="four columns">
<label for="enddate">End Date</label>
<input class="u-full-width" type="date" placeholder="Search for customer..." id="enddate">
</div>
<div class="four columns">
<label for="enddate"> </label>
<input class="u-full-width button-primary" type="submit" value="Update">
</div>
</div>
<div class="row">
<div class="columns">
<canvas id="myChart"></canvas>
</div>
</div>
</br>
<h3>Summary</h3>
<div class="row dashboard_summary">
<div class="three columns dashboard_summary_item">
<p>16 Dec</p>
<p>Total: $250</p>
<p>Customers: 18</p>
</div>
<div class="three columns dashboard_summary_item">
<p>17 Dec</p>
<p>Total: $250</p>
<p>Customers: 18</p>
</div>
<div class="three columns dashboard_summary_item">
<p>18 Dec</p>
<p>Total: $250</p>
<p>Customers: 18</p>
</div>
<div class="three columns dashboard_summary_item">
<p>19 Dec</p>
<p>Total</p>
<p>Revnue: $250</p>
<p>Customers: 18</p>
</div>
</div>
</br>
</br>
</div>
<script>
var ctx = document.getElementById('myChart').getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['12 Dec', '13 Dec', '14 Dec', '15 Dec', '16 Dec', '17 Dec'],
datasets: [
{
label: 'Left Users',
data: [0, 0, 0, 1, 3, 0],
borderWidth: 1,
backgroundColor: 'rgba(255, 0, 0, 0.9)'
},
{
label: 'Active Users',
data: [0, 2, 5, 8, 9, 14],
borderWidth: 1,
backgroundColor: 'rgba(0, 255, 0, 0.9)'
},
]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
suggestedMax: 20
},
}]
},
fill: true,
cubicInterpolationMode: 'monotone'
}
});
</script>
<script>
function toggleProfileDropdown()
{
const el = document.getElementById("profile-dropdown");
if (el.classList.contains("profile-dropdown-show")) {
el.classList.remove("profile-dropdown-show");
} else {
el.classList.add("profile-dropdown-show");
}
}
</script>
</body>
</html>