-
Notifications
You must be signed in to change notification settings - Fork 0
/
userpage.html
165 lines (154 loc) · 6.43 KB
/
userpage.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
<!DOCTYPE html>
<!-- Created by CodingLab |www.youtube.com/CodingLabYT-->
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>User Page</title>
<link rel="stylesheet" href="userpage.css">
<!-- Boxicons CDN Link -->
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div class="sidebar">
<div class="logo-details">
<i class='bx bxl-c-plus-plus icon'></i>
<div class="logo_name">Invincibles</div>
<i class='bx bx-menu' id="btn"></i>
</div>
<ul class="nav-list">
<li>
<i class='bx bx-search'></i>
<input type="text" placeholder="Search...">
<span class="tooltip">Search</span>
</li>
<li>
<a href="#">
<i class='bx bx-grid-alt'></i>
<span class="links_name">Dashboard</span>
</a>
<span class="tooltip">Dashboard</span>
</li>
<li>
<a href="#">
<i class='bx bx-user'></i>
<span class="links_name">Appointments</span>
</a>
<span class="tooltip">Appointments</span>
</li>
<li>
<a href="#">
<i class='bx bx-chat'></i>
<span class="links_name">Chat</span>
</a>
<span class="tooltip">Chat</span>
</li>
<li>
<a href="#">
<i class='bx bx-pie-chart-alt-2'></i>
<span class="links_name">Reports</span>
</a>
<span class="tooltip">Reports</span>
</li>
<li>
<a href="#">
<i class='bx bx-folder'></i>
<span class="links_name">Documents</span>
</a>
<span class="tooltip">Documents</span>
</li>
<li>
<a href="#">
<i class='bx bx-cart-alt'></i>
<span class="links_name">Order</span>
</a>
<span class="tooltip">Order</span>
</li>
<li>
<a href="#">
<i class='bx bx-heart'></i>
<span class="links_name">Saved</span>
</a>
<span class="tooltip">Saved</span>
</li>
<li>
<a href="#">
<i class='bx bx-cog'></i>
<span class="links_name">Setting</span>
</a>
<span class="tooltip">Setting</span>
</li>
<li class="profile">
<div class="profile-details">
<div class="name_job">
<div class="name" id="loginButton">Sign Out</div>
</div>
<script>
document.getElementById("loginButton").addEventListener("click", function() {
// Redirect to the desired page using JavaScript
window.location.href = "index.html";
});
</script>
</div>
<i class='bx bx-log-out' id="log_out"></i>
</li>
</ul>
</div>
<style>
.btn {
border-radius: 25px; /* Adjust the value to make the button more or less round */
border-style: none;
background-color: #4CAF50; /* Add your desired background color */
color: white; /* Set text color to contrast with the background */
padding: 10px 20px; /* Add padding to the button for better appearance */
text-align: center; /* Center the text within the button */
display: inline-block; /* Make the button behave like an inline element */
margin: 100px;
}
.btn:hover {
background-color: #45a049; /* Change the background color on hover */
}
</style>
<section class="home-section">
<button class="btn rounded-pill" type="button" id="apptbtn">Schedule Appointment</button>
<script>
document.getElementById("apptbtn").addEventListener("click", function() {
// Redirect to the desired page using JavaScript
window.location.href = "appointment.html";
});
</script>
<button class="btn rounded-pill" type="button" id="x">Upload Document</button>
<button class="btn rounded-pill" type="button" id="y">Generate Report</button>
<button class="btn rounded-pill" type="button" id="z">Prescription Request</button>
<button class="btn rounded-pill" type="button" id="w">Billing and Invoice</button>
<button class="btn rounded-pill" type="button" id="u">Treatment Planning</button>
<script>
document.getElementById("w").addEventListener("click", function() {
// Redirect to the desired page using JavaScript
window.location.href = "checkout.html";
});
</script>
</section>
<script>
let sidebar = document.querySelector(".sidebar");
let closeBtn = document.querySelector("#btn");
let searchBtn = document.querySelector(".bx-search");
closeBtn.addEventListener("click", () => {
sidebar.classList.toggle("open");
menuBtnChange();//calling the function(optional)
});
searchBtn.addEventListener("click", () => { // Sidebar open when you click on the search iocn
sidebar.classList.toggle("open");
menuBtnChange(); //calling the function(optional)
});
// following are the code to change sidebar button(optional)
function menuBtnChange() {
if (sidebar.classList.contains("open")) {
closeBtn.classList.replace("bx-menu", "bx-menu-alt-right");//replacing the iocns class
} else {
closeBtn.classList.replace("bx-menu-alt-right", "bx-menu");//replacing the iocns class
}
}
</script>
</body>
</html>