-
Notifications
You must be signed in to change notification settings - Fork 0
/
chatbox1.html
454 lines (441 loc) · 12.8 KB
/
chatbox1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.rtl.min.css"
integrity="sha384-nU14brUcp6StFntEOOEBvcJm4huWjB0OcIeQ3fltAfSmuZFrkAif0T+UtNGlKKQv" crossorigin="anonymous">
<title>Document</title>
<style>
*{
box-sizing:border-box;
}
body{
background-color:#abd9e9;
font-family:Arial;
}
#container{
width:750px;
height:800px;
background:#eff3f7;
margin:0 auto;
font-size:0;
border-radius:5px;
overflow:hidden;
}
aside{
width:260px;
height:800px;
background-color:#3b3e49;
display:inline-block;
font-size:15px;
vertical-align:top;
}
main{
width:490px;
height:800px;
display:inline-block;
font-size:15px;
vertical-align:top;
}
aside header{
padding:30px 20px;
}
aside input{
width:100%;
height:50px;
line-height:50px;
padding:0 50px 0 20px;
background-color:#5e616a;
border:none;
border-radius:3px;
color:#fff;
background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_search.png);
background-repeat:no-repeat;
background-position:170px;
background-size:40px;
}
aside input::placeholder{
color:#fff;
}
aside ul{
padding-left:0;
margin:0;
list-style-type:none;
overflow-y:scroll;
height:690px;
}
aside li{
padding:10px 0;
}
aside li:hover{
background-color:#5e616a;
}
h2,h3{
margin:0;
}
aside li img{
border-radius:50%;
margin-left:20px;
margin-right:8px;
}
aside li div{
display:inline-block;
vertical-align:top;
margin-top:12px;
}
aside li h2{
font-size:14px;
color:#fff;
font-weight:normal;
margin-bottom:5px;
}
aside li h3{
font-size:12px;
color:#7e818a;
font-weight:normal;
}
.status{
width:8px;
height:8px;
border-radius:50%;
display:inline-block;
margin-right:7px;
}
.green{
background-color:#58b666;
}
.orange{
background-color:#ff725d;
}
.blue{
background-color:#6fbced;
margin-right:0;
margin-left:7px;
}
main header{
height:110px;
padding:30px 20px 30px 40px;
}
main header > *{
display:inline-block;
vertical-align:top;
}
main header img:first-child{
border-radius:50%;
}
main header img:last-child{
width:24px;
margin-top:8px;
}
main header div{
margin-left:10px;
margin-right:145px;
}
main header h2{
font-size:16px;
margin-bottom:5px;
}
main header h3{
font-size:14px;
font-weight:normal;
color:#7e818a;
}
#chat{
padding-left:0;
margin:0;
list-style-type:none;
overflow-y:scroll;
height:535px;
border-top:2px solid #fff;
border-bottom:2px solid #fff;
}
#chat li{
padding:10px 30px;
}
#chat h2,#chat h3{
display:inline-block;
font-size:13px;
font-weight:normal;
}
#chat h3{
color:#bbb;
}
#chat .entete{
margin-bottom:5px;
}
#chat .message{
padding:20px;
color:#fff;
line-height:25px;
max-width:90%;
display:inline-block;
text-align:left;
border-radius:5px;
}
#chat .me{
text-align:right;
}
#chat .you .message{
background-color:#58b666;
}
#chat .me .message{
background-color:#6fbced;
}
#chat .triangle{
width: 0;
height: 0;
border-style: solid;
border-width: 0 10px 10px 10px;
}
#chat .you .triangle{
border-color: transparent transparent #58b666 transparent;
margin-left:15px;
}
#chat .me .triangle{
border-color: transparent transparent #6fbced transparent;
margin-left:375px;
}
main footer{
height:155px;
padding:20px 30px 10px 20px;
}
main footer textarea{
resize:none;
border:none;
display:block;
width:100%;
height:80px;
border-radius:3px;
padding:20px;
font-size:13px;
margin-bottom:13px;
}
main footer textarea::placeholder{
color:#ddd;
}
main footer img{
height:30px;
cursor:pointer;
}
main footer a{
text-decoration:none;
text-transform:uppercase;
font-weight:bold;
color:#6fbced;
vertical-align:top;
margin-left:333px;
margin-top:5px;
display:inline-block;
}
</style>
</head>
<body>
<!-- nav -->
<nav class="navbar navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasDarkNavbar"
aria-controls="offcanvasDarkNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#">E-Circuit <img src="E-Circuit logo.png" width="35"></a>
<a href="index.html"><button type="button" class="btn btn-outline-light" role="link">Home</button></a>
<a href="projects.html"><button type="button" class="btn btn-outline-light" role="link">Projects</button></a>
<a href="learn.html"><button type="button" class="btn btn-outline-light" role="link">Learn</button></a>
<a href="components.html"><button type="button" class="btn btn-outline-light" role="link">Components</button></a>
<a href="datasheet.html"><button type="button" class="btn btn-outline-light" role="link">Datasheets</button></a>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<button type="button" class="btn btn-outline-light">
Guides
</button>
</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="chatbox1.html">Chat-Box</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Collaborate</a></li>
</ul>
</li>
<a href="login.html"><button type="button" class="btn btn-outline-light" role="link">Login/Register</button></a>
<div class="offcanvas offcanvas-end text-bg-dark" tabindex="-1" id="offcanvasDarkNavbar"
aria-labelledby="offcanvasDarkNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasDarkNavbarLabel">E-Circuit</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas"
aria-label="Close"></button> </div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="datasheet.html">Datasheets</a>
</li>
<li class="nav-item">
<a class="nav-link" href="components.html">Components</a>
</li>
<li class="nav-item">
<a class="nav-link" href="learn.html">Learn</a>
</li>
<li class="nav-item">
<a class="nav-link" href="projects.html">Projects</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
Guides
</a>
<ul class="dropdown-menu dropdown-menu-dark">
<li><a class="dropdown-item" href="chatbox1.html">Chat-Box</a></li>
<li><a class="dropdown-item" href="#">Collaborate</a></li>
<li>
<hr class="dropdown-divider">
</li>
<li><a class="dropdown-item" href="#">More</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="login.html">Login/Register</a>
</li>
</ul>
<form class="d-flex mt-3" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-success" type="submit">Search</button>
</form>
</div>
</div>
</div>
</nav>
<div id="container">
<aside>
<header>
<input type="text" placeholder="search">
</header>
<ul>
<li>
<img src="https://logodix.com/logo/1070634.png" width="50" alt="">
<div>
<h2>Expert/Faculty</h2>
<h3>
<span class="status orange"></span>
offline
</h3>
</div>
</li>
<li>
<img src="https://logodix.com/logo/1070634.png" width="50" alt="">
<div>
<h2>Expert/Faculty</h2>
<h3>
<span class="status green"></span>
online
</h3>
</div>
</li>
<li>
<img src="https://logodix.com/logo/1070634.png" width="50" alt="">
<div>
<h2>Expert/Faculty</h2>
<h3>
<span class="status orange"></span>
offline
</h3>
</div>
</li>
<li>
<img src="https://logodix.com/logo/1070634.png" width="50" alt="">
<div>
<h2>Expert/Faculty</h2>
<h3>
<span class="status orange"></span>
offline
</h3>
</div>
</li>
</ul>
</aside>
<main>
<header>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/chat_avatar_01.jpg" alt="">
<div>
<h2>Chat with Expert/Faculty</h2>
<h3>already 1902 messages</h3>
</div>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_star.png" alt="">
</header>
<ul id="chat">
<li class="you">
<div class="entete">
<span class="status green"></span>
<h3>10:12AM, Today</h3>
</div>
<div class="triangle"></div>
<div class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
</div>
</li>
<li class="me">
<div class="entete">
<h3>10:12AM, Today</h3>
<h2>you</h2>
<span class="status blue"></span>
</div>
<div class="triangle"></div>
<div class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
</div>
</li>
<li class="me">
<div class="entete">
<h3>10:12AM, Today</h3>
<h2>you</h2>
<span class="status blue"></span>
</div>
<div class="triangle"></div>
<div class="message">
OK
</div>
</li>
<li class="you">
<div class="entete">
<span class="status green"></span>
<h3>10:12AM, Today</h3>
</div>
<div class="triangle"></div>
<div class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
</div>
</li>
<li class="me">
<div class="entete">
<h3>10:12AM, Today</h3>
<h2>you</h2>
<span class="status blue"></span>
</div>
<div class="triangle"></div>
<div class="message">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor.
</div>
</li>
<li class="me">
<div class="entete">
<h3>10:12AM, Today</h3>
<h2>you</h2>
<span class="status blue"></span>
</div>
<div class="triangle"></div>
<div class="message">
OK
</div>
</li>
</ul>
<footer>
<textarea placeholder="Type your message"></textarea>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_picture.png" alt="">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1940306/ico_file.png" alt="">
<a href="#">Send</a>
</footer>
</main>
</div>
</body>
</html>