Jay1121 commited on
Commit
fe8b099
·
verified ·
1 Parent(s): 26036c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -15
app.py CHANGED
@@ -144,7 +144,7 @@ def chat_response(user_input, history):
144
  return bot_response
145
 
146
  # ------------------------------------------------------------------
147
- # 5. UI 디자인 (디스토피아 테마)
148
  # ------------------------------------------------------------------
149
  DYSTOPIA_CSS = """
150
  @import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');
@@ -176,6 +176,7 @@ h1 {
176
  100% { transform: skew(0deg); opacity: 1; }
177
  }
178
 
 
179
  p {
180
  color: #ff4444 !important;
181
  font-weight: bold;
@@ -189,27 +190,35 @@ p {
189
  height: 500px !important;
190
  }
191
 
192
- #chatbot .user,
193
- #chatbot .bot,
194
- #chatbot [data-testid="user"],
195
- #chatbot [data-testid="bot"],
196
- .chatbot .user,
197
- .chatbot .bot {
198
- color: #000000 !important;
 
199
  }
200
 
201
- /* 메시지 내부 span, p 태그도 */
202
- #chatbot .user *,
203
- #chatbot .bot *,
204
- #chatbot [data-testid="user"] *,
205
- #chatbot [data-testid="bot"] * {
206
- color: #000000 !important;
 
 
 
 
 
 
 
207
  }
208
 
209
  textarea {
210
  background: #0a0a0a !important;
211
  border: 2px solid #ff0040 !important;
212
- color: #ff4444 !important;
213
  border-radius: 0 !important;
214
  font-family: 'Share Tech Mono', monospace !important;
215
  font-size: 1.1em !important;
 
144
  return bot_response
145
 
146
  # ------------------------------------------------------------------
147
+ # 4. UI 디자인 (디스토피아 테마 - 가독성 수정판)
148
  # ------------------------------------------------------------------
149
  DYSTOPIA_CSS = """
150
  @import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700&display=swap');
 
176
  100% { transform: skew(0deg); opacity: 1; }
177
  }
178
 
179
+ /* 일반 텍스트는 붉은색 유지 */
180
  p {
181
  color: #ff4444 !important;
182
  font-weight: bold;
 
190
  height: 500px !important;
191
  }
192
 
193
+ /* ▼▼▼ 여기 색상 변경됨 (흰색으로) ▼▼▼ */
194
+ .message.user {
195
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
196
+ border: 1px solid #0ff !important;
197
+ color: #ffffff !important; /* 글씨색 흰색으로 변경 */
198
+ border-radius: 0 !important;
199
+ padding: 15px !important;
200
+ font-weight: bold;
201
  }
202
 
203
+ .message.bot {
204
+ background: linear-gradient(135deg, #2a0a0a 0%, #1a0000 100%) !important;
205
+ border: 1px dashed #ff0040 !important;
206
+ color: #ffffff !important; /* 글씨색 흰색으로 변경 */
207
+ border-radius: 0 !important;
208
+ padding: 15px !important;
209
+ font-weight: bold;
210
+ }
211
+ /* ▲▲▲ 여기까지 ▲▲▲ */
212
+
213
+ /* 메시지 내부 p 태그도 흰색 강제 적용 */
214
+ .message p {
215
+ color: #ffffff !important;
216
  }
217
 
218
  textarea {
219
  background: #0a0a0a !important;
220
  border: 2px solid #ff0040 !important;
221
+ color: #ffffff !important; /* 입력창 글씨도 흰색으로 */
222
  border-radius: 0 !important;
223
  font-family: 'Share Tech Mono', monospace !important;
224
  font-size: 1.1em !important;