-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUserProfile.html
128 lines (125 loc) · 4.03 KB
/
UserProfile.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="Userprofile.css">
<link href='https://unpkg.com/boxicons@2.0.7/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">
<div class="logo_name">Banyan Tree</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 for Clubs...">
<span class="tooltip">Search</span>
</li>
<li>
<a href="index.html">
<i class='bx bxs-home' ></i>
<span class="links_name">Home</span>
</a>
<span class="tooltip">Home</span>
</li>
<li>
<a href="#">
<i class='bx bx-user' ></i>
<span class="links_name">User</span>
</a>
<span class="tooltip">User</span>
</li>
<li>
<a href="#">
<i class='bx bx-chat' ></i>
<span class="links_name">Messages</span>
</a>
<span class="tooltip">Messages</span>
</li>
<li>
<a href="#">
<i class='bx bx-heart' ></i>
<span class="links_name">Clubs you follow</span>
</a>
<span class="tooltip">Clubs you follow</span>
</li>
<li>
<a href="#">
<i class='bx bx-cog' ></i>
<span class="links_name">Settings</span>
</a>
<span class="tooltip">Setting</span>
</li>
<li class="profile">
<div class="profile-details">
<img src="Images\profile.jpg" alt="profileImg">
<div class="name_uni">
<div class="name">Name</div>
<div class="uni">PES University</div>
</div>
</div>
<i class='bx bx-log-out' id="log_out" ></i>
</li>
</ul>
</div>
<section class="home-section">
<div class="Header">Welcome to PES University
<p>User Profile</p>
</div>
<div class="wrapper">
<div class="left">
<img src="Images\profile.jpg"
alt="user" width="100">
<h4>Name</h4>
<p>PES University</p>
</div>
<div class="right">
<div class="info">
<h3>Information</h3>
<div class="info_data">
<div class="data">
<h4>Email</h4>
<p>name@gmail.com</p>
</div>
<div class="data">
<h4>Phone</h4>
<p>9999999999</p>
</div>
</div>
</div>
</div>
<div class="social_media">
<ul>
<li><a href="#"><i class='bx bxl-facebook'></i></a></li>
<li><a href="#"><i class='bx bxl-twitter' ></i></a></li>
<li><a href="#"><i class='bx bxl-instagram' ></i></a></li>
</ul>
</div>
</div>
</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 icon
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 icons class
}else {
closeBtn.classList.replace("bx-menu-alt-right","bx-menu");//replacing the icons class
}
}
</script>
</body>
</html>