-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtest.html
173 lines (158 loc) · 4.01 KB
/
test.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;1,300;1,400&display=swap"
rel="stylesheet"
/>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}
.container {
display: flex;
flex-direction: column;
height: 100vh; /* Adjust as needed */
}
.row {
display: flex;
padding: 0px 25px;
}
.row1 {
display: flex;
align-items: center;
gap: 10px;
height: 10%;
background-color: #ffffff;
border-bottom: 1px solid rgb(226, 232, 240);
}
.avatar {
width: 35px;
height: 35px;
border-radius: 50%;
background: linear-gradient(to left, #ff5f6d, #ffc371);
}
.bot_title {
font-size: 20px;
font-weight: 400;
font-style: italic;
}
.row3 {
display: flex;
flex-direction: column;
width: 100%;
height: 15%;
border-top: 1px solid rgb(226, 232, 240);
background-color: #ffffff;
}
.row2 {
padding: 10px 20px;
height: 75vh;
display: flex;
flex-direction: column;
background-color: #f1f5f9;
overflow-y: auto;
}
.message {
display: flex;
margin-bottom: 15px;
}
.sender {
justify-content: flex-start;
}
.receiver {
justify-content: flex-end;
}
.message .bubble {
max-width: 70%;
padding: 15px;
border-radius: 5px;
color: #ffffff;
}
.sender .bubble {
background-color: #6366f1;
}
.receiver .bubble {
color: #333;
background-color: #ffffff;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
.message_text {
padding: 10px 0px;
width: 100%;
display: flex;
align-items: center;
gap: 5px;
}
.input-control {
width: 100%;
border: none;
background-color: #f1f5f9;
padding: 13px;
border-radius: 5px;
}
.btn-primary {
border: none;
color: #fff;
background-color: #4f45e4;
padding: 13px;
border-radius: 5px;
}
.propritery {
margin-top: 5px;
display: flex;
justify-content: center;
font-size: 14px;
color: #666464;
}
</style>
</head>
<body>
<div class="container">
<!-- HEADER -->
<div class="row row1">
<div class="avatar"></div>
<span class="bot_title">LangChain Bot</span>
</div>
<!-- CHAT AREA -->
<div class="row row2">
<div class="message sender">
<div class="bubble">
Hello, I'm here to help. What can I do for you today? (This is for
demo purposes only. We only support ~10 questions per minute.)
</div>
</div>
<div class="message receiver">
<div class="bubble">I'm good, thanks for asking.</div>
</div>
</div>
<!-- MESSAGE AREA -->
<div class="row row3">
<div class="message_text">
<input
type="text"
placeholder="Ask your question..."
class="input-control"
/>
<button class="btn-primary">Send</button>
</div>
<div class="propritery">
Powered by <a
href="https://github.com/GreatHayat"
target="_blank"
>GreatHayat</a
>
</div>
</div>
</div>
</body>
</html>