diff options
| author | srdusr <[email protected]> | 2025-12-25 00:24:00 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2025-12-25 00:24:00 +0200 |
| commit | b97beebfd527a12b182a12a556381768a728d9dc (patch) | |
| tree | 78aa93d1ce8816ff772db8617c1f8e88a78ccb16 /web/src/data | |
| parent | 5e2d0bc673b7ac2cebc3bb9f3b9b30cbc19eba7f (diff) | |
| download | typerpunk-b97beebfd527a12b182a12a556381768a728d9dc.tar.gz typerpunk-b97beebfd527a12b182a12a556381768a728d9dc.zip | |
Unify the control styling, add racer sprites, fill the store, reserve ad space
Design tokens
- The stylesheet had five corner radii in use with no rule for which applied
where, so a button was square while the input beside it was rounded and the
icon button next to that was something else again. Two tokens now: --radius
for controls, --radius-panel for the surfaces they sit on.
- One border weight. Buttons were 2px and inputs 1px, which made a field and
its own button read as different weights of the same idea. The two start
buttons keep 2px, where it is doing work.
- Letter-spacing was 1px, 2px, 3px and 4px with no rule behind it. Now 1px
for small caps labels and 2px for button text.
- Removed the .ghost modifier. After the hierarchy pass it rendered
identically to .quiet, so the two were one control under two names. Its
uses were toggles, which .quiet plus .active already expresses.
Racer sprites
- Six sprites in the same angular language as the rest of the icon set, one
per racer in the lobby and the race. A race reads as characters moving
rather than as coloured lines with names attached. Assigned from the
server's player order, so every client draws the same person as the same
character without needing to agree on anything.
Store
- Six items to twenty-six, across three slots. Race sprites join carets and
flair as a third slot, with the equipped sprite stored per user. Nothing is
required to race: an unequipped player keeps the sprite their position in
the room assigns.
Advertising space
- Reserved, empty, and loading nothing. The slot exists so that adding a
network later cannot push the page around when the tag loads. Shown to
signed-out visitors and to accounts without the supporter flag, on the end
screen only: interrupting somebody mid-test is the one placement that would
cost more than it earns.
- No ad code is included, and none can be added without three deliberate
changes recorded in adSlot.js: the CSP forbids third-party script, frame
and image sources; the privacy page states there is no advertising and no
third-party script; and an ad network brings consent requirements that this
app has no mechanism for. Verified after this change that the only external
request the page makes is still fonts.googleapis.com.
Diffstat (limited to 'web/src/data')
0 files changed, 0 insertions, 0 deletions