diff --git a/app.py b/app.py index 073533a..6b6e117 100644 --- a/app.py +++ b/app.py @@ -417,7 +417,32 @@ def render_stage_intro(data): def render_stage_topics(data): st.markdown('
πŸ’‘ μ˜ˆμ‹œ 주제
', unsafe_allow_html=True) - st.info("Task 10μ—μ„œ κ΅¬ν˜„") + st.markdown('
영감 μ–»μœΌμ„Έμš” β€” λ˜‘κ°™μ΄ μ•ˆ λ§Œλ“€μ–΄λ„ λ©λ‹ˆλ‹€
', unsafe_allow_html=True) + + cats = data.get("topics", {}).get("categories", []) + if not cats: + st.warning("μ£Όμ œκ°€ λΉ„μ–΄ μžˆμŠ΅λ‹ˆλ‹€. μ–΄λ“œλ―Όμ—μ„œ μž…λ ₯ν•˜μ„Έμš”.") + return + + # 2Γ—2 κ·Έλ¦¬λ“œ + rows = [cats[i:i + 2] for i in range(0, len(cats), 2)] + for row in rows: + cols = st.columns(2) + for col, cat in zip(cols, row): + cat_id = cat.get("id", "T?") + items_html = "".join( + f'
β–Έ {item}
' for item in cat.get("items", []) + ) + with col: + st.markdown( + f'
' + f'
{cat_id}. {cat.get("title", "")}
' + f'
{cat.get("tagline", "")}
' + f'
톀: {cat.get("tone", "")}
' + f' {items_html}' + f'
', + unsafe_allow_html=True, + ) def render_stage_vote(data):