From 2d8e83581cc9344227396236c344577d04bfe5c3 Mon Sep 17 00:00:00 2001 From: shinalok Date: Tue, 2 Jun 2026 17:46:24 +0900 Subject: [PATCH] design: upgrade example chips to card style with emoji, shadow, hover animation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add category emojis to question text (πŸ‘Ά/🏫/πŸ’°) - Card design: border-radius 14px, soft drop shadow, min-height 60px - Equal-width flex cards (flex:1) with full-height stretch - ::after arrow indicator (β†’), transitions on hover - Hover: indigo gradient bg, purple border, translateY(-2px) lift - Dark mode: matching dark card + purple glow on hover Co-Authored-By: Claude Sonnet 4.6 --- app.py | 61 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 43 insertions(+), 18 deletions(-) diff --git a/app.py b/app.py index b78e540..143e204 100644 --- a/app.py +++ b/app.py @@ -312,9 +312,9 @@ def _welcome_html(user_name: str) -> str: _EXAMPLE_QUESTIONS = [ - "μœ‘μ•„νœ΄μ§ κΈ‰μ—¬ μ‹ μ²­ 방법을 μ•Œλ €μ£Όμ„Έμš”", - "어린이집 μž…μ†Œ λŒ€κΈ° 기간은 μ–Όλ§ˆλ‚˜ κ±Έλ¦¬λ‚˜μš”?", - "아이 μ˜λ£ŒλΉ„ μ„ΈκΈˆ κ³΅μ œλŠ” μ–΄λ–»κ²Œ ν•˜λ‚˜μš”?", + "πŸ‘Ά μœ‘μ•„νœ΄μ§ κΈ‰μ—¬ μ‹ μ²­ 방법을 μ•Œλ €μ£Όμ„Έμš”", + "🏫 어린이집 μž…μ†Œ λŒ€κΈ° 기간은 μ–Όλ§ˆλ‚˜ κ±Έλ¦¬λ‚˜μš”?", + "πŸ’° 아이 μ˜λ£ŒλΉ„ μ„ΈκΈˆ κ³΅μ œλŠ” μ–΄λ–»κ²Œ ν•˜λ‚˜μš”?", ] @@ -565,24 +565,49 @@ footer { display: none !important; } /* ── μž…λ ₯ Row μ„Έλ‘œ 쀑앙 μ •λ ¬ ── */ .input-row { align-items: center !important; gap: 8px !important; } -/* ── μ˜ˆμ‹œ 질문 Chip (D4-4) ── */ -.example-chips-row { padding: 6px 0 4px !important; flex-wrap: wrap !important; gap: 8px !important; } +/* ── μ˜ˆμ‹œ 질문 Chip μΉ΄λ“œ (D4-4) ── */ +.example-chips-row { + padding: 10px 0 6px !important; + flex-wrap: nowrap !important; + gap: 10px !important; + align-items: stretch !important; +} +.example-chip-btn { + flex: 1 !important; + min-width: 0 !important; +} .example-chip-btn button { - border-radius: 20px !important; - border: 1.5px solid #e2e8f0 !important; - background: #fff !important; - color: #374151 !important; - padding: 8px 18px !important; + border-radius: 14px !important; + border: 1.5px solid #e8edf4 !important; + background: #ffffff !important; + color: #1e293b !important; + padding: 14px 18px !important; font-size: .875rem !important; - box-shadow: none !important; - white-space: nowrap !important; - transition: all .15s !important; font-weight: 400 !important; + line-height: 1.5 !important; + box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.02) !important; + white-space: normal !important; + text-align: left !important; + width: 100% !important; + height: 100% !important; + min-height: 60px !important; + justify-content: flex-start !important; + transition: all .2s ease !important; +} +.example-chip-btn button::after { + content: ' β†’'; + color: #94a3b8; + font-size: .8rem; + margin-left: 4px; + transition: color .2s, transform .2s; + display: inline-block; } .example-chip-btn button:hover { - background: #eff6ff !important; - border-color: #93c5fd !important; - color: #1d4ed8 !important; + background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%) !important; + border-color: #a5b4fc !important; + color: #1e40af !important; + box-shadow: 0 6px 20px rgba(99,102,241,.15) !important; + transform: translateY(-2px) !important; } /* ── 컨트둀 νŒ¨λ„ (D4-5) ── */ @@ -647,8 +672,8 @@ footer { display: none !important; } .dark .message-wrap .bot { background: #1e293b !important; border-color: #334155 !important; } .dark .nav-btn button:hover { background: #1e293b !important; } .dark .nav-btn button.nav-active { background: #1e3a5f !important; color: #93c5fd !important; } -.dark .example-chip-btn button { background: #1e293b !important; border-color: #334155 !important; color: #cbd5e1 !important; } -.dark .example-chip-btn button:hover { background: #1e3a5f !important; border-color: #3b82f6 !important; } +.dark .example-chip-btn button { background: #1e293b !important; border-color: #334155 !important; color: #e2e8f0 !important; box-shadow: 0 1px 6px rgba(0,0,0,.3) !important; } +.dark .example-chip-btn button:hover { background: linear-gradient(135deg, #1e3a5f, #1e1b4b) !important; border-color: #818cf8 !important; color: #c7d2fe !important; } .dark #control-panel { background: #1e293b !important; border-color: #334155 !important; } """