Update static/frontend.html
Browse files- static/frontend.html +88 -20
static/frontend.html
CHANGED
|
@@ -5,26 +5,94 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Code Assistant Agent</title>
|
| 7 |
<style>
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
</head>
|
| 29 |
<body>
|
| 30 |
<div class="container">
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Code Assistant Agent</title>
|
| 7 |
<style>
|
| 8 |
+
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 20px; background-color: #f0f2f5; color: #333; }
|
| 9 |
+
.container { max-width: 850px; margin: auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
|
| 10 |
+
h1 { color: #1f7cff; text-align: center; margin-bottom: 25px; font-weight: 600; }
|
| 11 |
+
#chat-window {
|
| 12 |
+
height: 400px;
|
| 13 |
+
overflow-y: scroll;
|
| 14 |
+
border: 1px solid #ddd;
|
| 15 |
+
padding: 15px;
|
| 16 |
+
border-radius: 8px;
|
| 17 |
+
margin-bottom: 20px;
|
| 18 |
+
background-color: #e9eff4;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
/* NEW STRUCTURE FOR CHAT BUBBLES */
|
| 22 |
+
.message-row {
|
| 23 |
+
display: flex;
|
| 24 |
+
margin-bottom: 15px;
|
| 25 |
+
}
|
| 26 |
+
.message {
|
| 27 |
+
padding: 10px 15px;
|
| 28 |
+
border-radius: 18px;
|
| 29 |
+
max-width: 75%;
|
| 30 |
+
position: relative;
|
| 31 |
+
word-wrap: break-word;
|
| 32 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
|
| 33 |
+
}
|
| 34 |
+
.user {
|
| 35 |
+
background-color: #1f7cff; /* Bright blue for user */
|
| 36 |
+
color: white;
|
| 37 |
+
margin-left: auto; /* Pushes to the right */
|
| 38 |
+
border-bottom-right-radius: 4px; /* Sharper corner on user's side */
|
| 39 |
+
}
|
| 40 |
+
.assistant {
|
| 41 |
+
background-color: #ffffff;
|
| 42 |
+
border: 1px solid #c9d6de;
|
| 43 |
+
color: #333;
|
| 44 |
+
margin-right: auto; /* Keeps it on the left */
|
| 45 |
+
border-bottom-left-radius: 4px;
|
| 46 |
+
text-align: left;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
#input-container { display: flex; gap: 10px; margin-bottom: 20px; }
|
| 50 |
+
#user-input { flex-grow: 1; padding: 12px; border: 1px solid #ccc; border-radius: 6px; }
|
| 51 |
+
#send-button { padding: 10px 20px; background-color: #1f7cff; color: white; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.3s; }
|
| 52 |
+
#send-button:hover { background-color: #165bb0; }
|
| 53 |
+
|
| 54 |
+
#state-info { padding: 15px; background-color: #e6f0ff; border-left: 5px solid #1f7cff; border-radius: 4px; font-size: 0.9em; margin-bottom: 25px; display: flex; justify-content: space-between; align-items: center; }
|
| 55 |
+
|
| 56 |
+
pre {
|
| 57 |
+
background-color: #272822;
|
| 58 |
+
color: #f8f8f2;
|
| 59 |
+
padding: 10px;
|
| 60 |
+
border-radius: 4px;
|
| 61 |
+
overflow-x: auto;
|
| 62 |
+
margin-top: 10px;
|
| 63 |
+
font-family: 'Consolas', 'Monaco', monospace;
|
| 64 |
+
font-size: 0.9em;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.tag-area {
|
| 68 |
+
margin-top: 10px;
|
| 69 |
+
padding-top: 5px;
|
| 70 |
+
border-top: 1px dashed #e0e0e0;
|
| 71 |
+
font-size: 0.8em;
|
| 72 |
+
display: flex;
|
| 73 |
+
align-items: center;
|
| 74 |
+
flex-wrap: wrap;
|
| 75 |
+
}
|
| 76 |
+
.tag-area input[type="text"] {
|
| 77 |
+
flex-grow: 1;
|
| 78 |
+
padding: 4px;
|
| 79 |
+
border: 1px solid #ccc;
|
| 80 |
+
border-radius: 4px;
|
| 81 |
+
margin-right: 5px;
|
| 82 |
+
min-width: 150px;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.tag-chip { display: inline-block; background-color: #6c757d; color: white; padding: 3px 10px; border-radius: 16px; font-size: 0.75em; margin-right: 5px; margin-bottom: 5px; }
|
| 86 |
+
.bookmark-btn { background-color: #28a745; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; font-size: 0.8em; }
|
| 87 |
+
.bookmark-btn:hover { background-color: #1e7e34; }
|
| 88 |
+
|
| 89 |
+
/* Bookmarked Replies Styling */
|
| 90 |
+
h2 { border-bottom: 2px solid #ddd; padding-bottom: 5px; margin-top: 30px; }
|
| 91 |
+
#tag-search { padding: 10px; border: 1px solid #ccc; border-radius: 4px; width: 100%; margin-bottom: 15px; }
|
| 92 |
+
.tagged-replies-list { list-style: none; padding: 0; }
|
| 93 |
+
.tagged-replies-list li { border: 1px solid #f0f0f0; background: #fafafa; padding: 15px; border-radius: 6px; margin-bottom: 10px; }
|
| 94 |
+
.tagged-replies-list li p { margin: 0 0 5px 0; }
|
| 95 |
+
</style>
|
| 96 |
</head>
|
| 97 |
<body>
|
| 98 |
<div class="container">
|