An ice cream shop's back office in sunny Memphis style: flavors, batches, a freezer of half-dome tubs, pre-orders, live scoops by hour and reports.
Web
12 صفحات
$69
صفحے کا پتہ: /
نیچے مزید ↓
پہلے سے شامل
آپ کو کیا ملتا ہے
لائٹ اور ڈارکآپ کی تھیم کے رنگ استعمال کرتا ہے
ڈیسک ٹاپ، ٹیبلٹ، اور فونوہ اسکرینز جن کے لیے یہ بنایا گیا
پیکجز…
کوڈ کا سائز…
بیٹری پر ہلکا30 fps، ساکن ہو تو رک جاتا ہے
چھپنے پر رک جاتا ہےاسکرین سے باہر یا دوسرا ٹیب
کم حرکتجو لوگ کہیں ان کے لیے پرسکون
ہر تبدیلی پر جانچ
سکیورٹی جانچ 28 نومبر
ٹائپ چیکTypeScript strict
لنٹ اور فارمیٹESLint · Prettier
ٹیسٹ اور بلڈلائٹ اور ڈارک اسکرین شاٹس
سکیورٹی آڈٹکوئی ہائی یا کریٹیکل ایڈوائزری نہیں
پیکج کی عمرہر ورژن 7+ دن سے عوامی
فارغ CPUآرام میں آدھے کور سے کم، ≤ 30 fps
کوڈ
اس ایپ میں کچھ گڑبڑ ہے؟ فیڈبیک بھیجیں ›
icecream-sprinkleReact
icecream-sprinkle.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.
batch-detail.tsxpageOne batch: its flavor, day, maker and yield, tabs for details, the tubs it made (each a dome filled to what's left) and notes. Start, make, edit or delete it here.
batches.tsxpageBatches: the kitchen board in three lanes (planned, churning, done). A card drags between lanes by pointer, touch or keyboard; dropping on Done opens the make dialog, where the yield goes in and the tubs fill. Or a plain list by day. A batch opens its page.
flavor-detail.tsxpageOne flavor: a pastel head with its tub dome, then tabs for the recipe (ingredients for one batch, added and removed here), allergens (tapped on and off), its batches and its sales. Edit, retire or bring back, and delete.
flavors.tsxpageFlavors: the recipe book as a patchwork of flavor cards (a tub dome filled to what's in the freezer, base, allergens, seasonal tag), filtered by menu state, a free-from allergen and a search that all survive Back; a flavor opens its detail page.
freezer.tsxpageThe freezer: shelves A to D of half-dome tubs (each filled to what's left) that drag between shelves by pointer, touch or keyboard, the open tubs on the counters, and what's running low with a plan-a-batch link. Pick a tub to open it on a counter, mark it sold out or throw it away with a reason, each with Undo.
order-detail.tsxpageOne pre-order: its status as four steps (tap the next one), then tabs for the order (kind, size, flavors, piped message, total), the customer (phone, pickup, note) and its history. Edit, cancel or delete it here.
orders.tsxpagePre-orders: a strip of the next seven days with each day's pickups, status and kind filters that survive Back, and the list by pickup time, each row stepping to its next status in one tap. An order opens its page.
overview.tsxpageOverview: a greeting block with a swaying cone, four tilted stat tiles, the freezer as rows of half-dome tubs beside scoops by hour (live from the till), then today's pickups, what the kitchen makes today and today's best sellers.
reports.tsxpageReports: best sellers of the last seven days as wobbling bars, the flavor of the week (the one rising fastest), waste by flavor with the log, and scoops per week over two months. Export it all as CSV.
sales.tsxpageSales: pick a day of the last week, see every flavor by hour as a heatmap (deeper color, more scoops), the hour totals as bars, and today the live till feed, where each sale bumps its hour and drops a scoop on it.
settings.tsxpageThe settings page: the shop (name, counters, low stock, best before) and Appearance (palette, theme and language).
sign-in.tsxpageThe sign-in page (#/sign-in): a sunny pastel block with a cone and Memphis shapes beside the form card, without the rail and top bar. On a phone the art shrinks to a strip over the card.
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 of four colors), the theme (System, Dark or Light), each choice shown as a small picture, and the language (System or one of locales/list.ts).
batch-form.tsxsectionThe batch dialogs: plan or edit a batch (flavor, day, tubs, maker, notes), and make one, where the yield goes in and the new tubs fill like scoops with a sprinkle pop. A new open starts a fresh form (keyed), never a reset in an effect.
flavor-form.tsxsectionThe flavor form in a dialog: name, base, color, seasonal, allergens and notes, for a new flavor or an edit. A new open starts a fresh form (keyed), never a reset in an effect.
order-form.tsxsectionThe pre-order form in a dialog: cake or party tub, customer and phone, up to three flavors, size, piped message, pickup day and time, and a note. A new open starts a fresh form (keyed), never a reset in an effect.
overview-cards.tsxsectionOverview's last row: today's pickups by time, what the kitchen makes today (start or make it from here), and today's best sellers as wobbling bars.
overview-freezer.tsxsectionOverview's signature pair: the freezer as four shelves of half-dome tubs (each filled to what's left, a shelf opens the freezer filtered), and scoops by hour, where every sale the till rings bumps the hour and drops a scoop on it.
rail.tsxsectionThe rail: the logo, search, the pages as chips led by pastel scoops (the current one filled and dripping), and the flavors on the menu as chips with a tiny tub that shows how much is left, a red dot when one runs low.
shop-settings.tsxsectionSettings → The shop: its name, how many counters are open (the till feed rings on them), when a flavor counts as low, and how long a new tub keeps.
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.
top-bar.tsxsectionThe top bar: the menu button on narrow screens, where you are, the freezer's temperature and the counters open, Pause for the live motion, search, the theme switch and the account menu.
ui.tsxsectionThe parts every page is built from: the page head with its squiggle and pastel band, cards, tilted stat tiles, status pills, flavor chips, tabs, filter chips, the confirm dialog, and the flavors every page names.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
unfold.tspartThe unfold card style: cards unfold downward from their top edge, their contents fading in.
rowsrowsWhat several sections share.
odo.tsxpartThe odo row motion: each row on screen rises 6px from faint while every number rolls digit by digit to its value.
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 behind the page: a few drawn Memphis shapes (sprinkles, a half-dome, a ring, a zigzag, dots) scattered at the edges, still, from the ground and primary only; with followBackground it paints your background instead.
charts.tsxpartThe charts: upright bars (scoops by hour, a flavor's week) that spring up and bump when the till rings, best-seller bars that wobble in, and the weekly trend line. Ink outlines, pastel fills, in the chart colors.
clock.tspartThe one shared clock every live motion runs on (the greeting cone's sway, the till's live feed): at most 30 ticks a second, stopped while nothing on screen needs it, the tab is hidden, Pause is on or motion is reduced.
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.tspartDrag between drop zones (tubs between shelves, batches between lanes): the card lifts at the grab point, tilts and grows, follows pointer or touch, the page scrolls at its edges, the others glide aside (FLIP), and the keyboard does it too from a grip button (Space lifts, arrows pick a zone, Space drops, Escape cancels), read out in an aria-live line.
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 drawn Memphis pictures: a tub as a half-dome filled to what's left, the cone, the squiggle under titles, the loose shapes and the sprinkle pop for wins. Ink lines and flat pastels only.
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.
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.
api.tsdataThe fake API's reads: every page loads by a key ("flavors", "flavor:pistachio", "sales:-1"); saves are in data/saves.ts. Wiring a real backend happens in data/ only.
db.tsdataThe pretend database the fake API reads (data/api.ts) and changes (data/saves.ts): swap both for calls to your backend.
flavors.tsdataThe pretend flavors: the shop's recipe book, each with a pastel tone, its base, allergens and ingredients. Swap for your backend's data.
net.tsdataThe pretend network under the fake API: the wait a call takes, the Slow network and Show error state switches, days and new ids.
orders.tsdataThe pretend pre-orders: ice cream cakes and party tubs with a pickup time and a status trail. Swap for your backend's data.
sales.tsdataThe fake POS feed: scoops sold by flavor and hour, worked out the same way every time from each flavor's pull, the hour and the weekday. Swap for your till's sales export.
saves.tsdataThe fake API's saves: flavors, batches, tubs, pre-orders, settings and the live till. Each waits like a network call; swap a body for your backend's.
stock.tsdataThe pretend kitchen and freezer: batches (planned, making, done), the tubs they made on shelves A to D, the waste log and the shop's settings. Swap for your backend's data.
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}).
icecream-sprinkle.tsx
The page: the sections in order.
لوڈ ہو رہا ہے…
کس کے لیے بہتر
Small ice cream shops with one to three counters and a kitchen that make their own flavors and take cake and party-tub orders.
یہ کیسے کام کرتا ہے
Pastel blocks in ink outlines; tubs fill like scoops when a batch is made, the till feed bumps the hour bars and best sellers wobble in.
استعمال کا طریقہ
Edit words in locales/ and colors in theme.ts or parts/palettes.ts, and swap the bodies in data/api.ts and data/saves.ts for calls to your backend.