-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
475 lines (421 loc) · 12.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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
<!-- @format -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta tag -->
<meta charset="UTF-8" />
<!-- SEO - Search Engine meta tags -->
<meta
name="description"
content="Twitter Clone build With Node.js and Vanilla Javascript "
/>
<meta name="keywords" content="HTML, CSS, JavaScript Node.Js " />
<meta name="author" content="Saddam Arbaa" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- First Mobile Viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Google Web Fonts link -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<!-- Normalize.css to makes browsers render all elements more consistently and in line with modern standards. -->
<link rel="stylesheet" href="./assets/styles/normalize.css" />
<!-- font Awesome Library -->
<link rel="stylesheet" href="./assets/styles/all.min.css" />
<!-- general Rules.css css file -->
<link rel="stylesheet" href="./assets/styles/generalRules.css" />
<!-- main Tweets.css css file -->
<link rel="stylesheet" href="./assets/styles/mainTweets.css" />
<!-- Tweet css file -->
<link rel="stylesheet" href="./assets/styles/tweet.css" />
<!-- right Sidebar css file -->
<link rel="stylesheet" href="./assets/styles/rightSidebar.css" />
<!-- left Sidebar css file -->
<link rel="stylesheet" href="./assets/styles/leftSidebar.css" />
<!-- sessions.Js file -->
<!-- load this one directly -->
<script src="./assets/scripts/sessions.js"></script>
<!-- Main Js file -->
<script src="./assets/scripts/main.js" defer></script>
<!-- Tweet Js file -->
<script src="./assets/scripts/tweet.js" defer></script>
<!-- moment.js cdn link -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script
src="https://kit.fontawesome.com/c939d0e917.js"
crossorigin="anonymous"
></script>
<!-- title -->
<title>Twitter Clone</title>
</head>
<body>
<div class="container">
<span class="sign-in-login" id="removeTokenButton" onclick="LogOut()">
<i class="fas fa-sign-in-alt"></i>
Sign Out
</span>
<!-- grid container -->
<div class="grid-container">
<!-- Start left sidebar -->
<div class="navigation-leftSidebar-wrapper padding20">
<div class="logo side-icon">
<i class="fab fa-twitter fa-2x"></i>
</div>
<div class="profile-wrapper">
<div class="profile">
<img src="./assets/img/profle.jpg" alt="profile" />
</div>
</div>
<div class="home side-icon">
<i class="fas fa-home"></i>
<span>Home</span>
</div>
<div class="search side-icon">
<i class="fas fa-search"></i>
<span>Search</span>
</div>
<div class="explore side-icon">
<i class="fas fa-hashtag"></i>
<span>Explore</span>
</div>
<div
class="notifications side-icon"
data-progress="3"
id="notifications"
>
<i class="far fa-bell"></i>
<span>Notifications</span>
</div>
<div class="message side-icon">
<i class="fas fa-envelope-square"></i>
<span> Message</span>
</div>
<div class="user side-icon">
<i class="far fa-user"></i>
<span> Profile</span>
</div>
<div class="more side-icon">
<i class="far fa-comment-dots"></i>
<span>More</span>
</div>
<div class="tweet side-icon" id="myBtn"><span>Tweet</span></div>
<div class="add side-icon">
<i class="fas fa-plus-circle" id="secondClosingdBtn"></i>
</div>
</div>
<!-- End left sidebar -->
<!-- Start main container -->
<div class="tweets-main-wrapper padding-top20">
<div class="tweets-home-container">
<div class="home">Home</div>
<i class="far fa-star"></i>
</div>
<div class="tweets-search-container">
<!-- call getTwitterData function and keyboard event -->
<input
type="text"
name="search"
id="user-search-input"
placeholder="Search Tweets"
autofocus
onkeyup="onEnter(event)"
/>
<div class="search-icon-wrapper">
<i
class="fas fa-search fa-flip-horizontal"
onclick="getTwitterData()"
></i>
</div>
</div>
<div class="tweets-list-container" id="tweets-list-container">
<div class="welcome-message-container">
<h3>Welcome to Twitter</h3>
<p>
Use the search above to see what,s happening around the
world.
</p>
</div>
<div class="tweets-user-info">
<div class="image"></div>
<div class="info">
<div class="name">Coach | Saddam Arbaa</div>
<div class="twitter-name">@ArbaaSaddam</div>
</div>
<div class="tweets-user-info-add">
<i class="fas fa-ellipsis-h" title="More"></i>
</div>
</div>
<div class="tweets-text-container">
<p>
Hi everyone - I am looking for a new role and would
appreciate your support. Thank you in advance for any
connections, advice, or opportunities you can offer.
<span class="hastag"
>#OpenToWork #opportunities #job #search #hiring
#recruiting</span
>
</p>
</div>
<div class="tweets-images-container">
<div class="img">
<img
src="./assets/img/w-removebg-preview.png"
alt="img"
loading="lazy"
/>
</div>
<div class="img">
<img
src="./assets/img/ww-removebg-preview.png"
alt="img"
loading="lazy"
/>
</div>
<div class="img">
<img
src="./assets/img/profle-removebg-preview.png"
alt="img"
loading="lazy"
/>
</div>
</div>
<div class="tweets-date-container">20 hours age</div>
<div class="tweets-addtional-container">
<i title="Reply" class="far fa-comments reply"></i>
<i title="share" class="fas fa-retweet"></i>
<i title="Like" class="fas fa-heart"> 20</i>
<i title="Share" class="fas fa-share-alt"></i>
</div>
</div>
<!-- Next page -->
<!-- onclick call next page function -->
<div class="next-page-conatiner" onclick="onNextPage()">
<i
onclick="onNextPage()"
title="next page "
class="fas fa-arrow-right fa-rotate-90"
></i>
</div>
</div>
<!-- End main container -->
<!-- Start right sidebar -->
<div class="tweets-rightSidebar-wrapper padding20">
<div class="tweet-sidebar">
<div class="trends heading-trend">
<div class="trend heading">
Trends for you
<i class="fas fa-cog" title="Setting"></i>
</div>
</div>
<div class="trends">
<div class="trend">
<p onclick="selectTrend(this)">#coding</p>
<i class="fas fa-ellipsis-h" title="More"></i>
<span class="trending-type">Trending in Coding</span>
<span class="number-of-tweets">62.6K Tweets</span>
</div>
</div>
<div class="trends">
<div class="trend">
<p onclick="selectTrend(this)">#JavaScript</p>
<i class="fas fa-ellipsis-h" title="More"></i>
<span class="trending-type"
>Trending in Vanilla JS</span
>
<span class="number-of-tweets">106.6K Tweets</span>
</div>
</div>
<div class="trends">
<div class="trend">
<p onclick="selectTrend(this)">#React</p>
<i class="fas fa-ellipsis-h" title="More"></i>
<span class="trending-type">Trending in React JS </span>
<span class="number-of-tweets">752.6K Tweets</span>
</div>
</div>
<div class="trends">
<div class="trend">
<p onclick="selectTrend(this)">#100daysofcode</p>
<i class="fas fa-ellipsis-h" title="More"></i>
<span class="trending-type"
>Trending in 100daysofcode</span
>
<span class="number-of-tweets">12752.6K Tweets</span>
</div>
</div>
<div class="trends">
<div onclick="selectTrend(this)" class="trend">
Show More
</div>
</div>
</div>
<div class="tweet-sidebar topic-to-flow">
<div class="trends heading-trend">
<div class="trend heading">Topics to follow</div>
</div>
<div class="trends">
<div class="trend">
<div>
<p onclick="selectTrend(this)">News</p>
<span onclick="selectTrend(this)">COVID-19</span>
</div>
<div class="btton-container">
<button>Flow</button>
<i class="fas fa-times"></i>
</div>
</div>
</div>
<div class="trends">
<div class="trend">
<div>
<p onclick="selectTrend(this)">Internship</p>
<span onclick="selectTrend(this)"
>Coding future</span
>
</div>
<div class="btton-container">
<button>Flow</button>
<i class="fas fa-times"></i>
</div>
</div>
</div>
<div class="trends">
<div class="trend">
<div>
<p onclick="selectTrend(this)">Scholarships</p>
<span onclick="selectTrend(this)">Eduction</span>
</div>
<div class="btton-container">
<button>Flow</button>
<i class="fas fa-times"></i>
</div>
</div>
</div>
<div class="trends">
<div class="trend">
<div>
<p onclick="selectTrend(this)">VS Code</p>
<span onclick="selectTrend(this)">Code editor</span>
</div>
<div class="btton-container">
<button>Flow</button>
<i class="fas fa-times"></i>
</div>
</div>
</div>
<div class="trends">
<div onclick="selectTrend(this)" class="trend">
Show More
</div>
</div>
</div>
<!-- footer -->
<div class="tweet-sidebar copyright">
<div class="trends">
<p>
© 2021 <span>Twitter , Inc.</span> All Right
Reversed
</p>
</div>
</div>
</div>
</div>
</div>
<!-- Start the Footer Section -->
<footer class="footer page__footer">
<div class="page__footer__container">
<!-- copyRight -->
<div class="footer__copyRight">
Made With
<i class="fa fa-heart"> </i> By
<a class="name" href="#" target="_blank"> Saddam Inc</a> ©
2021
</div>
<!-- social Media -->
<div class="footer__socialMedia">
<a class="facebook" href="https://www.facebook.com/saddam.arbaa">
<i class="fab fa-facebook-square fa-2x"></i>
</a>
<a class="github" href="https://github.com/saddamarbaa">
<i class="fab fa-github-square fa-2x"> </i
></a>
<a
class="instagram"
href="https://www.instagram.com/saddam.dev/"
>
<i class="fab fa-instagram-square fa-2x"> </i
></a>
<a class="twitter" href="https://twitter.com/ArbaaSaddam/">
<i class="fab fa-twitter-square fa-2x"></i>
</a>
<a
class="linkedin"
href="https://www.linkedin.com/in/saddamarbaa/"
>
<i class="fab fa-linkedin-in fa-2x"> </i
></a>
</div>
</div>
</footer>
<!-- Start Scroll top button -->
<button id="scrollToTopBtn" class="back-to-top">
<i class="fas fa-angle-double-up"> </i>
</button>
<!-- End Scroll top button -->
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="close-btn-continer">
<span class="close" id="closeSpan" title="close">×</span>
</div>
<div class="form-container">
<form
id="newPostForm"
action="myFormAction"
method="post"
autocomplete="off"
>
<div class="post-content-container">
<textarea
name="post-content"
id="form-post-content"
placeholder="What's happening?"
required
></textarea>
</div>
<div class="form-footer-wrapper">
<div class="post-image-Container">
<label for="form-post-image">Choose Image</label>
<input
type="file"
name="post-image"
id="form-post-image"
accept="image/*"
/>
</div>
<div class="post-button-container">
<button class="btn-no-styles" type="submit">
<i
class="fas fa-plus-circle"
title="Add"
onclick="submitNewTweet()"
></i>
</button>
<button
type="submit"
id="form-post-submit"
onclick="submitNewTweet()"
>
Tweet
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>