-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (97 loc) · 2.66 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chat App</title>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100%;
max-width: 700px;
margin: 0 auto;
}
.content {
flex: 1;
background-color: #eee;
padding: 20px;
overflow-y: scroll;
}
.footer {
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background-color: #ddd;
}
.input-wrapper {
display: flex;
width: 100%;
align-items: center;
}
.input-wrapper input {
flex: 1;
height: 40px;
width: 100%;
margin-right: 10px;
padding: 10px;
border: none;
border-radius: 5px;
}
.input-wrapper button {
height: 40px;
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
cursor: pointer;
}
.question, .answer {
padding: 15px;
}
.question {
background-color: #ffffff;
}
.answer {
background-color: #dddddd;
}
#restart-container {
display: inline-block;
width: 150px;
padding: 10px;
padding-left: 0;
}
#restart-container button {
height: 40px;
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
cursor: pointer;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/styles/atom-one-dark.min.css">
<script src="https://cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
</head>
<body>
<div class="container">
<div id="restart-container"><button id="reset-btn">New conversation</button></div>
<div class="content" id="message-container">
</div>
<div class="footer">
<div class="input-wrapper">
<input type="text" id="message-input" placeholder="Enter a prompt to begin.">
<button id="send-btn">Send</button>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>