Перейти до вмісту

Nails Lacquer

v1.0

A glass front desk for a six-chair nail studio: a rail of lacquer swatches, a day board of chairs and a polish wall that glints and paints a nail preview, over a pearl-pink mesh.

$69

Адреса сторінки: /

Вбудовано

Що ви отримуєте
  • Світла й темнаВикористовує кольори вашої теми
  • Комп’ютер, планшет і телефонЕкрани, для яких його створено
  • Пакети…
  • Розмір коду…
  • Економить батарею30 fps, у спокої не навантажує
  • Пауза, коли прихованоПоза екраном або в іншій вкладці
  • Зменшення рухуСпокійно для тих, хто цього просить

Перевіряється після кожної зміни

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

Код

nails-lacquerReact
  • nails-lacquer.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.
    • appointments.tsxAppointments (#/appointments): one day's book as a board of chairs or a list, a day stepper, filters by tech, service type and state that live in the address (so Back keeps them), the booking form (?new=1) and a booking's detail (?b=).
    • client.tsxOne client (#/clients/c1) in tabs: Profile (contact, care, their signature set on their nail shape), Colours (favourite shades, a heart away), Notes, Photos (drawn records of finished sets) and Visits.
    • clients.tsxClients (#/clients): the studio's regulars with their favourite shades, visits and next booking; search and the VIP and due-back filters live in the address. A client opens their page (#/clients/c1).
    • library.tsxThe polish library (#/library): every bottle on the shelf as a glossy swatch that glints under the pointer; pick one and the glass hand paints it on, cuticle to tip, in the shape you choose. Filters by colour family, finish, brand and a search, all in the address. From a booking (?for=) the pick becomes its shade.
    • overview.tsxOverview (#/): today at a glance: the day's numbers, the six chairs and who is in each, the next client's shade painted on a nail, who is next, polish running low, the day by the hour, this week's top colours and today's commission.
    • reports.tsxReports (#/reports): the last 4, 8 or 12 full weeks (?weeks=): bookings and revenue by week, the colours clients asked for most, the service mix and each tech's takings, commission and rebooking.
    • services.tsxServices (#/services): the menu in four groups (gel, acrylic, nail art, care), each service's time, price and deposit, how often it was booked this month; add, edit, reorder within its group and remove.
    • settings.tsxThe settings page: the studio's hours, deposit and cancellation rules, then Appearance (style, theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the form on a glass card beside the glass hand freshly painted in cherry lacquer, over the pearl mesh, without the rail and top bar.
    • stock.tsxStock (#/stock): the back bar's supplies and the polish running low, each a tap from the next order; orders go from a draft to sent to received line by line, and what arrives goes back on the shelf.
    • techs.tsxTechs (#/techs): the six chairs' techs with today's book, this week's takings and commission; one opens their page (#/techs/t1) with their weekly schedule, commission and payouts, and upcoming bookings.
  • 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).
    • booking-detail.tsxOne booking in a dialog, in three tabs: Details (who, what, when and its next step: check in, seat, finish), Colour (the shade on the client's nail shape, their favourites one tap away) and Payment (price, deposit, paid).
    • booking-form.tsxThe booking form in a dialog: client, service, tech, day and time, the shade and the deposit. New or editing one; a time the tech already has taken shows under the time.
    • client-form.tsxThe client form in a dialog: name, phone, email, nail shape, care notes and VIP, new or editing one.
    • client-records.tsxA client's Notes and Photos tabs (#/clients/c1?tab=notes, ?tab=photos): notes to add and delete, and drawn records of finished sets (shade, design, shape) on glass hands.
    • day-board.tsxThe day board: a column per tech, the day's hours down the side, each booking a card at its time in the shade it will be painted. Drag a card (its grip on touch) to another time or tech, or move a focused card with the arrow keys; Undo puts it back. A tap on an empty slot books it.
    • polish-form.tsxThe shade form in a dialog: a new bottle for the library or changes to one, with its color picked by eye or typed as a hex.
    • rail.tsxThe side rail: the studio's pages as round lacquer swatches, each a turn of the brand color, the current one under a glass bead that glides to it. On a phone the same list opens in a sheet, a swatch beside each name.
    • 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.
    • tech-commission.tsxA tech's Commission tab (#/techs/t1?tab=commission): commission by week in the well, the rate form, and weekly payouts to pay out.
    • top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the live desk, search, New booking, Pause motion, the theme switch and the account menu. It is clear at the top and frosts once the page scrolls.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • wipe.tsThe wipe card style: each card uncovers from its bottom edge.
      • rowsWhat several sections share.
        • zigzag.tsThe zigzag row motion: odd rows slide in from the left, even ones from the right, 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.
    • backdrop.tsxThe Glass style's backdrop: a pearl-pink mesh of four soft lights that drift like poured lacquer, faded out in Solid; with followBackground it paints your background instead. The Pause motion key (MotionToggle) stills it.
    • charts.tsxThe charts, each plotted in a recessed well: pill bars (the current one in the primary) with an optional glowing line over them, an area line, a donut and the shade bars of the top colours.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • 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.tsDrag a card to a new place: a copy lifts off under the pointer and follows it 1:1, the drop place is outlined as you go, and on release the copy glides into its slot (or back home, on Escape, a drop nowhere or a failed save).
    • 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"; "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).
    • marker.tsThe liquid marker: the glass bead under a segmented control, a tab row or the rail springs to the picked item, stretching as it moves and settling with a small wobble. Transform only.
    • 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.
    • nail-preview.tsxThe nail preview: a glass hand of five fingertips whose nails take a shade in its finish and design. A new shade paints on in a sweep, cuticle to tip, one nail after another, then a gloss glints across; with reduced motion it is simply there.
    • 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.
    • swatch.tsxA polish swatch: a glossy round drop of the shade in its finish (cream, shimmer, chrome, matte, glitter). Inside a .nails-lacquer-glint parent it glints on hover and focus; picked, it wears a ring and a check.
    • 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: the glass panel, a card's head, a KPI, the segmented control and tab row with their liquid bead, a booking's status chip, a confirm dialog and a "See all" link.
    • 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.
    • db.tsThe fake backend's tables and every change to them; data/api.ts is the only caller, data/views.ts reads them.
    • seed-bookings.tsThe pretend appointment book: twelve weeks of finished visits, today's full book and the next two weeks, all from one seeded random.
    • seed-people.tsThe pretend clients: names, contact details, favourite shades, notes and drawn records of past sets.
    • seed-studio.tsThe pretend studio: six nail techs, the service menu, the polish library and the back-room supplies.
    • types.tsThe shapes the fake API answers with: the studio's techs, services, polish library, clients, bookings, stock and settings.
    • views.tsWhat each page reads, worked out from the tables in data/db.ts: rows with their client, service, tech and shade joined in, and the sums the cards show.
  • 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}).

nails-lacquer.tsx

The page: the sections in order.

Завантаження…
Підходить для
Nail and beauty studios that book gel, acrylic and nail-art sets across several techs and keep a polish wall.
Як це працює
Drag sets between chairs, pick a shade and watch it sweep onto the nails, while live bookings and check-ins arrive.
Як користуватися
Edit words in locales/en.json and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.