Chuyển đến nội dung

Pistachio

v1.0

A navy and brass nut and dried-fruit shop for iOS and Android: pick sizes, build a gift box, apply coupons, check out, track the order and subscribe to refills, with a brass coin that rolls along a slim nav bar.

$199

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
  • điện thoại và máy tính bảngCá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 bảo mật 3 thg 12
  • 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

nuts-pistachioReact 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 coin bar (components/coin-bar.tsx): a slim bar at the bottom of a phone, a narrow rail at the left edge of a tablet.
      • cart.tsxThe cart: every line with its quantity well, the promo code, how far to free delivery, the money and Proceed to Checkout.
      • home.tsxHome: a greeting with the bell, the headline beside a heaped bowl, the search bar, the kinds, an order on its way, the top picks, a deal, the next subscription delivery, the gift box builder, ordering again and recipes.
      • offers.tsxOffers: the two deals, every coupon with Apply, and the standing offers (gift boxes, subscribe & save) that open their screens.
      • profile.tsxProfile: who is signed in, the points card, four tiles (orders, subscriptions, wishlist, gift boxes) with their counts, every account screen in grouped rows, and Sign out (asks first).
      • shop.tsxShop: the categories as bowls, filtered by kind (Home's kinds open it on one), the deal, then every product of the kind with a sort.
    • addressThe screens, one file per route (Expo Router).
      • [id].tsxAdd or edit an address ("new" adds one): label, name, street, city, ZIP and phone, each checked on Save, and whether it is the default.
    • cardThe screens, one file per route (Expo Router).
      • [id].tsxAdd or edit a card ("new" adds one).
    • categoryThe screens, one file per route (Expo Router).
      • [id].tsxOne category: its bowl and line on a lit card, the other categories of the same kind to hop to, a sort, and every product in it.
    • giftThe screens, one file per route (Expo Router).
      • [id].tsxThe gift box builder.
    • offerThe screens, one file per route (Expo Router).
      • [id].tsxOne coupon: a brass-edged ticket with the code, what it takes off, what it works on, the minimum, when it ends and its terms; whether it fits the cart right now; Apply / Remove; and the products it covers.
    • orderThe screens, one file per route (Expo Router).
      • [id].tsxOne order: its number, date and status, the tracking timeline, the packs in it, where it goes and how it was paid, the money, and what can be done: cancel before it ships (asks first, then Undo), order again, rate a delivered one, get help.
    • placedThe screens, one file per route (Expo Router).
      • [id].tsxOrder Placed: a struck brass seal with a check, the thanks, the order ID and when it arrives, then Track Order or Continue Shopping.
    • productThe screens, one file per route (Expo Router).
      • [id].tsxA product: its heaped bowl on a lit plinth, the heart and share plates, then the buying (components/product-buy.tsx) and a pinned Add to Cart.
    • recipeThe screens, one file per route (Expo Router).
      • [id].tsxA recipe: its photo, kind, title and line, time / serves / energy / level in wells, the ingredients (the ones we sell link to their product and add a pack in one tap, or all at once), and the method as steps you tick off while cooking.
    • reviewsThe screens, one file per route (Expo Router).
      • [id].tsxA product's reviews: the average and how the stars spread (brass bars), a form to write one (tap a star, a few words), then every review with a Helpful vote.
    • subscriptionThe screens, one file per route (Expo Router).
      • [id].tsxOne subscription: its bowl, the price per delivery and the next day; change the size, how often and how many packs; skip the next delivery (Undo), pause or resume; cancel it (asks first, then Undo).
    • _layout.tsxThe root: loads the heading font, waits for the kept Light / Dark pick, follows the theme and stacks the screens.
    • about.tsxAbout: the struck coin and the shop's name, its story, its four promises, the version and the legal pages.
    • account.tsxPersonal details: the brass initials coin, then name, email and phone to change.
    • addresses.tsxAddresses: every saved one on a card (the default marked in brass), Edit on each, Add address.
    • cards.tsxPayment cards: each saved card drawn as a small brass-edged card (brand, last four, name, expiry), the default marked; Add card.
    • checkout.tsxCheckout: where it goes (Change opens the saved addresses), how fast (Standard or Express, and a time window), how to pay (a card, the phone wallet, PayPal or cash; Change picks the card), the order in short and the money, then Place order.
    • forgot.tsxForgot password, in three steps on one screen: the email (only an account on this phone gets a link), a new password, then done with a way back to Sign in.
    • gifts.tsxGift boxes: Build your own on top (opens the builder empty), then the ready boxes, each drawn from above with its fills, price and rating.
    • help.tsxHelp & FAQ: a search over the questions, topics to narrow them, each question opening its answer in place, and the ways to reach us (call, email, opening hours).
    • index.tsxThe first screen: three slides you swipe (or step with Next) about the shop, each with its heaped bowl on a brass-lit stage, then Get started (sign up) or I have an account (sign in).
    • notifications.tsxNotifications: Today and Earlier, unread ones with a brass dot.
    • orders.tsxMy orders: three totals on a card (orders, spent, saved), a filter (All, On the way, Delivered, Cancelled) and every order as a card, newest first.
    • recipes.tsxRecipes: a line about them, a filter by kind (breakfast, snacks, desserts…) and every recipe as a card, two across (three or four on a tablet).
    • search.tsxSearch: a field that opens focused.
    • settings.tsxSettings: the look (System, Light or Dark, kept on the phone), which notifications to get, the account screens, Sign out (asks first) and the version.
    • sign-in.tsxSign in: email and password (with show / hide), the demo account as a hint that fills itself in, Forgot password and a way to sign up.
    • sign-up.tsxSign up: name, email and a password with a strength meter in brass, and the terms to agree to.
    • subscriptions.tsxSubscriptions: what you save a month on a card, then each repeat delivery with its bowl, how often, the next day and Active / Paused.
    • wishlist.tsxWishlist: every product you hearted, as cards, with Add all to cart.
  • componentsThe parts the screens are built from.
    • artThe drawings, as code: no image files.
      • bowl.tsxA wooden bowl heaped with one kind of nut or fruit, drawn when a photo is missing.
      • coin.tsxThe brass coin, the app's mark: a milled edge, an engraved ring, a pistachio struck in the middle and a notch at the top.
    • auth-frame.tsxThe frame of the sign-in screens: back, a small coin with the shop's name, the title and line, then the form in a card.
    • banners.tsxThe wide cards that sell something: the deal banner (words on the left, a heaped bowl on the right, a brass coin stamped with the saving), the gift box card and the row of kinds (All, Nuts, Seeds…) as gold wells.
    • bits.tsxSmall shared pieces: a section heading with an optional link, star ratings, the empty state, a status pill, a price that rolls only when it changes, and a gold icon well.
    • brass.tsxThe brushed brass fill behind the main buttons and the coin: lit at the top, shaded at the foot.
    • 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 above, a tracking step small, the wax seal large), then settles into place at its turn.
    • button.tsxThe app's buttons.
    • cart-row.tsxA line in the cart: the bowl, the name (two lines) and its pack, the price, and the quantity well whose minus turns into a bin at one.
    • checkout-parts.tsxThe parts of Checkout: where it goes, how fast, how to pay, and the order in short with the money.
    • chips.tsxA row of choices, one picked: the picked chip is a brass plate, the others raised plates.
    • choice.tsxOne option of a group you pick one from (payment, delivery speed, an address): an icon well, a title and line, and a brass radio on the end.
    • coin-bar.tsxThe app's navigation: one slim solid plate with the five places in a row (a narrow rail down the left edge of a tablet).
    • coupon-row.tsxA coupon on a card: a gold icon well, the code, what it takes off and its minimum, and Apply (Applied once it is in the cart).
    • dial-plate.tsxThe solid plate under the nav: the panel color with rounded top corners (on a tablet, rounded right corners), a lit rim and a soft shadow cast onto the page.
    • field.tsxA labelled text field pressed into the surface (a well), with one designed focus state on every platform: the rim turns brass, same width, so nothing shifts.
    • fill-picker.tsxThe sheet that fills one compartment of a gift box: kinds to narrow the list, then every product as a row with its heap, name and the price of a 100 g fill.
    • gift-box.tsxA gift box seen from above: a raised tray with a brass rim, its compartments pressed in as wells, each holding a small heap of its fill (or a + when empty), and the ribbon across the lid corner.
    • grids.tsxGrids inside a scrolling page: products two across on a phone (three or four on a tablet) and categories three across (more on a tablet).
    • home-head.tsxThe top of Home: a round initials plate that opens Profile, the greeting and points, the bell with its unread count; then the headline beside a heaped bowl and the search bar, which opens Search.
    • home-more.tsxThe lower half of Home: the next subscription delivery (NextBox), the gift box builder, the last delivered order to put back in the cart, and recipes.
    • icon.tsxLine icons on a 24-point grid, drawn so the app needs no icon font.
    • order-card.tsxAn order on a card: the bowl of its first pack, its number and date, a status pill beside the bowl (the title keeps the full width), and for an order on its way the five steps as a brass track.
    • photo.tsxA photo slot.
    • pickers.tsxThe sheets checkout opens to change where it goes and which card pays: every saved address (or card) as a radio, then a way to add a new one.
    • pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
    • product-buy.tsxThe buying half of the product screen: name, origin, the % off coin, stars, the price for the picked size (struck full price beside it), the size chips, the quantity and the Subscribe & save card.
    • product-card.tsxA product on a card: its bowl, its name (two lines), where it's from, the price for 250g and a brass cart plate that adds a pack.
    • product-more.tsxAround the product screen: its top bar (back, the heart, share) and the strips under it (recipes with it, more like it).
    • product-parts.tsxThe lower half of the product screen: what it is (tags, origin, storage, nutrition per 100 g), a peek at the reviews, and the Subscribe & save sheet that starts a repeat delivery.
    • promo.tsxThe cart's promo code well with Apply.
    • recipe-card.tsxA recipe on a card: its photo (a drawn bowl of its main product when the photo is missing), its kind, title, time and serving.
    • round-button.tsxA raised square plate with one icon (back, the bell, the heart), with an optional count badge in the brass.
    • row.tsxA row in a grouped card (Profile, Settings, Help): a gold icon well, a title and line, and at the end a chevron, a value or a switch.
    • screen.tsxEvery screen's frame: the theme's ground 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.
    • stepper.tsxA quantity well: minus, the count, plus.
    • summary.tsxThe money card in the cart and at checkout: subtotal, the coupon's discount, delivery (FREE in gold) and the total, which rolls from the old amount only when something changes.
    • timeline.tsxAn order's tracking as a vertical timeline: a brass node and rail for each step done, the current one ringed, the rest pressed in; each with its time once reached.
    • toast.tsxThe note after an action, rising above the nav bar, with an Undo when the action can be taken back.
    • top-bar.tsxThe bar at the top of a pushed screen: a back plate, the title in the middle and up to two plates at the end (the heart, the cart, Edit).
    • words.tsxText in the app's type scale: headings and prices in the heading font (Martel), everything else in the system font.
  • constantsColors, sizes, motion and the brand defaults.
    • color.tsSmall color math for the shades that follow the brand colors.
    • format.tsHow money, dates and weights are written: prices are kept in cents and shown as "$12.99"; dates read "Today, 3:40 pm" or "Nov 28".
    • motion.tsMotion settings shared by every animation: "tactile weight".
    • 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, the saved addresses and cards, the notification switches and the points, all kept on the device.
    • use-appearance.tsThe look picked in Settings: System (the phone's light or dark setting), Light or Dark.
    • use-brand.tsThe brand settings: the values in constants/theme.ts.
    • use-count-up.tsA number (a price, a cart total, a points balance) that shows its value at once when the screen opens, and only when the value really changes (a size picked, a coupon applied) 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-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 were read, and the ones cleared away (with an Undo).
    • use-orders.tsOrders and subscriptions, kept on the device: placing an order from the cart, cancelling one before it ships, ordering again, rating it, and subscriptions you pause, skip, change or cancel (each with an Undo).
    • use-reviews.tsReviews written in the app and the "helpful" votes, kept on the device.
    • 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-shop.tsThe cart, the coupon in it, the saved products and the recent searches, all kept on the device.
    • 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", "Removed from cart · 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).
  • dataEvery word and product the app shows.
    • copy-buy.tsEvery word on the buying screens: a product, its reviews, offers, gift boxes, the cart, checkout, the order placed and order tracking.
    • copy-me.tsEvery word on the account screens: profile, settings, addresses, cards, notifications, subscriptions, recipes, wishlist, help and about.
    • copy.tsEvery word on the shared parts, the sign-in screens, Home, Shop and Search, so a buyer rewrites the app in one place.
    • gifts.tsGift boxes: the ready ones on the Gift boxes screen and the parts of the box builder (sizes, ribbons, card designs).
    • help.tsThe help center: questions by topic and the ways to reach the shop.
    • notices.tsThe notifications the app starts with, newest first: orders on their way, offers, subscriptions, recipes and account notes.
    • offers.tsThe coupons on the Offers tab and in the cart's promo field.
    • orders.tsThe order history and subscriptions the app starts with: 32 orders over the last eight weeks (a few on their way, most delivered, some cancelled) and six subscriptions.
    • photos.tsEvery photo the app shows, with words for screen readers, its shape (width / height), the point to keep in view when a frame crops it (0-1 across and down) and whether it is a cut-out (a bowl with no background, shown whole).
    • products.tsEvery category and product in the shop, one line each.
    • recipes.tsThe recipes on the Recipes screen, one line each.
    • reviews.tsThe people who review products and what they said.
    • user.tsThe signed-in shopper, the demo login, and the addresses, cards and payment ways the app starts with.
  • 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.
      • almondMilk.jpgA photo the app shows.
      • almonds.webpA photo the app shows.
      • baklava.jpgA photo the app shows.
      • cashews.webpA photo the app shows.
      • dateCake.jpgA photo the app shows.
      • dates.webpA photo the app shows.
      • energyBalls.jpgA photo the app shows.
      • figs.webpA photo the app shows.
      • gift.webpA photo the app shows.
      • granola.jpgA photo the app shows.
      • harvest.jpgA photo the app shows.
      • hero.webpA photo the app shows.
      • iceCream.jpgA photo the app shows.
      • mixes.webpA photo the app shows.
      • nutBars.jpgA photo the app shows.
      • nutButter.jpgA photo the app shows.
      • oatmeal.jpgA photo the app shows.
      • pantry.jpgA photo the app shows.
      • pesto.jpgA photo the app shows.
      • pistachios.webpA photo the app shows.
      • raisins.webpA photo the app shows.
      • salad.jpgA photo the app shows.
      • seeds.webpA photo the app shows.
      • smoothie.jpgA photo the app shows.
      • walnuts.webpA photo the app shows.
      • welcome.jpgA photo the app shows.

README.md

How to run it, change it and ship it.

Đang tải…
Phù hợp cho
Nut, dried-fruit and pantry shops that want a rich, tactile store app with gift boxes and refills to rebrand and ship.
Cách hoạt động
Browse categories, pick a size and amount, fill a gift box, use a coupon, pay, then follow the order and set up refills.
Cách dùng
Run it in Expo Go, change the words in data/copy*.ts, the products, offers and gift boxes in data/, the colors in constants/theme.ts, then build with EAS.