-
Notifications
You must be signed in to change notification settings - Fork 0
/
notification.html
244 lines (231 loc) · 8.32 KB
/
notification.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Twitter Clone Web App</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="notification.css" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
crossorigin="anonymous"
/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<!-- sidebar starts -->
<div class="sidebar">
<i class="fab fa-twitter"></i>
<div class="sidebarOption" onclick="loadPage('index')">
<span class="material-icons"> home </span>
<h2>Home</h2>
</div>
<div class="sidebarOption" onclick="loadPage('explore')">
<span class="material-icons"> search </span>
<h2>Explore</h2>
</div>
<div class="sidebarOption active" onclick="loadPage('notification')">
<span class="material-icons"> notifications_none </span>
<h2>Notifications</h2>
</div>
<div class="sidebarOption" onclick="loadPage('message')">
<span class="material-icons"> mail_outline </span>
<h2>Messages</h2>
</div>
<div class="sidebarOption">
<span class="material-icons"> bookmark_border </span>
<h2>Bookmarks</h2>
</div>
<div class="sidebarOption">
<span class="material-icons"> list_alt </span>
<h2>Lists</h2>
</div>
<div class="sidebarOption">
<span class="material-icons"> perm_identity </span>
<h2>Profile</h2>
</div>
<div class="sidebarOption">
<span class="material-icons"> more_horiz </span>
<h2>More</h2>
</div>
<button class="sidebar__tweet" onclick="showTweetSection()">Tweet</button>
</div>
<!-- sidebar ends -->
<!-- feed starts here -->
<div class="feed">
<!-- header section starts -->
<header>
<!-- notification header with settings icon starts -->
<div class="top-section">
<span>Notifications</span>
<i class="fas fa-cog"></i>
</div>
<!-- notification header with settings icon ends -->
<!-- navbar section starts -->
<nav>
<a>All</a>
<a>Mentions</a>
</nav>
<!-- navbar section ends -->
</header>
<!-- header section ends -->
</div>
<!-- feed ends here -->
<!-- Bottom right messages section starts -->
<div class="messages__popup">
<div class="messages__popup__header" onclick="myFunction()">
<h3>Messages</h3>
<span class="material-icons"> mail_outline </span>
<span id="material-icons-id-u" class="material-icons">
expand_less
</span>
<span id="material-icons-id-d" class="material-icons">
expand_more
</span>
</div>
<div class="messages__popup__chats" id="messages__popup__chats__id">
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Saheel.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Saheel M </strong> @savvysaheel</p>
<p class="messages__popup__chat__message__msg">
Reacted with 😂
</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 4</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Yash.png"
/>
<div class="messages__popup__chat__message">
<p><strong>Yash Patel </strong> @yashpatel458</p>
<p class="messages__popup__chat__message__msg">
Can you check that bug again! 👨🏻💻
</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 4</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Aryan.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Aryan Kadia</strong> @ak523</p>
<p class="messages__popup__chat__message__msg">
Time to hit the Gym 💪🏻
</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 4</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Poojan.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Poojan Valadiya </strong> @poojanV55</p>
<p class="messages__popup__chat__message__msg">
Congratulations Bro 🏅
</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 3</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Rushi.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Rushi Donga </strong> @rushidonga</p>
<p class="messages__popup__chat__message__msg">
Reacted with 💛
</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 3</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Kashyap.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Kashyap </strong> @kashyap3</p>
<p class="messages__popup__chat__message__msg">lol 😝</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Oct 2</p>
</div>
</div>
<div class="messages__popup__chat">
<img
class="messages__popup__chat__profile__img"
src="/images/Hetvi.png"
/>
<div class="messages__popup__chat__message">
<p><strong> Hetvi Hadvani </strong> @Hetvi07</p>
<p class="messages__popup__chat__message__msg">Reacted with 🔥</p>
</div>
<div class="messages__popup__chat__message__date">
<p>Sept 30</p>
</div>
</div>
<div class="messages__popup__chat"></div>
<div class="messages__popup__chat"></div>
</div>
</div>
<script>
function myFunction() {
var element = document.getElementById("messages__popup__chats__id");
element.classList.toggle("toggle__messages__popup__chats");
var arrowUp = document.getElementById("material-icons-id-u");
arrowUp.classList.toggle("toggle__arrow__up");
var arrowDown = document.getElementById("material-icons-id-d");
arrowDown.classList.toggle("toggle__arrow__down");
}
// This function popup the tweet section for tweeting onclick
function showTweetSection() {
let TweetContainer = document.getElementById("Tweet__container");
TweetContainer.classList.add("show__tweet");
}
// This function hides the tweet section onclick on cross
function hideTweetSection() {
let TweetContainer = document.getElementById("Tweet__container");
TweetContainer.classList.remove("show__tweet");
}
const navLinks = document.querySelectorAll("nav a");
navLinks.forEach((navLink) => {
navLink.addEventListener("click", () => {
navLink.classList.add("active");
navLinks.forEach((item) => {
item != navLink && item.classList.remove("active");
});
});
});
</script>
<!-- Bottom right messages section ends -->
</body>
</html>