Courier Marigold
v1.0A bright marigold and cream courier app for iOS and Android: book a pickup in six steps, follow a drawn courier across the city, chat, pay and rate.
پہلے سے شامل
آپ کو کیا ملتا ہے- لائٹ اور ڈارکآپ کی تھیم کے رنگ استعمال کرتا ہے
- فون اور ٹیبلٹوہ اسکرینز جن کے لیے یہ بنایا گیا
- پیکجز…
- کوڈ کا سائز…
- بیٹری پر ہلکا30 fps، ساکن ہو تو رک جاتا ہے
- چھپنے پر رک جاتا ہےاسکرین سے باہر یا دوسرا ٹیب
- کم حرکتجو لوگ کہیں ان کے لیے پرسکون
ہر تبدیلی پر جانچ
سکیورٹی جانچ 3 دسمبر- ٹائپ چیکTypeScript strict
- لنٹ اور فارمیٹESLint · Prettier
- ٹیسٹ اور بلڈلائٹ اور ڈارک اسکرین شاٹس
- سکیورٹی آڈٹکوئی ہائی یا کریٹیکل ایڈوائزری نہیں
- پیکج کی عمرہر ورژن 7+ دن سے عوامی
- فارغ CPUآرام میں آدھے کور سے کم، ≤ 30 fps
کوڈ
courier-marigoldReact Native
- README.mdHow to run it, change it and ship it.
- app.config.tsThe app's name, ids and platform settings.
- package.jsonThe app's packages: Expo, React Native.
- package-lock.jsonThe exact package versions npm ci installs.
- tsconfig.jsonTypeScript settings: strict, typed routes.
- .npmrcnpm settings: exact versions, no install scripts.
- .gitignoreWhat git leaves out: packages, builds, keys.
- images.d.tsLets TypeScript import the photos in assets/photos (Metro turns each into an image source).
- appThe screens, one file per route (Expo Router).
- (tabs)The screens, one file per route (Expo Router).
- _layout.tsxThe four places, with the route nav (components/route-nav.tsx): a floating route at the bottom of a phone, an upright rail at the side of a tablet.
- account.tsxAccount: your face, name and level on the orange card with the bar to the next level, three numbers, then the rows to every account screen in three groups (shipping, money, app) and Sign out, which asks first and leaves for sign in; Back can't return (app/_layout.tsx).
- home.tsxHome: where parcels go from, the bell and your face; a greeting and the search; the orange same-day hero; four quick actions; the parcels on the move (the first on the soft peach); popular services; recent activity; the wallet and the refer card.
- shipments.tsxShipments: a month summary on the soft peach, a search, Active / Delivered / Cancelled with their counts, and the cards, finished ones grouped by month.
- track.tsxTrack: a tracking number box on the soft peach with Track and Scan, the parcels out for delivery right now on a live map card, the numbers tracked before (each can be removed) and the drop-off points near you on a drawn map.
- addressThe screens, one file per route (Expo Router).
- [id].tsxAdd or edit an address: what kind it is (Home, Work, Other), a name, who's there, street, city, ZIP, phone and a note for the courier, with a drawn map showing the pin.
- bookThe screens, one file per route (Expo Router).
- _layout.tsxThe Book steps, stacked so Back steps back through them and Android's back does the same.
- address.tsxBook, step 2: where the courier picks up and where it goes, each picked from the saved places in a sheet (or a new address added on the spot), a swap between them, the distance it makes and a note for the courier.
- package.tsxBook, step 1: what it is (box, envelope, tube, soft bag, fragile), its size (each with the heaviest it takes and the box it fits), the weight on a stepper (moving the size up when it no longer fits), what's inside and what it's worth.
- pay.tsxBook, step 5: how to pay (the wallet with its balance, saved cards, Apple Pay, PayPal, cash), a new card on the spot, and a promo code typed or picked from your codes.
- review.tsxBook, step 6: everything in one card with an Edit on each part and the price line by line, then Book and pay.
- schedule.tsxBook, step 3: the pickup day on a strip of the next seven days and a two-hour window (today's past windows are full), with a drawn clock card saying the courier texts before they come.
- tier.tsxBook, step 4: how fast (Standard, Express, Same day, Overnight), each with its price for this parcel, when it arrives and what it adds, and the cover (none to Premium) with what it pays out.
- bookedThe screens, one file per route (Expo Router).
- [id].tsxBooked: the parcel pops into place on the orange block with petals around it, then the tracking number (shareable), the courier coming for it and the ways on: track it, send another or go Home.
- cardThe screens, one file per route (Expo Router).
- [id].tsxAdd or edit a card: the drawn card on top changes as you type (brand from the first digit, the last four, the name and expiry), then the number, name, expiry, CVC and a label, each checked on Save.
- chatThe screens, one file per route (Expo Router).
- [id].tsxA chat with one courier: the parcel it's about pinned on top, the messages as bubbles (yours orange on the right, theirs on the left, each popping in), a typing bubble while they answer, quick replies and a box to write in.
- courierThe screens, one file per route (Expo Router).
- [id].tsxA courier's profile: their photo, name and vehicle, three numbers (deliveries, rating, on time), a line about them, the vehicle and languages, what people said, and Message or Say thanks.
- liveThe screens, one file per route (Expo Router).
- [id].tsxLive tracking: the drawn city fills the screen with the route and the courier moving along it, a floating card below says how far away they are (minutes counting down), stops before yours, speed and distance, with the courier to call or message.
- rateThe screens, one file per route (Expo Router).
- [id].tsxRate a delivery: the courier's photo, five big stars (each pops as it lights, with a word for the score), what went well as tags, a tip from the wallet and a note.
- serviceThe screens, one file per route (Expo Router).
- [id].tsxA service's page: its photo, what it's for, three numbers (time, rating, how many sent), what's included, a price table by size and distance, the sizes it takes, questions, reviews and related services, with Book this service pinned at the bottom.
- shipmentThe screens, one file per route (Expo Router).
- [id].tsxA shipment's page: a peach hero with its number, state and arrival over the drawn map, the courier (call, message, profile), the timeline, the package, route and payment, the note for the courier, and when delivered the photo and signature with a rating.
- _layout.tsxThe root: loads the heading font, waits for the kept Light / Dark pick, follows the theme and stacks the screens.
- addresses.tsxSaved addresses: the drawn city with a pin for each place (tap one to open it), then the places as cards with who's there and the street, each to edit or delete (with Undo).
- chats.tsxMessages: one chat per courier, newest first, each with the courier's photo, the parcel it's about, the last line and when, and a dot while they're typing.
- forgot.tsxForgot password, in three steps shown on a little route: the email (only an account on this phone gets a code), the six-digit code (246810 in the demo, with Send a new code) and the new password.
- help.tsxHelp center: a peach hello with a search over the questions, topics as colored tiles that filter them, the common questions (open one at a time), Report a problem on marigold, ways to reach a person, and your past requests with their state.
- index.tsxThe welcome: three slides (send, track live, signed and photographed), each a photo in a rounded frame on the drawn route with its words.
- notifications.tsxNotifications: filters (all, unread, parcels, offers), then Today and Earlier, each line with a colored icon for its kind, a dot while unread and a clear button (with Undo).
- payments.tsxWays to pay: the saved cards drawn as cards in a strip (tap to edit), then every method as a row with a radio for the default one, the wallet with its balance, and Add a card.
- profile.tsxEdit profile: your photo in a marigold ring with Change photo, then name, email, phone and city.
- promos.tsxPromotions: add a code (MARIGOLD10 and PARCEL5 work), then your codes as colored tickets (orange, peach, warm grey) with what they take off, the smallest order and when they end, each with Use now (it goes on the next booking).
- rates.tsxThe rates calculator: a size, a weight and a distance give the price of every speed side by side, each as a bar that fills to its share of the dearest, marked Best price and Fastest, with Book on each.
- report.tsxReport a problem: what went wrong (six reasons as cards), which shipment (your recent ones, or none; `?shipment=` picks one from its page), what happened, and a photo.
- scan.tsxScan a label: a dark camera view with a drawn Marigold label in the frame, a line sweeping over its code once, then the parcel it found slides up with Open shipment or Scan again.
- search.tsxSearch: one box that finds services, your shipments (by name, number or city), saved addresses and help answers.
- services.tsxServices: all six ways to send with a search and quick filters (fast, far, big), each opening its page, and a card comparing the speeds.
- settings.tsxSettings: the look (System, Light, Dark as small drawn phones), alerts as switches, the weight unit and default speed for new bookings, about rows, and Delete account (a confirm, then signed out).
- sign-in.tsxSign in: email and password with errors under each field, the password's show / hide eye, a demo account card that fills the form in, Forgot password, Apple and Google (they work on a real phone only) and the way to sign up.
- sign-up.tsxSign up: name, email, password and its confirmation, each checked with its own error, then the account is made on this phone and Home opens with a welcome.
- wallet.tsxThe wallet: a marigold balance card that counts on a top-up, with Top up (also opened by `?top=1` from Home or paying), a week of spending as bars, the cashback earned, and the history filtered by kind.
- componentsThe parts the screens are built from.
- artThe drawings, as code: no image files.
- parcel.tsxA drawn parcel: a box seen from above-left in the brand's orange with a cream tape strip and the petal mark on its side.
- truck.tsxThe little Marigold van from the side, facing right: orange body, a cream window, the petal mark and two dark wheels.
- auth-frame.tsxThe frame of the account screens (sign in, sign up, reset): Back and the logo on top, a title and a line, then the form.
- backdrop.tsxThe drawn ground behind the screens: a dotted parcel route that winds down the page past two stops, a few parcel outlines and two soft blooms (peach and cream), flat and still.
- badges.tsxSmall marks: a shipment's state as a colored pill, a row of stars, a bar that fills to its value as it appears, and a round face (photo or initials).
- blocks.tsxThe blocks screens are built from: a card (a white panel, a peach step, the soft peach or the orange), a section heading with a "See all", a list row with an icon tile, words and a chevron, and an empty state with a drawn parcel and the way out.
- book-summary.tsxThe booking so far, in one card: the package, the route, the pickup, the speed and cover, then the price line by line to the total.
- build.tsxA part coming in (MOTION in constants/motion.ts): from its first frame it waits at its moment's pose (a block a little to the right, a timeline step small, the parcel box low), then moves to its place at its turn.
- button.tsxA button: the main action in the brand's orange, a soft peach one, a deeper peach one, an outlined one or plain words.
- card-face.tsxA payment card drawn as a card: its color by brand (orange, peach or the second color), a chip, the last four digits, the holder and expiry, with route dots across it, and a Default tag when it's the one used first.
- choice.tsxA card you pick from a set (a size, a speed, a way to pay): a white panel that turns peach with an orange edge and a check when picked.
- city-map.tsxA drawn city map: blocks, a park, the river and the streets in the theme's map colors, the parcel's route drawn in orange from the pickup to your door, and the courier on it with a soft halo (the brand's glow).
- controls.tsxThe controls: chips to filter, a segmented switch whose orange pill glides to the picked part, an on/off toggle, a minus / plus stepper and a radio dot.
- faq-list.tsxQuestions that open to their answers, one at a time, the chevron turning as it opens.
- field.tsxA labelled text field with one designed focus state on every platform: the border takes the brand color (same width, so nothing shifts), an error line under it in the danger color, an optional icon, and a show / hide eye on passwords.
- home-parts.tsxHome's blocks: the orange hero with the courier cut-out, the four quick actions, the wallet card on soft peach, the refer card on peach and the sheet that picks where parcels are sent from.
- icon.tsxLine icons on a 24-point grid, drawn for Marigold so the app needs no icon font.
- logo.tsxThe Marigold mark: a parcel's folded corner that opens into a petal and points ahead like an arrow, on an orange tile, with the name beside it.
- missing.tsxThe page for a link to something that's gone (a deleted address, an old shipment number): a drawn open parcel, the reason and the way Home.
- photo.tsxA photo that fills its box and keeps its subject in view: the box is measured and the picture placed by its focus point (like CSS object-position), clipped to the box.
- pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
- review-list.tsxWhat people said: a name badge, their stars, how long ago and the words, in a card.
- round-button.tsxA round icon button on a white panel (or the brand orange, or the soft peach): Back, the bell, call, scan.
- route-nav.tsxThe app's navigation, drawn as a parcel route.
- screen.tsxEvery screen's frame: the theme's ground with the drawn route behind it and the safe-area insets, so nothing sits under the notch or the home indicator.
- service-tile.tsxA way to send as a card: its photo with the time it takes on a chip, its name, one line and the lowest price.
- sheet.tsxA bottom sheet over a dimmed screen (a centered card on a tablet): it rises softly as it opens and its rows come in one after another.
- shipment-card.tsxA shipment at a glance: what it is, its number and state, where it goes and, while it moves, a progress line with the van on it and when it arrives.
- shipment-info.tsxWhat a shipment's page tells: the peach hero over the drawn map, the courier with call and message, and the package, route and payment facts.
- shipment-parts.tsxThe parts of a shipment's page: the timeline of stops (each ticks in, the line between them fills to the current one) and the drawn signature on the proof of delivery.
- shipment-sheets.tsxThe sheets on a shipment's page: reschedule a pickup (a day and a two-hour window) and edit the note for the courier.
- shipments-parts.tsxParts of the Shipments tab: the month summary on the soft peach, the empty page for each state and the filter sheet (direction, order).
- toast.tsxThe note after an action, rising above the route nav at the bottom, with an Undo when the action can be taken back.
- top-bar.tsxThe bar at the top of a pushed screen: a round Back button, the title and an optional action on the right.
- wallet-parts.tsxThe wallet's parts: a week of spending as bars that grow in (today's in the main color), one line of history, and the top-up sheet (an amount, a way to pay, then Add).
- wizard.tsxThe frame of every Book step: Back, the step's name and Close (which asks before leaving), a little route of the six steps with the van at the current one, the step's form, and a pinned bar with the price so far (counting up as it changes) and Continue.
- words.tsxEvery line of text in the app: a size from the type scale (headings in the brand's font) and a tone from the theme, so a screen never sets colors or sizes by hand.
- constantsColors, sizes, motion and the brand defaults.
- color.tsSmall color math for the shades that follow the brand colors: mixing, real WCAG contrast, the text that reads on a fill, and the grounds mixed from the Brand setting Tint.
- motion.tsMotion settings shared by every animation: Marigold's "on the move".
- theme.tsThe app's colors, the brand defaults and the sizes every screen shares.
- hooksState and theme hooks.
- share.tsHands words to the phone's share sheet (a referral code, a tracking link); a browser without one shows the note instead.
- store.tsA tiny store for the app's state: one value, changed with `update`, and read in components with useStore, which redraws them when it changes.
- use-account.tsThe account: who is signed in, the accounts made on this phone (kept on the device) and whether they signed out, which guards the signed-in screens (app/_layout.tsx).
- use-appearance.tsThe look picked in Settings: System (the phone's light or dark setting), Light or Dark.
- use-awake.tsWhether a screen's own loop may run: the screen is the one in front and the app (on the web, the tab) is visible.
- use-booking.tsThe parcel being booked: what it is, from where to where, when, how fast, what cover and how it's paid.
- use-brand.tsThe brand settings: the values in constants/theme.ts.
- use-chats.tsThe chats with couriers, kept on the device.
- use-count-up.tsA number (a price, the wallet balance, a count of parcels) that shows its value at once when the screen opens, and only when the value really changes (a size picked, a top-up, a coupon) counts from the old value to the new one, easing out over FILL.
- use-coupons.tsThe coupons on the account, kept on the device: the seeded ones plus any code added in Promotions.
- use-icons.tsHow the line icons are drawn (ICON in constants/theme.ts).
- use-layout.tsPhone or tablet layout, from the window's width (not the device), so an iPad in Split View or a small Android tablet gets the layout that fits.
- use-leave.tsA soft hand-off between screens that replace each other (Get started → sign in, sign in → Home, Sign out → sign in): the screen drives off, then the next one comes in.
- use-motion.tsThe app's moments (MOTION in constants/motion.ts): how parts come in and answer a press.
- use-moves.tsThe app's animations (movesOf in constants/motion.ts), built from its moments (hooks/use-motion.ts).
- use-notices.tsThe notifications, kept on the device: which are read, and the ones cleared away.
- use-places.tsThe saved places, kept on the device: added, edited and deleted (with Undo) in Account → Addresses, picked from in Book.
- use-prefs.tsThe settings kept on the device: which notifications come, the weight unit, the default speed for new bookings and the saved searches and tracking numbers.
- use-reports.tsThe problems reported from Help, kept on the device, each with a case number and its state.
- use-scheme.tsDark or light: the pick in Settings (hooks/use-appearance.ts), or with System, the phone's appearance setting (app.config.ts sets userInterfaceStyle "automatic"); on the web, the browser's setting.
- use-shipments.tsEvery shipment, kept on the device: the seeded six weeks plus each new booking.
- use-slide.tsA position that glides to each new target, except the first one it is measured at: there it starts in place, so the truck on the route and the pill under a segment don't slide in from the edge when a screen opens.
- use-still.tsWhether the app's own loops and plays stay still: the phone's "Reduce motion" is on, or MOTION.reduce is Always (constants/motion.ts).
- use-theme.tsThe palette of the theme in use and the styles that depend on it and on the brand, built once per brand and theme and shared by every part.
- use-toast.tsA short note at the bottom after an action ("Address saved", "Shipment cancelled · Undo"), with an optional Undo.
- use-visit.tsxCounts each visit to a tab, so a tab's screen builds up again every time it is opened, not only the first time (constants/motion.ts).
- use-wallet.tsThe wallet and the ways to pay, kept on the device: the balance and its history, saved cards (added, edited, deleted with Undo) and the default way to pay.
- dataEvery word and product the app shows.
- chats.tsThe chats with couriers: each thread is about one parcel, with the messages so far.
- copy-account.tsThe words of the account screens: Account, addresses, ways to pay, the wallet, notifications, help, reporting a problem, settings, the profile and search.
- copy-book.tsThe words of booking and pricing: the Book steps, the booked page, the services and a service's page, the rates calculator and promotions.
- copy-ship.tsThe words of the parcel screens: Shipments, Track, a shipment's page, live tracking, chats, a courier's profile, rating and the code scanner.
- copy.tsEvery word the shared parts, the welcome, sign-in and Home screens show, so a buyer changes them in one place.
- coupons.tsPromotions and coupon codes: what each takes off, the smallest order it works on, when it runs out and whether it was used.
- couriers.tsThe couriers who pick up and drop off: their vehicle, rating and what senders said about them.
- help.tsThe help center: topics, the questions people ask most, the ways to reach the team and the reasons to report a problem.
- money.tsThe ways to pay (saved cards, the Marigold wallet and the other methods), the wallet's balance and its history of top-ups, payments, refunds and cashback.
- notices.tsThe notifications: parcels moving, messages from couriers, offers and wallet news, newest first.
- parcels.tsWhat a parcel can be and what it costs: package types, sizes with their weight and box limits, the delivery tiers, insurance, pickup windows and the price formula the booking, the rates calculator and the service pages share.
- photos.tsEvery photo the app shows, with words for screen readers, its shape (width / height) and the point to keep in view when a frame crops it (0-1 across and down).
- places.tsThe saved places (Home, Work, Mum's…) a sender picks from when booking, edited in Account → Addresses.
- service-reviews.tsWhat senders said about each way to send (each service's page shows them).
- services.tsThe six ways to send: what each is for, its prices by size and distance, its questions and what senders said (data/service-reviews.ts).
- shipment-rows.tsThe seeded parcels, one per line so they are quick to change: title | contents | service | package type | size | kg | person (PEOPLE below) | out (you send it) or in (it comes to you) | status | hours ago it was booked | courier | tier | insurance | stars given (0: not rated yet).
- shipments.tsSix weeks of parcels: sent and on their way to you, live, delivered and cancelled, each with its courier, timeline and price, built from the lines in data/shipment-rows.ts.
- user.tsThe person using the app and the demo account that always signs in.
- pluginsBuild settings Expo has no option for.
- night-window.tsAndroid's window color (behind the screens) for a phone in dark mode.
- assetsThe photos the screens show.
- photosThe photos the screens show.
- avatar.jpgA photo the app shows.
- boxes.pngA photo the app shows.
- courier-daniel.jpgA photo the app shows.
- courier-jamal.jpgA photo the app shows.
- courier-kofi.jpgA photo the app shows.
- courier-lukas.jpgA photo the app shows.
- courier-maya.jpgA photo the app shows.
- courier-rafael.jpgA photo the app shows.
- courier-sofia.jpgA photo the app shows.
- courier-theo.jpgA photo the app shows.
- hero-courier.pngA photo the app shows.
- onboard-door.jpgA photo the app shows.
- onboard-van.jpgA photo the app shows.
- pod-box.jpgA photo the app shows.
- pod-dusk.jpgA photo the app shows.
- pod-gift.jpgA photo the app shows.
- pod-plant.jpgA photo the app shows.
- svc-documents.jpgA photo the app shows.
- svc-domestic.jpgA photo the app shows.
- svc-express.jpgA photo the app shows.
- svc-international.jpgA photo the app shows.
- svc-large.jpgA photo the app shows.
- svc-same-day.jpgA photo the app shows.
- welcome.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
لوڈ ہو رہا ہے…
- کس کے لیے بہتر
- Courier, parcel and same-day delivery startups that want a warm, complete sender app to rebrand and ship.
- یہ کیسے کام کرتا ہے
- Book a parcel, pick addresses and a time, pay from a wallet or card, then track it live on a drawn map and rate the courier.
- استعمال کا طریقہ
- Run it in Expo Go, change the words in data/copy*.ts, the services and couriers in data/, the colors in constants/theme.ts, then build with EAS.