-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (53 loc) · 1.36 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
<!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>
#message-container {
width: 50%;
height: 40vh;
margin: auto;
border: 1px solid black;
margin-bottom: 1rem;
overflow: scroll;
}
#send-container {
width: 50%;
margin: auto;
font-family: Arial, Helvetica, sans-serif;
}
#send-container input[type="text"] {
width: 100%;
padding: 10px 0px;
}
#send-container #send-button {
width: 101%;
padding: 10px;
background: rgb(68, 68, 143);
color: #fff;
font-size: 1.1rem;
border: none;
margin-top: 4px;
}
.your-msg {
font-size: 1.1rem;
width: 100%;
background: #ddd;
color: #333;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="message-container"></div>
<form id="send-container">
<input type="text" id="message-input" />
<button type="submit" id="send-button">Send</button>
</form>
</body>
</html>