Moringa
v1.0A calm forest-green supplement shop for iOS and Android: real bottles on frosted glass, a quiz that builds your routine, subscribe & save and a daily dose tracker.
Yerleşik
Neler alırsınız- Açık ve koyuTema renklerinizi kullanır
- telefon ve tabletTasarlandığı ekranlar
- Paketler…
- Kod boyutu…
- Pil dostu30 fps, dururken boşta
- Gizliyken dururEkran dışında veya başka sekmede
- Hareketi azaltİsteyenler için sakin
Her değişiklikte kontrol edilir
Güvenlik kontrolü: 3 Ara- Tür denetimiKatı TypeScript
- Lint ve biçimESLint · Prettier
- Testler ve derlemeAçık ve koyu ekran görüntüleri
- Güvenlik denetimiYüksek veya kritik uyarı yok
- Paket yaşıHer sürüm 7+ gündür herkese açık
- Boşta CPUDururken yarım çekirdekten az, ≤ 30 fps
Kod
vitamin-moringaReact 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 leaf dock (components/leaf-dock.tsx): a floating leaf and cart capsule at the bottom of a phone, an upright rail at the side of a tablet.
- daily.tsxDaily: today's ring and streak, the week, today's doses by part of the day (tap to tick off), the reminders, what is running low, Insights and Subscriptions, and a tip.
- home.tsxHome: the greeting, the category chips, the quiz hero and today's doses (side by side on a tablet), bestsellers, the order on its way, the next refill, shopping by goal, the offer, the guides and what is new.
- me.tsxMe: the profile card (photo, name, member since, Edit), three numbers (orders, leaf points, streak), the rows grouped by shopping, routine and the app, and Sign out with a confirm.
- shop.tsxShop: every product, with a search, category and goal chips, a sort & filter sheet and the quiz for anyone unsure.
- 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 driver, with a card that previews the label as it is typed.
- 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.
- categoryThe screens, one file per route (Expo Router).
- [id].tsxA category: a glass hero with its name, blurb and a real bottle from it, then a search, sort & filter, and the products as a grid.
- guideThe screens, one file per route (Expo Router).
- [id].tsxA guide: the photo large, its kicker and reading time, the title and the intro, the points numbered in the accent, the products it mentions and more guides to read.
- orderThe screens, one file per route (Expo Router).
- [id].tsxOne order: its status and when it arrives, the timeline in the accent, the items and prices, where it went and how it was paid, then Order again, Cancel (while it can, with a confirm and Undo), the receipt and help.
- placedThe screens, one file per route (Expo Router).
- [id].tsxOrder placed: the bag pops in on a leaf, the order number, when it arrives, the leaf points earned and any subscriptions started, the summary, a nudge to set reminders, then Track order or Keep shopping.
- productThe screens, one file per route (Expo Router).
- [id].tsxA product: the bottle large among leaves, its name, goals, stars and price, the blurb, benefits and what it is free from, the size, one-time or subscribe & save, how many, the facts, how to take it, two reviews and what pairs well with it.
- reminderThe screens, one file per route (Expo Router).
- [id].tsxA reminder, new ("/reminder/new") or one to edit: the supplement (picked in a sheet), the time, the days and the switch; Save checks a supplement and at least one day are set.
- reviewThe screens, one file per route (Expo Router).
- [id].tsxWrite a review (a modal): tap a star to rate, a headline and a few words, each with its error under it; Post keeps it on the device, says thanks and closes.
- reviewsThe screens, one file per route (Expo Router).
- [id].tsxAll reviews of a product: the rating with a bar per star, chips to keep only some stars, Newest or Most helpful, the list with the Helpful vote, and Write a review.
- subscriptionThe screens, one file per route (Expo Router).
- [id].tsxOne subscription: the bottle and its price after 15% off, then its settings (components/sub-settings.tsx), and Cancel with a confirm and Undo.
- _layout.tsxThe root: loads the heading font, waits for the kept Light / Dark pick, follows the theme and stacks the screens.
- about.tsxAbout Moringa: a moringa branch photo with the story, three pillars as accent tiles, three numbers, the shade-dried farm note with its photo, and the photo credits.
- addresses.tsxSaved addresses: the places as cards with who's there and the street, the default one marked (checkout picks it first; a tap on "Make default" moves it), each to edit or delete (with Undo).
- cart.tsxThe cart: each line with its quantity and subscribe & save, the bar toward free shipping, a coupon, the totals and a glass bar to checkout.
- checkout.tsxCheckout: where it goes (a saved place, changed in a sheet), how fast, how to pay, and the order summary.
- favorites.tsxFavorites: the products saved with the heart, newest first or by price or rating, as a grid.
- 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 forest hello with a sprig and a search over the questions, topics as accent tiles that filter them, the common questions (open one at a time), a way into your orders, and ways to reach a nutritionist.
- index.tsxThe welcome, the pin's night screen: a dark leafy photo with two real bottles floating in it, the logo, a title with its last words in the bright leaf, and two ways in (Get started → the onboarding slides, I have an account → sign in).
- insights.tsxInsights: the last 2, 4 or 6 weeks of the routine.
- notifications.tsxNotifications: filters (all, unread, orders, routine, offers), then Today and Earlier, each line with an accent icon for its kind, a dot while unread and a clear button (with Undo).
- offers.tsxOffers: the leaf points (what they are worth), the codes (Use code puts it on the cart; the one in use says so; an expired one is greyed out) and Give $10, get $10 with the referral code to share.
- onboarding.tsxOnboarding: three slides (clean from leaf to label, a routine that sticks, subscribe and save), each a photo in a rounded frame with a glass tag and its words.
- orders.tsxOrders: what was spent this month, a search by order number or product, status chips with counts, newest or oldest first, and every order as a row that opens it.
- 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 (cards, Apple Pay, PayPal), and Add a card.
- profile.tsxEdit profile: your photo in a forest ring with Change photo, then name, email, phone and city.
- quiz.tsxThe quiz: five questions one at a time with a progress bar.
- routine.tsxThe routine the quiz made: four products, best match first, each with its match, why it is here, its subscribe price and a way into Daily; then Add all four on subscribe & save, and Retake the quiz.
- search.tsxSearch: the field opens focused.
- settings.tsxSettings: the look (System, Light, Dark as small drawn phones), alerts as switches, the day the week starts on in Daily, 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.
- subscriptions.tsxSubscriptions: what subscribe & save has saved so far, then the active refills (soonest first) and the paused ones, each opening its page.
- componentsThe parts the screens are built from.
- artThe drawings, as code: no image files.
- leaf-art.tsxMoringa's drawings: the two-leaf mark of the logo, a leaf on its own (the dock's marker, the dose tick, the backdrop), a plain bottle shown when a product photo is missing, and a sprig with a leaf for empty states.
- 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 few big soft leaves in the ground's own tones at the corners and one pale bloom, flat and still.
- blocks.tsxThe blocks screens are built from: a card (a white panel, a mint step, the soft mint or the forest green), 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 sprig and the way out.
- 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 placed bag low), then moves to its place at its turn.
- button.tsxA button: the main action in the forest green, a soft mint one, an inverted one, an outlined one or plain words; on the dark welcome photo a bright leaf one and a light outline.
- card-face.tsxA payment card drawn as a card: its color by brand (the forest green, the soft leaf or a deeper forest), a chip, the last four digits, the holder and expiry, with a vine across it, and a Default tag when it's the one used first.
- cart-capsule.tsxThe cart capsule at the end of the leaf dock: the dock's own height, in the forest green with a soft halo.
- cart-parts.tsxThe cart's parts: a line (photo, name, size, quantity, subscribe & save with what it saves, remove with Undo), the bar toward free shipping, the coupon box and the price rows (also on checkout and the placed screen).
- checkout-parts.tsxCheckout's parts: a row to pick (a radio, words and an optional icon), the delivery place with a sheet of the saved places (and Add address), and the ways to pay (saved cards, Apple Pay, PayPal).
- checkout-summary.tsxWhat leads to an order: the cart's glass bar with the total and Checkout, checkout's delivery speeds, and the order summary (each line, the price rows and the subscribe & save note).
- choice.tsxA card you pick from a set (a size, a speed, a way to pay): a white panel that turns mint with a forest edge and a check when picked.
- controls.tsxThe controls: chips to filter, a segmented switch whose forest pill glides to the picked part, an on/off toggle, a minus / plus stepper and a radio dot.
- daily-more.tsxThe rest of Daily: the reminders (a switch each, a tap to edit, Add), what is running low with a Refill, the ways to Insights and Subscriptions, and a tip.
- daily-parts.tsxThe top of Daily: today's ring with the streak and the best run, the week as seven small rings (from the week start picked in Settings), and today's doses by part of the day.
- 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.
- glass.tsxA frosted glass panel: real blur on iOS and the web; on Android, where blur is still experimental, a translucent tint (the same look, unblurred), so design it to look right as plain tint.
- goal-grid.tsxShop by goal: one lifted tile per goal with its icon in the accent; a tap opens Shop filtered to that goal.
- home-more.tsxThe rest of Home: a shelf of product cards, the order on its way, the next refill, the offer and the guides to read.
- home-top.tsxThe top of Home: the logo with search and the bell, the greeting, the category chips, the quiz hero (a glass card with a real bottle and a leaf) and today's doses with the ring and the streak.
- icon.tsxLine icons on a 24-point grid, drawn for Moringa so the app needs no icon font.
- insights-parts.tsxInsights' parts: the history worked out from the reminders and the days ticked off (per day, per week, per supplement), the calendar in shades of the one accent, and bars for the weeks and the supplements.
- leaf-corner.tsxA leaf cut-out growing into a panel from its bottom corner.
- leaf-dock.tsxThe app's navigation, shaped like a leaf.
- logo.tsxThe Moringa logo: the two-leaf mark and the name in the heading font; `light` for a dark photo or the forest panel (bright leaf, white name).
- missing.tsxThe page for a link to something that's gone (a deleted address, an old order number): a drawn sprig, the reason and the way Home.
- order-detail.tsxThe parts of an order's page: its items (each opens its product) with the price rows, and where it went and how it was paid.
- order-row.tsxOne order in a list: its bottles stacked, the number, when it was placed and how many items, the total and its status pill.
- order-timeline.tsxAn order's progress as a timeline: a ring per step joined by a line, the steps done filled in the accent (Delivered in green when it lands), the rest open with when they are due.
- 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.
- product-buy.tsxHow to buy a product: the size (count and days of supply), one-time or subscribe & save 15%, and how many.
- product-card.tsxA product as a card (the grid and the shelves) or a row (search, lists): its photo on the mint stage, a Bestseller or New tag, a heart, the name (room for two lines, so cards in a row line up), the line under it, the rating, the price and a round bag button that adds it to the cart.
- product-grid.tsxA grid of product cards: two columns on a phone, three to five on a tablet as the room grows (portrait to landscape).
- product-info.tsxWhat a product does and holds: its benefits as accent icons, what it is free from, the supplement facts table, how to take it, and the way to put it in the daily routine.
- product-photo.tsxA product's cut-out photo standing on a soft mint stage with a pale leaf behind it and a soft shadow under it, sized by its own shape so it never stretches.
- product-top.tsxThe top of a product page: the bottle large on the mint stage with real leaves behind it, Back, the heart and Share over it; then the line, the name, its goals, the stars (to all reviews), the price and the blurb.
- reminder-parts.tsxA reminder's pickers: the supplement (a sheet of every product, the routine's own first), the time (hour steps and quarter-hour chips) and the days (Every day, Weekdays, or each day on its own).
- review-card.tsxOne review (stars, headline, words, who and when, a Verified mark and the Helpful vote) and the preview of two on a product page.
- ring.tsxA round progress ring in the accent (today's doses, a streak): it shows its value at once when the screen opens, and only when the value really changes (a dose ticked off) does it fill from the old value to the new.
- round-button.tsxA round icon button on a white panel (or the forest green, or the soft mint): Back, the bell, search, share.
- 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.
- 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.
- shop-filter.tsxSort & filter for product lists (Shop, a category): the sort order, the form (capsules, gummies…) and vegan only, in one sheet with Reset and "Show 12 products".
- stars.tsxA row of five stars filled to a rating (half stars drawn as a half fill), in the accent; screen readers hear the rating in words.
- status-pill.tsxAn order's status as a small pill: on its way in the accent, Delivered in green, Cancelled in grey.
- sub-row.tsxOne subscription in a list: the bottle, its name, how often and when the next one ships (or Paused), and the price after the 15% off.
- sub-settings.tsxA subscription's settings: the next three deliveries (or the paused note), how often and how many, then Skip next, Send one now, Pause or Resume, and Cancel (the page asks first).
- 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.
- 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, a lift in HSL for the night accent and the grounds mixed from the Brand setting Tint.
- motion.tsMotion settings shared by every animation: Moringa's "leafy calm".
- 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-brand.tsThe brand settings: the values in constants/theme.ts.
- use-cards.tsThe ways to pay, kept on the device: saved cards (added, edited, deleted with Undo) and the default way to pay.
- use-cart.tsThe cart, kept on the device: each line is a product, a size, how many and whether it comes on subscribe & save; plus the coupon applied.
- use-count-up.tsA number (a price, the cart total, a ring's fill) that shows its value at once when the screen opens, and only when the value really changes (a size picked, a dose ticked, a coupon) counts from the old value to the new one, easing out over FILL.
- use-daily.tsThe daily routine, kept on the device: the reminders and, per day, which were ticked off.
- use-favorites.tsThe products saved with the heart, kept on the device.
- 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-orders.tsThe orders, kept on the device: the seeded history plus every order placed at checkout, newest first.
- use-places.tsThe saved places, kept on the device: added, edited and deleted (with Undo) in Me → Addresses, picked from at checkout.
- use-prefs.tsThe settings kept on the device: which notifications come, the first day of the week, the default address, recent searches and the quiz answers.
- use-reviews.tsThe reviews: the seeded ones plus those written in the app (kept on the device), and the ones marked helpful.
- 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-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-subs.tsThe subscribe & save deliveries, kept on the device: skip, pause, resume, change how often or how many, send one now, cancel (with Undo) and the new ones checkout starts.
- 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", "Order 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).
- dataEvery word and product the app shows.
- copy-account.tsThe words of the Me tab and the account screens: addresses, ways to pay, notifications, help, settings, the profile and About.
- copy-daily.tsThe words of the Daily tab, a reminder, insights and subscriptions.
- copy-saved.tsThe words of Favorites, Offers and the guides (the rest of the shopping screens are in copy-shop.ts).
- copy-shop.tsThe words of the shopping screens: Shop, a category, a product, its reviews, search, the quiz, the cart, checkout and orders (favorites, offers and the guides: copy-saved.ts).
- copy.tsEvery word the shared parts, the welcome, sign-in and Home screens show, so a buyer changes them in one place.
- coupons.tsThe codes a shopper can use at checkout, shown in Offers.
- daily.tsThe daily routine: the reminders for each supplement taken, six weeks of what was ticked off, and the subscribe & save deliveries.
- guides.tsShort reads from the Moringa team, shown on Home and in Shop, each with the products it mentions.
- help.tsThe help center: topics, the questions people ask most and the ways to reach the team.
- money.tsThe saved cards and the other ways to pay, and how prices read.
- notices.tsThe notifications: orders moving, dose reminders, subscription notes, offers and account news, newest first.
- orders.tsThe order history: 26 orders over eight weeks, newest first, a few still on their way, most delivered and two cancelled.
- photos.tsEvery scene 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 delivery addresses, edited in Me → Addresses and picked at checkout.
- product-photos.tsEach product's cut-out photo (a transparent PNG, the Moringa label baked on) and its shape (width / height), so a card sizes it without waiting.
- products.tsEvery product in the shop: its category, the goals it helps, prices in cents per size, rating, benefits, what it's free from, its supplement facts and how to take it.
- quiz.tsThe quiz that picks a routine: five questions, and the scoring that turns the answers into four products, best match first.
- reviews.tsWhat people wrote about the products: four reviews for each, by thirty regulars, spread over the last few months.
- 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.
- guide-bowl.jpgA photo the app shows.
- guide-greens.jpgA photo the app shows.
- guide-omega.jpgA photo the app shows.
- guide-run.jpgA photo the app shows.
- guide-sleep.jpgA photo the app shows.
- guide-sun.jpgA photo the app shows.
- guide-tea.jpgA photo the app shows.
- leaf-monstera.pngA photo the app shows.
- leaf-sprig.pngA photo the app shows.
- moringa-branch.jpgA photo the app shows.
- onboard-drink.jpgA photo the app shows.
- onboard-leaves.jpgA photo the app shows.
- onboard-run.jpgA photo the app shows.
- p-acv-gummies.pngA photo the app shows.
- p-algae-omega.pngA photo the app shows.
- p-ashwagandha.pngA photo the app shows.
- p-b-complex.pngA photo the app shows.
- p-calcium.pngA photo the app shows.
- p-calm-complex.pngA photo the app shows.
- p-cod-liver.pngA photo the app shows.
- p-collagen.pngA photo the app shows.
- p-d3-k2.pngA photo the app shows.
- p-daily-multi.pngA photo the app shows.
- p-digestive-enzymes.pngA photo the app shows.
- p-elderberry.pngA photo the app shows.
- p-electrolytes.pngA photo the app shows.
- p-flax-oil.pngA photo the app shows.
- p-honey-propolis.pngA photo the app shows.
- p-iron.pngA photo the app shows.
- p-krill-oil.pngA photo the app shows.
- p-l-theanine.pngA photo the app shows.
- p-lions-mane.pngA photo the app shows.
- p-magnesium.pngA photo the app shows.
- p-melatonin.pngA photo the app shows.
- p-moringa-leaf.pngA photo the app shows.
- p-omega-3.pngA photo the app shows.
- p-omega-gummies.pngA photo the app shows.
- p-prebiotic-fiber.pngA photo the app shows.
- p-probiotic.pngA photo the app shows.
- p-sleep-magnesium.pngA photo the app shows.
- p-super-greens.pngA photo the app shows.
- p-tart-cherry.pngA photo the app shows.
- p-trace-minerals.pngA photo the app shows.
- p-turmeric.pngA photo the app shows.
- p-valerian.pngA photo the app shows.
- p-vitamin-c.pngA photo the app shows.
- p-vitamin-d3.pngA photo the app shows.
- p-womens-multi.pngA photo the app shows.
- p-zinc.pngA photo the app shows.
- welcome-wide.jpgA photo the app shows.
- welcome.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
Yükleniyor…
- Şunlar için uygun
- Vitamin, supplement and wellness brands that want a complete, calm shop with routines and refills to rebrand and ship.
- Nasıl çalışır
- Browse or take the quiz, subscribe and save, check out, then tick off each day's doses, keep the streak and track every order.
- Nasıl kullanılır
- Run it in Expo Go, change the words in data/copy*.ts, the products in data/products.ts, the colors in constants/theme.ts, then build with EAS.