Cafe Cardamom
v1.0A calm forest-green and cream coffee ordering app for iOS and Android: build a drink, pay, watch it pour, and fill your cup with points.
مدمج
ما تحصل عليه- فاتح وداكنيستخدم ألوان سمتك
- الهاتف والجهاز اللوحيالشاشات المصمّم لها
- الحزم…
- حجم الكود…
- خفيف على البطارية30 إطارًا في الثانية، ويهدأ حين يسكن
- يتوقّف حين يُخفىخارج الشاشة أو في تبويب آخر
- تقليل الحركةهادئ لمن يطلب ذلك
يُفحص مع كل تغيير
فُحص أمنيًا في 3 ديسمبر- فحص الأنواعTypeScript strict
- التدقيق والتنسيقESLint · Prettier
- الاختبارات والبناءلقطات شاشة بالوضعين الفاتح والداكن
- تدقيق أمنيلا تحذيرات عالية أو حرجة
- عمر الحزمكل إصدار منشور منذ أكثر من 7 أيام
- المعالج عند السكونأقل من نصف نواة عند السكون، ≤ 30 إطارًا في الثانية
الكود
cafe-cardamomReact 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 five places, with the cup-sleeve nav (components/cup-nav.tsx): a sleeve at the bottom of a phone, an upright rail at the side of a tablet.
- home.tsxHome: the greeting with the bell and the bag, a search bar, the order brewing now (when there is one), Pickup or Delivery, the points card, this week's offers, the menu's categories, the most loved items, what you order often and your café.
- menu.tsxThe menu: a search bar, the categories as chips (All first) and the items, each category under its own heading.
- orders.tsxOrders: Active (brewing, ready, on the way) and Past (done and cancelled), newest first.
- profile.tsxProfile: your photo, name and tier, three numbers (orders, points, tier), then the account, wallet and app pages, and Sign out (asked first).
- rewards.tsxRewards: the deep green card with the big cup and your points, your tier and how far to the next, rewards you redeemed and haven't used, what points buy, ways to earn and the points history.
- addressThe screens, one file per route (Expo Router).
- [id].tsxAdd or edit an address (id "new" adds one): label, street, city, ZIP and a note for the courier, each checked on save.
- cardThe screens, one file per route (Expo Router).
- [id].tsxAdd or edit a card (id "new" adds one).
- giftThe screens, one file per route (Expo Router).
- [id].tsxOne gift card: its face with the balance (which counts to the new value after a reload), the number, Reload (an amount, paid with your default card) and its history.
- itemThe screens, one file per route (Expo Router).
- [id].tsxAn item's page: the photo, its name, rating, price and story, then its choices (components/item-options.tsx), what goes with it and what people say.
- orderThe screens, one file per route (Expo Router).
- [id].tsxA past order's receipt: where it stands, the café and when, each line with its picks and price, the totals, how it was paid, and Order again, Rate (once) and Help.
- placedThe screens, one file per route (Expo Router).
- [id].tsxOrder placed: a cup pops in and steam rises off it once, the café and the minutes, the points it earned, then Track order or Back to home.
- rateThe screens, one file per route (Expo Router).
- [id].tsxRating an order: five stars that pop as you pick them, a word for each count, an optional note and Send, which earns 15 points.
- rewardThe screens, one file per route (Expo Router).
- [id].tsxA reward: its photo, what it is and what it costs.
- storeThe screens, one file per route (Expo Router).
- [id].tsxA café: its photo, name, street, open now or not, the wait and the distance; Make it my café, Order from here, Call and Directions; the week's hours with today marked; what it has; who is behind the bar.
- trackThe screens, one file per route (Expo Router).
- [id].tsxTracking an order: the cup filling as it brews, the minutes left, the steps (Placed, Brewing, Ready; or On the way, At your door), who is making or bringing it with a call button, the café on the map, and what you can do now: cancel while it brews, say you picked it up or it arrived.
- _layout.tsxThe root: loads the heading font, waits for the kept Light / Dark pick, follows the theme and stacks the screens.
- about.tsxAbout: the logo and the café's story, the version, and the terms and privacy words (each opens in a sheet).
- addresses.tsxAddresses: each with its label, street, city and courier note; the default is marked.
- bag.tsxThe bag: its lines (change how many, a bin at one takes it out with Undo, Edit opens the item's page on that line), an offer code checked when you apply it, the totals and Go to checkout.
- checkout.tsxCheckout: Pickup or Delivery, the café (or the address), when, how to pay (a saved card or a gift card with its balance), a tip for the courier, the totals and Place order.
- edit-profile.tsxEdit profile: name, email, phone and birthday, checked when you save (name and a real email needed), then back with a note.
- favorites.tsxFavorites: the items you hearted, as cards.
- forgot.tsxForgot password, in two steps on one screen: the email (only an account on this phone gets a code), then the 4-digit code and a new password.
- gifts.tsxGift cards: the total balance, your cards (each opens with its history and Reload), Send a gift card, Add a card someone gave you (number and PIN, checked) and the ones you sent.
- help.tsxHelp: the topics as chips, the questions under them (a tap opens the answer), then Call us and Email us.
- index.tsxThe welcome: a big photo of a pour in a rounded frame, the logo, a serif line and two ways in: Get started (a new account) and Sign in.
- notifications.tsxNotifications: new ones first with a green dot, then earlier ones.
- offers.tsxOffers: each with its photo, what it takes off, the code, its terms and until when.
- onboarding.tsxOnboarding, after joining: three slides (made your way, skip the line, every sip fills your cup), each a photo with its words.
- payments.tsxPayment methods: each saved card with its label, last four digits and expiry; the default is marked.
- search.tsxSearch: the field opens focused.
- send-gift.tsxSend a gift card: pick a design (the card on top shows it with the amount), an amount, who it's for and their email (checked), a note, then Send, which earns 50 points.
- settings.tsxSettings: appearance (System, Light, Dark; kept on the phone), which notifications come, the usual way to order and email receipts.
- sign-in.tsxSign in: email and password, each checked when you send, with the reason under the field; a show / hide eye; Forgot password; the demo account's details with a one-tap fill; then onboarding the first time, Home after that.
- sign-up.tsxSign up: name, email, password and the password again, each checked when you send with the reason under it.
- stores.tsxThe cafés: Map or List, and a search by name or area.
- tiers.tsxThe tiers: Green Bean, Roast and Reserve, each with where it starts and its perks; yours is marked and its card is the deep green.
- componentsThe parts the screens are built from.
- artThe drawings, as code: no image files.
- cup.tsxThe takeaway cup drawing, in the line style of the icons: a lid, a cup that narrows to its base and a sleeve band.
- add-gift-sheet.tsxThe sheet that adds a gift card someone gave you: its number and PIN, checked, then a toast.
- auth-frame.tsxThe frame of the sign-in, sign-up and reset screens: the logo, a serif title and a line, then the form, rising in one block after another.
- backdrop.tsxThe quiet drawing behind every screen: a few long steam curls in the ground's own tone, just darker (by day) or lighter (at night) than the cream, so they add depth without a second color.
- bag-parts.tsxThe bag's pieces: one line (photo, name, picks, Edit, how many with a bin at one, the price) and the totals card used by the bag, checkout and a receipt.
- bits.tsxSmall shared pieces: a section's heading with an optional "See all", an empty state with one way out, a minus / plus stepper, stars, a round face (photo or initials) and a price that counts from old to new.
- 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 low, an order step small, a check shrunk), then moves to its place at its turn.
- button.tsxThe app's buttons: a solid green one for the main action, a soft green one, a plain outlined one and a red one for deleting.
- cafe-map.tsxA drawn map of the town in the theme's own tones (no map service): the river, two parks, the streets, the cafés as pins and you as a dot.
- checkout-parts.tsxCheckout's parts: where and when, the ways to pay, the café and address sheets, and the bar with Place order.
- chips.tsxPills to pick one of a few: a scrolling row of chips (menu categories, filters) and a segmented control (Pickup / Delivery, Map / List).
- cup-meter.tsxThe cup in the middle of the nav: the takeaway cup with coffee inside up to your points toward the next free drink.
- cup-nav.tsxThe app's navigation, drawn as a slim cup sleeve: one low ribbed band (fine ribs along its edges, its sides slanting in like a sleeve on a cup) with five evenly spaced places.
- field.tsxA labelled text field.
- gift-face.tsxThe front of a gift card: the deep green panel with a cup and steam drawn in a lighter green, the design's words and the balance (a small one, as a thumbnail, keeps only the mark and the drawing).
- grid.tsxCards in even columns as wide as `min` allows (two on a phone for most cards), more on a tablet, sized from the grid's own width so they fill it exactly.
- home-parts.tsxHome's blocks: the points card (the deep green panel with the cup that fills toward a free drink), the offers shelf, the menu's categories as tiles and a sideways shelf of items.
- icon.tsxLine icons on a 24-point grid, drawn so the app needs no icon font.
- item-card.tsxA menu item two ways: a card for grids and shelves (photo on top, the name on up to two lines, the price and a round add button) and a row for the menu list.
- item-head.tsxThe item page's head (name, rating, story, calories, caffeine, price) and what people say about it.
- item-options.tsxThe choices on an item's page.
- logo.tsxCardamom's mark and name: a cardamom pod standing up out of a round cup like a curl of steam, in the accent (or the deep card's cream), and the name in the serif.
- order-card.tsxAn order in a list: the café, when, what was in it, the total and where it stands (one status family: green while it moves or when done, grey when cancelled), with Order again and Rate.
- 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.
- receipt-lines.tsxA receipt's lines in one card: photo, how many and the name, the picks, the price.
- round-button.tsxA round icon button (back, close, the bell, the heart) with a 44pt touch area even when drawn smaller, a name for screen readers and an optional count badge (the bag, unread notifications).
- rows.tsxSettings-style lists: a Group is one card with hairlines between its rows; a Row opens something, a ToggleRow switches a setting, a PickRow is one choice of several (a radio or a check).
- save-remove.tsxA form's Save, and Remove (asked first) when it edits a saved one.
- screen.tsxEvery screen's frame: the theme's ground with the steam curls behind it and the safe-area insets, so nothing sits under the notch or the home indicator.
- 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.
- steam.tsxTwo small curls of steam that rise once and fade, over a cup when an order is placed.
- store-card.tsxA café in a list: its photo, its name (up to two lines), the street, whether it is open and until when, the wait and how far it is.
- store-parts.tsxA café page's lower parts: the week's hours with today marked, what the café has, and who is behind the bar.
- tab-head.tsxThe top of a tab: its title (or a greeting) and two round buttons, the bell with the unread count and the bag with what's in it.
- toast.tsxThe note after an action, rising above the sleeve nav at the bottom, with an Undo when the action can be taken back.
- top-bar.tsxA pushed screen's bar, as on the pin: a back arrow at the start, the title in the middle and up to two actions at the end (the bag, a heart).
- track-steps.tsxAn order's steps in a row: Placed, Brewing, Ready (or On the way, At your door).
- words.tsxEvery piece of text: one of the app's sizes (`kind`) in one of its colors (`tone`).
- constantsColors, sizes, motion and the brand defaults.
- color.tsSmall color math for the shades that follow the brand colors.
- motion.tsMotion settings shared by every animation: Cardamom's "steam and pour".
- theme.tsThe app's colors, the brand defaults and the sizes every screen shares.
- hooksState and theme hooks.
- 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-bag.tsThe bag: lines of items with their picks, and an offer code.
- use-brand.tsThe brand settings: the values in constants/theme.ts.
- use-count-up.tsA number (a price, the points, a gift card balance) that shows its value at once when the screen opens, and only when the value really changes (a size picked, a reward redeemed, a reload) counts from the old value to the new one, easing out over FILL.
- 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 drifts up and fades, 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-orders.tsOrders: the seeded history plus every order placed on this phone, kept on the device.
- use-rewards.tsPoints: what you can spend, what you earned all time (the tier), the history of both and the rewards you redeemed (each with a code to show at the counter).
- use-saved.tsSmall kept lists: favorite items, recent searches, the notifications and the settings (my café, pickup or delivery, which alerts come).
- 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-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 current theme and the styles that depend on it and on the brand, rebuilt only when one of them changes.
- use-toast.tsA short note at the bottom after an action ("Added to your bag", "Card removed · 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.tsPayment cards, delivery addresses and gift cards, with the default card and address.
- dataEvery word and product the app shows.
- catalog.tsThe whole menu in one list, with lookups the screens share.
- copy-account.tsThe words of the account side: rewards, tiers, cafés, the profile, settings, the wallet (cards, addresses, gift cards), notifications, help and about.
- copy-shop.tsThe words of ordering: home, the menu, an item, the bag, checkout, tracking, orders, search, favorites and offers.
- copy.tsThe app's words, in one place, so a buyer rewrites the voice here.
- help.tsThe help center: questions by topic and the ways to reach a person.
- menu-coffee.tsThe coffee on the menu, hot and iced (prices in cents).
- menu-more.tsTea and the food on the menu: bakery, breakfast and snacks (prices in cents).
- menu.tsWhat a menu item is, the menu's categories and how prices show.
- notices.tsNotifications to start with, dated back from now, and the offers they point to.
- options.tsThe choices on an item's page and what each adds to the price (cents): size, milk, shots, sweetness, hot or iced and extras for drinks; warming and spreads for food.
- orders.tsPast and current orders: eight weeks of history made up the same way on every phone (a seeded mix of drinks and food), dated back from now so "today" is always today.
- people.tsThe people behind the orders: baristas at the cafés and the couriers who bring delivery orders, plus the signed-in person's own details.
- 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).
- reviews.tsWhat people said about menu items: forty short reviews, each tied to an item and dated back from now.
- rewards.tsThe loyalty program: tiers by lifetime points, what points buy, how to earn them, and the goal the cup in the nav fills toward.
- stores.tsThe cafés: where they are (a spot on the drawn map, 0-1 across and down), their hours for each day, what they have and how busy they are.
- wallet.tsSaved payment cards, delivery addresses and gift cards to start with, plus the gift card designs and amounts to choose from.
- when.tsHow long ago something happened, in words: "Just now", "12 min ago", "3 h ago", "Yesterday", "4 days ago", then the date.
- 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.
- americano.jpgA photo the app shows.
- avocado-toast.jpgA photo the app shows.
- banana-bread.jpgA photo the app shows.
- barista-1.jpgA photo the app shows.
- barista-2.jpgA photo the app shows.
- barista-3.jpgA photo the app shows.
- barista-4.jpgA photo the app shows.
- barista-5.jpgA photo the app shows.
- barista-6.jpgA photo the app shows.
- biscotti.jpgA photo the app shows.
- blueberry-muffin.jpgA photo the app shows.
- brownie.jpgA photo the app shows.
- cappuccino.jpgA photo the app shows.
- caramel-macchiato.jpgA photo the app shows.
- cardamom-bun.jpgA photo the app shows.
- cardamom-latte.jpgA photo the app shows.
- chai-latte.jpgA photo the app shows.
- chocolate-croissant.jpgA photo the app shows.
- cinnamon-roll.jpgA photo the app shows.
- cold-brew.jpgA photo the app shows.
- cookie.jpgA photo the app shows.
- cortado.jpgA photo the app shows.
- courier-1.jpgA photo the app shows.
- courier-2.jpgA photo the app shows.
- courier-3.jpgA photo the app shows.
- croissant.jpgA photo the app shows.
- earl-grey.jpgA photo the app shows.
- egg-sandwich.jpgA photo the app shows.
- espresso-tonic.jpgA photo the app shows.
- espresso.jpgA photo the app shows.
- flat-white.jpgA photo the app shows.
- frappe.jpgA photo the app shows.
- granola-bar.jpgA photo the app shows.
- honey-oat-latte.jpgA photo the app shows.
- hot-chocolate.jpgA photo the app shows.
- iced-americano.jpgA photo the app shows.
- iced-caramel.jpgA photo the app shows.
- iced-latte.jpgA photo the app shows.
- iced-matcha.jpgA photo the app shows.
- iced-mocha.jpgA photo the app shows.
- latte.jpgA photo the app shows.
- matcha-latte.jpgA photo the app shows.
- mint-tea.jpgA photo the app shows.
- mocha.jpgA photo the app shows.
- offer-bun.jpgA photo the app shows.
- offer-iced.jpgA photo the app shows.
- offer-pastry.jpgA photo the app shows.
- onboard-beans.jpgA photo the app shows.
- onboard-pickup.jpgA photo the app shows.
- onboard-pour.jpgA photo the app shows.
- overnight-oats.jpgA photo the app shows.
- store-1.jpgA photo the app shows.
- store-2.jpgA photo the app shows.
- store-3.jpgA photo the app shows.
- store-4.jpgA photo the app shows.
- store-5.jpgA photo the app shows.
- store-6.jpgA photo the app shows.
- store-7.jpgA photo the app shows.
- store-8.jpgA photo the app shows.
- user.jpgA photo the app shows.
- vanilla-cold-foam.jpgA photo the app shows.
- welcome.jpgA photo the app shows.
- yogurt-bowl.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
جارٍ التحميل…
- مناسب لـ
- Cafés, coffee chains and bakeries that want a complete, quiet ordering and rewards app to rebrand and ship.
- كيف يعمل
- Pick a drink, set size, milk and shots, pay for pickup or delivery, follow it brewing, then earn points and redeem them.
- طريقة الاستخدام
- Run it in Expo Go, change the words in data/copy*.ts, the menu, cafés and rewards in data/, the colors in constants/theme.ts, then build with EAS.