-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
147 lines (125 loc) · 3.61 KB
/
base.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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chat UI</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<style>
/* Global Styles */
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(to bottom, #004080, #001f33);
overflow: hidden;
color: #ffffff;
}
canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
/* Header Styles */
.header {
display: flex;
align-items: center;
justify-content: center;
padding: 15px;
background: rgba(0, 51, 102, 0.9);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.header h1 {
font-size: 32px;
color: #ffffff;
margin: 0;
}
/* Chat Container */
.chat-container {
max-width: 700px;
margin: 30px auto;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
overflow: hidden;
backdrop-filter: blur(8px);
}
/* Chat Box */
.chat-box {
padding: 20px;
height: 400px;
overflow-y: auto;
background-color: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
}
/* Messages */
.chat-box .message {
margin-bottom: 15px;
display: flex;
align-items: center;
}
.chat-box .message.user {
justify-content: flex-end;
}
.chat-box .message.bot {
justify-content: flex-start;
}
.chat-box .message span {
display: inline-block;
padding: 10px 15px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.2);
color: #fff;
max-width: 70%;
}
/* Input Box */
.input-box {
display: flex;
padding: 10px;
background: rgba(255, 255, 255, 0.2);
}
.input-box input {
flex-grow: 1;
padding: 12px;
font-size: 16px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 5px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
outline: none;
}
.input-box button {
padding: 12px 20px;
font-size: 16px;
background: #004080;
color: #ffffff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background 0.3s ease;
}
.input-box button:hover {
background: #0059b3;
}
</style>
</head>
<body>
<canvas id="particle-canvas"></canvas>
<div class="header">
<h1>weather it</h1>
</div>
<div class="chat-container">
<div class="chat-box" id="chat-box">
<!-- Messages will be displayed here -->
</div>
<div class="input-box">
<input type="text" id="message-input" placeholder="Type your message...">
<button id="send-button">Send</button>
</div>
</div>
<script src="{{ url_for('static', filename='js/script.js') }}">
</script>
</body>
</html>