-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.html
More file actions
254 lines (198 loc) · 6.34 KB
/
chat.html
File metadata and controls
254 lines (198 loc) · 6.34 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chat</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!--
<script src="https://cdn.jsdelivr.net/npm/openai@3.2.1/dist/index.min.js"></script>
-->
<script type="module" src="bundle3.js"></script>
<style>
body,h1,h2,h3,h4,h5,h6 {font-family: "Raleway", sans-serif}
body, html {
height: 100%;
line-height: 1.8;
}
.w3-bar .w3-button {
padding: 16px;
}
.w3-bar .logo {
padding: 0px;
}
.chat-body .chat-message {
display: flex;
flex-direction: column;
align-items: flex-start; /* Add this line to align to the left */
}
.chat-message.bot-message {
background-color: lightgreen;
border: 1px solid green;
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
}
.chat-message.user-message {
background-color: lightblue;
border: 1px solid blue;
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
}
body {
margin-top: 100px;
padding: 0;
}
.container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100%;
}
.chat-header {
display: flex;
justify-content: center;
align-items: center;
height: 10%;
width: 100%;
}
.center-logo {
display: flex;
justify-content: center;
align-items: center;
width: 60%;
}
.center-logo img {
height: 50px;
margin-right: 50px;
}
.title {
font-size: 24px;
}
.chat-body {
background-color: #f9f9f9;
height: 75%;
width: 100%;
/*
overflow-y: scroll;
*/
padding: 0px;
}
/* .chat-input {
display: flex;
justify-content: space-between;
align-items: center;
height: 10%;
width: 90%;
background-color: #f2f2f2;
padding: 10px;
margin-left: 60px;
}
.prompts {
width: 100%;
flex-grow: 1;
margin-right: 10px;
}
#bot_prompts {
width: 100%;
padding: 10px;
font-size: 18px;
border: none;
border-radius: 20px;
}
#send {
margin-left: 10px;
cursor: pointer;
} */
.input-wrapper {
display: flex;
}
/* .container {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
background-color: rgba(128, 128, 128, 0.3);
} */
/* .chat-header {
display: flex;
align-items: center;
background-color: #f1f1f1;
height: 70px;
padding: 0 10px;
} */
/* .chat-body {
flex: 1;
background-color: #fff;
overflow-y: scroll;
padding: 10px;
} */
.chat-input {
background-color: #f1f1f1;
padding: 10px;
}
.input-wrapper {
display: flex;
}
.prompts {
flex: 1;
}
#bot_prompts {
width: 100%;
border: none;
padding: 10px;
border-radius: 5px;
font-size: 16px;
}
.send {
margin-left: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="w3-top">
<div class="w3-bar w3-white w3-card" id="myNavbar">
<a href="index.html#home" class="w3-bar-item logo" style="margin-right: 30px;"><img src="/logo1.png" width="64" height="64"></a>
<div class="w3-center w3-hide-small" style="display: flex; justify-content: center; align-items: center; height: 100%;">
<a href="index.html#about" class="w3-bar-item w3-button">ABOUT</a>
<a href="chat.html" class="w3-bar-item w3-button"><i class="fa fa-comments"></i> CHAT</a>
<a href="essays.html" class="w3-bar-item w3-button"><i class="fa fa-file-text-o"></i> ESSAYS</a>
<a href="resume_review.html" class="w3-bar-item w3-button"><i class="fa fa-briefcase"></i> RÉSUMÉ REVIEWS</a>
<a href="index.html#contact" class="w3-bar-item w3-button"><i class="fa fa-envelope"></i> CONTACT</a>
</div>
<a href="javascript:void(0)" class="w3-bar-item w3-button w3-right w3-hide-large w3-hide-medium" onclick="w3_open()">
<i class="fa fa-bars"></i>
</a>
</div>
</div>
<!-- Sidebar on small screens when clicking the menu icon -->
<nav class="w3-sidebar w3-bar-block w3-black w3-card w3-animate-left w3-hide-medium w3-hide-large" style="display:none" id="mySidebar">
<a href="javascript:void(0)" onclick="w3_close()" class="w3-bar-item w3-button w3-large w3-padding-16">Close ×</a>
<a href="index.html#about" onclick="w3_close()" class="w3-bar-item w3-button">ABOUT</a>
<a href="chat.html" onclick="w3_close()" class="w3-bar-item w3-button">CHAT</a>
<a href="essays.html" onclick="w3_close()" class="w3-bar-item w3-button">ESSAYS</a>
<a href="resume_review.html" onclick="w3_close()" class="w3-bar-item w3-button">RÉSUMÉ REVIEWS</a>
<a href="index.html#contact" onclick="w3_close()" class="w3-bar-item w3-button">CONTACT</a>
</nav>
<div class="container">
<div class="chat-header">
<div class="logo">
<img src="logo1.png" height="auto" width="100" />
</div>
<div class="title">Personal AI Advisor</div>
</div>
<div class="chat-body" id="chat-body"></div>
<div class="chat-input">
<div class="prompts">
<input type="text" id=bot_prompts" placeholder="Your message here" autofocus style="width:100%;border:1px;padding:4px;margin:-5px"/>
</div>
</div>
<div class="send" id="send" hidden="hidden">
<img src="send.png" width="36" height="auto"/>
</div>
</div>
</body>
</html>