Перейти к содержимому

Choir Alto

v1.0

A community choir's office on warm paper with a plum accent: rehearsals, singers, music, concerts and subs, with a live SATB balance you drag singers across.

$69

Адрес страницы: /

Уже внутри

Что вы получаете
  • Светлая и тёмнаяБерёт цвета вашей темы
  • ПК, планшет и телефонЭкраны, для которых сделано
  • Пакеты…
  • Размер кода…
  • Бережёт батарею30 кадров/с, в покое простаивает
  • Пауза в фонеВне экрана или в другой вкладке
  • Меньше анимацииСпокойно для тех, кто просит

Проверяется при каждом изменении

Безопасность проверена 3 дек.
  • Проверка типовСтрогий TypeScript
  • Линтер и форматESLint · Prettier
  • Тесты и сборкаСкриншоты в светлой и тёмной теме
  • Аудит безопасностиНет уязвимостей высокого и критического уровня
  • Возраст пакетовКаждая версия опубликована 7+ дней назад
  • Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с

Код

choir-altoReact
  • choir-alto.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.
    • concert.tsxOne concert: when, where and the call time as the hero, the SATB balance with its draggable singers, the setlist with its warnings and order, each part's target, and who confirmed (its own tab).
    • concerts.tsxConcerts: the next one as the hero, how many singers confirmed for it and the season so far, then every concert ahead and behind with the parts still thin.
    • music.tsxThe music library: the piece that needs the most work as the hero (how well each part knows it), the size of the library and its learning tracks, then every piece with how well it's learned.
    • overview.tsxThe overview, a bento: the next rehearsal as the hero, the SATB balance for the next concert, the live metronome and answers, subs due, how well the setlist is learned, the setlist with its warnings and the concerts ahead.
    • piece.tsxOne piece: how well each part knows it (set in steps of ten) as the hero, its tempo, its learning tracks by part and the concerts it's in.
    • rehearsal.tsxOne rehearsal: when and where, who came (or is coming) by part, and three tabs: the run order of pieces, the attendance roll call and the answers for one still ahead.
    • rehearsals.tsxRehearsals: the next one as the hero with its countdown, attendance over the term, answers for next week, then the schedule (upcoming or past) and the pieces rehearsed most.
    • reports.tsxReports: attendance over the last twelve rehearsals as the hero, attendance by part, how well the next concert's pieces are learned and subs paid week by week; Export CSV saves the attendance.
    • settings.tsxThe settings page: the choir (its name, the usual hall and time, the term's subs) and Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the form on one card, and beside it on wide screens a drawn stave with the four parts as notes, over the backdrop, without the sidebar and top bar.
    • singer.tsxOne singer: their part and contacts as the hero, how often they came, their subs with Log payment and Remind, what they paid, and the concerts they're singing.
    • singers.tsxSingers: the choir by part against its targets as the hero, who joined this term and who is on leave, then everyone, filtered by part or found by name, with their attendance and subs.
    • subs.tsxSubs: the term's money in as the hero with payments week by week, what's still due with one Remind for everyone who owes, the reminders sent, then every singer's subs (log a payment, remind, waive) and the latest payments.
  • 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, and the language (System or one of locales/list.ts).
    • event-forms.tsxThe forms for a rehearsal, a concert and a piece of music, in dialogs: noValidate with their own error lines; a new one opens its page once saved.
    • forms.tsxThe forms in dialogs: a singer, a payment and the delete confirm. Each is noValidate with its own error lines, saves through data/save.ts, then every loaded page refreshes and a toast says what happened.
    • live.tsxThe overview's live tiles, all on the one shared clock (parts/clock.ts): the next rehearsal with its countdown, the metronome pulsing at the focus piece's tempo, and the answers ticker where singers say they're coming.
    • page-head.tsxA page's head: its title, one line on what it's for, and its actions (the main one in the primary), wrapping under the title on a phone; a detail page adds its way back to the list.
    • roll-call.tsxThe roll call: every singer in four part columns, each a pill you press to mark them here (or coming); on shows a check and a filled pill, off a hollow one, so the state never rests on color alone.
    • satb-tile.tsxThe SATB balance tile, the app's signature: four bars show who confirmed for a concert by part, each against its target line. Drag a singer who can cover two parts between the lanes under the bars: the bars glide to their new heights as you go, a thin part says so in words, and the move saves with an Undo.
    • sidebar.tsxThe sidebar: logo, search with the command palette shortcut, and the page links in two groups (the choir, the office); the current page is a tinted pill with a bold label and a marker. Collapsed, only the icons show.
    • 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: the menu button on narrow screens, where you are, search, the theme switch and the account menu. It sits plain on the ground and frosts (a blur, a see-through ground, a thin edge) once the page scrolls.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • sheen.tsThe sheen card style: cards rise, plus one soft light sweep across each card as it lands.
      • rowsWhat several sections share.
        • avatar.tsThe avatar row motion: each row's face (data-build="face") pops first, then the row's other parts follow from faint.
      • 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; in a list row it is the row's face (data-build="face"), which pops in first.
    • backdrop.tsxThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
    • charts.tsxThe charts: rounded bars (muted, the current one in the primary) and a smooth line with a soft area under it. Both grow in with the page (data-build) and glide when their values change.
    • clock.tsThe one clock every live tile runs on: at most 30 steps a second, only while its tile is on screen and the tab is visible; with reduced motion it steps once a second (the countdown's text changes, nothing moves).
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • csv.tsExport CSV: turns rows into a CSV file and hands it to the browser to save.
    • 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.
    • drag-lanes.tsDrag cards between ordered lanes (a tech's stops, a repair stage): mouse and pen at once, touch after a short press (a swipe still scrolls), the lifted copy kept under the grab point, the others sliding aside (FLIP), the page and the board scrolling near their edges, Escape to cancel, and a keyboard path (Space lifts, arrows move, Space drops).
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Tue 2 Dec", "mar, 2 dic"), money in pounds, times, track lengths and "5 min ago".
    • 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.
    • 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.
    • tile.tsxThe bento's pieces: a tile (one idea, one h3), the page's hero tile, a meter, a ring, a part badge, the tab strip of a detail page and the live countdown.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • 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: the choir's music director.
    • api.tsThe fake API: every page loads through these functions (saves are in data/save.ts), so wiring a real backend happens in data/ only.
    • db.tsThe pretend database the fake API reads and writes, plus the rules every page counts by (who is here, who has paid, which part is thin), so a tile and the list it opens always agree.
    • save.tsThe fake API's saves: create, edit and delete singers, pieces, rehearsals, concerts and payments, move a singer between parts, answer for a rehearsal. Each waits like a network call while Slow network is on.
    • seed.tsThe pretend choir: 90 singers in four parts, a library of pieces, twelve past and six coming rehearsals, five concerts and this term's subs. Dates follow the real clock, so the next rehearsal and concert are always ahead.
    • types.tsThe shapes of the choir's data: singers in four parts, pieces with their learning tracks, rehearsals, concerts and subs. The fake API (data/api.ts) answers in these shapes.
  • 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.
    • es.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}).

choir-alto.tsx

The page: the sections in order.

Загрузка…
Подходит для
Choir directors and committees running weekly rehearsals, a music library, concerts and term subs for a choir of 90.
Как это работает
A bento overview counts down to Tuesday; drag a singer between parts and the four SATB bars glide while the setlist flags thin parts.
Как использовать
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts and data/save.ts for calls to your backend.