WebashalarForML commited on
Commit
5105d96
·
verified ·
1 Parent(s): ffd1ea4

Update static/frontend.html

Browse files
Files changed (1) hide show
  1. 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
- body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f4f7f9; }
9
- .container { max-width: 800px; margin: auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
10
- h1 { color: #333; text-align: center; margin-bottom: 20px; }
11
- #chat-window { height: 400px; overflow-y: scroll; border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin-bottom: 20px; background-color: #e9eff4; }
12
- .message { margin-bottom: 10px; padding: 8px 12px; border-radius: 15px; max-width: 85%; }
13
- .user { background-color: #dcf8c6; margin-left: auto; text-align: right; }
14
- .assistant { background-color: #fff; border: 1px solid #ccc; text-align: left; }
15
- #input-container { display: flex; gap: 10px; margin-bottom: 20px; }
16
- #user-input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
17
- #send-button { padding: 10px 15px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; }
18
- #send-button:hover { background-color: #0056b3; }
19
- #state-info { padding: 10px; background-color: #eee; border-radius: 4px; font-size: 0.9em; margin-bottom: 20px; }
20
- pre { background-color: #272822; color: #f8f8f2; padding: 10px; border-radius: 4px; overflow-x: auto; }
21
- .tag-area { margin-top: 5px; padding: 5px; border-top: 1px dashed #ccc; }
22
- .tag-chip { display: inline-block; background-color: #007bff; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8em; margin-right: 5px; cursor: pointer; }
23
- .bookmark-btn { background-color: #28a745; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-left: 10px; }
24
- .bookmark-btn:hover { background-color: #1e7e34; }
25
- .tagged-replies-list { list-style: none; padding: 0; }
26
- .tagged-replies-list li { border-bottom: 1px solid #eee; padding: 10px 0; }
27
- </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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">