Skip to content

Commit e39aa3f

Browse files
redesign
1 parent ed78a45 commit e39aa3f

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

core/__pycache__/urls.cpython-310.pyc

0 Bytes
Binary file not shown.

db.sqlite3

0 Bytes
Binary file not shown.

templates/room.html

+30-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8"/>
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title>Chat Room</title>
7+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
8+
<style>
9+
/* Additional CSS for mobile responsiveness */
10+
@media (max-width: 576px) {
11+
#chat-log, #chat-message-input, #chat-message-submit {
12+
width: 100%;
13+
}
14+
}
15+
</style>
616
</head>
717
<body>
8-
<textarea id="chat-log" cols="100" rows="20"></textarea><br>
9-
<input id="chat-message-input" type="text" size="100"><br>
10-
<input id="chat-message-submit" type="button" value="Send">
18+
<div class="container">
19+
<div class="row">
20+
<div class="col-12 mt-2">
21+
<textarea style="background-color: black;" id="chat-log" cols="94" rows="10" disabled></textarea>
22+
</div>
23+
</div>
24+
<div class="row">
25+
<div class="col-9">
26+
<input style="background-color: orange;" id="chat-message-input" type="text" class="form-control" placeholder="Type your message">
27+
</div>
28+
<div class="col-3">
29+
<input class="btn btn-success w-100" id="chat-message-submit" type="button" value="Send">
30+
</div>
31+
</div>
32+
</div>
33+
1134
{{ room_name|json_script:"room-name" }}
35+
1236
<script>
1337
const roomName = JSON.parse(document.getElementById('room-name').textContent);
1438

@@ -45,5 +69,7 @@
4569
messageInputDom.value = '';
4670
};
4771
</script>
72+
73+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
4874
</body>
4975
</html>

0 commit comments

Comments
 (0)