-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (113 loc) · 2.89 KB
/
index.html
File metadata and controls
113 lines (113 loc) · 2.89 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat Room Example</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.chat-container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.room-header {
background: #007bff;
color: white;
padding: 20px;
text-align: center;
}
.room-header h3 {
margin: 0;
font-size: 1.5em;
}
.room-controls {
padding: 20px;
border-bottom: 1px solid #eee;
display: flex;
gap: 10px;
align-items: center;
}
.room-controls label {
font-weight: 500;
}
.room-controls input {
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
flex: 1;
}
.messages {
height: 400px;
overflow-y: auto;
padding: 20px;
border-bottom: 1px solid #eee;
}
.message {
margin-bottom: 15px;
padding: 12px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #007bff;
}
.message-sender {
font-weight: bold;
color: #007bff;
margin-bottom: 5px;
}
.message-text {
margin-bottom: 5px;
}
.message-timestamp {
font-size: 0.85em;
color: #666;
}
.empty-message {
text-align: center;
color: #666;
padding: 40px;
font-style: italic;
}
.input-area {
display: flex;
padding: 20px;
gap: 10px;
}
.input-area input {
flex: 1;
padding: 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 16px;
}
.input-area button {
padding: 12px 24px;
background: #007bff;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
}
.input-area button:disabled {
background: #ccc;
cursor: not-allowed;
}
.input-area button:hover:not(:disabled) {
background: #0056b3;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/frontend/main.tsx"></script>
</body>
</html>