Skip to main content

Documentation Index

Fetch the complete documentation index at: https://hedgeem-api.qeetoto.com/llms.txt

Use this file to discover all available pages before exploring further.

HedgeEm UI Component Inventory

This page catalogues every visual and interactive UI component that makes up a HedgeEm game. Components are grouped into two categories:
  • Common — present in every HedgeEm game variant (JS, TypeScript, UMA, V7)
  • V7-specific — unique to the horse-race skin in hedgeem-v7

Common Components

These components appear in all game variants. The implementation differs per skin but the business function is identical.
ComponentDescriptionFeature IDV7 Implementation
Hole card displayTwo face-up cards shown per hand from deal onwardsF022SVG cards in info panel rows, tilted ±5°
Community card display5 board cards revealed progressively (3 at FLOP, 1 at TURN, 1 at RIVER)F022SVG cards positioned right of fence posts in grass area
Odds displayWin probability shown as X:1 ratio per hand, updated each stageF024Gold text in info panel rows (hr-odds)
Hand name displayShort hand description (e.g. “Pair of Kings”) per hand per stageF023hr-hand text in info panel rows
Stage advance buttonPrimary CTA to advance game from HOLE→FLOP→TURN→RIVER→new roundF021Gold ▶ RUN / ▶ DEAL button below track
Stage labelText description of current game state shown near advance buttonF028Italic gold label below RUN button
Chip selectorRow of betting chip denominations (50p, £1, £2, £5, £10, £20)F029Coloured circular chip buttons, active chip highlighted
Bet placement UIClick a hand to place the selected chip denomination as a betF011Click horse row in info panel
Bet badgeConfirms active bet amount on a handF011Teal Bet: £X.XX badge inside horse info row
Clear bets buttonCancels all bets placed in the current stageF012Outline gold button next to bet hint
Credits / wallet displayRunning credit total visible at all timesF016Credits: £X.XX above chip row
Win / payout screenFull-screen overlay announcing win amount with animationF027Dark overlay with trophy, horse name, amount + coin fall
Coin animationCelebratory coins burst on a winF04845 animated gold coins falling from top of track
Commentator / speech bubbleCharacter with speech bubble delivering stage commentaryTop-hat figure in grass area, right of RIVER sign; bubble appears/fades on each stage
Sound / ambient audioCrowd noise, hoofbeats, bugle call, win fanfareF060, F061Web Audio API; gallop loop, ambient MP3, bugle MP3

V7-Specific Components

These components are unique to the horse-race skin and have no equivalent in JS or TypeScript variants.
ComponentDescriptionSource / Notes
Race trackSandy dirt track with 4 baked-in lane dividerscourse.pngbackground-size: 100% 100% on .dirt
Grass areaGreen strip above track, holds community cards and commentatorCSS gradient, top:82px height:80px
Crowd standColoured dot crowd at top of track230 random-coloured dots, crowd-dots div
Fence railWhite rail separating grass from dirtCSS white bar at top:156px height:12px
Starting gatesGate structure at left edge of track; closed at HOLE, opens at FLOPgates.png background-image; clipped to 40px (frame only) at HOLE, expands to 90px at FLOP via .open class
Horse SVGAnimated horse + jockey sprite per laneInline SVG, 116×86px; body, legs, tail, jockey all individually animated
Horse gallop animationContinuous body bounce + leg cycling while race is in progressCSS @keyframes gallop-bounce, leg-fl/fr/rl/rr, tail-wave at 0.36s cycle
Horse jump animationLeap animation as horse clears each hurdleCSS @keyframes horse-jump 0.8s; triggered when nose is ~20px before fence post
Eliminated horseDead horse flipped upside-down in greyscale after 0% win probability.eliminated class: rotate(180deg), grayscale(.9), opacity:.5; persists until next HOLE
Saddle number badgeColoured rectangle on horse flank showing lane number (gate-panel colours: 1=red, 2=silver, 3=blue, 4=gold).horse-num; jiggles in sync with gallop-bounce; hidden behind gate z-index at HOLE
Horse info panelLeft panel with one row per horse; rows vertically aligned with track lanes220px wide, 166px top spacer, 71px rows (LANE_H)
Horse info rowPer-lane display: number badge → horse name → hand name → bet badge → hole cards → odds.horse-row; clickable to place a bet
Hurdles / hedgesSVG fence posts at FLOP (24%), TURN (54%), RIVER (80%) track positions.hurdlemakeHurdleSVG(), fades to 30% opacity after cleared
Stage flagsCircular FLOP / TURN / RIVER signs on poles in the grass, at hurdle positions.fence-flagmakeFlagSVG(); red/orange/blue
Community cards in grassBoard cards displayed in grass area to the right of each fence post.board-card-spot at translateX(25px) from fence position; FLOP cards tilted ±5°
Finish flagGreen flag at right edge of track, appears when race ends.finish-flag, right:52px
Winner labelGold 🏆 [Horse Name] badge above winning horse after race.winner-label animated pop, z-index:20
Win screen overlayFull-screen semi-transparent overlay with winner details.win-screen, sits inside .track-container at z-index:50

Layout Constants (V7)

These values are fixed design constants. Do not change without updating all dependent components.
ConstantValueUsed by
Track container height452px.track-container, gate height calc
Crowd height82px.crowd, spacer, commentator position
Grass height80px (top 82–162px).grass, commentator bottom alignment
Fence rail height12px (top 156–168px).fence-rail
Dirt / lane section top166px.dirt, .gate-wrap, .hurdle
Dirt height286px (452−166)Gate image height, hurdle height
Lane height71px (LANE_H)Horse positioning, info panel rows
Number of lanes4 (NUM_LANES)Horse count, gate image
Info panel width220px.info-panel, track flex layout
Info panel top spacer166px.info-panel-spacer
FLOP fence position24%Hurdle, flag, board-card-spot
TURN fence position54%Hurdle, flag, board-card-spot
RIVER fence position80%Hurdle, flag, board-card-spot, commentator (82%)
Horse transition speed2800ms.horse-unit CSS transition + JS TRANSITION
Gallop cycle0.36sAll gallop / saddle-badge animations
Jump duration0.8shorse-jump keyframe