A Memphis-style desk for a one- or two-day music festival: a stage-by-stage lineup grid you drag to reschedule, ticket tiers, crew shifts, stall pitches and the info desk, in pastel blocks with ink outlines.
Web
13 trang
$69
Địa chỉ trang: /
Xem thêm bên dưới ↓
Tích hợp sẵn
Bạn nhận được
Sáng và tốiDùng màu theo giao diện của bạn
Máy tính, máy tính bảng và điện thoạiCác màn hình mục này được thiết kế cho
Package…
Dung lượng mã…
Tiết kiệm pin30 fps, nghỉ khi đứng yên
Tạm dừng khi bị ẩnNgoài màn hình hoặc tab khác
Giảm chuyển độngÊm dịu cho người có yêu cầu
Được kiểm tra ở mỗi thay đổi
Kiểm tra bảo mật 28 thg 11
Kiểm tra kiểuTypeScript strict
Lint và định dạngESLint · Prettier
Test và buildẢnh chụp sáng và tối
Kiểm tra bảo mậtKhông có cảnh báo mức cao hoặc nghiêm trọng
Tuổi của packageMọi phiên bản công khai từ 7 ngày trở lên
CPU khi nghỉDưới nửa nhân khi đứng yên, ≤ 30 fps
Mã nguồn
App này có gì không ổn? Gửi góp ý ›
festival-tambourineReact
festival-tambourine.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.
artist.tsxpageOne artist: a drawn poster band with edit and delete, then tabs (kept in the address) for their sets, rider, contact and fee.
artists.tsxpageThe artists page: everyone on the bill with search and genre chips (both kept in the address, so Back returns to them); a row opens the artist.
crew.tsxpageThe crew page: the day and area (kept in the address), then tabs for the shift board and the people list; new shifts and crew members from the band.
info.tsxpageThe info desk: announcements (pinned first, pin and edit), each day's gate times, and the FAQ.
lineup.tsxpageThe lineup page: the day picker, the stage-by-stage grid (drag to reschedule, with Undo) and the clash check for that day.
overview.tsxpageOverview: the festival day at a glance in rows of cards (tickets ring, now playing, crew gaps, up next, clash check, sales, vendor fees, announcements, gates); each card opens its filtered list.
person.tsxpageOne crew member: their band with edit and delete, then tabs (kept in the address) for their shifts, contact and notes.
reports.tsxpageReports: four totals, revenue by day, tickets per day, sales by ticket type and tier (stacked), crew coverage by area, and a CSV export of the daily sales.
settings.tsxpageThe settings page: its band, the festival's own settings (details and stages) and Appearance (palette, theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): a drawn gig poster beside the form card, over the backdrop, without the header.
tickets.tsxpageThe tickets page: the ticket type cards with their tiers, then the latest orders with search and a status filter (kept in the address), refunds and a CSV export.
vendor.tsxpageOne stall: its band with edit and delete, then tabs (kept in the address) for its pitch, fee and contact.
vendors.tsxpageThe vendors page: fee totals, the pitch map, and the stalls with a filter (kept in the address); marking a fee paid throws a little confetti.
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 (six Memphis sets, each shown as its swatches), the theme (System, Dark or Light, each a small preview) and the language (System or one of locales/list.ts).
blocks.tsxsectionThe blocks every page shares: the pastel page band with its title squiggle, a card's heading, link tabs and the day picker (both kept in the address), a meter bar and the delete confirm.
crew-board.tsxsectionThe crew board for one area and day: the people not on a shift, then a column per shift with how many it still needs. Dragging someone (or Space and the arrow keys) signs them up, with Undo.
faq-list.tsxsectionThe FAQ: questions that open to their answers, reordered by their handles (drag, or Space and the arrow keys), each with Edit.
festival-settings.tsxsectionSettings → Festival: the name, site and shortest changeover, and the stages (add, rename, delete, and reorder by their handles: their order is the lineup's columns).
form-dialog.tsxsectionThe dialog every add-or-edit form sits in: a fresh form each time it opens, Save and Cancel (and Delete when given), the busy state and the form's one error line.
forms-ops.tsxsectionThe add-or-edit forms for running the day: a crew shift, a ticket type, one price tier, an announcement and an FAQ question.
forms.tsxsectionThe add-or-edit forms for the festival's people and stalls: an artist, a crew member and a vendor.
lineup-grid.tsxsectionThe lineup grid, the app's hero: stages as columns, half hours as rows, every set a pastel block you drag (or lift with Space) to a new stage or time. A dashed landing box shows where it goes and turns red on a clash; on today's grid a dashed NOW wire with a spinning tambourine glides down to the festival clock and creeps on with it.
overview-cards.tsxsectionOverview's live cards: the tickets-sold ring that sweeps in, what each stage plays now (moving with the festival clock), today's crew gaps by area and the next sets up.
pitch-map.tsxsectionThe drawn pitch map: three zones by the main gate, each pitch a tile. Drag a stall from the tray (or a placed one) onto a pitch, or press a stall's Place button and then a pitch; Escape cancels. Placing reads out and offers Undo.
set-dialog.tsxsectionAdding, changing and deleting one set: the artist, stage, day, start time and length; deleting offers Undo.
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.
ticket-types.tsxsectionThe ticket type cards: sold against the cap, revenue, and the price tiers in selling order (drag a handle, or Space and the arrow keys, to reorder; Edit changes price, cap and last day).
top-bar.tsxsectionThe wristband header: the tambourine logo and festival, the live festival clock, search, the theme switch and the account menu, over a perforated strip of ticket stubs (the pages). A sunny block glides under the current stub; on phones the stubs move into the menu sheet.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
burst.tspartThe burst card style: cards spread out from the middle of the page, the nearest first.
rowsrowsWhat several sections share.
cols.tspartThe cols row motion, a column wave: the parts of each row on screen (its children) arrive left to right, 35ms apart.
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: seven sparse Memphis shapes (a dotted circle, a zigzag, a half moon, a triangle, a squiggle, a ring, a cross) drifting slowly at the screen's edges, behind every page; with followBackground it paints your background instead. Its colors come from the primary only (float-1..3 in theme.ts), never a chart color.
bar-chart.tsxpartA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
board-model.tspartA board as data: every card's place (one order) and column, and how a move changes them.
board.tsxpartA board of columns and cards: drag a card (mouse, pen or a short press on touch) with a lift and a gap where it will land, or pick it up with Space and move it with the arrow keys; the other cards glide out of the way.
clash.tspartThe clash check: two sets on one stage that overlap or leave less than the changeover between them, and an artist booked twice at once. The lineup grid runs it live while you drag; the fake API runs it on every load.
clock.tspartThe festival's clock: the demo opens on day 1 at 17:40 and runs at real speed from there. One shared live clock (parts/live-clock.tsx) redraws what shows the time every 15 seconds, only while it is on screen, the tab is visible and nobody pressed Pause. Wire it to the real time when you go live.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
csv.tspartExport CSV: turns rows into a CSV file and hands it to the browser to save.
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-board.tspartThe board's drag engine: mouse, pen and touch drags with a lift, a gap where the card will land, auto-scroll near the edges, and a drop or Escape that settles the card into place.
field.tsxpartA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
flip.tspartFLIP: when cards change place, each one glides from where it was to where it is now instead of jumping.
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.
grid-drag.tspartDragging a set on the lineup grid: a mouse or pen drag, a short press then drag on touch (a swipe still scrolls), the page and the grid scrolling near their edges, 15-minute steps, Escape to put it back; and the keyboard path: Space lifts, arrows move (up and down 15 minutes, left and right a stage), Space or Enter drops, Escape cancels.
icons.tsxpartThe logo and the line icons, drawn on a 24-unit grid with round ends.
keyboard-move.tspartMoving a board card with the keyboard: Space picks it up, the arrow keys move it, Space or Enter drops it, Escape puts it back; each step is read out.
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).
line-chart.tsxpartA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
live-clock.tsxpartOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
memphis.tsxpartThe Memphis drawings: the squiggle under a page title, the small shapes (dots, zigzag, half moon, triangle, ring, cross) that decorate bands and empty states, an artist's drawn poster, and the short confetti pop for wins. All flat fills and ink lines from the theme's pastels.
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, Sunset first): each is four inputs, and theme.ts makes the five pastels from them. Settings → Appearance picks one for this browser.
reorder.tspartReordering a short list by its handles: drag a handle up or down (rows make room as it passes), or focus it and press Space, the arrow keys, then Space to drop or Escape to put it back. What happens is read out.
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.
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.
answers.tsdataWhat each load answers, by its key ("lineup:1", "artist:a07"), worked out from the store. data/api.ts serves these after the fake network, and at once for the first paint.
api-ops.tsdataThe fake API's saves for running the festival: ticket types, tiers and refunds, crew shifts and sign-ups, vendors and their pitches and fees, and the info desk. Replace each body with a call to your backend.
api.tsdataThe fake API: every page loads through get() and saves through the functions here (lineup, artists, stages, the festival) and in data/api-ops.ts (tickets, crew, vendors, info), so wiring a real backend happens in data/ only.
db.tsdataThe fake API's store: a working copy of the pretend data that saves change, shared by the load and save files. A real backend keeps this in its database.
net.tsdataThe fake network every load and save goes through: a short wait while Slow network is on, and a failure on every load while Show error state is on. Delete both switches when you wire your backend.
seed-lineup.tsdataThe pretend festival: its stages, artists and the two days' sets. Demo data stays in English; swap it for your own festival.
seed-ops.tsdataThe pretend festival's operations: ticket types and orders, crew areas, people and shifts, vendors and pitches, and the info desk. Demo data stays in English.
types.tsdataThe shapes the fake API answers with: the festival's things (stages, artists, sets, tickets, crew, vendors, info) and the views pages load. A real backend returns the same shapes.
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}).
festival-tambourine.tsx
The page: the sections in order.
Đang tải…
Phù hợp cho
Small teams running a one- or two-day music festival: lineup, tickets, crew rota, food and merch stalls, and gate info.
Cách hoạt động
Drag sets across stages and times with a live clash check, sign crew onto shifts, place stalls on a pitch map; a NOW line glides down.
Cách dùng
Edit words in locales/, colors in theme.ts and parts/palettes.ts, and swap the bodies in data/api.ts and data/api-ops.ts for your backend.