-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
404 lines (384 loc) · 14.6 KB
/
index.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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!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
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 active" onclick="loadPage('index')">
<span class="material-icons"> home </span>
<h2>Home</h2>
</div>
<div class="sidebarOption" onclick="loadPage('explore')">
<span class="material-icons"> tag </span>
<h2>Explore</h2>
</div>
<div class="sidebarOption" 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" onclick="loadPage('profile')">
<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 -->
<div class="feed">
<div class="feed__header">
<h2>Home</h2>
</div>
<!-- tweetbox starts -->
<div class="tweetBox">
<form>
<div class="tweetbox__input">
<div onclick="loadPage('profile')" class="tweetbox__input__profileimage">
<img
src="https://cdn140.picsart.com/361791734047201.jpg?type=webp&to=crop&r=256"
alt=""
/>
</div>
<input type="text" placeholder="What's happening?" />
</div>
<button class="tweetBox__tweetButton">Tweet</button>
</form>
</div>
<!-- tweetbox ends -->
<!-- Tweet section Start Here -->
<div class="Tweet__container" id="Tweet__container">
<div class="Tweet__section">
<!-- Header button -->
<div class="Tweet__header" onclick="hideTweetSection()">
<span class="material-icons">clear</span>
</div>
<!-- Body section -->
<div class="Tweet__message">
<!-- left side icons -->
<div class="message__left">
<img src="./images/tweeticon.PNG" alt="Tweet_lefticon" />
</div>
<!-- Message right -->
<div class="message__right">
<!-- Top right body and input message -->
<div class="message__righttop">
<textarea
type="textarea"
cols="10"
rows="4"
placeholder="What's happening?"
></textarea>
<div class="message__body">
<span class="material-icons">language</span>
<p>Everyone can reply</p>
</div>
</div>
<!-- bottom right button and tweet btn -->
<div class="message__btns">
<div class="message__attachementicons">
<span class="material-icons message__attachicons">image</span>
<span class="material-icons message__attachicons"
>gif_box</span
>
<span class="material-icons message__attachicons"
>align_horizontal_left</span
>
<span class="material-icons message__attachicons"
>sentiment_satisfied_alt</span
>
<span class="material-icons message__attachicons"
>pending_actions</span
>
</div>
<button class="message__tweetbtn">Tweet</button>
</div>
</div>
</div>
</div>
</div>
<!-- Tweet section End Here -->
<!-- post starts -->
<div class="post">
<div class="post__avatar">
<img
src="https://cachedimages.podchaser.com/256x256/aHR0cHM6Ly9jcmVhdG9yLWltYWdlcy5wb2RjaGFzZXIuY29tL2RmODZjM2RjZTg5ZDI2ZGQzZWI5NWU4YzI1MDBhMTIyLmpwZWc%3D/aHR0cHM6Ly93d3cucG9kY2hhc2VyLmNvbS9pbWFnZXMvbWlzc2luZy1pbWFnZS5wbmc%3D"
alt=""
/>
</div>
<div class="post__body">
<div class="post__header">
<div class="post__headerText">
<h3>
Elon Musk
<span class="post__headerSpecial"
><span class="material-icons post__badge"> verified </span
>@elonmusk</span
>
</h3>
</div>
<div class="post__headerDescription">
<p>
Oh sorry, yes, Roadster will have thrusters, not Plaid. Plaid is
indeed close to the theoretical maximum of a roadworthy car
without special devices.
</p>
</div>
</div>
<img
src="https://www.focus2move.com/wp-content/uploads/2020/01/Tesla-Roadster-2020-1024-03.jpg"
alt=""
/>
<div class="post__footer">
<span class="material-icons"> repeat </span>
<span class="material-icons"> favorite_border </span>
<span class="material-icons"> publish </span>
</div>
</div>
</div>
<!-- post ends -->
</div>
<!-- Trending section starts -->
<!-- feed starts -->
<div class="trending">
<div class="trend_search">
<i class="material-icons trend_search_icon" style="font-size: 28px"
>search</i
>
<div class="trend_search_font">Search Twitter</div>
</div>
<div class="trend_main">
<div class="trend_main_heading">
<div><strong>Trends for you</strong></div>
<i class="material-icons">settings</i>
</div>
<div class="trend_card_img">
<div class="trend_card_gray">Trending Worldwide</div>
<div class="trend_card_heading">#Breaking News</div>
<div class="trend_card_content">
<div class="text">
<div class="heading">Space</div>
<div class="content">
Lunar Photography improves the discovery of the moon.
</div>
</div>
<div class="trend_img">
<img src="./images/moon.jpg" alt="" />
</div>
</div>
<div class="trend_card_gray">
10,094 people are tweeting about this
</div>
</div>
<div class="trend_card">
<div class="trend_card_gray">Trending Worldwide</div>
<div class="trend_card_heading">#WorldNews</div>
<div class="trend_card_gray">
125k Tweets<br />5,094 people are tweeting about this
</div>
</div>
<div class="trend_card_img">
<div class="trend_card_gray">Trending Worldwide</div>
<div class="trend_card_heading">#Breaking News</div>
<div class="trend_card_content">
<div class="text">
<div class="heading">Animals</div>
<div class="content">
These cats are ready for<br />#internationalcatday
</div>
</div>
<div class="trend_img">
<img src="./images/cat.jpg" alt="" />
</div>
</div>
<div class="trend_card_gray">
2,757 people are tweeting about this
</div>
</div>
<div class="trend_card">
<div class="trend_card_gray">Trending Worldwide</div>
<div class="trend_card_heading">#GreatestOfAllTime</div>
<div class="trend_card_gray">
100k Tweets<br />4,123 people are tweeting about this
</div>
</div>
<div class="show-more">Show More</div>
</div>
</div>
<!-- Trending section ends -->
<!-- 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 messagesPopup = document.querySelector(".messages__popup");
messagesPopup.classList.toggle("popup");
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");
}
</script>
<!-- Bottom right messages section ends -->
</body>
</html>