-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (54 loc) · 1.49 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
<!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>Web_Chat</title>
<script defer src="script.js"></script>
<script defer src="https://anish853.github.io/web-_chat/socket.io/socket.io.js"></script>
<style>
body {
padding: 10px;
margin: 0;
display: flex;
justify-content: center;
background-image: url("https://picsum.photos/seed/picsum/1300/700");
background-repeat: no-repeat;
background-size: cover;
}
#message-container {
width: 80%;
max-width: 1200px;
}
#message-container div {
background-color: #CCC;
padding: 5px;}
#message-container div:nth-child(2n) {
background-color: #FFF;
padding: 5px;}
#send-container {
position: fixed;
padding-bottom: 0px;
bottom: 0;
background-color: white;
max-width: 1200px;
width: 80%;
display: flex;
height: 40px;
background-color: rgb(95, 107, 129);}
#message-input {
flex-grow: 1;
border-radius: 20px;}
#send-button{
border-radius: 20px;}
</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>