-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (70 loc) · 2.01 KB
/
index.html
File metadata and controls
80 lines (70 loc) · 2.01 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Chat App</title>
<script defer src="http://localhost:3000/socket.io/socket.io.js"></script>
<script defer src="script.js"></script>
<style>
body{
padding: 0%;
margin: 0%;
display: flex;
justify-content: center;
}
div{
margin: 2px;
}
#typing{
position: absolute;
left: 30%;
width: 300px;
height: 50px;
font-size: large;
margin-top: 5px;
box-shadow: 1px 1px grey, 2px 3px lightgrey;
border-radius: 15px;
background-color: lightcoral;
}
#message-container{
width: 80%;
max-width: 1200px;
box-shadow: 1px 1px grey, 2px 3px lightgrey;
overflow-y: scroll;
max-height: 500px;
}
#message-container div{
background-color: aquamarine;
padding: 5px;
}
#message-container div:nth-child(2n){
background-color: blueviolet;
}
#send-container{
justify-content: center;
height: 200px;
background-color: burlywood;
display: flex;
flex-wrap: wrap;
}
#send-container > button{
width: 200px;
height: 50px;
border-radius: 15px;
}
#send-container #text{
margin-left: 10%;
}
</style>
</head>
<body>
<div id="typing"></div>
<div id = "message-container"></div>
<form id="send-container">
<input type="text" id="message-input">
<button type="submit" id="send-button">Send Messsage</button>
</form>
</body>
</html>