Skincare Aloe
v1.0A clean skincare shop in soft grey, white and one ink black, with cut-out product photos, a skin quiz and a morning and night routine, for iOS and Android.
組み込み済み
付属するもの- ライトとダークテーマのカラーを使用
- スマホ、タブレット対応している画面
- パッケージ…
- コードサイズ…
変更のたびに検証
セキュリティ確認:12月3日- 型チェックTypeScript の strict モード
- Lint とフォーマットESLint · Prettier
- テストとビルドライトとダークのスクリーンショット
- セキュリティ監査重大・高リスクの脆弱性なし
- パッケージの公開期間すべてのバージョンが7日以上前に公開
- アイドル時の CPU静止時は半コア未満、30 fps 以下
コード
skincare-aloeReact 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 Aloe nav (components/aloe-nav.tsx): a lean row at the bottom of a phone, an 84pt rail at the side of a tablet.
- bag.tsxThe Bag tab, as on the pin: "Shopping Bag" over the lines, the promo field with Apply, a note on free shipping, the totals and the black "Proceed To Checkout".
- home.tsxHome: the logo and the bell, a hello, the search pill, the "new in" hero beside today's routine and the next refill, the four categories, bestsellers, picks for your skin from the quiz, and the routine sets.
- me.tsxThe Me tab: who you are, three counts (orders, refills, saved) that open their lists, then rows for shopping, the account and more, and Sign out (asked first).
- routine.tsxThe Routine tab: Morning or Evening, how many steps are done today, the steps in order (tick, product, Change), the whole routine into the bag at the set discount, your skin profile with Retake quiz, and a tip.
- shop.tsxThe Shop tab: every product, narrowed by category chips and the filter sheet, in the pin's staggered two-column grid (3 to 5 on a tablet).
- categoryThe screens, one file per route (Expo Router).
- [id].tsxOne category's page (Cleanse, Treat, Moisturise, Protect): its name and line, then its products with the same filters as the shop.
- ingredientThe screens, one file per route (Expo Router).
- [id].tsxAn ingredient: what it is, what it does, who it suits, what not to layer it with (each a link to that ingredient) and where it comes from, then the products that have it.
- ordersThe screens, one file per route (Expo Router).
- [id].tsxOne order: its status and tracking, the products (each opens; delivered ones offer Review), the totals, where it went and how it was paid, then Buy again, Help and, while it is not shipped yet, Cancel (asked first, with Undo).
- index.tsxYour orders, newest first: All, On the way or Delivered.
- placedThe screens, one file per route (Expo Router).
- [id].tsxThe order is in: a check on a soft disc, thanks with the order number, when it should arrive, and two ways on (track it, or keep shopping).
- productThe screens, one file per route (Expo Router).
- [id].tsxA product, as on the pin: the bottle standing on the ground with its dots, the badge tiles, then the buy card with stars, the stepper and the black Cart.
- refillsThe screens, one file per route (Expo Router).
- [id].tsxOne refill plan: the product, the next delivery, how often (4, 6 or 8 weeks) and how many, what you save, then Skip next, Pause or Resume and Cancel plan (asked first, with Undo).
- index.tsxYour refill plans: each one the product, how often it comes, the next delivery and its status, opening the plan.
- reviewsThe screens, one file per route (Expo Router).
- [id].tsxA product's reviews: the average with how many gave each star, a sort, then the reviews (yours first).
- _layout.tsxThe root: loads the heading font, waits for the kept System / Light / Dark pick, follows the theme and stacks the screens (components/app-stack.tsx: the native stack on phones, with iOS swipe-back and Android's hardware back; a fading JS stack on the web).
- about.tsxAbout Aloe: the mark and the story, three facts, the terms and privacy notes (each opens in a sheet), the version and where the photos come from.
- addresses.tsxAddresses: each one a card with its label, the address, Default or "Use as default", Edit and Remove (asked first, with Undo).
- cards.tsxPayment cards: each one drawn as a flat card (network, last four digits, name, expiry) with Default or "Use as default" and Remove (asked first, with Undo).
- checkout.tsxCheckout: where it goes (your addresses, or add one), how fast (standard or express), how you pay (your cards, or add one), then the order with its totals and Place order.
- forgot.tsxReset the password: one email field and Send.
- help.tsxHelp: search the answers, the questions in groups (tap one to open its answer), a note when nothing matches, and the ways to reach us.
- index.tsxThe first run: three welcome pages, each a photo in a rounded frame over a headline and one line, crossfading as you step through.
- notifications.tsxNotifications: Today and Earlier, unread ones with a dot.
- quiz-result.tsxThe quiz result: your skin type and what to focus on, then the morning and evening routines built from it, each product a card.
- quiz.tsxThe skin quiz: six questions, one at a time, with a bar for how far you are.
- search.tsxSearch, as on the pin: back arrow, "Search Product", your photo; then the field with the filter button, "Found n Results" and the staggered grid.
- settings.tsxSettings: the look (System, Light or Dark), your profile (name, email, phone, checked before saving), which notifications to send, and Delete account (asked first; it signs you out).
- sign-in.tsxSign in: email and password, checked as you leave each field and again on Sign in, a link to reset the password and one to make an account.
- sign-up.tsxCreate an account: name, email and password, each checked as you leave it and again on Create account.
- skin.tsxThe skin profile: skin type (one), concerns (any), sensitive skin on or off, all saved as you tap.
- wishlist.tsxThe wishlist: every product you hearted, in the shop's staggered grid (the heart on each card removes it, with Undo), and Add all to bag.
- componentsThe parts the screens are built from.
- aloe-nav.tsxThe app's navigation, lean and flat: five outline icons with labels (Home, Shop, Routine, Bag, Me) straight on the ground, with no strip, pill or line behind them.
- app-stack.tsxThe stack the screens sit in: on phones the native stack (iOS swipe-back, Android's back button), each new screen fading in over the last in 220ms.
- app-stack.web.tsxThe stack on the web: the JavaScript stack, whose fade runs in a browser too, so a new screen crossfades in over the last one in 220ms (and back out the same way) instead of a hard cut.
- auth-frame.tsxThe frame of sign-in, sign-up and the password reset: a back arrow, a photo of leaves and bottles in a rounded frame, the title and its line, then the form.
- bag-parts.tsxThe bag's parts, after the pin: a line (the bottle on a small white tile, name, size, price, a quiet remove cross and the stepper), the promo field with its black Apply inside, and the totals.
- build.tsxA part coming in (MOTION in constants/motion.ts): from its first frame it waits at its moment's pose, then moves to its place at its turn.
- button.tsxA button with a label (and an icon when it helps), at least one touch target tall.
- cart-button.tsxThe pin's black Cart button, with the "fresh drop": on a tap a ring of ink spreads out from it and fades, like a drop landing in water, as the product goes into the bag (and the Bag count in the nav bounces).
- controls.tsxThe small controls: a round icon button (bare, on the card, or solid), the quantity stepper from the bag (outline minus, solid plus), chips, a segmented pick, a switch and the star rating.
- crossfade.tsxLayers stacked in one box, with only the picked one shown: picking another fades it in over the old one as the old one fades out (240 ms), so the box is never empty for a frame.
- empty.tsxWhat a list shows when it has nothing in it: an icon on a soft disc, one line saying so, one line on what to do, and the button that does it.
- field.tsxA labelled text field with one designed focus state on every platform: the hairline turns the accent (same width, so nothing shifts), an error line under it in the error color, an optional icon, and a show / hide eye on passwords.
- filter-sheet.tsxThe filter sheet of the shop: sort, skin type, concerns, how it's made and a price cap, each as chips.
- home-cards.tsxTwo smaller Home cards: the next refill and the skin quiz invite.
- home-parts.tsxThe parts of Home: the search pill with its filter button (the pin's search row), the "new in" hero, the category tiles, today's routine on the deep card and a routine set (refill and quiz cards: home-cards.tsx).
- icon.tsxLine icons on a 24-point grid, drawn so the app needs no icon font.
- logo.tsxThe Aloe mark: a drop with one aloe blade rising inside it, drawn in the text color, beside the name in the heading font.
- order-parts.tsxOrder pieces: the status pill (solid while on the way, outlined once delivered or cancelled) and the tracking steps with the time each one happened or is due.
- photo.tsxA photo slot.
- pick-card.tsxA choice on a white card with a round mark on the left that fills when picked: an address, a delivery speed or a card at checkout.
- pressable-scale.tsxA Pressable that shrinks a little under the finger and springs back.
- product-card.tsxThe pin's product card: a white card with the bottle standing whole on it, the name in bold, its short line, the price, and a solid round heart to save it.
- product-parts.tsxThe parts of a product page, after the pin: the photo with its dots, the row of white badge tiles (Vegan, Natural, Cruelty-free), the buy card (name, size, stars, price, the outline stepper and the black Cart), and the refill plan box.
- review-card.tsxOne review: the stars and how long ago, the title and words, then who wrote it, their skin type and a "Verified buyer" line (or "You" on your own).
- routine-parts.tsxA routine step: a round tick to mark it done today, the step's name and the product picked for it (its photo opens the product), and Change, which opens a sheet of that category's products, best fit first.
- rows.tsxList parts: a section head with an optional "See all", a white group card that holds rows split by hairlines, a tappable row (icon, title, detail, chevron or an end control) and a plain label / value line for totals and summaries.
- 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) that rises softly as it opens.
- shelf.tsxA row of product cards: on a phone a sideways scroll that runs to the screen's edge, on a tablet as many cards as fit across the page (3 to 5), each the same width, so nothing hangs off the side.
- shop-list.tsxThe shop's product list, shared by the Shop tab and a category's page: the search pill, category chips, a line with the count and the filter button (with how many filters are on), then the staggered grid.
- toast.tsxThe note after an action, rising above the nav at the bottom as a solid dark pill, with an Undo when the action can be taken back.
- top-bar.tsxThe bar at the top of an inner screen, as on the pin: a bare back arrow, the title centered in small bold words, and one action at the end.
- words.tsxEvery line of text in the app, in one of a few kinds (display, title, heading, body, label, small, tiny) and tones, so sizes and colors stay in step.
- write-review.tsxThe sheet for writing a review: five star buttons, a title and the words, each checked on Post.
- 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: "fresh drop", light and quick.
- 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.tsWho is signed in, kept on the device.
- use-appearance.tsThe look picked in Settings: System (the phone's light or dark setting), Light or Dark.
- use-bag.tsThe shopping bag, kept on the device: lines (a product, its size and how many), the promo code and the totals.
- use-brand.tsThe brand settings: the values in constants/theme.ts.
- use-icons.tsHow the line icons are drawn (ICON in constants/theme.ts).
- use-layout.tsPhone or tablet layout, from the window (not the device), so an iPad in Split View or a small Android tablet gets the layout that fits, and a turn re-lays out at once.
- 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-notes.tsNotifications and which kinds to send, kept on the device.
- use-orders.tsOrders and refill plans, kept on the device.
- use-saved.tsThe wishlist and recent searches, kept on the device.
- use-scheme.tsDark or light: the pick in Settings, or with System the phone's appearance setting (app.config.ts sets userInterfaceStyle "automatic"); on the web, the browser's setting.
- use-skin.tsThe skin profile (from the quiz or set by hand), the routine built from it, and the reviews written in the app, kept on the device.
- 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 nav's marker 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-theme.tsThe palette of the theme and the styles that depend on it and on the brand, rebuilt only when one of them changes.
- use-toast.tsOne short message at a time at the bottom of the screen ("Added to bag"), with an optional Undo.
- use-wallet.tsDelivery addresses and payment cards, kept on the device: add, edit, delete (with Undo) and pick the default.
- dataEvery word and product the app shows.
- account.tsThe sample account a new install starts with: past orders over eight weeks, refill plans, notifications, addresses and cards.
- catalog-cleanse.tsThe Cleanse shelf: gels, oils, milks and balms.
- catalog-moisturise.tsThe Moisturise shelf: creams, gels, oils and balms.
- catalog-protect.tsThe Protect shelf: sunscreens, mists and day shields.
- catalog-treat.tsThe Treat shelf: serums, toners and acids.
- catalog.tsEvery product the shop sells, gathered from one file per category.
- copy-account.tsEvery word the account screens show (routine, quiz, Me, orders, refills, settings, help), so a buyer changes them in one file.
- copy.tsEvery word the shop screens show, so a buyer changes them in one file.
- help.tsHelp: the questions people ask most, grouped, and the ways to reach us.
- inbox.tsThe sample refill plans and notifications a new install starts with.
- ingredients.tsThe key ingredients the products name, each with what it does, who it suits and what not to pair it with (the ingredient page).
- photos.tsEvery photo in the app: the file, what it shows (for screen readers) and its shape (width / height).
- products.tsThe shop's shape: categories, skin types, concerns and what a product holds, plus the lookups every screen uses.
- reviews.tsReviews: fourteen reviewers and their notes, spread over the products with a fixed seed so every visit shows the same ones.
- routine.tsRoutines: the steps of a morning and an evening, the ready-made sets (bundles), the skin quiz and how its answers pick a routine.
- 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.
- after-sun.webpA photo the app shows.
- aloe-toner.webpA photo the app shows.
- aloe.jpgA photo the app shows.
- barrier-cream.webpA photo the app shows.
- body-lotion.webpA photo the app shows.
- body-spf.webpA photo the app shows.
- bottles.jpgA photo the app shows.
- bright-serum.webpA photo the app shows.
- calm-essence.webpA photo the app shows.
- clay-wash.webpA photo the app shows.
- cleansing-balm.webpA photo the app shows.
- cleansing-oil.webpA photo the app shows.
- clear-toner.webpA photo the app shows.
- cream-cleanser.webpA photo the app shows.
- daily-spf.webpA photo the app shows.
- enzyme-polish.webpA photo the app shows.
- eye-cream.webpA photo the app shows.
- face-mist.webpA photo the app shows.
- face-oil.webpA photo the app shows.
- facial-cleanser.webpA photo the app shows.
- foaming-gel.webpA photo the app shows.
- gentle-wash.webpA photo the app shows.
- hand-cream.webpA photo the app shows.
- hero.jpgA photo the app shows.
- hydra-serum.webpA photo the app shows.
- lactic-peel.webpA photo the app shows.
- leaves.jpgA photo the app shows.
- lip-balm.webpA photo the app shows.
- lip-spf.webpA photo the app shows.
- micellar-water.webpA photo the app shows.
- moisturiser.webpA photo the app shows.
- mood-cleanse.jpgA photo the app shows.
- mood-moisturise.jpgA photo the app shows.
- mood-protect.jpgA photo the app shows.
- mood-treat.jpgA photo the app shows.
- night-cream.webpA photo the app shows.
- night-retinol.webpA photo the app shows.
- pore-serum.webpA photo the app shows.
- shield-serum.webpA photo the app shows.
- sleep-mask.webpA photo the app shows.
- spf-stick.webpA photo the app shows.
- spot-gel.webpA photo the app shows.
- tinted-spf.webpA photo the app shows.
- water-gel.webpA photo the app shows.
- welcome-1.jpgA photo the app shows.
- welcome-2.jpgA photo the app shows.
- welcome-3.jpgA photo the app shows.
README.md
How to run it, change it and ship it.
読み込み中…
- こんな用途に
- Skincare and beauty brands that sell their own range and want buyers to shop, reorder and follow a daily routine on the phone.
- 仕組み
- Shoppers take a skin quiz, get a routine, browse by step or ingredient, read reviews, check out, track orders and set up refills.
- 使い方
- Run it in Expo Go, change the words in data/copy.ts, your products and photos in data/, colors in constants/theme.ts, then build with EAS.