Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +40 -14
templates/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
|
| 13 |
<style>
|
| 14 |
body {
|
| 15 |
-
background-color: #
|
| 16 |
font-family: Arial, sans-serif;
|
| 17 |
color: white;
|
| 18 |
margin: 0;
|
|
@@ -23,6 +23,7 @@
|
|
| 23 |
background-attachment: fixed;
|
| 24 |
background-position: center center;
|
| 25 |
}
|
|
|
|
| 26 |
nav {
|
| 27 |
background-color: #444;
|
| 28 |
padding: 5px;
|
|
@@ -31,38 +32,45 @@
|
|
| 31 |
height: auto;
|
| 32 |
top: 0;
|
| 33 |
}
|
|
|
|
| 34 |
.sticky {
|
| 35 |
position: absolute;
|
| 36 |
top: 20px;
|
| 37 |
right: 20px;
|
| 38 |
z-index: 1000;
|
| 39 |
}
|
|
|
|
| 40 |
.sticky2 {
|
| 41 |
position: absolute;
|
| 42 |
top: 20px;
|
| 43 |
right: 80px;
|
| 44 |
z-index: 1000;
|
| 45 |
}
|
|
|
|
| 46 |
.sticky3 {
|
| 47 |
position: absolute;
|
| 48 |
top: 20px;
|
| 49 |
right: 140px;
|
| 50 |
z-index: 1000;
|
| 51 |
}
|
|
|
|
| 52 |
/* Dropdown Styles */
|
| 53 |
.dropdown {
|
| 54 |
position: relative;
|
| 55 |
display: inline-block;
|
| 56 |
}
|
|
|
|
| 57 |
.btn {
|
| 58 |
background-color: transparent;
|
| 59 |
color: white;
|
| 60 |
border: none;
|
| 61 |
cursor: pointer;
|
| 62 |
}
|
|
|
|
| 63 |
.btn:hover {
|
| 64 |
background-color: #494949;
|
| 65 |
}
|
|
|
|
| 66 |
.dropdown-content {
|
| 67 |
display: none;
|
| 68 |
position: absolute;
|
|
@@ -75,11 +83,13 @@
|
|
| 75 |
z-index: 1;
|
| 76 |
text-align: center;
|
| 77 |
}
|
|
|
|
| 78 |
.dropdown-content h3 {
|
| 79 |
margin: 5px 0;
|
| 80 |
color: white;
|
| 81 |
text-align: center;
|
| 82 |
}
|
|
|
|
| 83 |
.dropdown-content a {
|
| 84 |
color: white;
|
| 85 |
padding: 12px 16px;
|
|
@@ -87,12 +97,15 @@
|
|
| 87 |
display: block;
|
| 88 |
border-top: 1px solid transparent;
|
| 89 |
}
|
|
|
|
| 90 |
.dropdown-content a:hover {
|
| 91 |
background-color: #bebebe;
|
| 92 |
}
|
|
|
|
| 93 |
.dropdown:hover .dropdown-content {
|
| 94 |
display: block;
|
| 95 |
}
|
|
|
|
| 96 |
main {
|
| 97 |
display: flex;
|
| 98 |
flex-direction: column;
|
|
@@ -102,6 +115,7 @@
|
|
| 102 |
/* adjust if header height changes */
|
| 103 |
text-align: center;
|
| 104 |
}
|
|
|
|
| 105 |
/* Input and Button Styles */
|
| 106 |
#question {
|
| 107 |
padding: 10px;
|
|
@@ -110,12 +124,13 @@
|
|
| 110 |
border: 1px solid #ccc;
|
| 111 |
margin-right: 10px;
|
| 112 |
}
|
|
|
|
| 113 |
.user {
|
| 114 |
-
background-color:
|
| 115 |
backdrop-filter: blur(5px);
|
| 116 |
padding: 10px;
|
| 117 |
padding-right: 10px;
|
| 118 |
-
border-radius:
|
| 119 |
border: solid #ccc;
|
| 120 |
margin: 10px;
|
| 121 |
text-align: center;
|
|
@@ -123,32 +138,36 @@
|
|
| 123 |
width: 80%;
|
| 124 |
color: rgb(227, 227, 227)
|
| 125 |
}
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
justify-content: right;
|
| 130 |
-
width: 80%;
|
| 131 |
color: rgb(227, 227, 227);
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
| 134 |
.text1 {
|
| 135 |
display: flex;
|
| 136 |
justify-content: right;
|
| 137 |
align-items: center;
|
| 138 |
margin: 10px;
|
| 139 |
}
|
|
|
|
| 140 |
.text2 {
|
| 141 |
display: flex;
|
| 142 |
-
justify-content:
|
| 143 |
align-items: center;
|
| 144 |
margin: 10px;
|
| 145 |
}
|
|
|
|
| 146 |
.chat-input-container {
|
| 147 |
display: flex;
|
| 148 |
align-items: center;
|
| 149 |
justify-content: center;
|
| 150 |
margin-top: 20px;
|
| 151 |
}
|
|
|
|
| 152 |
#sendButton {
|
| 153 |
margin-left: 10px;
|
| 154 |
padding: 10px 20px;
|
|
@@ -158,9 +177,11 @@
|
|
| 158 |
cursor: pointer;
|
| 159 |
transition: background-color 0.3s;
|
| 160 |
}
|
|
|
|
| 161 |
#sendButton:hover {
|
| 162 |
background-color: #e0e0e0;
|
| 163 |
}
|
|
|
|
| 164 |
.inputWrapper {
|
| 165 |
flex-direction: column;
|
| 166 |
align-items: center;
|
|
@@ -173,23 +194,28 @@
|
|
| 173 |
gap: 10px;
|
| 174 |
z-index: 1000;
|
| 175 |
}
|
|
|
|
| 176 |
.inputWrapper input {
|
| 177 |
width: 100%;
|
| 178 |
padding: 10px;
|
| 179 |
}
|
|
|
|
| 180 |
.tools button {
|
| 181 |
font-size: 18px;
|
| 182 |
padding: 10px 20px;
|
| 183 |
border-radius: 50px;
|
| 184 |
cursor: pointer;
|
| 185 |
}
|
|
|
|
| 186 |
#welcomeMessage {
|
| 187 |
text-align: center;
|
| 188 |
margin-top: 20%;
|
| 189 |
}
|
|
|
|
| 190 |
.tools-content {
|
| 191 |
display: none;
|
| 192 |
}
|
|
|
|
| 193 |
.tools:hover {
|
| 194 |
.tools-content {
|
| 195 |
display: block
|
|
@@ -198,7 +224,7 @@
|
|
| 198 |
</style>
|
| 199 |
|
| 200 |
<body>
|
| 201 |
-
|
| 202 |
<H1 id="welcomeMessage">Hello 👋, what can I help with?</H1>
|
| 203 |
<div id="chatArea">
|
| 204 |
<div class="text1">
|
|
@@ -228,12 +254,12 @@
|
|
| 228 |
<a href="/think"><button
|
| 229 |
style="color: greenyellow;background-color: black;">Think</button></a><br>
|
| 230 |
</div>
|
| 231 |
-
<button style="background-color:
|
| 232 |
<i class="fa-solid fa-sliders fa-2xl" style="color: #63E6BE;"></i>
|
| 233 |
</button>
|
| 234 |
</div>
|
| 235 |
<button id="sendButton" onclick="answer()"
|
| 236 |
-
style="font-weight: bold; background-color:
|
| 237 |
</div>
|
| 238 |
</div>
|
| 239 |
</main>
|
|
|
|
| 12 |
|
| 13 |
<style>
|
| 14 |
body {
|
| 15 |
+
background-color: #000;
|
| 16 |
font-family: Arial, sans-serif;
|
| 17 |
color: white;
|
| 18 |
margin: 0;
|
|
|
|
| 23 |
background-attachment: fixed;
|
| 24 |
background-position: center center;
|
| 25 |
}
|
| 26 |
+
|
| 27 |
nav {
|
| 28 |
background-color: #444;
|
| 29 |
padding: 5px;
|
|
|
|
| 32 |
height: auto;
|
| 33 |
top: 0;
|
| 34 |
}
|
| 35 |
+
|
| 36 |
.sticky {
|
| 37 |
position: absolute;
|
| 38 |
top: 20px;
|
| 39 |
right: 20px;
|
| 40 |
z-index: 1000;
|
| 41 |
}
|
| 42 |
+
|
| 43 |
.sticky2 {
|
| 44 |
position: absolute;
|
| 45 |
top: 20px;
|
| 46 |
right: 80px;
|
| 47 |
z-index: 1000;
|
| 48 |
}
|
| 49 |
+
|
| 50 |
.sticky3 {
|
| 51 |
position: absolute;
|
| 52 |
top: 20px;
|
| 53 |
right: 140px;
|
| 54 |
z-index: 1000;
|
| 55 |
}
|
| 56 |
+
|
| 57 |
/* Dropdown Styles */
|
| 58 |
.dropdown {
|
| 59 |
position: relative;
|
| 60 |
display: inline-block;
|
| 61 |
}
|
| 62 |
+
|
| 63 |
.btn {
|
| 64 |
background-color: transparent;
|
| 65 |
color: white;
|
| 66 |
border: none;
|
| 67 |
cursor: pointer;
|
| 68 |
}
|
| 69 |
+
|
| 70 |
.btn:hover {
|
| 71 |
background-color: #494949;
|
| 72 |
}
|
| 73 |
+
|
| 74 |
.dropdown-content {
|
| 75 |
display: none;
|
| 76 |
position: absolute;
|
|
|
|
| 83 |
z-index: 1;
|
| 84 |
text-align: center;
|
| 85 |
}
|
| 86 |
+
|
| 87 |
.dropdown-content h3 {
|
| 88 |
margin: 5px 0;
|
| 89 |
color: white;
|
| 90 |
text-align: center;
|
| 91 |
}
|
| 92 |
+
|
| 93 |
.dropdown-content a {
|
| 94 |
color: white;
|
| 95 |
padding: 12px 16px;
|
|
|
|
| 97 |
display: block;
|
| 98 |
border-top: 1px solid transparent;
|
| 99 |
}
|
| 100 |
+
|
| 101 |
.dropdown-content a:hover {
|
| 102 |
background-color: #bebebe;
|
| 103 |
}
|
| 104 |
+
|
| 105 |
.dropdown:hover .dropdown-content {
|
| 106 |
display: block;
|
| 107 |
}
|
| 108 |
+
|
| 109 |
main {
|
| 110 |
display: flex;
|
| 111 |
flex-direction: column;
|
|
|
|
| 115 |
/* adjust if header height changes */
|
| 116 |
text-align: center;
|
| 117 |
}
|
| 118 |
+
|
| 119 |
/* Input and Button Styles */
|
| 120 |
#question {
|
| 121 |
padding: 10px;
|
|
|
|
| 124 |
border: 1px solid #ccc;
|
| 125 |
margin-right: 10px;
|
| 126 |
}
|
| 127 |
+
|
| 128 |
.user {
|
| 129 |
+
background-color: #2f2f2f;
|
| 130 |
backdrop-filter: blur(5px);
|
| 131 |
padding: 10px;
|
| 132 |
padding-right: 10px;
|
| 133 |
+
border-radius: 100px;
|
| 134 |
border: solid #ccc;
|
| 135 |
margin: 10px;
|
| 136 |
text-align: center;
|
|
|
|
| 138 |
width: 80%;
|
| 139 |
color: rgb(227, 227, 227)
|
| 140 |
}
|
| 141 |
+
|
| 142 |
+
.ai {
|
| 143 |
+
align-self: flex-start;
|
|
|
|
|
|
|
| 144 |
color: rgb(227, 227, 227);
|
| 145 |
+
padding: 10px 20px;
|
| 146 |
+
white-space: pre-wrap;
|
| 147 |
+
text-align: center;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
.text1 {
|
| 151 |
display: flex;
|
| 152 |
justify-content: right;
|
| 153 |
align-items: center;
|
| 154 |
margin: 10px;
|
| 155 |
}
|
| 156 |
+
|
| 157 |
.text2 {
|
| 158 |
display: flex;
|
| 159 |
+
justify-content: center;
|
| 160 |
align-items: center;
|
| 161 |
margin: 10px;
|
| 162 |
}
|
| 163 |
+
|
| 164 |
.chat-input-container {
|
| 165 |
display: flex;
|
| 166 |
align-items: center;
|
| 167 |
justify-content: center;
|
| 168 |
margin-top: 20px;
|
| 169 |
}
|
| 170 |
+
|
| 171 |
#sendButton {
|
| 172 |
margin-left: 10px;
|
| 173 |
padding: 10px 20px;
|
|
|
|
| 177 |
cursor: pointer;
|
| 178 |
transition: background-color 0.3s;
|
| 179 |
}
|
| 180 |
+
|
| 181 |
#sendButton:hover {
|
| 182 |
background-color: #e0e0e0;
|
| 183 |
}
|
| 184 |
+
|
| 185 |
.inputWrapper {
|
| 186 |
flex-direction: column;
|
| 187 |
align-items: center;
|
|
|
|
| 194 |
gap: 10px;
|
| 195 |
z-index: 1000;
|
| 196 |
}
|
| 197 |
+
|
| 198 |
.inputWrapper input {
|
| 199 |
width: 100%;
|
| 200 |
padding: 10px;
|
| 201 |
}
|
| 202 |
+
|
| 203 |
.tools button {
|
| 204 |
font-size: 18px;
|
| 205 |
padding: 10px 20px;
|
| 206 |
border-radius: 50px;
|
| 207 |
cursor: pointer;
|
| 208 |
}
|
| 209 |
+
|
| 210 |
#welcomeMessage {
|
| 211 |
text-align: center;
|
| 212 |
margin-top: 20%;
|
| 213 |
}
|
| 214 |
+
|
| 215 |
.tools-content {
|
| 216 |
display: none;
|
| 217 |
}
|
| 218 |
+
|
| 219 |
.tools:hover {
|
| 220 |
.tools-content {
|
| 221 |
display: block
|
|
|
|
| 224 |
</style>
|
| 225 |
|
| 226 |
<body>
|
| 227 |
+
|
| 228 |
<H1 id="welcomeMessage">Hello 👋, what can I help with?</H1>
|
| 229 |
<div id="chatArea">
|
| 230 |
<div class="text1">
|
|
|
|
| 254 |
<a href="/think"><button
|
| 255 |
style="color: greenyellow;background-color: black;">Think</button></a><br>
|
| 256 |
</div>
|
| 257 |
+
<button style="background-color: #101010;">
|
| 258 |
<i class="fa-solid fa-sliders fa-2xl" style="color: #63E6BE;"></i>
|
| 259 |
</button>
|
| 260 |
</div>
|
| 261 |
<button id="sendButton" onclick="answer()"
|
| 262 |
+
style="font-weight: bold; background-color: #101010; color: greenyellow">↑</button>
|
| 263 |
</div>
|
| 264 |
</div>
|
| 265 |
</main>
|