diff --git a/src/web/server.py b/src/web/server.py index bae73c4..8284e3c 100644 --- a/src/web/server.py +++ b/src/web/server.py @@ -249,6 +249,9 @@ def _build_state(campaign_id: int) -> dict: "name": full.get("name", aid), "visited": bool(sa.get("visited")), "connections": conn_names, + "description": full.get("description", "")[:300], + "atmosphere": full.get("atmosphere", ""), + "features": full.get("features", []), }) return { "turn": ctx.turn, diff --git a/src/web/static/index.html b/src/web/static/index.html index a1e9c36..d632ba1 100644 --- a/src/web/static/index.html +++ b/src/web/static/index.html @@ -274,6 +274,23 @@ html, body { border-left: 2px solid transparent; transition: border-color 0.2s, background 0.2s; } + +/* Area preview */ +#area-preview-section { display: none; } +#area-preview-section.visible { display: block; } +#area-preview-title { + font-family: var(--font-display); + font-size: 13px; + font-weight: 700; + color: var(--gold); + margin-bottom: 4px; +} +#area-preview-desc { + font-size: 13px; + color: var(--text-primary); + line-height: 1.4; +} + .area-item.visited { color: var(--text-secondary); } .area-item.current { color: var(--gold-bright); @@ -839,6 +856,11 @@ html, body {