A trip planner for friends in frosted glass over a soft drawn mesh: a gliding timeline of days, drag-to-plan day cards, bookings, a shared budget with settle-up, packing lists and a drawn map of saved places.
Web
10 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 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 ý ›
trip-voyageReact
trip-voyage.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.
bookings.tsxpageBookings (#/bookings): flights, stays and cars, searched, filtered by kind and status, sorted, and picked in bulk to confirm, cancel or delete. A booking opens on its own page (#/bookings/b4) with tabs for details, travelers and notes.
budget.tsxpageThe budget (#/budget): every shared expense, searched and filtered by category, payer and day, sorted, and picked in bulk to delete; Balances (?tab=balances) shows where each person stands and settles up in the fewest payments. An expense opens on its own page (#/budget/e3) with its split.
friends.tsxpageFriends (#/friends): who's on the trip, what each has paid, their balance and how packed they are; searched, filtered by role and status, sorted, picked in bulk to resend invites or remove. A friend opens on their own page (#/friends/p2) with tabs for money, packing and plans.
home.tsxpageThe overview (#/): the trip at a glance in rows of glass cards — the hero and what's next, four tiles, where the money goes and spend by day, travel and stays, packing per person, saved places on the map, and the crew's latest changes. Every tile, slice, bar and row opens its list, filtered.
packing.tsxpagePacking (#/packing): a list per person plus the group's shared kit, side by side. Tick things off, drag an item to someone else's list (Space, arrows, Space by keyboard), search and filter by group or person, hide what's packed, pick items in bulk, or add a starter list.
places.tsxpagePlaces (#/places): the spots the crew saved, on the drawn map and in a list beside it, searched, filtered by kind and day and sorted. A place opens on its own page (#/places/pl3) with its notes and the plans there; the form sets its pin with a tap on the map.
plan.tsxpageThe plan (#/plan?day=3): one day's plans as glass cards that unfold like a map when the day opens, dragged to reorder or onto another day in the timeline; or the board (?view=board), every day a column, plans dragged between them. Space picks a card up, the arrows move it, Space drops it.
settings.tsxpageThe settings page: its title and Appearance (style, theme and language); add the app's own settings sections here.
sign-in.tsxpageThe sign-in page (#/sign-in): one glass card over the lake, the logo, a line on what the app does and the form, without the top bar and the timeline.
trips.tsxpageTrips (#/trips): every trip, searched, filtered by status, sorted and picked in bulk to archive; one opens to show across the app. A trip's own page (#/trips/t1) has its details, crew, and archive and delete.
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.
activity-form.tsxsectionThe plan form in a dialog, new or edit: what, kind, day, time, length, cost, place, who's going and a note, with a live preview of the card's time line and checks before it saves.
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-form.tsxsectionThe booking form in a dialog, new or edit: a flight, stay or car with its route or address, when it starts and ends, the confirmation code, status, cost and who paid.
crew-column.tsxsectionThe right glass column beside every page: the shared budget with what's left, who owes whom, and the friends on the trip with who's online.
day-strip.tsxsectionThe timeline: the trip's days side by side in a wide glass strip under the top bar. It scrolls with inertia (a flick of the mouse or the wheel glides on and eases out), each day is a link to its plan and a place to drop a dragged plan, and the start shows the countdown.
expense-detail.tsxsectionAn expense on its own page (#/budget/e3): the amount, its split person by person, who paid and when it was added, with edit and delete.
expense-form.tsxsectionThe expense form in a dialog, new or edit: what for, amount, category, who paid and the day, then the split — equally between who's ticked, by shares, or exact amounts — with each person's share shown live as you type.
friend-detail.tsxsectionA friend on their own page (#/friends/p2): what they paid and their share, their packing and their plans, with their role, Resend invite and Remove.
invite-form.tsxsectionInvite a friend to the trip by email, with their role; someone already on the trip gets a clear note instead.
overview-top.tsxsectionThe overview's first rows: the trip's hero with a live countdown, what's next on the plan, and four tiles that each open their list.
place-form.tsxsectionThe place form in a dialog, new or edit: name, kind, rating, the day it is planned for and a note, with its pin set by a tap on the drawn map.
plan-card.tsxsectionOne plan as a glass card: its time, what and where, who's going and the cost, with a menu to edit, duplicate, move to another day or delete. It is dragged by the whole card (parts/drag.ts) and unfolds into place when its day opens.
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, a glass strip: the logo and the trip switcher, the pages as pills with a glass marker that glides to the one you're on, who's online, Pause motion, the theme switch and the account menu.
trip-form.tsxsectionThe trip form: a new trip in three steps (where, when, money) or a trip's details edited in one go. A new trip becomes the one every page shows.
trip-map.tsxsectionThe drawn map of a trip: calm land, a lake and soft contour lines, the saved places as pins and a dashed route through the planned ones in day order. Each pin is a link to its place; in pick mode a tap on the map sets where a new pin goes.
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.
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 by who they are, with a dot while they're online.
backdrop.tsxpartThe backdrop: a drawn mesh of four big soft color clouds behind the glass, dusky in dark and near-white pastel in light, drifting very slowly. With followBackground it paints your background instead.
charts.tsxpartThe charts: a donut (where the money goes), bars (spend by day) and a ring (how packed). Every part is a link to the list it counts, they build in with the page (data-build) and read the Chart Studio's stroke, radius and widths (data-chart, theme.ts).
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 and drop between lists (a day's plans, the days of the board, packing lists): mouse and pen by pointer, touch after a short press, a lifted glass copy held at the grab point, a gap where it lands while the others glide aside, edge auto-scroll, a soft settle, Escape, and the keyboard path (Space, arrows, Space).
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, money, times and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Jun 14", "14 jun").
icons.tsxpartThe logo and the line icons, drawn on a 24-unit grid with round ends; they follow your Icon Studio through the theme's icon variables.
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).
liquid-glass.tsxpartGlass in plain CSS: the shell and a few key cards are frosted (blur and saturate over the drawn mesh), every other panel is a tinted flat fill; both have a bright rim at a fixed angle and an inset top highlight, and a hovered clickable card only brightens its rim. Solid makes every panel opaque.
liquid-marker.tspartThe selected marker that moves like a drop of liquid: shared by every segmented control, tab row and the nav droplet.
list.tsxpartThe parts every list page shares: the page head, search and filters kept in the address (so Back brings them back), sort, bulk select with its bar, tabs, the delete confirm and the Undo toast.
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.
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, the trip being planned and whether motion is paused (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.
trip.tspartThe trip every page shows: its data through the fake API (the shell and the page each keep their own answer, so a slow page load never blanks the timeline), saves that refresh both, the crew's live updates and a shared clock.
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 they own what they add) 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. Each answers from the tables in data/db.ts at once, or after a short wait while Slow network is on; replace a body with a fetch that returns the same shape, and throw to show the page's error state.
db.tsdataThe fake backend's tables in memory, the demo switches (Slow network, Show error state) and the instant reads that give the first paint its data. data/api.ts is the only thing that uses it.
money.tsdataThe money rules, one place for the fake API and the pages alike: what each person owes of an expense, everyone's balance and the fewest payments that settle the trip.
seed-money.tsdataThe pretend bookings, shared expenses, payments back, packing lists and the crew's recent moves, one row per line as in data/seed.ts.
seed.tsdataThe pretend data: four trips of one group of friends, the Rockies loop in full. Dates count from today, so the demo always has a trip coming up. Tables are written one row per line, fields split by "|".
types.tsdataThe shapes of everything a trip holds: the crew, days, plans, bookings, money, packing and places. A real backend returns the same shapes from data/api.ts.
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}).
trip-voyage.tsx
The page: the sections in order.
Đang tải…
Phù hợp cho
Friends planning a trip together who want the days, bookings, shared costs and packing in one calm place.
Cách hoạt động
Glide through the days, drag plans between them, log who paid and settle up, tick off packing and pin places.
Cách dùng
Edit words in locales/ and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.