Samples

← Back to index

The repo ships ~30 sample pages under Assets/UI/ (each an .html + .css pair). They double as the corpus for the layout-vs-Chrome audit (SAMPLE_AUDIT.md) and the golden/perf calibration. They are game-UI themed — mostly a fictional RPG ("Halcyon"/"Ravenmoor") and a match-3 ("Sweet Cascade").

Many are real exercises of specific subsystems; the one-liners below note what each primarily stresses. Per-sample layout deviation vs. headless Chrome is tracked in SAMPLE_AUDIT.md at the repo root.

The packaged Phase One Demo (Samples~/PhaseOneDemo/, importable via Package Manager → Weva → Samples) is the end-to-end demo scene with controller binding and hot reload; the Assets/UI/ pages below are loose authoring samples.

Reference / playground

SampleExercises
flex-playground.htmlFlexbox: nested columns, grow/shrink, cross-stretch reflow, auto margins.
grid-playground.htmlGrid: templates, named areas, auto-placement, align-content, min-height floors.
9slice-demo.html9-slice <img> and CSS border-image from sprite borders.
inputtest.htmlForm controls + focus/keyboard nav (paired with inputtest.unity).
randhtml.htmlThe dev demo the golden tests + perf benches calibrate against — HUD / quest log / chat / map widgets in one page.
weva-landing.htmlMarketing-style landing page (gradient text, code blocks, flex layout).

HUD / in-game overlays

SampleExercises
hud.htmlStatus bars (% widths), level ring, vitals — classic game HUD.
combat-hud.htmlCentered ability bar, action-row positioning.
match3.html / match3-endgame.htmlMatch-3 board and level-complete screen; inline reward shells.
story-bubble.htmlDialogue bubble with filter: drop-shadow + text-shadow.
dialogue.html / nook-dialogue.htmlNPC dialogue panels with portraits.

Screens / menus

SampleExercises
menu.htmlMain-menu list (line-height / typography heavy).
load-game.htmlSave-slot grid with rounded/elliptical corners.
level-select.htmlLevel map with rotated connector lines (transforms on inline elements).
settings.htmlSettings form: toggles, sliders, sections.
inventory.htmlInventory grid inside a 100vh flex container (grid height containment).
vendor.htmlTrader stall: item grid with emoji glyphs.
quests.htmlQuest log list.
stats.htmlCharacter sheet with an aspect-ratio gear grid.
episode-stats.htmlRun-summary stats with flex cross-stretch.
leaderboard.htmlSeason leaderboard table/rows.
map.htmlWorld map with a footer travel-cost row.
todo.htmlMinimal todo list (good first read).

Dashboards

SampleExercises
stock-dashboard.htmlDense flex→grid→flex chain (intrinsic-sizing stress).
advanced-dashboard.htmlMulti-panel dashboard with backdrop-filter and height containment.

Notes


Next: Testing