|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | 6 | <title>Ask Defang</title> |
7 | 7 | <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.0.2/marked.min.js"></script> |
| 8 | + <style> |
| 9 | + @import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap'); |
| 10 | + </style> |
8 | 11 | <style> |
9 | 12 | body { |
10 | | - font-family: 'Helvetica Neue', Arial, sans-serif; |
| 13 | + font-family: 'Exo 2', 'Helvetica Neue', Arial, sans-serif; |
11 | 14 | margin: 0; |
12 | 15 | padding: 0; |
13 | 16 | min-height: 100vh; |
|
22 | 25 | box-sizing: border-box; |
23 | 26 | } |
24 | 27 |
|
| 28 | + input, button { |
| 29 | + font-family: 'Exo 2', 'Helvetica Neue', Arial, sans-serif; |
| 30 | + } |
| 31 | + |
25 | 32 | .chat-container { |
26 | 33 | width: 100%; |
27 | 34 | max-width: 600px; |
|
32 | 39 | box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); |
33 | 40 | } |
34 | 41 |
|
| 42 | + .img-container { |
| 43 | + height: 2em; |
| 44 | + display: flex; |
| 45 | + justify-content: center; |
| 46 | + align-items: center; |
| 47 | + width: 100%; |
| 48 | + } |
| 49 | + |
| 50 | + .icon { |
| 51 | + height: 2.5em; |
| 52 | + } |
| 53 | + |
35 | 54 | h2 { |
36 | 55 | text-align: center; |
37 | 56 | color: #fff; |
| 57 | + margin-top: 10px; |
38 | 58 | margin-bottom: 20px; |
39 | 59 | font-weight: 300; |
40 | 60 | font-size: 1.5rem; |
|
84 | 104 | .submit-btn { |
85 | 105 | padding: 10px 20px; |
86 | 106 | border: none; |
87 | | - background-color: #636ded; |
| 107 | + background-color: #4491fd; |
88 | 108 | color: white; |
89 | 109 | cursor: pointer; |
90 | 110 | border-radius: 5px; |
|
98 | 118 | } |
99 | 119 |
|
100 | 120 | .submit-btn:hover { |
101 | | - background-color: #5a66d6; |
| 121 | + background-color: #3b7edc; |
102 | 122 | transform: translateY(-2px); |
103 | 123 | } |
104 | 124 |
|
| 125 | + .issue-container { |
| 126 | + display: flex; |
| 127 | + align-items: center; |
| 128 | + justify-content: center; |
| 129 | + padding-top: 10px; |
| 130 | + } |
| 131 | + |
| 132 | + .issue-container p { |
| 133 | + margin: 10px; |
| 134 | + } |
| 135 | + |
| 136 | + .issue-container a:visited, a:hover, a:active, a:focus { |
| 137 | + color: white; |
| 138 | + text-decoration: none !important; |
| 139 | + } |
| 140 | + |
105 | 141 | .loading-spinner { |
106 | 142 | display: none; |
107 | 143 | margin-left: 10px; |
|
134 | 170 | </head> |
135 | 171 | <body> |
136 | 172 | <div class="chat-container"> |
| 173 | + <div class="img-container"> |
| 174 | + <a href="https://defang.io/" target="_parent"> |
| 175 | + <img class="icon" src="{{ url_for('static', filename='defang_icon.svg') }}" alt="defang_icon"/> |
| 176 | + </a> |
| 177 | + </div> |
137 | 178 | <h2>Ask Defang</h2> |
138 | 179 | <div id="chat-box" class="chat-box"></div> |
139 | | - <input type="text" id="query-input" class="input-box" placeholder="Ask a question..."> |
| 180 | + <input type="text" autofocus="autofocus" id="query-input" class="input-box" placeholder="Ask a question..."> |
140 | 181 | <button id="send-button" class="submit-btn"> |
141 | 182 | Send |
142 | 183 | <div id="loading-spinner" class="loading-spinner"></div> |
143 | 184 | </button> |
| 185 | + <div class="issue-container"> |
| 186 | + <a href="https://github.com/DefangLabs/docs-chatbot/issues" target="_blank"> |
| 187 | + <img class="icon" style="height: 1.5em" src="{{ url_for('static', filename='github_icon.svg') }}" alt="github_icon"/> |
| 188 | + </a> |
| 189 | + <p> |
| 190 | + <a href="https://github.com/DefangLabs/docs-chatbot/issues" target="_blank"> |
| 191 | + Report an issue |
| 192 | + </a> |
| 193 | + </p> |
| 194 | + </div> |
144 | 195 | </div> |
145 | 196 |
|
146 | 197 | <script> |
|
0 commit comments