Arena Plasma
v1.0An esports team hub with live brackets, match pages, rosters, scrims and standings, on a dark night sky of slow aurora bands.
Sayfa adresi: /
Yerleşik
Neler alırsınız- Açık ve koyuTema renklerinizi kullanır
- Masaüstü, tablet ve telefonTasarlandığı ekranlar
- Paketler…
- Kod boyutu…
- Pil dostu30 fps, dururken boşta
- Gizliyken dururEkran dışında veya başka sekmede
- Hareketi azaltİsteyenler için sakin
Her değişiklikte kontrol edilir
Güvenlik kontrolü: 3 Ara- Tür denetimiKatı TypeScript
- Lint ve biçimESLint · Prettier
- Testler ve derlemeAçık ve koyu ekran görüntüleri
- Güvenlik denetimiYüksek veya kritik uyarı yok
- Paket yaşıHer sürüm 7+ gündür herkese açık
- Boşta CPUDururken yarım çekirdekten az, ≤ 30 fps
Kod
arena-plasmaReact
- arena-plasma.tsxThe page: the sections in order.
- content.tsEvery word and number: brand, nav links, each section's copy and lists.
- theme.tsThe colors as CSS variables, and the shared class strings.
- README.mdHow to install it, and where to change the text, colors and form.
- pagesOne file per page: the sections it shows, in order.
- inbox.tsxInbox: results, scrim replies, registrations and roster news, filtered by unread and kind; opening one marks it read, and one can be removed with undo.
- match.tsxOne match: the scorebug and maps, then tabs for the round timeline, the player lines and the clips, with more from its event and what happened around it.
- matches.tsxMatches: every series our squads play, filtered by when, result, game and day, searched by opponent or event; reporting one from here moves its bracket on.
- news.tsxNews: the fan feed with the pinned post first, filtered by tag, searched and sorted; posts are written, edited, liked, pinned and deleted, and open in full in a sheet.
- overview.tsxThe hub's first page: the match being played now, the next one counting down, the season in four numbers, and a block for each part of the hub that leads to its full page.
- player.tsxOne player: their numbers and 8-week form, most played picks, the matches we tracked, the contract, their squadmates, and editing or removing them.
- rosters.tsxRosters: each squad's players as cards, filtered by status, searched and sorted, with adding a player and the starting lineup you reorder by dragging.
- schedule.tsxSchedule: a week of scrims, practice, reviews and fitness as a time grid with a now line (a day list on phones), filtered by squad and kind, with sessions added, edited, cancelled and deleted.
- settings.tsxSettings: your profile, how the hub looks (Glass or Solid, dark or light), what it notifies you about, and signing out.
- sign-in.tsxThe sign-in page (#/sign-in): an arena photo with the hub's promise beside the form card, over the aurora; on phones the card alone.
- standings.tsxStandings: each game's league table, the points race week by week, and this week's matches; reporting one re-sorts the table as you watch.
- stats.tsxStats: one squad's numbers (rating, maps, series, top player), its 8-week rating trend, player ratings and win rate by map, and a leaderboard across every squad.
- tournament.tsxOne event: its photo header, the live bracket or league table, its matches, the teams and where they placed, our lineup, and registering or withdrawing.
- tournaments.tsxEvents: every tournament and league as a photo card, filtered by status, game and tier, searched by name or place, and sorted; the cards glide to their new places.
- sectionsOne file per page section.
- account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
- appearance.tsxSettings → Appearance: the style (Glass or Solid) and the theme (System, Dark or Light), each choice shown as a small preview.
- bracket.tsxA bracket drawn as rounds side by side: each match a card with both teams and the score, winners in full ink, lines joining each pair to the match they feed, and Report on the matches that can be played now.
- clips.tsxA match's clips: the list with who and when, adding one in a small form, and deleting one behind a confirm with undo.
- event-side.tsxThe side of an event page: its facts, the other events of its game, and what has happened in it lately.
- fixture-row.tsxOne match as a row: when, where it sits in its event, both teams with the score, its state, and Report when it can be played now.
- league-table.tsxA league table: rank, team, played, won, lost, map difference, points and form; sortable by its columns, and the rows glide to their new places when a result re-sorts them.
- lineup.tsxThe lineup board: drag a player by the grip (it lifts where you grabbed it and follows 1:1, the others make room, and it glides into the exact slot on drop) or use the arrow buttons; the top ones start.
- match-parts.tsxThe blocks of a match page: the scorebug with the maps, the round timeline of the current map, and the sortable player lines.
- player-form.tsxThe add or edit player form in a dialog: handle, name, squad, role, country, status and contract end, checked before it saves.
- post-parts.tsxA news post's parts: the card with like, pin, edit and delete, the full post in a sheet, and the write or edit form.
- report.tsxReporting a result, the hub's signature: pick the winner and the map score, and the winner glides out of its match into its slot in the next round while the tables re-sort.
- session-form.tsxAdd or edit a practice session in a dialog; an existing one can also be cancelled, restored or deleted from here.
- sidebar.tsxThe slim glowing nav rail (a lit pill glides to the current page), the phone's bottom bar with its More sheet, and the live-motion pause button.
- sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
- top-bar.tsxThe top bar: where you are, search, the live score of the match being played, the inbox bell, the theme switch and the account menu; plain at rest, frosted once the page scrolls.
- partsWhat several sections share.
- buildWhat several sections share.
- cardsWhat several sections share.
- iris.tsThe iris card style: each card opens as a circle from its center.
- rowsWhat several sections share.
- odo.tsxThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
- core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
- index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
- appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
- avatar.tsxA person's initials in a round badge, tinted with the primary.
- backdrop.tsxThe aurora behind the hub: three soft bands of light (the secondary, the primary and their mix) that sway slowly on the shared clock; faded out in Solid, still with reduced motion, and with followBackground your background instead.
- charts.tsxThe charts: lines that draw themselves (with a hover readout) and bars that grow; the axis is fitted to the data so a chart never lies flat.
- command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
- db.tsThe hub's data for a page, and saving through the fake API with a toast and Undo; plus the lookups every page shares (teams, events, our squads).
- dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
- field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
- flip.tsMoves that keep your eye on things: list items glide to their new places when a filter, sort or result reorders them (FLIP), and a winner glides from its match into the next round.
- format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
- icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
- language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
- moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
- motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
- pulse.tsThe one shared clock for everything live (the aurora, the live match, countdowns): at most 30 frames a second, resting while the tab is hidden, the app is off screen or live motion is paused.
- router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
- scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
- select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
- session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
- sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
- states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
- store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
- ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
- toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
- ui.tsxThe small pieces every page shares: page heads, panels, tabs with a gliding marker, filters, search, state badges, team badges, form strips, switches and the delete confirm.
- use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
- use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
- dataThe pretend data and the fake API: swap it for your backend.
- account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
- api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
- bracket.tsBracket and league rules: a reported result moves the winner into the next round, and the tables and placings are worked out from the fixtures.
- seed-events.tsThe pretend season around today: fourteen tournaments, every bracket and league fixture with its result, and our match details (player lines, rounds, clips), all drawn from fixed seeds.
- seed-feed.tsThe week around today: scrims and practice for each squad, the fan news feed and the manager's inbox.
- seed-people.tsThe pretend organisation: three games, our three squads and their twenty players, and the rival teams we meet.
- types.tsThe shapes of the pretend data: games, squads, players, teams, tournaments, fixtures (every match, bracket or league), scrims, news and notes.
- localesEvery word the app shows, one JSON file a language; list.ts names them.
- en.jsonOne language's words, with the keys of en.json.
- list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).
arena-plasma.tsx
The page: the sections in order.
Yükleniyor…
- Şunlar için uygun
- Esports orgs and teams: managers run rosters, lineups, scrims and results, players and fans follow brackets, matches and news.
- Nasıl çalışır
- Report a result and the winner glides into the next bracket round while the league table re-sorts; the live match plays on.
- Nasıl kullanılır
- Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.