-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
143 lines (132 loc) · 5.62 KB
/
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
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="icon" href="images\logo.jpg" type="image/icon type">
<title>DRM - Dashboard</title>
<!-- Head Section -->
<head>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="/images/favicon.ico">
<link rel="stylesheet" href="styles\dashboard.css">
</head>
<!-- Body Section -->
<body>
<script src="script\dashboard-1.js"></script>
<div class="main">
<div class="section">
<!-- Top Nav Bar Section -->
<div class="navbar">
<div class="hamburger">
<i class="fas fa-bars"></i>
</div>
<h1 class="navbar-heading">Dashboard
<a href="login.html" id="logoutButton"><button class="logout-btn" id="logoutButton" name="button"
type="button">Logout</button></a>
</h1>
</div>
<!-- Actual Body Container -->
<div class="main-body-container">
<h1 style="text-align: center;">Dashboard Page</h1>
<p style="text-align: center;">This is a Sample "Dashboard" Page.</p><br>
<p style="text-align: center;">In this page, the Technology Head roles and responsabilities are appeared here...</p>
</div>
</div>
<!-- Side Bar Section -->
<div class="sidebar" id="sideNav">
<div class="profile">
<img src="images\dpp.jpg" alt="profile_picture">
<h3>Employee Name</h3>
<p>Technology Head</p>
</div>
<ul>
<li>
<a href="dashboard.html" class="active">
<span class="icon"><i class="fas fa-home"></i></span>
<span class="item">Dashboard</span>
</a>
</li>
<li>
<a href="list-members.html">
<span class="icon"><i class="fas fa-users"></i></span>
<span class="item">List of Members</span>
</a>
</li>
<li>
<a href="list-documents.html">
<span class="icon"><i class="fas fa-list-ol"></i></span>
<span class="item">List of Documents</span>
</a>
</li>
<li>
<a href="doc-assign.html">
<span class="icon"><i class="fas fa-file-signature"></i></span>
<span class="item">Assign to members</span>
</a>
</li>
<li>
<a href="view-review-pts.html">
<span class="icon"><i class="fas fa-solid fa-file-lines"></i></span>
<span class="item">View Review Points</span>
</a>
</li>
<li>
<a href="report-gen.html">
<span class="icon"><i class="fas fa-duotone fa-chart-simple"></i></span>
<span class="item">Report Generation</span>
</a>
</li>
<!-- <li>
<a href="#">
<span class="icon"><i class="fas fa-tachometer-alt"></i></span>
<span class="item">Development</span>
</a>
</li>
<li>
<a href="#">
<span class="icon"><i class="fas fa-chart-line"></i></span>
<span class="item">Reports</span>
</a>
</li>
<li>
<a href="#">
<span class="icon"><i class="fas fa-user-shield"></i></span>
<span class="item">Admin</span>
</a>
</li>
<li>
<a href="#">
<span class="icon"><i class="fas fa-cog"></i></span>
<span class="item">Settings</span>
</a>
</li> -->
</ul>
</div>
</div>
<script>
/* var hamburger = document.querySelector(".hamburger");
hamburger.addEventListener("click", function () {
document.querySelector("body").classList.toggle("active");
}) */
////
var hamburger = document.querySelector(".hamburger");
var logoutButton = document.getElementById("logoutButton");
var sideNav = document.getElementById("sideNav");
// When the side navigation bar is collapsed, set the logout button position to fixed.
sideNav.addEventListener("collapsed", () => {
logoutButton.style.position = "fixed";
logoutButton.style.top = "0";
});
// When the side navigation bar is expanded, set the logout button position to relative.
sideNav.addEventListener("expanded", () => {
logoutButton.style.position = "relative";
logoutButton.style.left = "70";
});
// Toggle the hamburger menu when clicked.
hamburger.addEventListener("click", function () {
document.querySelector("body").classList.toggle("active");
});
</script>
</body>
</html>