A camera and lens rental counter in soft raised graphite with a teal accent, where a turning aperture ring filters the catalog by focal length.
Web
12 pagina's
$69
Pagina-adres: /
Meer hieronder ↓
Ingebouwd
Wat je krijgt
Licht en donkerGebruikt de kleuren van je thema
Desktop, tablet en telefoonDe schermen waarvoor het is gebouwd
Pakketten…
Codegrootte…
Zuinig voor de batterij30 fps, rust als er niets beweegt
Pauzeert als het verborgen isBuiten beeld of ander tabblad
Minder bewegingRustig voor wie erom vraagt
Bij elke wijziging gecheckt
Beveiliging gecheckt op 28 nov
TypecheckTypeScript strict
Lint en opmaakESLint · Prettier
Tests en buildScreenshots in licht en donker
BeveiligingsauditGeen hoge of kritieke advisories
Leeftijd van pakkettenElke versie al 7+ dagen openbaar
CPU in rustOnder een halve core in rust, ≤ 30 fps
Code
Klopt er iets niet met deze app? Feedback sturen ›
lens-apertureReact
lens-aperture.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.
catalog.tsxpageCatalog: the aperture ring filters the gear by focal length beside a grid of drawn items with their day rate and what is free today; kind and search sit in the address.
customer.tsxpageOne customer: their details and ID check, the deposits held and settled, and every rental they made.
customers.tsxpageCustomers: a sortable table with whether their ID is checked, the deposits held for them and how often they rent; filter by ID from the address.
damage.tsxpageDamage: reports on a board from reported to closed; drag a card or move it with the keys, Undo puts it back; report, edit or delete one.
home.tsxpageOverview: what goes out today, what comes back, the prep queue, how hard the stock works, a focal-length finder on the aperture ring and open damage.
item.tsxpageOne item: its drawing and numbers, what is free on each day of the month, who rented it and its damage record; edit, delete, update firmware or book it.
prep.tsxpageThe prep bench: orders picking up in the next three days, each with its checklist and any body that needs a firmware update; move an order up or down the bench.
rental.tsxpageOne order: its gear (hand over, or check in and watch it slide back into stock), its prep checklist, the money and deposit, and any damage on it.
rentals.tsxpageEvery order: a sortable table filtered by status from the address, or a month calendar of pickups and returns with the picked day's list.
reports.tsxpageReports over 4 weeks, 12 weeks or a year: utilisation by kind, weekly revenue, the items that earn most and the late returns, with a CSV of each.
settings.tsxpageSettings: Appearance (style, theme and language), the counter's deposit, late fee and hours, and the prep steps every order is checked against.
sign-in.tsxpageThe sign-in page (#/sign-in): the form on a raised card beside a drawn lens front with its iris half closed, without the top bar.
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 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-dialog.tsxsectionThe booking dialog, one for the whole app: pick a customer, dates and gear; it checks what is free on those dates and prices it live (a week bills as four days), with the deposit from Settings.
customer-form.tsxsectionThe add / edit customer dialog: name, company, email, phone, ID type and a note.
damage-form.tsxsectionThe report / edit damage dialog: which item and rental, how bad, what happened, the repair cost and what the customer pays.
item-form.tsxsectionThe add / edit item dialog: name, kind, spec line, mount, focal range for a lens, day rate, replacement value and how many units are on the shelf.
sidebar.tsxsectionThe phone menu's list: the logo, search and every page as a raised key; the current one sunk with an accent LED.
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.
stock.tsxsectionHanding gear over and checking it back in: a checked-in row slides off toward the stock tray, and its gear lands in the tray as small raised chips.
top-bar.tsxsectionThe top bar: the logo, search, the out / due-back pills, New booking, the theme switch and the account menu, over the sunk track of page keys; clear at rest, a soft ground fade once the page scrolls under it.
partspartsWhat several sections share.
buildbuildWhat several sections share.
cardscardsWhat several sections share.
iris.tspartThe iris card style: each card opens as a circle from its center.
rowsrowsWhat several sections share.
slide.tspartThe slide row motion: each row on screen slides 12px in from the nav side, from faint.
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.
art.tsxpartThe drawn gear: a camera body, a lens barrel (longer for longer lenses), a light head or a hard case, in the ground's own shades with one accent.
avatar.tsxpartA person's initials in a round badge, tinted with the primary.
backdrop.tsxpartThe Glass style's backdrop: what shows through the see-through panels, faded out in Solid; with followBackground it paints your background instead.
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.
bulk-bar.tsxpartThe bar that rises over a list once rows are picked: how many, the actions for all of them, and a way to drop the pick.
chart-path.tspartA chart's line and area paths in each curve Chart Studio has (straight, smooth, step), and the classes that let a Chart Studio curve swap them in CSS.
command-palette.tsxpartThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
confirm.tsxpartA guarded action's second step: a small dialog that says what will happen, with Cancel and the action in red.
csv.tspartExport CSV: turns rows into a CSV file and hands it to the browser to save.
data-table.tsxpartA data table: a search box, columns that sort (aria-sort), still skeleton rows while loading, an empty note that clears the search, and rows you move through with the arrow keys, Home and End and open with Enter or a click.
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.
filters.tsxpartA list's search and filters, all kept in the address: a search box, a select per filter, the active ones as chips that remove themselves, and Clear filters.
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.
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.
moments.tspartThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
month-calendar.tsxpartA month calendar: six weeks from Monday, the previous and next month, today and the picked day marked, a slot under each day for marks, and the keyboard of a date grid (arrows, Home, End, Page Up, Page Down).
motion.tspartMotion helpers: the reduced-motion check, live, and run-once-in-view.
neu.tsxpartThe tactile parts: the aperture ring (a real dial that snaps to focal-length stops while its iris opens and closes), status LEDs, raised stat keys and the sunk segmented track of keys.
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.
shop.tspartThe shop's loads, its rules (what is free on a day, what a rental costs, what is late) and its saves, which show at once and go back if the server says no.
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.
ui.tsxpartThe page pieces every page shares: the heading, a raised card, the loading and error gate, status chips and tabs kept in the address.
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: every page loads and saves through these functions, so wiring a real backend happens here only.
catalog.tsdataThe pretend rental stock: camera bodies, lenses, lights and ready-made kits, each with its day rate, replacement value and serials.
rentals.tsdataThe pretend customers, rentals, damage reports and shop settings, dated around today so the demo always shows pickups, returns and a prep queue.
reports.tsdataThe pretend history behind Reports: a year of weekly utilisation by kind, weekly revenue, each item's share of it, and past late returns.
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}).
lens-aperture.tsx
The page: the sections in order.
Laden…
Goed voor
Camera, lens and lighting rental shops that book gear by the day, prep each order, hold deposits and track damage.
Hoe het werkt
Turn the aperture ring and it snaps to a focal length; the catalog narrows. Checked-in gear slides back into stock.
Hoe je het gebruikt
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.