-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
333 lines (328 loc) · 12.5 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
<!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" />
<link rel="stylesheet" href="./css/output.css" />
<link rel="icon" href="./assets/icons/favicon.svg" />
<title>Twitter-Clone</title>
</head>
<body class="mx-auto max-w-screen-xl bg-bgColor">
<div
class="container relative mx-auto flex h-screen flex-col sm:flex-row sm:overflow-hidden"
>
<!-- navbar -->
<header
class="box-content flex w-1/2 flex-row-reverse items-center justify-between border-borderColor pl-3 text-xl font-normal sm:box-border sm:w-8/12 sm:flex-col sm:items-end sm:border-r-2 sm:px-3 lg:w-3/12 xl:items-stretch"
>
<div class="flex sm:flex-col">
<!-- logo -->
<h1
class="flex flex-row justify-end sm:my-1 sm:h-12 sm:w-12 sm:flex-col sm:rounded-full sm:p-3 sm:py-3 sm:hover:bg-darkGray"
>
<a href="#">
<img src="./assets/icons/logo.svg" alt="logo-icon" />
</a>
</h1>
<!-- nav-bar -->
<nav
class="fixed bottom-0 left-0 flex w-full justify-around bg-bgColor text-xl text-textColor sm:relative sm:bottom-auto sm:flex-col md:left-auto"
>
<a id="nav-home" href="#">
<div class="nav-button">
<img src="./assets/icons/menu/home.svg" alt="home-icon" />
<span class="nav-header-text">Home</span>
</div>
</a>
<a id="nav-search" href="#">
<div class="nav-button block md:hidden">
<img src="./assets/icons/menu/search.svg" alt="search-icon" />
</div>
</a>
<a id="nav-explore" href="#">
<div class="nav-button">
<img src="./assets/icons/menu/explore.svg" alt="explore-icon" />
<span class="nav-header-text">Explore</span>
</div>
</a>
<a id="nav-notifications" href="#">
<div class="nav-button">
<img
src="./assets/icons/menu/notification.svg"
alt="notifications-icon"
/>
<span class="nav-header-text">Notifications</span>
</div>
</a>
<a id="nav-messages" href="#">
<div class="nav-button">
<img
src="./assets/icons/menu/messages.svg"
alt="messages-icon"
/>
<span class="nav-header-text">Messages</span>
</div>
</a>
<a id="nav-bookmarks" href="#" class="hidden sm:block">
<div class="nav-button">
<img
src="./assets/icons/menu/bookmark.svg"
alt="bookmarks-icon"
/>
<span class="nav-header-text">Bookmarks</span>
</div>
</a>
<a id="nav-lists" href="#" class="hidden sm:block">
<div class="nav-button">
<img src="./assets/icons/menu/lists.svg" alt="lists-icon" />
<span class="nav-header-text">Lists</span>
</div>
</a>
<a id="nav-profile" href="#" class="hidden sm:block">
<div class="nav-button">
<img src="./assets/icons/menu/profile.svg" alt="profile-icon" />
<span class="nav-header-text">Profile</span>
</div>
</a>
<a id="nav-more" href="#" class="hidden sm:block">
<div class="nav-button">
<img src="./assets/icons/menu/more.svg" alt="more-icon" />
<span class="nav-header-text">More</span>
</div>
</a>
</nav>
<!-- tweet-button -->
<button
class="fixed bottom-16 right-5 h-14 w-14 rounded-full bg-brandColor text-base font-bold text-textColor hover:bg-brandHoverColor sm:relative sm:bottom-0 sm:right-0 sm:h-12 sm:w-12 xl:my-1 xl:w-10/12 xl:py-3 xl:px-8"
>
<a href="#">
<span class="hidden xl:block">Tweet</span>
<img
class="p-4 sm:block sm:p-3 xl:hidden"
src="./assets/icons/common/res-tweet.svg"
alt="responsive-tweet-icon"
/>
</a>
</button>
</div>
<!-- account-button -->
<button
class="my-2.5 flex items-center justify-between rounded-full hover:bg-none xl:w-10/12 xl:p-3 xl:hover:bg-darkGray"
>
<div class="flex items-center">
<figure class="h-10 w-10">
<img
class="rounded-full"
src="./assets/images/user-profil.png"
alt="profile-pic"
/>
</figure>
<div class="mx-3 hidden flex-col text-base leading-none xl:flex">
<div class="font-bold text-textColor">Altan Kurt</div>
<div class="font-normal text-lightGray">@aaltankurt</div>
</div>
</div>
<div class="hidden xl:block">
<img
class="flex h-4 w-4"
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</button>
</header>
<!-- timeline -->
<main class="border-r-2 border-borderColor pb-14 xl:w-6/12">
<!-- timeline-bar -->
<section
class="hidden h-14 items-center justify-between border-b-2 border-borderColor pl-4 pr-1 text-lg font-bold text-textColor sm:flex"
>
<div>
<span>Latest Tweets</span>
</div>
<div
class="h-12 w-12 cursor-pointer rounded-full p-3 hover:bg-darkGray"
>
<img
src="./assets/icons/common/timeline-prop.svg"
alt="timeline-prop-icon"
/>
</div>
</section>
<div class="scrollbar-hide h-full overflow-y-auto">
<!-- tweet-editor -->
<section class="timeline-border max-sm:hidden">
<div class="flex items-start justify-center pt-5 pl-4">
<figure class="h-10 w-10">
<img
class="rounded-full"
src="./assets/images/user-profil.png"
alt="profil-pic"
/>
</figure>
</div>
<!-- textarea -->
<div
class="flex w-full flex-col justify-center p-5 text-lg font-normal"
>
<textarea
placeholder="What’s happening?"
class="scrollbar-hide block h-16 w-full resize-none overflow-y-auto bg-bgColor text-textColor outline-none placeholder:text-lightGray"
></textarea>
<!-- logo-and-button -->
<div class="flex items-center justify-between">
<div class="flex">
<div class="tweet-editor-logo">
<img
src="./assets/icons/editor/media.svg"
alt="media-icon"
/>
</div>
<div class="tweet-editor-logo">
<img src="./assets/icons/editor/gif.svg" alt="gif-icon" />
</div>
<div class="tweet-editor-logo">
<img
src="./assets/icons/editor/question.svg"
alt="question-icon"
/>
</div>
<div class="tweet-editor-logo">
<img
src="./assets/icons/editor/emoji.svg"
alt="emoji-icon"
/>
</div>
</div>
<button
class="w-3/12 rounded-full bg-brandColor py-3 px-8 text-base font-bold text-textColor hover:bg-brandHoverColor"
>
<a href="#">
<span>Tweet</span>
</a>
</button>
</div>
</div>
</section>
<!-- tweets -->
<section>
<ul id="tweetList"></ul>
</section>
</div>
</main>
<!-- sidebar -->
<aside class="ml-7 w-3/12 max-lg:hidden">
<!-- search-button -->
<button
class="mt-1 mb-3 flex w-full rounded-full border-2 border-darkGray bg-darkGray text-base"
>
<input
class="py-3 pl-3"
type="image"
src="./assets/icons/common/search.svg"
alt="search-icon"
/>
<input
class="place-light rounded-full bg-darkGray p-3 text-textColor outline-none"
type="text"
placeholder="Search Twitter"
/>
</button>
<!-- trends -->
<div class="rounded-2xl">
<div class="flex justify-between text-xl font-bold text-textColor">
<h2 class="m-1 p-3">Trends</h2>
<a href="#">
<img
class="m-1 rounded-full p-3 hover:bg-darkGray"
src="./assets/icons/common/options.svg"
alt="options-icon"
/>
</a>
</div>
<ul>
<hr class="border-1 border-borderColor" />
<li class="trends-button">
<div class="flex flex-col">
<span class="trending">Trending in Turkey</span>
<a class="trends-button-list" href="#">Frontendship</a>
<span class="tweet-counter">8.5K Tweets</span>
</div>
<div class="mr-4 mt-2">
<img
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</li>
<hr class="border-1 border-borderColor" />
<li class="trends-button">
<div class="flex flex-col">
<span class="trending">Trending</span>
<a class="trends-button-list" href="#">GitHub</a>
<span class="tweet-counter">4.1K Tweets</span>
</div>
<div class="mr-4 mt-2">
<img
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</li>
<hr class="border-1 border-borderColor" />
<li class="trends-button">
<div class="flex flex-col">
<span class="trending">Trending</span>
<a class="trends-button-list" href="#">#NBAAllStar</a>
<span class="tweet-counter">3.8K Tweets</span>
</div>
<div class="mr-4 mt-2">
<img
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</li>
<hr class="border-1 border-borderColor" />
<li class="trends-button">
<div class="flex flex-col">
<span class="trending">Trending in Turkey</span>
<a class="trends-button-list" href="#">#twitter</a>
<span class="tweet-counter">1.8K Tweets</span>
</div>
<div class="mr-4 mt-2">
<img
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</li>
<hr class="border-1 border-borderColor" />
<li class="trends-button">
<div class="flex flex-col">
<span class="trending">Music - Trending</span>
<a class="trends-button-list" href="#">Dream Theater</a>
<span class="tweet-counter">1.1K Tweets</span>
</div>
<div class="mr-4 mt-2">
<img
src="./assets/icons/common/arrow-bottom.svg"
alt="arrow-bottom-icon"
/>
</div>
</li>
<hr class="border-1 border-borderColor" />
<li
class="cursor-pointer rounded-b-2xl p-3 text-base text-brandColor hover:bg-darkGray"
>
<a href="#">Show More</a>
</li>
</ul>
</div>
</aside>
</div>
<script src="js/navbar.js"></script>
<script type="module" src="js/app.js"></script>
</body>
</html>