用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
农场商店与 CSA 网站是一个温暖、杂志风格的起点,适合小型农场、市集菜园、果园和直接向社区销售的合作社。它把运营中的农场网站的各项任务整合到一个清晰的体验中:展示当季产品、说明 CSA 份额如何运作、提供几款农场商店的常备商品,并邀请人们前来参观。
首页以一张丰盛的丰收照片开场,并提供通往份额配置器和商店的直接入口。以季节为导向的农产品日历让可供应情况一目了然,又不会假装是实时库存。农场故事使用一张工作肖像、具体的种植细节和克制的视觉节奏,而不是满墙的乡村风徽章。活动列表包含实用的时间、容量和本地预订流程。
CSA 页面以一个实用的配置器为核心。访客选择箱型、取货点和频率,内容物、每箱价格和预计月总额会立即更新。商店页面增加了分类筛选、商品快速查看、持久购物车、取货选择和诚实的仅设备端订单确认。无需后端或支付服务。
通过内容变量调整品牌、位置、农场重点、份额季节和取货区域,然后在单一内容文件中重写示例作物、产品、人物和活动。六张协调的摄影素材提供了完整的初始外观。大地色系、富有表现力的 Fraunces 标题、紧凑的数据行和轻柔的动效让结果在桌面和移动端都保持踏实易读。最终效果应该像一个了解自己客户的可靠农场,每个控件都有用,每个示例细节都准备好被替换,而不是装饰性的店面表演。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Farm Shop and CSA Website Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build a polished three-page website for [BRAND], an invented small farm at [LOCATION] known for [FARM_FOCUS]. The site combines a seasonal produce calendar, an interactive [CSA_SEASON] configurator, a four-product farm shop, the farm's story, and visit events for [PICKUP_AREA]. - Audience: Local households comparing CSA options, shoppers looking for farm produce and pantry staples, and visitors planning a practical farm event or pickup. - Goal: Help visitors understand what is in season, configure and save a CSA share plan, assemble a pickup order, and reserve event places through clear client-side interactions. - Tone: Warm, plain-spoken, capable, and rooted in daily farm work. Use concrete crop names, quantities, prices, hours, and pickup instructions; avoid rustic clichés, health claims, sustainability superlatives, and faux handwritten slogans. ## Stack - Framework: Vite 5 + React 18 + TypeScript - Styling: Tailwind CSS 3.4 - Libraries: motion (Motion for React) (MIT), lucide-react (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/dm-sans (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Set Vite base to './', build.outDir to 'dist', and build.sourcemap to false. - Configure Vite rollupOptions.input for index.html, csa.html, and shop.html, each with a small React entry that shares components and src/content.ts. - Define the exact color tokens, Fraunces and DM Sans families, container widths, shadows, and keyframes in the Tailwind configuration and src/index.css. - Import @fontsource-variable/fraunces and @fontsource-variable/dm-sans locally; never request a font stylesheet from a remote service. - Keep all variable values, navigation labels, crop data, share options, pickup points, products, people, events, FAQs, and interface copy in src/content.ts so changing the variables triggers a coherent rewrite. - Use React state with localStorage for the share plan, cart, event reservations, and saved pickup order; make no network requests and show only honest on-device confirmations. - Download the six listed images into public/images and reference them with relative paths; create ASSETS.md at the project root with every image, font, and icon credit. - Use Motion for React for section reveals, modal and drawer transitions, and calendar updates, plus CSS for hover states; disable nonessential movement when prefers-reduced-motion is set. ## Variables - [BRAND] — Farm name (default: "Hazel & Furrow Farm"). An invented farm or cooperative name used throughout the site. - [LOCATION] — Farm address (default: "18 Meadow Gate, North Elms, Vermont"). A fictional but believable street address and region. - [FARM_FOCUS] — Farm focus (default: "vegetables, herbs, and pasture-raised eggs"). The main products and growing focus; rewrite crops and products to match. - [CSA_SEASON] — CSA season name (default: "Summer Share"). The current share name used in the announcement, calendar, and builder. - [PICKUP_AREA] — Pickup area (default: "the Upper Valley"). The local service area; rewrite pickup-point names and directions to fit. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/farm-shop-and-csa-website in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components. ## Design ### Colors - Field `#24362A` — Deep green header, footer, primary text, and dark section background - Ink `#30352D` — Body copy and readable secondary text - Cream `#F3EDDF` — Main page background - Paper `#FFFBF2` — Product surfaces, forms, and calendar rows - Sage `#D7DFC8` — Selected controls, subtle bands, and availability accents - Terracotta `#A94328` — Primary buttons, active links, and key prices; pair with white text - Pollen `#E8B44F` — Small seasonal markers and decorative highlights only ### Typography - Display and section headings: Fraunces Variable (OFL), weights 400/500/600 - Body, navigation, controls, and data: DM Sans Variable (OFL), weights 400/500/600/700 ### Layout & motion - Spacing: Use an 8px base grid, a 1280px maximum content width, 32px desktop gutters and 20px mobile gutters. Desktop sections have 104–128px vertical padding; mobile sections have 64–76px. Hero headline is clamp(3.5rem, 6vw, 6.5rem) with 0.94 line-height, section headings are clamp(2.25rem, 4vw, 4rem), and body copy stays within 62 characters per line. - Radius: Use restrained 2px radii on buttons and inputs, 14px on product and summary surfaces, and one distinctive 160px upper-left arch on the hero photograph. Use 1px Field borders at 18% opacity and soft, short shadows rather than floating every section in a card. - Motion: Reveal major section headings and content with a 24px upward movement and opacity transition over 500ms, staggered by 70ms and triggered once at 15% visibility. - Motion: Move the hero photograph no more than 40px on scroll with a restrained parallax effect; keep the headline and controls stationary. - Motion: Crossfade seasonal rows and share-manifest changes in 160–220ms without changing container height. - Motion: Drawers and modals use a 240ms ease-out transform and fade, trap keyboard focus, close on Escape, and restore focus to their trigger. - Motion: Hover product images scale to at most 1.025 and buttons shift by no more than 2px; all nonessential animation is removed for reduced motion. - Imagery: Use the six supplied documentary-style farm photographs as one coherent shoot: warm golden-hour light, muted forest green, cream and terracotta, realistic textures, and gentle 35mm grain. The first screen must show the large harvest scene, not typography alone. Product cards use the supplied still lifes, and the story uses the environmental working portrait with no visible face. Do not add other photos, recognizable people, text within images, logos, or branded packaging. Crop with object-fit while preserving the subject and supply the listed alt text. ## Pages & Sections ### Farm home, seasons, story, and events (`index.html`) 1. **Shared announcement, header, and footer** — On every page, show a slim Field-green announcement bar: '[CSA_SEASON] requests are open · Farm pickup and [PICKUP_AREA] collection points.' Below it, place the [BRAND] wordmark with an original simple three-line furrow SVG, navigation links 'Seasons' to ./index.html#seasons, 'CSA Shares' to ./csa.html, 'Farm Shop' to ./shop.html, 'Our Story' to ./index.html#story, and 'Visit' to ./index.html#visit. The right CTA reads 'Build your box'. The shared footer contains [BRAND], [LOCATION], 'Farm shop Wed–Fri 10 AM–6 PM · Sat–Sun 9 AM–4 PM', the same file-name navigation links, and the optional credit link. Layout: The announcement is 34px high. The sticky 78px header has a Cream background at 94% opacity, a fine bottom border, and a 1280px inner row. Desktop uses left brand, centered navigation, right CTA; mobile uses brand, cart count, and a menu button opening a full-width panel beneath the header. Footer is a deep-green two-column block with a large brand line and practical details. Motion: The header gains a subtle shadow after 24px of scroll. The mobile panel fades and slides down 12px; reduced motion removes the slide. 2. **Harvest hero** — Eyebrow: 'A small farm for [PICKUP_AREA]'. Headline: 'Good food, grown close to home.' Body: 'Seasonal [FARM_FOCUS] from [BRAND], packed for your table and your week.' Primary CTA 'Choose your CSA share' links to ./csa.html; secondary CTA 'Shop this week’s harvest' links to ./shop.html. Add a small caption under the image: 'Morning harvest · [LOCATION]'. A compact Paper note overlaps the photo’s lower-left corner with 'IN THE BOX THIS WEEK' and 'Leafy greens · roots · herbs · a pantry extra'. Layout: At desktop, use a 12-column, 680px-minimum-height hero: copy occupies five columns and vertically centers; the hero-harvest image occupies seven columns with a 4:3 frame and 160px upper-left arch. Keep the headline to four short lines at most. On mobile, copy comes first and the full-width image follows, with the weekly note positioned inside the lower edge rather than covering the headline. Motion: The headline lines reveal in a 70ms stagger while the photograph wipes in from the bottom with a clipped mask. Apply the specified 40px maximum image parallax afterward. 3. **This week at the farm** — Three concise updates: 'HARVEST / Rainbow chard, carrots, and basil are at their peak.' 'FARM SHOP / Order by Wednesday for a Friday pickup.' 'NEXT VISIT / Morning field walk · Saturday, 9:30 AM.' Each has a text link to the relevant section or page. Layout: A bordered horizontal band divided into three equal columns on desktop and stacked rows on mobile. Labels are 11px uppercase with letter spacing; updates use 16px DM Sans. No icon cards or extra containers. Motion: Rows reveal together with a small opacity fade only. 4. **Seasonal produce calendar** — Eyebrow 'THE PRODUCE CALENDAR'; heading 'Know what’s coming home.' Intro: 'Harvest shifts with weather, but the rhythm stays useful. Explore a typical [CSA_SEASON] and plan your kitchen.' Provide Spring, Summer, Autumn, and Winter tabs with Summer selected initially. Summer rows are: Tomatoes / July–September / PEAK; Basil / June–September / PEAK; Sweet corn / July–August / COMING IN; Zucchini / June–August / PEAK; Carrots / June–October / AVAILABLE; Peppers / July–September / COMING IN. Include a note: 'Typical harvest windows, not live inventory.' The adjacent panel uses csa-box.webp with heading 'A high-summer box' and list 'Tomatoes · basil · carrots · zucchini · eggs · one pantry surprise'. Layout: At desktop, an eight-column calendar sits beside a four-column photo panel. Tabs form a single bordered rail, rows use three aligned columns with generous 18px padding, and status is a small uppercase label with a colored dot rather than a pill cloud. On mobile, tabs scroll horizontally, crop and status stay visible, and harvest window moves beneath the crop name. The photo panel stacks below. Motion: Changing tabs crossfades and shifts rows 8px over 180ms while the calendar height remains stable. 5. **CSA introduction** — On a Field-green background, eyebrow 'CSA, WITHOUT THE GUESSWORK', heading 'One farm. A box that fits your week.', and copy 'Choose your size, pickup point, and rhythm. Every share follows the harvest and includes a useful pantry extra.' Show three steps: '01 Pick your box — Little, Kitchen, or Family.' '02 Choose pickup — Farm gate or a neighborhood point.' '03 Cook with the season — A crop note and simple use ideas in every box.' CTA 'Build your [CSA_SEASON]' links to ./csa.html#share-builder. Include 'From $24 per box · pause or change before the next packing day.' Layout: A 12-column split with csa-box.webp cropped as a quiet five-column image and text in seven columns. Steps are separated by thin translucent horizontal rules, not individual cards. On mobile, text precedes the image and all CTAs become full width. Motion: The three steps reveal in sequence; no pinned scrolling. 6. **Farm shop preview** — Eyebrow 'FROM THE FARM STAND'; heading 'Good things for the weekly table.' Intro 'A short shelf of what we grow and make, ready for local pickup.' Show four products with the same data and cart behavior as shop.html: Weekly Harvest Basket $28 each; Pasture-Raised Eggs $7 per dozen; Orchard Preserves $9 per 9 oz jar; Stone-Milled Farm Loaf $8 per loaf. Each has an 'Add to pickup order' button. Link 'Browse the whole farm shop' to ./shop.html. Layout: Four equal product columns at desktop, two at tablet, and one at mobile. Images are square with a subtle bottom border; name and price share a baseline row, unit and short availability note sit below. Do not wrap each product in a heavy floating card. Motion: Adding a product briefly changes the button to 'Added' and updates the header cart count; the cart drawer opens only when the visitor activates the cart control. 7. **Farm story** — Anchor id 'story'. Eyebrow 'ROOTED HERE'; heading 'Small fields. Long relationships.' Copy: 'We farm 14 acres outside North Elms, growing 32 crop varieties in rotation and keeping the shop stocked with a few things we use in our own kitchen.' Second paragraph: 'Mara Ellison leads the growing work and Theo Bennett runs packing days. Their rule is simple: harvest close, pack carefully, and tell people exactly what is in the box.' Add three factual markers: '14 acres in rotation', '32 crop varieties', '4 seasons of farm visits'. CTA 'Meet us at the farm' links to #visit. Rewrite names, figures, and regional details when variables change. Layout: Use farmer-at-work.webp in a five-column 3:4 frame and story copy in seven columns. Markers form a three-column ruled row beneath the copy. On mobile, image sits above the text at a 4:3 crop with the farmer still centered. Motion: The portrait reveals with a gentle clip mask; markers fade in together. 8. **Visit the farm events** — Anchor id 'visit'. Eyebrow 'COME BY'; heading 'See where your food grows.' Intro 'Small-group visits at [LOCATION]. Dress for the field and bring a water bottle.' Event rows: 'JUN 13 · Morning field walk · 9:30–11:00 AM · Free · 12 places · A guided loop through the growing fields and pack shed.' 'JUN 27 · Summer pickling workshop · 2:00–4:00 PM · $18 · 10 places · Make one jar to take home; ingredients and tools included.' 'JUL 11 · Farm-table picnic · 5:30–8:00 PM · $32 · 24 places · A casual shared menu served beside the lower field.' Each CTA reads 'Reserve a place' and opens a modal with name, email, party size, and the selected event. Validation is inline; confirmation says 'Your event request is saved on this device.' Layout: The section heading occupies four columns and events occupy eight. Each event is a ruled row with a 72px date block, title and details, and a right-aligned CTA. Mobile rows stack date, title, metadata, and full-width CTA. The modal is centered at 520px maximum width with a Paper background. Motion: Event rows reveal with a 60ms stagger; the modal uses the standard 240ms transition. ### CSA share configurator and pickup guide (`csa.html`) 1. **CSA hero** — Eyebrow '[CSA_SEASON]'; headline 'Your share of the season.' Body 'A weekly or every-other-week box of [FARM_FOCUS], packed at [BRAND] for [PICKUP_AREA].' Primary CTA 'Choose your share' anchors to #share-builder; secondary CTA 'See the produce calendar' links to ./index.html#seasons. Include three reassurance notes: 'Three useful sizes', 'Four pickup choices', 'Change before packing day'. Layout: A compact 420px editorial hero with copy in seven columns and a five-column crop of csa-box.webp. The shared announcement and header remain visible above. On mobile the image follows at 4:3 and the reassurance notes wrap into one column. Motion: Use the standard heading and image reveal only; no additional parallax. 2. **Interactive share builder** — Anchor id 'share-builder'. Heading 'Build a box around your week.' Step 1 offers Little Share at $24 per box, '1–2 people · 5–6 harvest items'; Kitchen Share at $34 per box, '2–3 people · 7–8 harvest items'; Family Share at $44 per box, '4–5 people · 10–12 harvest items'. Kitchen Share is initially selected. Step 2 offers Farm Gate at [LOCATION], Saturday 9 AM–12 PM, no fee; North Elms Library, Wednesday 4–6 PM, no fee; Upper Valley Co-op, Friday 3–6 PM, $2 handling; Meadow Market Hall, Sunday 10 AM–1 PM, no fee. Step 3 offers Weekly or Every other week. The live summary shows selected size, pickup, frequency, a scaled produce manifest, per-box total including handling, and estimated monthly total using four boxes weekly or two boxes every other week. Fields for name and email are required and validated. The final button reads 'Save my share plan'; success says 'Your share plan is saved on this device. No payment has been collected.' Include 'Harvest substitutions are normal; the final box follows the field.' Layout: At desktop, the three steps occupy seven columns and a sticky five-column summary stays below the header. Options are large bordered rows with radio indicators and price on the right; selected rows use Sage with a 2px Field border. The summary is Paper with a 14px radius, a small csa-box image strip, itemized totals, and full-width CTA. On mobile the summary follows the steps and is not sticky. Motion: Option selection responds immediately; manifest rows crossfade and the total uses a short 150ms opacity change. Saving shows an inline success panel, not a browser alert. 3. **A season in three boxes** — Heading 'The box changes. The habit stays.' Show three sample manifests: 'Early summer / Snap peas, baby lettuce, spring onions, radishes, herbs, eggs, farm loaf.' 'High summer / Tomatoes, zucchini, basil, carrots, peppers, eggs, orchard preserves.' 'Early autumn / Winter squash, potatoes, kale, onions, apples, eggs, farm loaf.' Note: 'Examples show the Kitchen Share. Quantities scale with your selected size.' Layout: Three equal editorial columns separated by vertical rules on desktop and horizontal rules on mobile. Each has a large 01/02/03 index, season title, and readable comma-separated manifest; no extra photographs or icon cards. Motion: Columns reveal in a short stagger on entry. 4. **Pickup and flexibility** — Heading 'Pickup should be the easy part.' Four notes: 'Bring a bag — We pack in returnable crates.' 'Running late — Farm-gate boxes stay in the cool room until 6 PM.' 'Away for a week — Change your rhythm before the next packing day.' 'Send a friend — Add their name to your saved plan.' Include a simple three-step line: 'Choose your point → Look for your name → Take your box home.' Layout: A Sage-tinted section with a four-column note grid above a wide, ruled three-step line. Mobile uses a two-column note grid and stacked steps with clear arrows rotated downward. Motion: Static content with only the standard section reveal. 5. **CSA frequently asked questions** — Five accessible accordion items: 'What if I do not recognize a crop?' — Every box includes a short crop note with storage and preparation ideas. 'Can I switch box sizes?' — Yes; save a new plan before the next packing day. 'Is the monthly total a charge?' — No; it is an estimate from your selected rhythm. No payment is collected by this site. 'What happens in a poor harvest week?' — A comparable crop or pantry item replaces the missing item and the packing note explains the change. 'Do I need to return the crate?' — Return it at the next pickup so it can go back into circulation. Layout: A narrow 860px accordion with 20px rows, plus icons from Lucide, and a final link to ./shop.html labeled 'Rather shop one week at a time?' Motion: Accordion height and plus rotation animate over 200ms; reduced motion shows immediate expansion. ### Farm shop and local pickup cart (`shop.html`) 1. **Shop hero and controls** — Eyebrow '[BRAND] FARM SHOP'; headline 'Good things from nearby fields.' Body 'A short, changing shelf of [FARM_FOCUS] and kitchen staples. Save your order for local pickup.' Controls are category chips All, Produce, Pantry, Bakery and a sort menu Featured, Price low to high, Price high to low. The header cart button always displays the current item count. Layout: A 320px text-led hero with a thin botanical furrow SVG on the right rather than another large photo. Controls form a sticky 64px row beneath the hero with horizontal scrolling on mobile and the sort control aligned right on desktop. Motion: Filter changes crossfade the grid without animating individual items across the page. 2. **Product grid and quick view** — Product 1: Weekly Harvest Basket, Produce, $28 each, csa-box.webp, 'About 8 lb of mixed seasonal produce', badge 'PACKED FRIDAY'. Product 2: Pasture-Raised Eggs, Produce, $7 per dozen, farm-eggs.webp, 'One dozen mixed-color eggs', badge 'FARM GATE'. Product 3: Orchard Preserves, Pantry, $9 per 9 oz jar, orchard-preserves.webp, 'Small-batch fruit preserve with cane sugar', badge 'PANTRY'. Product 4: Stone-Milled Farm Loaf, Bakery, $8 per loaf, farm-loaf.webp, 'Naturally leavened; contains wheat', badge 'SATURDAY ONLY'. Product names or images open a quick-view modal with a larger image, description, unit, allergen or storage note, quantity stepper, and add button. Rewrite product details when variables change. Layout: Use a four-column grid on wide desktop, two columns on tablet, and one column on mobile. Each product has a square image, category label, name, unit detail, and aligned price. Quick view is a 760px two-column modal on desktop and a single-column bottom sheet on mobile. Motion: Product hover uses the specified 1.025 image scale; quick view follows the shared modal behavior. 3. **Pickup cart drawer and saved order** — The cart drawer lists chosen products with quantity steppers, remove actions, and a live subtotal. Empty state: 'Your pickup basket is empty.' Pickup choices reuse Farm Gate, North Elms Library, Upper Valley Co-op, and Meadow Market Hall with their times and fees. 'Review pickup order' reveals a compact order summary and requires name and email. 'Save pickup order' stores the order on this device and shows 'Your pickup order is saved on this device. No payment has been collected.' Never imply that an order was transmitted or paid. Layout: A 440px right-side drawer on desktop and full-width on mobile, with a fixed header, scrollable item list, and bottom subtotal and CTA area. Review replaces the drawer content while preserving a clear Back button. Focus is trapped until close. Motion: The drawer slides from the right over 240ms with a dimmed backdrop; quantity and subtotal updates fade briefly. 4. **Pickup notes** — Heading 'A few things before pickup.' Three notes: 'Order rhythm — Save your list by Wednesday for the best Friday selection.' 'What to bring — A reusable bag and your saved order screen.' 'Questions about allergens — Product notes list sample ingredients; always check with the farm before purchasing.' Add the shared farm-shop hours and [LOCATION]. Layout: A Cream section with three ruled columns and a full-width location strip at the bottom. On mobile all notes stack with 24px spacing. Motion: Standard reveal only. ## Assets - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/hero-harvest.webp to public/images/hero-harvest.webp. Alt: 'A wooden crate of mixed seasonal produce beside rows on a small farm at golden hour.' Use as the homepage harvest hero. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/csa-box.webp to public/images/csa-box.webp. Alt: 'A wooden CSA box filled with leafy greens, vegetables, herbs, and fruit.' Use in the seasonal calendar, CSA sections, and Weekly Harvest Basket product. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farm-eggs.webp to public/images/farm-eggs.webp. Alt: 'Brown and cream eggs in a plain pulp carton on a wooden farm-shop shelf.' Use for Pasture-Raised Eggs in the shop and quick view. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/orchard-preserves.webp to public/images/orchard-preserves.webp. Alt: 'Three jars of amber orchard preserves with blank labels on a wooden table.' Use for Orchard Preserves in the shop and quick view. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farm-loaf.webp to public/images/farm-loaf.webp. Alt: 'A round rustic sourdough loaf on a linen-covered farm-shop counter.' Use for Stone-Milled Farm Loaf in the shop and quick view. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - image: Download https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farmer-at-work.webp to public/images/farmer-at-work.webp. Alt: 'A farmer seen from behind carrying a harvest crate between crop rows.' Use in the homepage farm story. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template. - icon: Use locally installed lucide-react icons only for menu, cart, arrows, plus, minus, close, calendar, and pickup markers; license ISC. Draw the original three-line furrow brand mark directly in SVG. Record both in ASSETS.md. - font: Self-host Fraunces Variable through @fontsource-variable/fraunces and DM Sans Variable through @fontsource-variable/dm-sans, both OFL-1.1. Import the packages locally and record them in ASSETS.md; do not use a font CDN. ## Don'ts - Do not use any real farm’s name, logo, wordmark, slogan, exact copy, product labels, packaging, signature illustrations, mascots, unique icons, custom fonts, or exact reference palette; all brand and business content must remain invented and original. - Do not copy reference code, prompts, imagery, videos, or layouts beyond the high-level information structure described here. - Do not include recognizable people, celebrity likenesses, branded products, recognizable landmarks used as brands, anime or game characters, or any third-party logo. - Do not add stock imagery from Unsplash, Pexels, Pixabay, Google Images, placeholder services, or any source that is not explicitly allowed; use only the six supplied generated photographs and local SVG or Lucide icons. - Do not hotlink assets, load CDN scripts or stylesheets, use remote fonts, add analytics, or make third-party API calls; every runtime asset must be local. - Do not create a backend, database, authentication, server routes, real checkout, payment collection, or forms that transmit data; localStorage saves and on-device confirmations must state exactly what happened. - Do not use commercial fonts or dependencies with missing, noncommercial, share-alike, or otherwise restricted licenses. - Do not output source maps, copy src into dist, exceed 20 MB in dist, or require more than the single npm run build command. - Do not use bare-directory internal links; link to ./index.html, ./csa.html, ./shop.html, or documented same-page anchors, and keep all asset paths relative. - Do not introduce horizontal overflow, console errors, inaccessible focus states, or motion that ignores prefers-reduced-motion; verify at 1440×900 and 390×844. - Do not add SEO metadata, structured data, sitemaps, Open Graph tags, or keyword-stuffed content; a plain variable-aware title and local favicon are sufficient. - Do not mention VibeFather inside the site except the optional credit footer link, and never use VibeFather as a variable default. --- — Prompt by VibeFather · https://vibefather.ai/t/farm-shop-and-csa-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 农场商店与社区支持农业(CSA)网站 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为 [BRAND] 打造一个精致的三页网站。[BRAND] 是位于 [LOCATION] 的一家虚构小农场,以 [FARM_FOCUS] 闻名。网站整合了时令农产品日历、交互式 [CSA_SEASON] 配置器、包含四款产品的农场商店、农场故事,以及面向 [PICKUP_AREA] 的到访活动。 - 受众:正在比较 CSA 方案的本地家庭、寻找农场农产品和食品杂货的购物者,以及计划参加实用农场活动或取货的访客。 - 目标:帮助访客了解当季农产品,配置并保存 CSA 份额计划,组建取货订单,并通过清晰的客户端交互预留活动名额。 - 语气:温暖、平实、干练,扎根于日常农活。使用具体的作物名称、数量、价格、营业时间和取货说明;避免乡村陈词滥调、健康宣称、可持续性溢美之词和仿手写标语。 ## 技术栈 - 框架:Vite 5 + React 18 + TypeScript - 样式:Tailwind CSS 3.4 - 库:motion (Motion for React)(MIT)、lucide-react(ISC)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/dm-sans(OFL-1.1) - 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。 - 设置: - 将 Vite base 设为 './',build.outDir 设为 'dist',build.sourcemap 设为 false。 - 为 index.html、csa.html 和 shop.html 配置 Vite rollupOptions.input,每个都带有一个小型 React 入口,共享组件和 src/content.ts。 - 在 Tailwind 配置和 src/index.css 中定义精确的颜色令牌、Fraunces 和 DM Sans 字体族、容器宽度、阴影和关键帧。 - 本地导入 @fontsource-variable/fraunces 和 @fontsource-variable/dm-sans;绝不从远程服务请求字体样式表。 - 将所有变量值、导航标签、作物数据、分享选项、自提点、产品、人物、活动、常见问题和界面文案保留在 src/content.ts 中,以便更改变量时触发一致的改写。 - 对分享计划、购物车、活动预订和已保存的自提订单使用 React 状态配合 localStorage;不发起网络请求,仅显示诚实的设备端确认。 - 将列出的六张图片下载到 public/images 并用相对路径引用;在项目根目录创建 ASSETS.md,包含每张图片、字体和图标的署名。 - 使用 Motion for React 实现区块显现、模态框和抽屉过渡以及日历更新,并使用 CSS 实现悬停状态;当设置了 prefers-reduced-motion 时禁用非必要的动效。 ## 变量 - [BRAND] — 农场名称(默认:“Hazel & Furrow Farm”)。一个虚构的农场或合作社名称,全站使用。 - [LOCATION] — 农场地址(默认:“18 Meadow Gate, North Elms, Vermont”)。一个虚构但可信的街道地址和地区。 - [FARM_FOCUS] — 农场重点(默认:“vegetables, herbs, and pasture-raised eggs”)。主要产品和种植重点;根据实际情况改写作物和产品。 - [CSA_SEASON] — CSA 季节名称(默认:“Summer Share”)。当前份额名称,用于公告、日历和构建器。 - [PICKUP_AREA] — 取货区域(默认:“the Upper Valley”)。本地服务区域;根据实际情况改写取货点名称和路线指引。 - [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/farm-shop-and-csa-website(默认:是;删除此行即可移除) “页面与区块”下的文案是按默认值编写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。 ## 设计 ### 颜色(Colors) - Field `#24362A` — 深绿色页眉、页脚、正文文本和深色区块背景 - Ink `#30352D` — 正文文案和可读的次要文本 - Cream `#F3EDDF` — 主页面背景 - Paper `#FFFBF2` — 产品表面、表单和日历行 - Sage `#D7DFC8` — 选中的控件、微妙的色带和可用性强调 - Terracotta `#A94328` — 主按钮、活动链接和关键价格;搭配白色文本 - Pollen `#E8B44F` — 仅用于小型季节性标记和装饰性高亮 ### 排版(Typography) - 展示和区块标题:Fraunces Variable(OFL),字重 400/500/600 - 正文、导航、控件和数据:DM Sans Variable(OFL),字重 400/500/600/700 ### 布局与动效(Layout & motion) - 间距:使用 8px 基础网格,1280px 最大内容宽度,桌面端 32px 边距和移动端 20px 边距。桌面端区块有 104–128px 垂直内边距;移动端区块有 64–76px。Hero 标题为 clamp(3.5rem, 6vw, 6.5rem),行高 0.94,区块标题为 clamp(2.25rem, 4vw, 4rem),正文每行保持在 62 个字符以内。 - 圆角:按钮和输入框使用克制的 2px 圆角,产品和摘要表面使用 14px,Hero 照片左上角使用一个独特的 160px 拱形。使用 18% 不透明度的 1px Field 边框和柔和、短促的阴影,而不是把每个区块都悬浮在卡片中。 - 动效:主要区块标题和内容以 24px 向上移动和透明度过渡在 500ms 内显现,以 70ms 错开,并在 15% 可见度时触发一次。 - 动效:Hero 照片在滚动时移动不超过 40px,采用克制的视差效果;标题和控件保持静止。 - 动效:季节性行和共享清单变化以 160–220ms 交叉淡入淡出,不改变容器高度。 - 动效:抽屉和模态框使用 240ms ease-out 变换和淡入淡出,捕获键盘焦点,按 Escape 关闭,并将焦点恢复到其触发元素。 - 动效:悬停产品图片最多缩放至 1.025,按钮移动不超过 2px;所有非必要动画在减少动效模式下移除。 - 图像:将提供的六张纪实风格农场照片作为一个连贯的拍摄系列使用:温暖的金色时刻光线、柔和的森林绿、奶油色和赤陶色、逼真的纹理和柔和的 35mm 颗粒。首屏必须展示大型丰收场景,而不是仅展示排版。产品卡片使用提供的静物照片,故事部分使用环境工作肖像,不露出面部。不要添加其他照片、可识别的人物、图片内文字、标志或品牌包装。使用 object-fit 裁剪,同时保留主体,并提供列出的 alt 文本。 ## 页面与区块 ### 农场主页、季节、故事与活动(`index.html`) 1. **共享公告、页眉与页脚** — 在每个页面上,显示一条纤细的田野绿(Field-green)公告栏:'[CSA_SEASON] requests are open · Farm pickup and [PICKUP_AREA] collection points.' 其下方放置 [BRAND] 字标,配以原创的简洁三线犁沟 SVG,导航链接 'Seasons' 指向 ./index.html#seasons,'CSA Shares' 指向 ./csa.html,'Farm Shop' 指向 ./shop.html,'Our Story' 指向 ./index.html#story,'Visit' 指向 ./index.html#visit。右侧 CTA 文案为 'Build your box'。共享页脚包含 [BRAND]、[LOCATION]、'Farm shop Wed–Fri 10 AM–6 PM · Sat–Sun 9 AM–4 PM'、相同的文件名导航链接,以及可选的署名链接。 布局:公告栏高 34px。粘性页眉高 78px,背景为奶油色(Cream),不透明度 94%,带细底边框,内部行宽 1280px。桌面端采用左侧品牌、居中导航、右侧 CTA;移动端采用品牌、购物车数量,以及一个菜单按钮,点击后在页眉下方展开全宽面板。页脚为深绿色双栏区块,含大号品牌行与实用信息。 动效:页眉在滚动 24px 后获得细微阴影。移动端面板淡入并下滑 12px;减少动效模式下移除下滑效果。 2. **丰收主视觉** — 眉题:'A small farm for [PICKUP_AREA]'。标题:'Good food, grown close to home.' 正文:'Seasonal [FARM_FOCUS] from [BRAND], packed for your table and your week.' 主 CTA 'Choose your CSA share' 链接至 ./csa.html;次级 CTA 'Shop this week’s harvest' 链接至 ./shop.html。在图片下方添加小字说明:'Morning harvest · [LOCATION]'。一张紧凑的纸色(Paper)便签叠压在照片左下角,内容为 'IN THE BOX THIS WEEK' 和 'Leafy greens · roots · herbs · a pantry extra'。 布局:桌面端使用 12 栏、最小高度 680px 的主视觉:文案占五栏并垂直居中;主视觉丰收图占七栏,采用 4:3 画幅,左上角为 160px 拱形。标题最多保持四短行。移动端文案在前,全宽图片在后,每周便签定位在图片下边缘内部,而非覆盖标题。 动效:标题各行以 70ms 错峰显现,照片以裁剪遮罩从底部擦入。随后应用指定的最大 40px 图片视差。 3. **本周农场动态** — 三条简洁更新:'HARVEST / Rainbow chard, carrots, and basil are at their peak.' 'FARM SHOP / Order by Wednesday for a Friday pickup.' 'NEXT VISIT / Morning field walk · Saturday, 9:30 AM.' 每条均含指向相关区块或页面的文字链接。 布局:一条带边框的水平带,桌面端分为三个等宽栏,移动端堆叠为行。标签为 11px 大写并带字间距;更新内容使用 16px DM Sans。不使用图标卡片或额外容器。 动效:各行一起显现,仅带轻微不透明度淡入。 4. **时令农产品日历** — 眉题 'THE PRODUCE CALENDAR';标题 'Know what’s coming home.' 引言:'Harvest shifts with weather, but the rhythm stays useful. Explore a typical [CSA_SEASON] and plan your kitchen.' 提供 Spring、Summer、Autumn、Winter 标签页,初始选中 Summer。夏季行包括:Tomatoes / July–September / PEAK;Basil / June–September / PEAK;Sweet corn / July–August / COMING IN;Zucchini / June–August / PEAK;Carrots / June–October / AVAILABLE;Peppers / July–September / COMING IN。包含注释:'Typical harvest windows, not live inventory.' 相邻面板使用 csa-box.webp,标题为 'A high-summer box',列表为 'Tomatoes · basil · carrots · zucchini · eggs · one pantry surprise'。 布局:桌面端,八栏日历位于四栏照片面板旁。标签页构成单条带边框轨道,行使用三个对齐栏并留出宽裕的 18px 内边距,状态为带彩色圆点的小号大写标签,而非胶囊云。移动端标签页水平滚动,作物与状态保持可见,采收窗口移至作物名称下方。照片面板堆叠在下方。 动效:切换标签页时交叉淡入,各行在 180ms 内位移 8px,同时日历高度保持稳定。 5. **CSA 介绍** — 在田野绿背景上,眉题 'CSA, WITHOUT THE GUESSWORK',标题 'One farm. A box that fits your week.',文案 'Choose your size, pickup point, and rhythm. Every share follows the harvest and includes a useful pantry extra.' 展示三个步骤:'01 Pick your box — Little, Kitchen, or Family.' '02 Choose pickup — Farm gate or a neighborhood point.' '03 Cook with the season — A crop note and simple use ideas in every box.' CTA 'Build your [CSA_SEASON]' 链接至 ./csa.html#share-builder。包含 'From $24 per box · pause or change before the next packing day.' 布局:12 栏分割,csa-box.webp 裁剪为安静的五栏图片,文字占七栏。步骤之间以纤细的半透明水平分隔线隔开,而非独立卡片。移动端文字先于图片,所有 CTA 变为全宽。 动效:三个步骤依次显现;无固定滚动。 6. **农场商店预览** — 眉题 'FROM THE FARM STAND';标题 'Good things for the weekly table.' 引言 'A short shelf of what we grow and make, ready for local pickup.' 展示四款产品,数据与购物车行为与 shop.html 相同:Weekly Harvest Basket 每份 $28;Pasture-Raised Eggs 每打 $7;Orchard Preserves 每 9 oz 罐 $9;Stone-Milled Farm Loaf 每条 $8。每款均有 'Add to pickup order' 按钮。链接 'Browse the whole farm shop' 指向 ./shop.html。 布局:桌面端四个等宽产品栏,平板两个,移动端一个。图片为正方形并带细微底边框;名称与价格共享基线行,单位与简短供应说明位于下方。不要将每款产品包裹在厚重的浮动卡片中。 动效:添加产品时按钮短暂变为 'Added' 并更新页眉购物车数量;仅当访客激活购物车控件时购物车抽屉才打开。 7. **农场故事** — 锚点 id 'story'。眉题 'ROOTED HERE';标题 'Small fields. Long relationships.' 文案:'We farm 14 acres outside North Elms, growing 32 crop varieties in rotation and keeping the shop stocked with a few things we use in our own kitchen.' 第二段:'Mara Ellison leads the growing work and Theo Bennett runs packing days. Their rule is simple: harvest close, pack carefully, and tell people exactly what is in the box.' 添加三个事实标记:'14 acres in rotation'、'32 crop varieties'、'4 seasons of farm visits'。CTA 'Meet us at the farm' 链接至 #visit。当变量变化时重写姓名、数字与地区细节。 布局:使用 farmer-at-work.webp 于五栏 3:4 画幅,故事文案占七栏。标记在文案下方形成三栏带分隔线的行。移动端图片位于文字上方,采用 4:3 裁剪,农夫仍居中。 动效:肖像以柔和裁剪遮罩显现;标记一起淡入。 8. **农场参观活动** — 锚点 id 'visit'。眉题 'COME BY';标题 'See where your food grows.' 引言 'Small-group visits at [LOCATION]. Dress for the field and bring a water bottle.' 活动行:'JUN 13 · Morning field walk · 9:30–11:00 AM · Free · 12 places · A guided loop through the growing fields and pack shed.' 'JUN 27 · Summer pickling workshop · 2:00–4:00 PM · $18 · 10 places · Make one jar to take home; ingredients and tools included.' 'JUL 11 · Farm-table picnic · 5:30–8:00 PM · $32 · 24 places · A casual shared menu served beside the lower field.' 每个 CTA 文案为 'Reserve a place',并打开一个模态框,含姓名、邮箱、同行人数及所选活动。验证为内联;确认信息为 'Your event request is saved on this device.' 布局:区块标题占四栏,活动占八栏。每个活动为带分隔线的行,含 72px 日期块、标题与详情,以及右对齐 CTA。移动端行堆叠日期、标题、元数据与全宽 CTA。模态框居中,最大宽度 520px,背景为纸色(Paper)。 动效:活动行以 60ms 错峰显现;模态框使用标准 240ms 过渡。 ### CSA 份额配置器与自提指南(`csa.html`) 1. **CSA 主视觉区** — 眉题 '[CSA_SEASON]';主标题 'Your share of the season.' 正文 'A weekly or every-other-week box of [FARM_FOCUS], packed at [BRAND] for [PICKUP_AREA].' 主 CTA 'Choose your share' 锚定到 #share-builder;次 CTA 'See the produce calendar' 链接到 ./index.html#seasons。包含三条安心提示:'Three useful sizes'、'Four pickup choices'、'Change before packing day'。 布局:一个紧凑的 420px 编辑式主视觉区,文案占七列,csa-box.webp 的裁剪图占五列。共享的公告栏和页头保持在其上方可见。移动端图片以 4:3 比例跟随其后,安心提示折为单列。 动效:仅使用标准的标题和图片显现效果;不添加额外的视差效果。 2. **交互式份额构建器** — 锚点 id 'share-builder'。标题 'Build a box around your week.' 第 1 步提供 Little Share,每箱 $24,'1–2 people · 5–6 harvest items';Kitchen Share,每箱 $34,'2–3 people · 7–8 harvest items';Family Share,每箱 $44,'4–5 people · 10–12 harvest items'。Kitchen Share 初始为选中状态。第 2 步提供 Farm Gate at [LOCATION],周六 9 AM–12 PM,无费用;North Elms Library,周三 4–6 PM,无费用;Upper Valley Co-op,周五 3–6 PM,$2 手续费;Meadow Market Hall,周日 10 AM–1 PM,无费用。第 3 步提供 Weekly 或 Every other week。实时摘要显示所选规格、自提点、频率、按比例缩放的产品清单、含手续费的每箱总价,以及按每周四箱或每两周两箱估算的月度总价。姓名和邮箱字段为必填并经过验证。最终按钮文字为 'Save my share plan';成功提示为 'Your share plan is saved on this device. No payment has been collected.' 包含 'Harvest substitutions are normal; the final box follows the field.' 布局:桌面端三个步骤占七列,一个粘性的五列摘要保持在页头下方。选项为带边框的大行,右侧有单选指示器和价格;选中行使用 Sage 色和 2px Field 边框。摘要为 Paper 色,14px 圆角,包含一条小型 csa-box 图片条、分项总计和全宽 CTA。移动端摘要跟随在步骤之后,不粘性。 动效:选项选择即时响应;清单行交叉淡入淡出,总价使用 150ms 的短暂透明度变化。保存时显示内联成功面板,而非浏览器弹窗。 3. **一季三箱** — 标题 'The box changes. The habit stays.' 展示三份示例清单:'Early summer / Snap peas, baby lettuce, spring onions, radishes, herbs, eggs, farm loaf.' 'High summer / Tomatoes, zucchini, basil, carrots, peppers, eggs, orchard preserves.' 'Early autumn / Winter squash, potatoes, kale, onions, apples, eggs, farm loaf.' 注释:'Examples show the Kitchen Share. Quantities scale with your selected size.' 布局:桌面端三个等宽的编辑式栏目,用竖线分隔;移动端用横线分隔。每栏有一个大号 01/02/03 序号、季节标题和可读的逗号分隔清单;不添加额外照片或图标卡片。 动效:栏目在进入时以短暂错峰效果显现。 4. **自提与灵活性** — 标题 'Pickup should be the easy part.' 四条说明:'Bring a bag — We pack in returnable crates.' 'Running late — Farm-gate boxes stay in the cool room until 6 PM.' 'Away for a week — Change your rhythm before the next packing day.' 'Send a friend — Add their name to your saved plan.' 包含一条简单的三步流程:'Choose your point → Look for your name → Take your box home.' 布局:一个 Sage 色调的区块,上方为四列说明网格,下方为宽幅带分隔线的三步流程。移动端使用两列说明网格,步骤堆叠,箭头旋转朝下。 动效:静态内容,仅使用标准区块显现效果。 5. **CSA 常见问题** — 五个无障碍手风琴条目:'What if I do not recognize a crop?' — Every box includes a short crop note with storage and preparation ideas. 'Can I switch box sizes?' — Yes; save a new plan before the next packing day. 'Is the monthly total a charge?' — No; it is an estimate from your selected rhythm. No payment is collected by this site. 'What happens in a poor harvest week?' — A comparable crop or pantry item replaces the missing item and the packing note explains the change. 'Do I need to return the crate?' — Return it at the next pickup so it can go back into circulation. 布局:一个窄幅 860px 的手风琴,行高 20px,使用 Lucide 图标,末尾有一个指向 ./shop.html 的链接,标签为 'Rather shop one week at a time?' 动效:手风琴高度和加号旋转以 200ms 动画过渡;减少动效模式下立即展开。 ### 农场商店与本地自提购物车(`shop.html`) 1. **商店主视觉区与控件** — 眉题 '[BRAND] FARM SHOP';主标题 'Good things from nearby fields.' 正文 'A short, changing shelf of [FARM_FOCUS] and kitchen staples. Save your order for local pickup.' 控件为分类标签 All、Produce、Pantry、Bakery 以及排序菜单 Featured、Price low to high、Price high to low。页头购物车按钮始终显示当前商品数量。 布局:一个 320px 以文字为主的主视觉区,右侧有一条细的植物纹理 SVG,而非另一张大图。控件在主视觉区下方形成一条粘性的 64px 行,移动端可横向滚动,桌面端排序控件右对齐。 动效:筛选变化时网格交叉淡入淡出,不单独动画化每个商品在页面上的移动。 2. **商品网格与快速查看** — 商品 1:Weekly Harvest Basket,Produce,每个 $28,csa-box.webp,'About 8 lb of mixed seasonal produce',徽章 'PACKED FRIDAY'。商品 2:Pasture-Raised Eggs,Produce,每打 $7,farm-eggs.webp,'One dozen mixed-color eggs',徽章 'FARM GATE'。商品 3:Orchard Preserves,Pantry,每 9 oz 罐 $9,orchard-preserves.webp,'Small-batch fruit preserve with cane sugar',徽章 'PANTRY'。商品 4:Stone-Milled Farm Loaf,Bakery,每条 $8,farm-loaf.webp,'Naturally leavened; contains wheat',徽章 'SATURDAY ONLY'。商品名称或图片打开快速查看模态框,包含更大的图片、描述、单位、过敏原或储存说明、数量步进器和添加按钮。变量变化时重写商品详情。 布局:宽桌面使用四列网格,平板两列,移动端一列。每个商品有方形图片、分类标签、名称、单位详情和对齐的价格。快速查看在桌面端为 760px 两列模态框,移动端为单列底部面板。 动效:商品悬停使用指定的 1.025 图片缩放;快速查看遵循共享模态框行为。 3. **自提购物车抽屉与已保存订单** — 购物车抽屉列出所选商品,带数量步进器、移除操作和实时小计。空状态:'Your pickup basket is empty.' 自提选项复用 Farm Gate、North Elms Library、Upper Valley Co-op 和 Meadow Market Hall 及其时间和费用。'Review pickup order' 显示紧凑的订单摘要并要求姓名和邮箱。'Save pickup order' 将订单存储在此设备上并显示 'Your pickup order is saved on this device. No payment has been collected.' 绝不暗示订单已传输或已付款。 布局:桌面端为 440px 右侧抽屉,移动端全宽,带固定页头、可滚动商品列表和底部小计与 CTA 区域。审核时替换抽屉内容,同时保留清晰的返回按钮。焦点被限制直到关闭。 动效:抽屉从右侧滑入,历时 240ms,带暗色背景;数量和小计更新短暂淡入淡出。 4. **自提说明** — 标题 'A few things before pickup.' 三条说明:'Order rhythm — Save your list by Wednesday for the best Friday selection.' 'What to bring — A reusable bag and your saved order screen.' 'Questions about allergens — Product notes list sample ingredients; always check with the farm before purchasing.' 添加共享的农场商店营业时间和 [LOCATION]。 布局:一个 Cream 色区块,三列带分隔线,底部有一条全宽的位置条。移动端所有说明堆叠,间距 24px。 动效:仅标准显现效果。 ## 资源 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/hero-harvest.webp 下载到 public/images/hero-harvest.webp。Alt:'A wooden crate of mixed seasonal produce beside rows on a small farm at golden hour.' 用作首页丰收主视觉图。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/csa-box.webp 下载到 public/images/csa-box.webp。Alt:'A wooden CSA box filled with leafy greens, vegetables, herbs, and fruit.' 用于时令日历、CSA 区块和 Weekly Harvest Basket 产品。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farm-eggs.webp 下载到 public/images/farm-eggs.webp。Alt:'Brown and cream eggs in a plain pulp carton on a wooden farm-shop shelf.' 用于商店和快速查看中的 Pasture-Raised Eggs。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/orchard-preserves.webp 下载到 public/images/orchard-preserves.webp。Alt:'Three jars of amber orchard preserves with blank labels on a wooden table.' 用于商店和快速查看中的 Orchard Preserves。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farm-loaf.webp 下载到 public/images/farm-loaf.webp。Alt:'A round rustic sourdough loaf on a linen-covered farm-shop counter.' 用于商店和快速查看中的 Stone-Milled Farm Loaf。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图片:将 https://media.vibefather.ai/assets/e18be6d4-25ab-4c85-83b8-d1ca8f6dbe52/farmer-at-work.webp 下载到 public/images/farmer-at-work.webp。Alt:'A farmer seen from behind carrying a harvest crate between crop rows.' 用于首页农场故事。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发。 - 图标:仅使用本地安装的 lucide-react 图标,用于菜单、购物车、箭头、加号、减号、关闭、日历和自提标记;许可证 ISC。直接在 SVG 中绘制原创的三线犁沟品牌标志。将两者都记录在 ASSETS.md 中。 - 字体:通过 @fontsource-variable/fraunces 自托管 Fraunces Variable,通过 @fontsource-variable/dm-sans 自托管 DM Sans Variable,两者均为 OFL-1.1。在本地导入这些包并记录在 ASSETS.md 中;不要使用字体 CDN。 ## 禁止事项(Don'ts) - 不得使用任何真实农场的名称、标志、字标、口号、原文文案、产品标签、包装、标志性插画、吉祥物、独特图标、自定义字体或完全一致的参考配色;所有品牌与业务内容必须保持虚构且原创。 - 不得复制参考代码、提示词、图像、视频或布局,超出此处描述的高层信息结构范围。 - 不得包含可识别的人物、名人肖像、品牌产品、被用作品牌的知名地标、动漫或游戏角色,或任何第三方标志。 - 不得添加来自 Unsplash、Pexels、Pixabay、Google Images、占位图服务或任何未明确允许来源的图库图片;仅使用提供的六张生成照片以及本地 SVG 或 Lucide 图标。 - 不得热链资源、加载 CDN 脚本或样式表、使用远程字体、添加分析统计或发起第三方 API 调用;每个运行时资源都必须为本地资源。 - 不得创建后端、数据库、身份验证、服务器路由、真实结账、支付收集或传输数据的表单;localStorage 保存与设备端确认必须准确说明实际发生了什么。 - 不得使用商业字体或缺少许可证、非商业、相同方式共享或其他受限许可证的依赖项。 - 不得输出 source map、将 src 复制到 dist、使 dist 超过 20 MB,或要求超过单条 npm run build 命令。 - 不得使用裸目录内部链接;链接到 ./index.html、./csa.html、./shop.html 或已记录的同一页面锚点,并保持所有资源路径为相对路径。 - 不得引入水平溢出、控制台错误、不可访问的焦点状态或忽略 prefers-reduced-motion 的动效;在 1440×900 和 390×844 下验证。 - 不得添加 SEO 元数据、结构化数据、站点地图、Open Graph 标签或关键词堆砌内容;一个普通的变量感知标题和本地 favicon 即可。 - 除可选的页脚署名链接外,不得在站点内提及 VibeFather,且绝不要将 VibeFather 用作变量默认值。 --- — Prompt by VibeFather · https://vibefather.ai/t/farm-shop-and-csa-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Farm Shop and CSA Website"
colors:
field: "#24362A"
ink: "#30352D"
cream: "#F3EDDF"
paper: "#FFFBF2"
sage: "#D7DFC8"
terracotta: "#A94328"
pollen: "#E8B44F"
typography:
display_and_section_headings: { family: "Fraunces Variable", weights: [400, 500, 600] }
body_navigation_controls_and_data: { family: "DM Sans Variable", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base grid, a 1280px maximum content width, 32px desktop gutters and 20px mobile gutters. Desktop sections have 104–128px vertical padding; mobile sections have 64–76px. Hero headline is clamp(3.5rem, 6vw, 6.5rem) with 0.94 line-height, section headings are clamp(2.25rem, 4vw, 4rem), and body copy stays within 62 characters per line."
radius: "Use restrained 2px radii on buttons and inputs, 14px on product and summary surfaces, and one distinctive 160px upper-left arch on the hero photograph. Use 1px Field borders at 18% opacity and soft, short shadows rather than floating every section in a card."
---
# Farm Shop and CSA Website — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Field** `#24362A` — Deep green header, footer, primary text, and dark section background
- **Ink** `#30352D` — Body copy and readable secondary text
- **Cream** `#F3EDDF` — Main page background
- **Paper** `#FFFBF2` — Product surfaces, forms, and calendar rows
- **Sage** `#D7DFC8` — Selected controls, subtle bands, and availability accents
- **Terracotta** `#A94328` — Primary buttons, active links, and key prices; pair with white text
- **Pollen** `#E8B44F` — Small seasonal markers and decorative highlights only
## Typography
- **Display and section headings** — Fraunces Variable (OFL), weights 400/500/600. Self-host the font files.
- **Body, navigation, controls, and data** — DM Sans Variable (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use an 8px base grid, a 1280px maximum content width, 32px desktop gutters and 20px mobile gutters. Desktop sections have 104–128px vertical padding; mobile sections have 64–76px. Hero headline is clamp(3.5rem, 6vw, 6.5rem) with 0.94 line-height, section headings are clamp(2.25rem, 4vw, 4rem), and body copy stays within 62 characters per line.
- Radius: Use restrained 2px radii on buttons and inputs, 14px on product and summary surfaces, and one distinctive 160px upper-left arch on the hero photograph. Use 1px Field borders at 18% opacity and soft, short shadows rather than floating every section in a card.
## Motion
- Reveal major section headings and content with a 24px upward movement and opacity transition over 500ms, staggered by 70ms and triggered once at 15% visibility.
- Move the hero photograph no more than 40px on scroll with a restrained parallax effect; keep the headline and controls stationary.
- Crossfade seasonal rows and share-manifest changes in 160–220ms without changing container height.
- Drawers and modals use a 240ms ease-out transform and fade, trap keyboard focus, close on Escape, and restore focus to their trigger.
- Hover product images scale to at most 1.025 and buttons shift by no more than 2px; all nonessential animation is removed for reduced motion.
## Imagery
Use the six supplied documentary-style farm photographs as one coherent shoot: warm golden-hour light, muted forest green, cream and terracotta, realistic textures, and gentle 35mm grain. The first screen must show the large harvest scene, not typography alone. Product cards use the supplied still lifes, and the story uses the environmental working portrait with no visible face. Do not add other photos, recognizable people, text within images, logos, or branded packaging. Crop with object-fit while preserving the subject and supply the listed alt text.
## Tone
Warm, plain-spoken, capable, and rooted in daily farm work. Use concrete crop names, quantities, prices, hours, and pickup instructions; avoid rustic clichés, health claims, sustainability superlatives, and faux handwritten slogans.
---
— Prompt by VibeFather · https://vibefather.ai/t/farm-shop-and-csa-website · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 家庭果园:将 FARM_FOCUS 设为苹果、梨和苹果酒,将季节性日历换成你的采摘月份,并将商店产品重写为水果箱和果酱。
- 市集菜园合作社:将 PICKUP_AREA 指向你的城镇收集点,重命名 CSA_SEASON,并在农场故事部分列出每位成员种植者。
- 乳制品和鸡蛋农场:将 FARM_FOCUS 改为牛奶、奶酪和牧场散养鸡蛋,然后用你每周的乳制品清单替换 CSA 箱内容和商店常备商品。
- 举办工作坊的农场:保留参观活动部分,为你自己的课程设置时间和容量,并将预订链接到你的邮件列表,而不是仅设备端确认。
农场商店与 CSA 网站:常见问题
农场商店与 CSA 网站上的 CSA 份额配置器如何工作?
农场商店与 CSA 网站模板的 CSA 页面以一个客户端配置器为核心。访客选择箱型、取货点和频率,内容物、每箱价格和预计月总额会立即更新。所选的份额计划通过 localStorage 保存在浏览器中,因此无需后端或支付服务,确认信息也诚实地说明仅限设备端。
我可以在农场商店与 CSA 网站模板上接单和收款吗?
农场商店与 CSA 网站模板完全在浏览器中处理订购。商店页面包含分类筛选、商品快速查看、持久购物车和取货选择,并显示设备端订单确认而非处理支付。没有后端也没有支付服务,所以如果你需要真实交易,需要接入自己的结账流程或通过电子邮件接单。
农场商店与 CSA 网站模板免费吗,Pro 增加了什么?
农场商店与 CSA 网站模板是免费的。其提示词和 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途。商业或客户项目需要 Pro,会员还可获得完整提示词和演示的源代码。无论哪种方式,模板页面都会公开展示简介、技术栈和变量。
怎么用 AI 做一个农场商店与 CSA 网站?
复制本页的提示词,或者运行 npx vibefather add farm-shop-and-csa-website,把 [BRAND]、[LOCATION]、[CSA_SEASON]、[FARM_FOCUS] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
农场商店与 CSA 网站模板的演示是哪个 AI 模型做的?
演示由 Kimi K3.1 Pro 在 Kimi Code 里完成;另一个案例由 DeepSeek V4.1 Flash 在 DeepSeek Harness 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。