A pub quiz host's app in loud Memphis style: a question bank, drag-built rounds, a live night with a giant question card, a countdown ring and a springy scoreboard, plus teams and league tables.
Web
12 halaman
$69
Alamat halaman: /
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Terang dan gelapMemakai warna tema Anda
Desktop, tablet, dan ponselLayar yang didukung
Paket…
Ukuran kode…
Hemat baterai30 fps, diam saat tidak bergerak
Berhenti saat tersembunyiDi luar layar atau tab lain
Kurangi gerakanTenang bagi yang memintanya
Dicek di setiap perubahan
Keamanan dicek 28 Nov
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan aplikasi ini? Kirim masukan ›
trivia-quizzoReact
trivia-quizzo.tsxpageThe page: the sections in order.
content.tscontentEvery word and number: brand, nav links, each section's copy and lists.
theme.tsthemeThe colors as CSS variables, and the shared class strings.
README.mdreadmeHow to install it, and where to change the text, colors and form.
pagespagesOne file per page: the sections it shows, in order.
leagues.tsxpageLeagues: the table for a season (in the address) at the top bar's venue, with the leader's band, each team's form as place dots; and the seasons to add, close or reopen.
live.tsxpageThe live night: pick the quiz, show each question on the giant card with its timer, step through the rounds, mark every team and watch the scoreboard reshuffle; finish saves the night to the league.
overview.tsxpageOverview: tonight's quiz and the season's numbers, then the league's top six, the bank by category and difficulty, then recent nights, the hardest questions and team form. Every card opens its full list.
question-detail.tsxpageOne question: its card (answer, also accepted, media, points) with edit, duplicate and delete; the quizzes it's in; and how rooms did with it, by venue.
questions.tsxpageThe question bank: a band of category chips, filters kept in the address (search, category, difficulty, used or never asked), the list with each question's answer and rate, and new, edit, duplicate and delete.
quiz-detail.tsxpageOne quiz night: its rounds to build (drag, rename, joker, add from the bank), the teams booked for it, and its results once played; edit the night or run it live.
quizzes.tsxpageQuizzes: every night as a ticket card in its venue's pastel, filtered by status (in the address) and the top bar's venue, with new, edit, duplicate and delete.
reports.tsxpageReports for the top bar's venue: the hardest and easiest questions by how many teams got them, correct answers by category, the top four teams' form and teams per night by venue.
settings.tsxpageThe settings page: Appearance (palette, theme, language), scoring and timer, and the venues.
sign-in.tsxpageThe sign-in page (#/sign-in): the form card beside a drawn Memphis scene (a tilted question card, a buzzer and loose shapes) with the night's call on a solid badge; one column on phones.
team-detail.tsxpageOne team: its best place, average and wins; its players (add, remove, pick the captain); every night it played; and its form as a place line.
teams.tsxpageTeams: every team as a card with its players, captain and home venue, filtered by the top bar's venue and a search (kept in the address), with new, edit and delete.
sectionssectionsOne file per page section.
account-menu.tsxsectionThe 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.tsxsectionSettings → Appearance: the palette (seven, each shown as its shapes), the theme (System, Dark or Light, each a small preview) and the language (System or one of locales/list.ts).
bank-picker.tsxsectionThe bank picker: a dialog to tick questions from the bank (filtered by search and category, hiding ones already in the quiz) and add them to a round.
confirm.tsxsectionThe delete check every page shares: a small dialog naming what goes, with Cancel and a red Delete that shows it's working.
live-card.tsxsectionThe live question: a giant tilted card that flips over to show the answer, and the timer ring that counts down the seconds from Settings (start, pause, reset; it rests in a hidden tab).
overview-top.tsxsectionOverview's first row: tonight's quiz as a big pastel hero with a turning sunburst (with Pause), the countdown and Go live, beside four tilted stat tiles that open their filtered lists.
question-form.tsxsectionThe question dialog: write or edit a question with its answer, answers also accepted, category, difficulty, media note and points; checks the two it needs and saves through the API.
quiz-form.tsxsectionThe quiz dialog: a night's name, date, start time, venue and status; saving a new one opens it to build its rounds.
quiz-settings.tsxsectionSettings for the nights: scoring and timer (seconds, points, joker, league points by place) and the venues (2 to 6) with their town and quiz weekday.
round-builder.tsxsectionThe round builder: a quiz's rounds as cards you drag into order, each with its questions you drag too (pointer or keys, Undo in the toast); rename inline, make a joker round, duplicate, delete, add questions from the bank.
scoreboard.tsxsectionThe live night's two lists: marking (each booked team right, half or wrong on the question showing, in booking order so buttons never move) and the scoreboard, whose rows swap places with a spring as the totals change.
sidebar.tsxsectionThe buzzer rail: the logo, search with the command palette shortcut, and every page as a round game-show buzzer in its own pastel; the current one is pressed in and ringed. Collapsed, only the buzzers show.
sign-in-form.tsxsectionThe 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.
team-form.tsxsectionThe team dialog: a team's name, home venue and captain; saving a new one opens it to add players.
top-bar.tsxsectionThe top bar: the menu button on narrow screens, the venue switcher, the next-quiz ticket with its countdown, search, the theme switch and the account menu.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
flip.tspartThe flip card style: cards turn up in 3D from their bottom edge.
rowsrowsWhat several sections share.
center.tspartThe center row motion: the middle row on screen rises first, then the ripple spreads up and down.
core.tsxpartThe 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.tspartThe 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.tspartHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe backdrop: a few still Memphis shapes scattered at the window's edges behind every page (a ring, a half moon, a zigzag, dots, a triangle), from the primary only; with followBackground it paints your background instead.
charts.tsxpartThe charts, drawn flat with ink outlines in the five chart colors: a donut, column bars, side bars and a place line chart (lower is better).
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
dialog.tsxpartA 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.
drag.tspartRows that move like things: FLIP (each row glides from where it was to its new place with a spring, the scoreboard swap) and drag to reorder (pointer or keys, the lifted row tilts, the others slide aside, edge auto-scroll, Escape cancels).
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
format.tspartHow 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.tsxpartThe logo and the line icons, drawn on a 24-unit grid with round ends.
language.tspartThe 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).
memphis.tsxpartThe Memphis kit: drawn shapes (dots, zigzags, half moons, the quiz card), the squiggle under a title, a page's color band, tabs, the confetti pop and the paused hero loop.
moments.tspartThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
motion.tspartMotion helpers: the reduced-motion check, live, and run-once-in-view.
palettes.tspartThe Memphis palettes (the same as meta.json's presets): each is four inputs, and theme.ts makes the five pastels from them. Settings → Appearance picks one for this browser.
quiz.tspartSmall quiz helpers the pages share: each category's and difficulty's pastel, live scores from marks, how a night's date and the time to it are written.
router.tspartThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
scroll-to-view.tspartScrolls an element into view moving only its own scroll container, never the page around it.
select-box.tsxpartA native select dressed to match the app: no browser arrow, a drawn chevron instead.
session.tspartWhether 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.tsxpartThe 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.tsxpartThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
store.tspartThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
ticker.tsxpartA number that counts up while its page builds in, and rolls to its new value whenever it changes.
toasts.tsxpartThe toasts: short notes that confirm what just happened, at the bottom end.
use-api.tspartLoads 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.tspartOpens 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.
venue.tspartThe venue the top bar's switcher picked ("all" for every venue): Overview, quizzes, teams, leagues and reports show only its nights. Kept in the browser.
datadataThe pretend data and the fake API: swap it for your backend.
account.tsdataThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
api.tsdataThe fake API's reads: every page loads through get(key), so wiring a real backend happens here and in data/edit.ts only.
bank.tsdataThe pretend question bank the demo starts with: swap for your own or load it from your backend in data/api.ts.
edit.tsdataThe fake API's saves: each changes the pretend database in data/api.ts after a short wait; swap a body for a call to your backend.
net.tsdataThe pretend network under the fake API: the Slow network and Show error state switches, the wait every call takes and the instant first read.
seed.tsdataThe pretend venues, teams, seasons, scoring and past nights the demo starts with, dated around today so it always looks current.
types.tsdataThe shapes the fake API answers with: questions, quizzes and their rounds, teams, venues, seasons, results and the live night.
localeslocalesEvery word the app shows, one JSON file a language; list.ts names them.
en.jsoncontentOne language's words, with the keys of en.json.
es.jsoncontentOne language's words, with the keys of en.json.
list.tscontentThe 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-locales.mjs the rest (no extra keys, plural forms, {slots}).
trivia-quizzo.tsx
The page: the sections in order.
Memuat…
Cocok untuk
Pub quiz hosts running weekly quiz nights in several venues: questions, rounds, live scoring, teams and leagues in one place.
Cara kerjanya
Round buzzer buttons switch pages; the live night flips a big question card, counts down a ring and swaps scoreboard rows with a spring.
Cara memakai
Edit words in locales/ and colors in theme.ts or parts/palettes.ts, and swap the bodies in data/api.ts and data/edit.ts for calls to your backend.