コンテンツへスキップ

Salon Peony

v1.0

A salon booking app in bright rose, cream and deep ink, with big serif words and pages that turn in like an editorial magazine, for iOS and Android.

$199

組み込み済み

付属するもの
  • ライトとダークテーマのカラーを使用
  • スマホ、タブレット対応している画面
  • パッケージ…
  • コードサイズ…
  • バッテリーに優しい30 fps、静止時はアイドル
  • 非表示時は停止画面外や別タブのとき
  • モーションの軽減設定している人には穏やかに

変更のたびに検証

セキュリティ確認:12月3日
  • 型チェックTypeScript の strict モード
  • Lint とフォーマットESLint · Prettier
  • テストとビルドライトとダークのスクリーンショット
  • セキュリティ監査重大・高リスクの脆弱性なし
  • パッケージの公開期間すべてのバージョンが7日以上前に公開
  • アイドル時の CPU静止時は半コア未満、30 fps 以下

コード

salon-peonyReact 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 eight pages of the menu with Peony's word navigation (components/word-nav.tsx): a floating Menu | Book pill on a phone, a slim rail on a tablet.
      • bookings.tsxMy bookings, as in the pin: Upcoming | Past on an ink switch.
      • gifts.tsxGift cards: the cards the guest holds (Remove asks first and can be undone), a code to add one, and a card to send someone, designed and written here.
      • home.tsxHome, read like the front of a magazine: the greeting set large with the name in italic rose, search, the next visit, the month's offer band, then numbered sections: the menu's eight categories, points, the most booked services, the specialists, looks from the chairs, Book again and one kind review (components/home-more.tsx).
      • portfolio.tsxPortfolio: looks from the chairs in a staggered two-column wall (three or four on a tablet), each tile a different height like a magazine's photo page.
      • profile.tsxProfile: the guest's photo, name and membership on a soft card with three plain numbers (visits, points, saved), then grouped rows to every account page, and Sign out (asks first; the guard in app/_layout.tsx then shows the welcome page).
      • rewards.tsxRewards: the points balance on deep ink (it counts only when it really changes), the four tiers, treats to spend points on (each asks first and can be undone), an invite code to share, the latest history and the way to packages and memberships.
      • services.tsxServices: the menu as the pin's list of soft cards.
      • specialists.tsxSpecialists: the eight people as portrait cards in a grid, filtered by what they do (chips), each saying whether they're in today.
    • bookThe screens, one file per route (Expo Router).
      • confirm.tsxStep 3 of booking: the visit at a glance, a note for the specialist, the card that holds the booking (or add one), gift card balance if there is some, the total and the free-cancel line.
      • index.tsxStep 1 of booking: what.
      • time.tsxStep 2 of booking: who and when.
    • bookedThe screens, one file per route (Expo Router).
      • [id].tsxThe end of booking: a rose seal with a check pops in, "You're booked", the visit at a glance and the points it will earn.
    • bookingThe screens, one file per route (Expo Router).
      • [id].tsxOne booking: the service photo with its status, when, with whom, where, add-ons, the note and the total.
    • cardThe screens, one file per route (Expo Router).
      • [id].tsxAdd a card ("new") or edit one (a sheet): the card face fills in as you type, then number, name, expiry and CVC, each checked on Save.
    • lookThe screens, one file per route (Expo Router).
      • [id].tsxOne look from the portfolio: the photo large (then others made with the same service), who made it and the specialist's note, the service it came from, reviews of that service and more by the same hands.
    • rateThe screens, one file per route (Expo Router).
      • [id].tsxRate a done visit (a sheet from the booking or a notice): five large stars with a word for each, quick tags, a few words, then Send.
    • serviceThe screens, one file per route (Expo Router).
      • [id].tsxOne service: a photo gallery (its own photo, then looks made with it), its price, time and rating, what happens in the chair, who does it, the looks, guests' reviews and services that go with it.
    • specialistThe screens, one file per route (Expo Router).
      • [id].tsxOne specialist: their portrait and work as a gallery, years and rating, the days they're in, their story and what they're known for, services to book with them, their looks, guests' reviews and others who do the same work.
    • _layout.tsxThe root: loads the fonts (Unna for headings, its italic and bold; Carme for body copy), waits for the kept Light / Dark pick, follows the theme and stacks the screens.
    • cards.tsxPayment cards: each drawn as a card face, with Edit, Make main and Remove (asks first; Undo puts it back).
    • edit-profile.tsxEdit profile (a sheet): the photo, then name, email, phone and birthday, each checked on Save.
    • favorites.tsxFavourites: services, specialists and looks the guest hearted, switched by a segmented control with counts.
    • forgot.tsxForgot password: an email (only an account on this phone gets a link), then, as the link would, a new password with show / hide, then back to sign in with a note.
    • help.tsxHelp: search the questions or filter by topic, open one to read its answer, and the ways to reach the desk (call, write, visit).
    • index.tsxThe welcome: a full photo, the peony mark and the name set large in the serif, the salon's line, and two ways on: Get started (the three-page onboarding) or straight to sign in.
    • notifications.tsxNotifications: unread ones carry a rose dot and a tinted card; opening one marks it read and goes where it points.
    • onboarding.tsxOnboarding: three pages (book, browse the portfolio, earn points), each a photo uncovering in a tall rounded frame with a numbered caps line, a serif title and a line.
    • packages.tsxPackages and memberships, switched by a segmented control.
    • reviews.tsxAll guest reviews: the average and the five bars, a star filter, newest or most helpful first, then the reviews; "Helpful" can be tapped once on each.
    • salon.tsxThe salon: photos, its story and rating, opening hours with today marked, what's there for guests, and where to find it with Call and Directions.
    • search.tsxSearch across services, specialists and looks.
    • settings.tsxSettings: appearance (System, Light, Dark), what to be told about and how, links to cards and help, clearing recent searches, and about.
    • sign-in.tsxSign in: email and password with errors under each field, the password's show / hide eye, the demo account line that fills the form in, Forgot password and the way to sign up.
    • sign-up.tsxSign up: name, email and a password with a strength line, errors under each field, the terms note and the way back to sign in.
  • componentsThe parts the screens are built from.
    • artThe drawings, as code: no image files.
      • peony.tsxA drawn peony: three rings of round petals in the rose, softest outside, deepest at the heart.
    • auth-frame.tsxThe frame of the account screens (sign in, sign up, reset): Back and the logo on top, an editorial title and a line, then the form.
    • bits.tsxSmall shared parts.
    • book-parts.tsxThe parts of the booking steps.
    • build.tsxA part coming in (MOTION in constants/motion.ts): from its first frame it waits at its moment's pose (a block turned a little like a page, a menu word off to the left, the booked check small), then moves to its place at its turn.
    • button.tsxA button: deep ink by default, as in the pin; rose for the one action a screen exists for (Book, Confirm); a soft rose one, an outlined one, plain words or a quiet danger one.
    • cards.tsxThe cards every list is made of, each a soft near-white panel on the cream like the pin.
    • controls.tsxThe controls: a segmented switch whose ink pill glides to the picked part, an on/off toggle, a check box and a radio dot.
    • detail-parts.tsxThe parts every detail page shares.
    • faces.tsxCard faces.
    • field.tsxA labelled text field with one designed focus state on every platform: the border takes the rose (same width, so nothing shifts), an error line under it in the error red, an optional icon, and a show / hide eye on passwords.
    • gift-parts.tsxThe parts of Gift cards.
    • home-more.tsxHome's numbered sections after the menu: the most booked services, the specialists, looks from the chairs, Book again and one kind review.
    • home-parts.tsxThe blocks of Home.
    • icon.tsxLine icons on a 24-point grid, drawn for Peony so the app needs no icon font: the salon set (scissors, a polish bottle, a lotus, a brush) and the everyday ones.
    • list-row.tsxGrouped rows, as in the pin's profile: a soft card holding rows split by hairlines.
    • logo.tsxThe logo: the drawn peony beside the name in the serif, its "y" in italic like a signature.
    • 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.
    • plan-parts.tsxThe cards of Packages.
    • pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
    • rewards-parts.tsxThe parts of Rewards.
    • screen.tsxEvery screen's frame: the theme's cream 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.
    • toast.tsxThe note after an action, rising above the floating pill in deep ink, with a rose Undo when the action can be taken back.
    • top-bar.tsxThe tops of screens.
    • veil.tsxA soft dark wash over the lower part of a photo, so white words set on it stay readable.
    • visit-summary.tsxA visit at a glance, for the last booking step and the booked page: the service photo and name, with whom, the day and time, how long, add-ons with their prices.
    • word-index.tsxThe tablet's navigation: a slim rail at the left, the menu's eight pages as an icon over a small word.
    • word-nav.tsxPeony's navigation: no tab bar.
    • word-pages.tsThe eight pages of the menu, the small count beside each word, and the Book action both navs share.
    • words.tsxEvery line of text: a size from the type scale and a tone from the theme.
  • constantsColors, sizes, motion and the brand defaults.
    • color.tsSmall color math for the shades that follow the brand colors, and the grounds, panels, hairlines and words mixed from the Brand setting Tint.
    • motion.tsMotion settings shared by every animation: Peony's "editorial page turns".
    • 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-arrived.tsxA page of the menu reached by switching to it fades in already built: the parts that mount with it skip their entrance (Build, Photo's uncover), so nothing pops in one by one after the crossfade.
    • use-bookings.tsThe guest's bookings, kept on the device: booking a visit adds one, Cancel marks it cancelled (and Undo puts it back), Change time moves it, and a rating is stored on a done visit.
    • use-brand.tsThe brand settings: the values in constants/theme.ts.
    • use-cards.tsPayment cards on file, kept on the device: add, edit, remove (Undo puts it back where it was) and pick the main one.
    • use-count-up.tsA number (a total, the points balance, a gift card's value) that shows its value at once when the screen opens, and only when the value really changes (an add-on picked, points redeemed) counts from the old value to the new one, easing out over FILL.
    • use-draft.tsThe visit being booked, step by step: the service and its add-ons, then who and when, then a note and how to pay.
    • 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 (welcome → onboarding, sign in → Home, Sign out → sign in): the page turns away, 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.tsNotifications, kept on the device: opening one marks it read, "Mark all read" clears the dot, a swipe-free Remove takes one away with Undo.
    • use-prefs.tsSettings kept on the device: which notifications come, the saved searches and the hearts on services, specialists and looks.
    • use-rewards.tsPoints, gift cards, the membership and packages the guest holds, 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-slide.tsA position that glides to each new target, except the first one it is measured at: there it starts in place, so the marker under a picked day, slot or segment doesn't slide in from the edge when a screen opens.
    • use-still.tsWhether the app's own loops and plays stay still: the phone's "Reduce motion" is on, or MOTION.reduce is Always (constants/motion.ts).
    • use-theme.tsThe palette of the theme in use and the styles that depend on it and on the brand, built once per brand and theme and shared by every part.
    • use-toast.tsA short note at the bottom after an action ("Booking moved", "Card removed · Undo"), with an optional Undo.
  • dataEvery word and product the app shows.
    • bookings.tsThe seeded visits of the signed-in guest: a few coming up, a long history of done ones (some rated) and a few cancelled.
    • copy-account.tsThe words of the account screens: profile, editing it, settings, payment cards and help.
    • copy-book.tsThe words of booking: the three steps, the booked page, My bookings, a booking's page and rating a visit.
    • copy-more.tsThe words of the browsing screens: services, specialists, portfolio, their detail pages, reviews, search, notifications, favourites, rewards, gift cards, packages and the salon page.
    • copy.tsThe words of the frame, the menu, the account screens and Home, so a buyer changes them in one place.
    • dates.tsDates in words, in one place: "Thu 4 Dec", "10:30", "Tomorrow", "3 days ago".
    • gifts.tsGift cards: the designs to pick from, the amounts, and the cards the guest already holds.
    • help.tsThe help page: questions guests ask most, by topic, and the ways to reach the front desk.
    • looks.tsThe portfolio: finished looks from the chairs, each tied to the person who made it and the service to book for it.
    • notices.tsThe guest's notifications.
    • 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).
    • pick.tsTwo small readers for the seeded data.
    • plans.tsPackages (a bundle of visits paid once) and memberships (a monthly plan).
    • points.tsLoyalty: the tiers, the rewards points buy, and the guest's history.
    • pros.tsThe specialists: who they are, what they do best and when they work.
    • reviews.tsWhat other guests wrote after their visits.
    • salon.tsThe salon itself: where it is, when it's open and what's inside.
    • services.tsThe salon's menu: eight categories and every service in them, with its price, time, photo, who can do it and what happens in the chair.
    • user.tsThe guest using the app, the demo account that always signs in and the cards kept on file.
  • 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.
      • back-massage.jpgA photo the app shows.
      • balayage.jpgA photo the app shows.
      • blowout.jpgA photo the app shows.
      • blush.jpgA photo the app shows.
      • bob.jpgA photo the app shows.
      • braid-back.jpgA photo the app shows.
      • braids.jpgA photo the app shows.
      • brows.jpgA photo the app shows.
      • color.jpgA photo the app shows.
      • curls.jpgA photo the app shows.
      • curly-cut.jpgA photo the app shows.
      • cut.jpgA photo the app shows.
      • extensions.jpgA photo the app shows.
      • facial.jpgA photo the app shows.
      • fantasy.jpgA photo the app shows.
      • gel.jpgA photo the app shows.
      • glam.jpgA photo the app shows.
      • gloss.jpgA photo the app shows.
      • gold-nails.jpgA photo the app shows.
      • lash-eye.jpgA photo the app shows.
      • lashes.jpgA photo the app shows.
      • makeup.jpgA photo the app shows.
      • manicure.jpgA photo the app shows.
      • mask.jpgA photo the app shows.
      • massage.jpgA photo the app shows.
      • nail-art.jpgA photo the app shows.
      • nail-salon.jpgA photo the app shows.
      • ombre.jpgA photo the app shows.
      • ornate-nails.jpgA photo the app shows.
      • pedicure.jpgA photo the app shows.
      • peonies.jpgA photo the app shows.
      • pro-elena.jpgA photo the app shows.
      • pro-hana.jpgA photo the app shows.
      • pro-ines.jpgA photo the app shows.
      • pro-jonah.jpgA photo the app shows.
      • pro-lotte.jpgA photo the app shows.
      • pro-maya.jpgA photo the app shows.
      • pro-mei.jpgA photo the app shows.
      • pro-sana.jpgA photo the app shows.
      • promo.jpgA photo the app shows.
      • salon-neon.jpgA photo the app shows.
      • salon.jpgA photo the app shows.
      • updo.jpgA photo the app shows.
      • wash.jpgA photo the app shows.
      • waves.jpgA photo the app shows.
      • wavy-back.jpgA photo the app shows.
      • wax.jpgA photo the app shows.
      • welcome.jpgA photo the app shows.

README.md

How to run it, change it and ship it.

読み込み中…
こんな用途に
Hair, nail and beauty salons, spas and studios that want guests to book, rebook and collect points from their phone.
仕組み
Guests browse services, specialists and looks, pick a time on a calendar, book, rate visits, earn points and send gift cards.
使い方
Run it in Expo Go, change the words in data/copy.ts, your services, people and prices in data/, colors in constants/theme.ts, then build with EAS.