Vegan Basil
v1.0A fresh green and cream plant kitchen app for iOS and Android: browse the menu, build a bowl layer by layer, order, book a table and run a weekly meal plan.
पहले से मौजूद
आपको क्या मिलता है- लाइट और डार्कआपकी थीम के रंग इस्तेमाल करता है
- फ़ोन और टैबलेटजिन स्क्रीन के लिए यह बना है
- पैकेज…
- कोड साइज़…
- बैटरी पर हल्का30 fps, स्थिर होने पर निष्क्रिय
- छिपने पर रुक जाता हैस्क्रीन से बाहर या दूसरा टैब
- कम मोशनमाँगने वालों के लिए शांत
हर बदलाव पर जाँचा गया
सिक्योरिटी जाँच 3 दिस॰- टाइप जाँचTypeScript स्ट्रिक्ट
- लिंट और फ़ॉर्मैटESLint · Prettier
- टेस्ट और बिल्डलाइट और डार्क स्क्रीनशॉट
- सिक्योरिटी ऑडिटकोई हाई या क्रिटिकल एडवाइज़री नहीं
- पैकेज की उम्रहर वर्शन 7+ दिन से पब्लिक
- आइडल CPUरुके रहने पर आधे कोर से कम, ≤ 30 fps
कोड
vegan-basilReact 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 tabs under the curved green header (components/tab-head.tsx), with the floating "Today's bowl" pill over them (it turns into the bag once something is in it).
- build.tsxBuild your bowl: five steps (base, greens, protein, toppings, sauce).
- menu.tsxThe menu: every dish as a round-photo card, by category.
- plans.tsxMeal plans: the guest's own plan up top (or none), the four plans as photo cards with their price per bowl and week, how it works in three steps, and a way to the plan questions.
- reserve.tsxReserve a table: the day, how many, where to sit, a time, an occasion and a note, then Book.
- today.tsxToday: a hello, pick up or delivery, today's bowl, the order on its way, the menu's categories, what's loved this week, build your own, the plan and the next table, new dishes, impact, loyalty and the journal.
- addressThe screens, one file per route (Expo Router).
- [id].tsxOne address, new ("new") or kept: name, type, street, city and a note for the rider, checked on Save.
- cardThe screens, one file per route (Expo Router).
- [id].tsxOne payment card.
- dishThe screens, one file per route (Expo Router).
- [id].tsxA dish: its round photo, name, rating, price and diet marks, what's in it, nutrition, allergens, add-ons, a note for the kitchen, reviews and what goes well with it.
- farmThe screens, one file per route (Expo Router).
- [id].tsxA partner farm: its photo and story, where it is and how far, how long it has grown for Basil, its share of the produce, what it grows, and the dishes on the menu that use it.
- orderThe screens, one file per route (Expo Router).
- [id].tsxOne order: its state, the steps (while on the go), what was in it, from where and to where, how it was paid and the totals.
- placedThe screens, one file per route (Expo Router).
- [id].tsxOrder placed: a green check pops in, the order number and when it will be ready, its steps, the loyalty stamps it earned, and the way on: track it or go back to Today.
- planThe screens, one file per route (Expo Router).
- [id].tsxOne meal plan: its photo, price per bowl and per week, what you get, a sample week of its dishes, and Choose (or Switch to it, or Manage when it is already the guest's plan).
- recipeThe screens, one file per route (Expo Router).
- [id].tsxA recipe: the photo, title and cook, how long and how many it serves, what you'll need, and the method as steps to tick off while cooking.
- reservationThe screens, one file per route (Expo Router).
- [id].tsxOne booking: the room's photo, the day, time, party and its code, the occasion and note, and what can be done with it: change it, add it to the calendar, get directions, share it, or cancel (confirm, 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 Basil: a photo of the hall, the story, three values, the three kitchens (each opens Reserve) and the kitchen team.
- account.tsxAccount: the guest's initials and name, three counts, loyalty stamps, then everything that's theirs (orders, bowls, favorites, bookings, plan, impact, journal) and their settings (profile, addresses, cards, settings, help, about), and Sign out (confirm).
- addresses.tsxAddresses: every delivery place, each opening its edit form; one row adds a new one.
- bag.tsxThe bag: what's in it (change how many; taking the last one out says so with Undo), pick up or delivery and where, when, a promo code, a tip for the rider, the totals and on to checkout.
- bowls.tsxMy bowls: the bowls the guest built and saved, each drawn with what's in it, its price and calories.
- checkout.tsxCheckout: the order at a glance, where it goes, the card to pay with (or add one), cutlery, the totals and Place order.
- favorites.tsxFavorites: the dishes saved with the heart, as round-photo cards (two a row, three on a tablet).
- forgot.tsxReset a password in two steps: the email (it must belong to an account on this phone), then the six-digit code (demo: 246810) and a new password.
- help.tsxHelp: the common questions, filtered by topic (a `topic` param picks one on arrival) and by a search; each opens in place.
- impact.tsxYour impact: what the guest's plant meals saved (meals, CO₂, water, land) next to the same meals with meat, CO₂ saved by month as bars that fill once, the kitchen's own numbers this year, and the farms the food comes from.
- index.tsxThe first route.
- journal.tsxThe journal: recipes and notes from the kitchen, newest first, with topic chips.
- notifications.tsxNotifications: today and earlier, unread ones marked with a green dot and a tinted row.
- onboarding.tsxThe first-run questions after a new account: allergens to avoid, the diets they usually go for, and pick up or delivery.
- orders.tsxOrders: on the go, past and cancelled, newest first, each with Order again and Rate where they fit.
- payments.tsxPayment cards: each drawn as a small green card (brand, last four, name, expiry) that opens its edit form; one button adds a new one.
- profile.tsxProfile: name, email, phone and birthday, checked as they're typed and saved with a note.
- reservations.tsxMy bookings: coming up, past and cancelled, each with the room's photo, the day and time, the party and its state.
- search.tsxSearch: a field in the green header.
- settings.tsxSettings: appearance (System, Light, Dark), the allergens to hide and the diets to suggest, which notifications to get, units, a privacy note and Clear saved data (confirm).
- sign-in.tsxSign in: email and password, checked on submit, with a line naming the demo account and a button that fills it in.
- sign-up.tsxCreate an account: name, email, password and the password again, each checked on submit; an email already used says so.
- subscription.tsxYour plan: which plan, the next delivery, the delivery days (tap to change; at least one), where it goes, next week's bowls with Swap, skip next week, pause or resume, past weeks, and cancel (confirm, then Undo).
- componentsThe parts the screens are built from.
- auth-frame.tsxThe frame of the sign-in, sign-up and reset screens: a tall green head with the logo, the title and a line under it, dipping in an arc, then the form on a card over the cream (on a landscape tablet the green is a panel at the left and the form sits centered at the right).
- backdrop.tsxThe drawn ground behind the screens: two large basil leaves with their veins and a few scattered seeds, in the ground's own cream (a step lighter and a step deeper), flat and still.
- bag-parts.tsxThe bag's pieces: one line (photo or drawn bowl, name, extras, price and a stepper whose minus turns into a bin), and the totals card (subtotal, delivery, service, the code's discount, tip and total).
- bits.tsxSmall pieces the screens share: a section heading with "See all", the tomato tag (deals and prices only), a state pill (green on its way, soft green done, grey cancelled), round initials, a star line, a designed empty state, a settings-style row with a soft green icon tile, and a card frame (lighter cream with a hairline).
- bowl-art.tsxThe drawn bowl in Build: a wide cream bowl seen from the side, its rim filled with what the guest picked.
- build-parts.tsxBuild's pieces: the five steps as a row of numbered stops (done ones checked), an ingredient tile to pick (its color swatch, name, extra price and calories), and the bowl's running totals, which move from the old number to the new one when something is added.
- 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 ingredient above the bowl, a heart small), then moves to its place at its turn.
- button.tsxA button: the main action in the brand's green, a soft green one, a deep green one, an outlined one or plain words, and a danger one.
- choice.tsxOne pickable row in a list of options (a kitchen, an address, a card, a plan): an icon tile, its name and a line under it, and a round check that fills green when picked.
- controls.tsxThe small controls every screen shares: a chip that can be picked, a row of chips that scrolls sideways, a segmented switch whose green pill glides to the picked part (it starts in place, hooks/use-slide.ts), a quantity stepper whose minus turns into a bin at one, and a switch row.
- curve.tsxThe header's curved edge: the green dips in one soft arc below the header, like the pin's panels.
- dish-parts.tsxA dish's detail cards: nutrition (calories and the four macros as bars that fill once), allergens (with a warning for the ones the guest avoids), an add-on row to tick, and the reviews (how the stars split and the latest words).
- dish.tsxHow a dish shows across the app: a card with the round bowl photo like the pin's (name over two lines, calories, price and a quick add), a row for lists, the small diet marks, and the heart.
- 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.
- icon.tsxLine icons on a 24-point grid, drawn for Basil so the app needs no icon font.
- logo.tsxBasil's mark: a basil leaf folding down into a round bowl, drawn in SVG, and the word mark beside it in the wide heading font.
- mode-card.tsxPick up or delivery, and from which kitchen or to which address: a segmented switch and a line with Change, which opens a sheet of the kitchens or the saved addresses.
- order-card.tsxAn order in a list: its number and day, its state pill, the dishes' round photos overlapping, what was in it and the total, with Order again for eaten ones.
- 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.
- reserve-parts.tsxReserve's pickers: the next seven days as date stops, the four places to sit as photo cards, and the times as a grid split into lunch and dinner (full or past times are struck through and can't be picked).
- round-button.tsxA round icon button (back, close, search, the heart): a touch target with a screen-reader name.
- screen.tsxEvery screen's frame: the theme's ground with the drawn leaves 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.
- sub-parts.tsxThe plan screen's pieces: next week's bowls with Swap (a sheet of the other bowls and salads to pick from), and the past weeks as a row of bars (skipped weeks shown as a dash).
- tab-head.tsxThe tabs' header, kept slim (about 100pt): one row with the logo, search, the bell and the guest's initials on the green, the five tabs in capitals under it and a shallow green arc below.
- timeline.tsxAn order's steps as an upright line of dots: done steps filled soft green with a check, the current one solid green, the rest hollow, and the line between them solid as far as the order has come.
- toast.tsxThe note after an action, rising above the floating pill at the bottom, with an Undo when the action can be taken back.
- today-more.tsxThe lower half of Today: the build-your-bowl invitation, the guest's plan and next table, their impact so far, loyalty stamps and two stories from the journal.
- today-pill.tsxThe one floating thing over the tabs: "Today's bowl" (its photo, the tomato "Today" word, the name and the day's price) until something is in the bag; then it turns into the bag (count, total, View bag).
- today-top.tsxThe top of Today: today's bowl as the hero (its round photo, the deal in the tomato tag, the day's price), the order on its way when there is one, and the menu's categories as round photos.
- top-bar.tsxThe curved green header of every pushed screen, like the pin's: Back on the left, the title in the wide capitals in the middle, an optional action on the right, and the green dipping in an arc below.
- words.tsxEvery line of text in the app: a size from the type scale (headings in the brand's wide font, set in capitals like the pin's headers when `caps`) 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, and the grounds, panels and text each theme mixes from the Brand setting Tint.
- motion.tsMotion settings shared by every animation: Basil's "fresh toss".
- 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 dish, a receipt, a booking).
- 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-count-up.tsA number (a price, a bowl's calories, a bag total) that shows its value at once when the screen opens, and only when the value really changes (an add-on picked, a topping added, a code) 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 drives off, then the next one comes in.
- use-lists.tsThe guest's saved lists, kept on the device: delivery addresses, payment cards and their own bowls.
- 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.tsThe bag (what the guest is about to order, and how) and the orders, both kept on the device.
- use-prefs.tsThe guest's small choices, kept on the device: favorite dishes, diet and allergen filters, which notifications they want, which ones they've read, and their recent searches.
- 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 leaf under the tabs 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-table.tsTable bookings and the meal-plan subscription, kept on the device.
- 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).
- dataEvery word and product the app shows.
- copy-account.tsThe words of the account screens: notifications, account, profile, settings, addresses, cards, help, about and the first-run questions.
- copy-food.tsThe words of the food screens: the menu, a dish, build-your-bowl, the bag, checkout and orders, search and favorites.
- copy-table.tsThe words of the table, plan and story screens: reserving, bookings, meal plans, the journal, recipes, impact and farms.
- copy.tsEvery word the app shows that isn't a dish or a person: buttons, titles, hints and the screen reader's words.
- dishes.tsThe menu's shape and lookups: categories, diet marks, allergens, add-ons and every dish (the lists live in menu-*.ts, prices in cents).
- farms.tsWhere the food comes from and the good it does: the four partner farms, the kitchen's sustainability numbers, and what the guest's own plant meals saved compared with the same meals made with meat.
- format.tsHow money, dates and times read across the app, and a small seeded number so the made-up history (orders, reviews) comes out the same every time.
- help.tsHelp: the common questions by topic, and the ways to reach a person.
- ingredients.tsBuild your own bowl: the five steps and the 26 things to pick from, each with its price on top of the bowl's base price (cents), calories, protein and the color and shape the drawn bowl uses for it (components/bowl-art.tsx).
- menu-bowls.tsThe menu's bowls (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- menu-drinks.tsThe menu's drinks (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- menu-plates.tsThe menu's handhelds and small plates (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- menu-salads.tsThe menu's salads (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- menu-sweets.tsThe menu's sweets (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- menu-warm.tsThe menu's warm plates (prices in cents): calories, macros, diet marks, allergens, prep time and what's in each; the photo key points into data/photos.ts.
- notices.tsThe guest's notifications, newest first.
- orders.tsSix weeks of the guest's orders, made from a seed so they come out the same each time: two on the go, four cancelled, the rest eaten.
- people.tsThe people in the app: Basil's kitchen team (who cooks, who wrote each recipe) and the guests who left reviews.
- 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).
- plans.tsMeal plans: four weekly plans, the guest's own subscription and six weeks of its history.
- recipes-more.tsThe older half of the journal's recipes (see recipes.ts).
- recipes.tsThe journal: recipes from the kitchen team to cook at home, newest first (the second half lives in recipes-more.ts).
- reservations.tsTables: the four places to sit, the times a table can start, the occasions a guest can mention, and twelve bookings (two coming up, two cancelled, the rest past).
- user.tsThe signed-in guest and their saved things: the demo account, the three Basil kitchens, delivery addresses, payment cards and promo codes.
- 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.
- bowl-buddha.jpgA photo the app shows.
- bowl-harvest.jpgA photo the app shows.
- bowl-kimchi-rice.jpgA photo the app shows.
- bowl-pho.jpgA photo the app shows.
- bowl-rainbow.jpgA photo the app shows.
- bowl-squash.jpgA photo the app shows.
- bowl-tofu.jpgA photo the app shows.
- build-bar.jpgA photo the app shows.
- drink-berry.jpgA photo the app shows.
- drink-green.jpgA photo the app shows.
- drink-orange.jpgA photo the app shows.
- drink-pressed.jpgA photo the app shows.
- drink-smoothies.jpgA photo the app shows.
- drink-spritz.jpgA photo the app shows.
- farm-greens.jpgA photo the app shows.
- farm-market.jpgA photo the app shows.
- farm-seedlings.jpgA photo the app shows.
- farm-strawberry.jpgA photo the app shows.
- hand-burger.jpgA photo the app shows.
- hand-flatbread.jpgA photo the app shows.
- hand-panini.jpgA photo the app shows.
- hand-tacos.jpgA photo the app shows.
- hand-wrap.jpgA photo the app shows.
- room-dinner.jpgA photo the app shows.
- room-hall.jpgA photo the app shows.
- room-lounge.jpgA photo the app shows.
- room-terrace.jpgA photo the app shows.
- salad-avocado.jpgA photo the app shows.
- salad-caesar.jpgA photo the app shows.
- salad-garden.jpgA photo the app shows.
- salad-night.jpgA photo the app shows.
- salad-pomegranate.jpgA photo the app shows.
- salad-summer.jpgA photo the app shows.
- salad-tempeh.jpgA photo the app shows.
- small-jar.jpgA photo the app shows.
- small-mezze.jpgA photo the app shows.
- sweet-donuts.jpgA photo the app shows.
- sweet-fruit.jpgA photo the app shows.
- sweet-matcha-cake.jpgA photo the app shows.
- sweet-panna.jpgA photo the app shows.
- sweet-parfait.jpgA photo the app shows.
- sweet-pie.jpgA photo the app shows.
- sweet-softserve.jpgA photo the app shows.
- table-spread.jpgA photo the app shows.
- warm-curry.jpgA photo the app shows.
- warm-noodles.jpgA photo the app shows.
- warm-paella.jpgA photo the app shows.
- warm-penne.jpgA photo the app shows.
- warm-pesto.jpgA photo the app shows.
- warm-red-curry.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
लोड हो रहा है…
- इनके लिए अच्छा
- Vegan restaurants, salad bars and meal-plan kitchens that want a bright, complete guest app to rebrand and ship.
- यह कैसे काम करता है
- Order dishes or a bowl you build, book a table on a slot grid, subscribe to a meal plan, read recipes and see your impact.
- कैसे इस्तेमाल करें
- Run it in Expo Go, change the words in data/copy*.ts, the dishes, farms and plans in data/, the colors in constants/theme.ts, then build with EAS.