-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
243 lines (227 loc) · 7.65 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
<!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>WhatsApp</title>
<link rel="stylesheet" href="styles/core.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="styles/sidebar.css">
<link rel="stylesheet" href="styles/chat-window.css">
<link rel="stylesheet" href="styles/chat-tile.css">
<link rel="stylesheet" href="styles/chat-message.css">
</head>
<body>
<main>
<!-- Sidebar -->
<aside id="sidebar">
<header id="sidebar-header">
<img src="https://picsum.photos/id/10/50" alt="" class="avatar" id="profile-image">
<div class="toolbar">
<img src="icons/communities.svg" alt="" class="icon">
<img src="icons/status.svg" alt="" class="icon">
<img src="icons/new-chat.svg" alt="" class="icon">
<div class="dropdown">
<img src="icons/menu.svg" alt="" class="icon dropdown-button">
<div class="dropdown-content">
<a href="#">New group</a>
<a href="#">New community</a>
<a href="#">Archived</a>
<a href="#">Starred messages</a>
<a href="#">Select chats</a>
<a href="#">Settings</a>
<a href="#">Log out</a>
</div>
</div>
</div>
</header>
<form id="search-toolbar">
<input type="search" name="" id="search-input" placeholder="Search or start a new chat">
<img src="icons/filter.svg" alt="" class="icon">
</form>
<div class="connectivity-notification">
<img src="icons/warning.svg" alt="Offline warning">
<div>
<div class="connectivity-notification-title">
Computer not connected
</div>
<span>
Make sure your computer has an active Internet connection
</span>
</div>
</div>
<section id="sidebar-contents">
<div id="chats-list">
<div class="chat-tile">
<img src="https://picsum.photos/id/103/50" alt="" class="chat-tile-avatar">
<div class="chat-tile-details">
<div class="chat-tile-title">
<span>Friends 🤗</span>
<span>Tuesday</span>
</div>
<div class="chat-tile-subtitle">
<span>You: hey there! how are you?</span>
<span class="chat-tile-menu">
<img src="icons/pin.svg" alt="" class="pin">
</span>
</div>
</div>
</div>
<div class="chat-tile">
<img src="https://picsum.photos/id/104/50" alt="" class="chat-tile-avatar">
<div class="chat-tile-details">
<div class="chat-tile-title">
<span>Family</span>
<span>10:34 Pm</span>
</div>
<div class="chat-tile-subtitle">
<span>Papa: You gotta be kidding me</span>
<span class="chat-tile-menu">
<img src="icons/pin.svg" alt="" class="pin">
</span>
</div>
</div>
</div>
<div class="chat-tile">
<img src="https://picsum.photos/id/106/50" alt="" class="chat-tile-avatar">
<div class="chat-tile-details">
<div class="chat-tile-title">
<span>Amor 💖</span>
<span>Saturday</span>
</div>
<div class="chat-tile-subtitle">
<span>You do not understand what I'm </span>
<span class="chat-tile-menu">
<img src="icons/pin.svg" alt="" class="pin">
</span>
</div>
</div>
</div>
<div class="chat-tile">
<img src="https://picsum.photos/id/110/50" alt="" class="chat-tile-avatar">
<div class="chat-tile-details">
<div class="chat-tile-title">
<span>John</span>
<span>Saturday</span>
</div>
<div class="chat-tile-subtitle">
<span>Reply in group fast</span>
<span class="chat-tile-menu">
<img src="icons/pin.svg" alt="" class="pin">
</span>
</div>
</div>
</div>
</div>
</section>
</aside>
<!-- Sidebar ends -->
<!-- Chat window -->
<section id="chat-window">
<header id="chat-window-header">
<img src="https://picsum.photos/id/103/50" alt="" class="avatar" id="profile-image">
<div id="active-chat-details">
<h3>Friends 🤗</h3>
<div class="info">You and 69 others</div>
</div>
<img src="icons/search.svg" alt="" class="icon">
<div class="dropdown">
<img src="icons/menu.svg" alt="" class="icon dropdown-button">
<div class="dropdown-content contact-menu">
<a href="#">Contact info</a>
<a href="#">Select messages</a>
<a href="#">Close chat</a>
<a href="#">Mute notifications</a>
<a href="#">Disappearing messages</a>
<a href="#">Clear messages</a>
<a href="#">Delete chat</a>
<a href="#">Report</a>
<a href="#">Block</a>
</div>
</div>
</header>
<div id="chat-window-contents">
<div class="datestamp-container">
<span class="datestamp">
03/05/2023
</span>
</div>
<!-- Message group 1 -->
<div class="chat-message-group">
<img src="https://picsum.photos/50" alt="" class="chat-message-avatar">
<div class="chat-messages">
<div class="chat-message-container">
<div class="chat-message chat-message-first">
<div class="chat-message-sender">Kshitiz</div>
Hey there, how are you doing?
<span class="chat-message-time">7:22 am</span>
</div>
<div class="emoji-toolbar">
<img src="icons/emoji.svg" alt="" class="icon reaction-button">
<div class="reaction-emoji-selector">
<a href="#" class="icon">👍🏻</a>
<a href="" class="icon">💖</a>
<a href="" class="icon">😂</a>
<a href="" class="icon"></a>
<a href="" class="icon"></a>
<a href="" class="icon"></a>
</div>
</div>
</div>
<div class="chat-message">
Are you up to some fun this weekend?
<span class="chat-message-time">7:22 am</span>
</div>
<div class="chat-message">
I'm thinking of going to the beach
<span class="chat-message-time">7:23 am</span>
</div>
</div>
</div>
<!-- Message group 2 -->
<div class="chat-message-group">
<img src="https://picsum.photos/id/102/50" alt="" class="chat-message-avatar">
<div class="chat-messages">
<div class="chat-message-container">
<div class="chat-message chat-message-first">
<div class="chat-message-sender">John</div>
Sure man
<span class="chat-message-time">7:30 am</span>
</div>
<div class="emoji-toolbar">
<img src="icons/emoji.svg" alt="" class="icon reaction-button">
<div class="reaction-emoji-selector">
<a href="#" class="icon">👍🏻</a>
<a href="" class="icon">💖</a>
<a href="" class="icon">😂</a>
<a href="" class="icon"></a>
<a href="" class="icon"></a>
<a href="" class="icon"></a>
</div>
</div>
</div>
<div class="chat-message">
When are you free? Let's meet at the cafe first.
<span class="chat-message-time">7:30 am</span>
</div>
</div>
</div>
</div>
<footer id="chat-window-footer">
<img src="icons/emoji.svg" alt="" class="icon">
<img src="icons/attachment.svg" alt="" class="icon">
<input type="search" name="message" id="compose-chat-box" placeholder="Type a message"
autocomplete="off">
<img src="icons/mic.svg" alt="" class="icon">
</footer>
<a class="scroll-to-top-button" href="#"><img src="icons/arrow-down.svg" alt=""
class="icon scroll-to-top-button-icon" height=""></a>
</section>
<!-- Chat window ends -->
</main>
<!-- Import Scripts -->
<script src="scripts/scroll-to-top.js"></script>
<script src="scripts/check-connectivity.js"></script>
</body>
</html>