用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
每日塔罗占卜页面是一个单页网页小工具,围绕一套原创的六张牌符号牌组构建。访客可以洗开扇形展开的牌组,揭晓一张每日牌,或展开过去、现在、未来的三张牌阵,然后阅读简洁的正位或逆位解读。每日抽牌会按本地日期保存在浏览器中,而三张牌阵可以反复查看。内置的 canvas 可生成可下载的占卜卡片,内容不会发送到任何服务。
视觉方向是烛光与星辰感,而非戏剧化:深墨色表面、羊皮纸质感字体、精致的古金色线条,以及六幅风格统一的水粉插画。Cormorant Garamond 标题与实用的 Manrope 标签形成对比。占卜桌是页面主体,因此首屏就包含牌组、模式控件和清晰的操作入口。分层洗牌与透视翻转赋予卡片重量感,同时提供减少动态效果的替代方案和适合触控的控件。
这个模板适合创作者、设计师和小型项目,他们想要一种反思性的互动体验,而不是传统的落地页。它也可以改造成神谕卡组、肯定语仪式、日记提示或其他轻量的每日抽牌。
变量涵盖品牌、邀请语、受众、牌组名称和反思主题。牌名、解读、提示词、指南文案和常见问题都集中在一个内容文件中,因此整体替换内容非常直接。分享布局、本地持久化和占卜状态均作为构建的一部分进行了规范。一切以静态 React 站点运行,使用本地字体和图片;没有账户、API、预测或外部表单提交。清晰的仅供娱乐免责声明让体验始终定位为 playful 的反思提示。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Daily Tarot Reading Page Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build a polished single-page tarot reading toy for the invented brand [BRAND], using the original six-card [DECK_NAME]. The default invitation is '[TAGLINE]' for [AUDIENCE], with reflections centered on [REFLECTION_FOCUS]. Visitors shuffle a tactile fan of card backs, reveal either a persistent daily card or a three-card past-present-future spread, read original upright or reversed interpretations, and download a canvas-rendered share image. This is an original symbolic deck, not a reproduction of a traditional or commercial tarot deck. - Audience: The primary audience is [AUDIENCE]: adults who enjoy beautiful interactive objects, journaling prompts, and a brief daily ritual. It also suits designers and creators adapting the format for affirmations, oracle cards, or creative reflection. No prior tarot knowledge is expected. - Goal: Get a first-time visitor from an intriguing visual deck to a complete, understandable reading in two deliberate actions. Make the daily card stable across reloads for the visitor's local day, make three-card readings freely repeatable, and provide a useful downloaded keepsake while keeping every interaction private and client-side. - Tone: Quiet, poetic, grounded, and non-directive. Use precise reflection prompts rather than prophecy. Never claim to predict the future or advise on health, money, relationships, or safety. A visible 'For entertainment and reflection only' note is part of the experience, not hidden fine print. ## Stack - Framework: Vite 6 + React 18 + TypeScript - Styling: Vanilla CSS with custom properties - Libraries: react (MIT), react-dom (MIT), vite (MIT), typescript (Apache-2.0), lucide-react (ISC), @fontsource/cormorant-garamond (OFL-1.1), @fontsource/manrope (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Create a Vite 6 React 18 TypeScript project. Set base: './', build.outDir: 'dist', and build.sourcemap: false in vite.config.ts. Use no router and no backend. - Keep all variable values, derived brand copy, six card records, upright and reversed meanings, reflection prompts, instructions, and FAQs in src/content.ts. When variable values change, rewrite every dependent headline, label, storage-key namespace, meaning, and prompt to fit [BRAND], [TAGLINE], [AUDIENCE], [DECK_NAME], and [REFLECTION_FOCUS]; do not leave default-brand remnants. - Self-host Cormorant Garamond 500 and 600 and Manrope 400, 500, 600, and 700 through the listed Fontsource packages. Import only the required weights in src/main.tsx. - Implement the design in src/styles.css with custom properties, an 8px spacing system, named shuffle and flip keyframes, and explicit desktop and mobile layouts. Use inline CSS or a local SVG for subtle paper grain; do not fetch a texture. - Use Lucide icons for interface actions only: Sparkles for the original geometric brand accent, RotateCcw for shuffle, Download for share, ArrowRight for the primary action, X for close, and ChevronDown for expandable explanations. Do not use any brand or suit icons. - Define the reading interaction as an explicit state machine: idle, shuffling, ready, revealing, and revealed. Clear pending animation timers on reset or mode change so rapid taps cannot create duplicate draws. - Use local browser dates, not UTC dates, for the daily reading. Namespace the localStorage key from a slug derived from [BRAND] and the local YYYY-MM-DD date. Store a versioned object containing date, card id, orientation, and mode; validate restored data and recover silently from malformed storage. - Implement the downloadable share image with the native Canvas 2D API at 1080 × 1350 pixels, including a text-wrapping helper and a toBlob download. No screenshot service, canvas dependency, Web Share requirement, or remote request is needed. - Download the six generated card illustrations to the exact public paths listed in Assets before building. Reference them with relative-safe public URLs and create ASSETS.md with every asset path, source, author or generator, and license. ## Variables - [BRAND] — Brand (default: "Asterhollow"). An invented, elegant two- or three-syllable name for the reading experience. - [TAGLINE] — Invitation line (default: "A quiet card for the day ahead."). One short non-predictive invitation to pause and reflect. - [AUDIENCE] — Audience (default: "curious minds who enjoy a nightly reflection ritual"). A plain-language phrase describing who the ritual is for. - [DECK_NAME] — Deck name (default: "The Night Field Deck"). An original name for the six-card symbolic deck. - [REFLECTION_FOCUS] — Reflection themes (default: "creativity, relationships, and everyday choices"). Three approachable themes used to adapt the card meanings and prompts. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/daily-tarot-reading-page 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 - Midnight ink `#0C0B12` — Page background and share-canvas ground - Raised aubergine `#17131E` — Reading table, dialogs, and elevated panels - Soft plum `#241A29` — Card backs, hover surfaces, and subtle gradient fields - Parchment `#F2E8D5` — Primary text and light card details - Muted lavender `#B9ACBE` — Secondary copy and inactive controls - Antique gold `#D5B77D` — Fine rules, active states, focus rings, and primary-button background - Deep gold ink `#21180D` — Text on antique-gold buttons - Hairline plum `#433348` — Borders and dividers at low visual weight ### Typography - Display, card names, and reading quotations: Cormorant Garamond (OFL), weights 500/600 - Body, controls, labels, and interpretation text: Manrope (OFL), weights 400/500/600/700 ### Layout & motion - Spacing: Use an 8px base grid. The content shell is max-width 1240px with 32px desktop and 20px mobile side padding. Header height is 76px. Desktop sections have 104px vertical padding; mobile sections have 64px. Hero copy and reading table are separated by 64px on desktop and 36px on mobile. Keep reading prose at 62–68 characters per line. - Radius: Use 28px for large reading and share panels, 18px for physical cards and small content panels, and 999px for segmented controls and buttons. Physical cards have a strict 3:4 aspect ratio, a 1px antique-gold border at 45% opacity, and a soft 0 24px 70px rgba(0,0,0,.38) shadow. - Motion: On Shuffle, collapse the six-card fan into a stacked deck over 240ms, split alternating cards left and right in three 180ms passes, then return to a fan over 300ms. Disable controls during the 1.1s sequence and use transform and opacity only. - Motion: On Reveal, move the selected card or cards from the deck into their reading positions over 320ms, then rotate each inner card from rotateY(0deg) showing its back to rotateY(180deg) showing its face over 680ms. Stagger three-card flips by 140ms. Use perspective: 1200px, transform-style: preserve-3d, and backface-visibility: hidden. - Motion: Use restrained 180ms hover lifts of at most 6px, border-color changes, and icon rotations. Never make the whole page drift or add a custom cursor. - Motion: Scroll reveals are optional only for the guide and deck sections: 16px upward movement with a 450ms ease-out transition, once per section, without delaying access to content. - Motion: With prefers-reduced-motion: reduce, remove fan movement, stagger, parallax, smooth scrolling, and 3D rotation. Show the next state immediately with a 100ms opacity change at most; all reading functions remain available. - Imagery: Use exactly six original generated gouache-and-gold-ink symbolic illustrations, one for each card in [DECK_NAME]. Every image is full-bleed inside a code-built 3:4 card frame with no generated typography or border. The shared visual language is textured midnight indigo, charcoal, dusty plum, parchment, and muted antique gold, with soft candlelit illumination and fine woodblock-like grain. Do not imitate any existing tarot deck. The card back is separately drawn in CSS/SVG from original concentric lines, a central eight-point star, and six small orbital dots; it uses no generated image. The interactive fanned deck is the hero's visual anchor, not typography alone. ## Pages & Sections ### [BRAND] — [TAGLINE] (`index.html`) 1. **Header and reading hero** — Create a compact header with an original eight-point-star Lucide/CSS accent, [BRAND] in Cormorant Garamond 600, and two anchor links labeled 'The deck' and 'How it works'. At the right place a small pill reading 'For entertainment & reflection'. On mobile keep the brand and pill, and place the two links below in a 44px-high row. The hero eyebrow is '[DECK_NAME] · AN ORIGINAL SIX-CARD DECK'. The default H1 is 'One quiet moment. A different perspective.' Put [TAGLINE] directly below, followed by 'A reflective ritual for [AUDIENCE], exploring [REFLECTION_FOCUS]. No sign-up. Your reading stays in this browser.' Use a two-option segmented control labeled 'Daily card' and 'Three cards'. Daily-card helper text says 'One card, held for your local day.' Three-card helper text says 'Past, present, and future — a fresh spread whenever you choose.' The initial primary button says 'Shuffle the deck'; after shuffling it says 'Reveal today's card' or 'Reveal three cards'. A secondary 'How it works' anchor scrolls to the guide. Layout: Use a 12-column hero grid inside the 1240px shell, with copy and controls spanning 5 columns and the reading table spanning 7. Set the H1 at clamp(48px, 5.7vw, 80px), line-height .96, letter-spacing -.035em. The reading table is a 600px-high rounded panel with a subtle radial plum glow, a fine border, and six visible card backs fanned from a shared lower-center origin. Each back is 190 × 285px; use rotations of -18, -11, -4, 4, 11, and 18 degrees and horizontal offsets from -150 to 150px. At 390px, stack copy above a 380px-high table, use 92 × 138px backs, and reduce rotations to -12, -7, -2, 2, 7, and 12 degrees so no card overflows. Keep the primary action above the table on mobile and all tap targets at least 44px. Motion: The fan enters with a 500ms opacity and 12px rise. Shuffle and reveal follow the state machine in Design. Mode switching returns transient three-card state to idle, while an existing daily reading remains available and is restored rather than redrawn. 2. **Interactive reading and interpretation** — This is the live result area inside and immediately below the reading table, not a separate route. Before a draw show the instruction 'Shuffle, then turn your card face-up.' In daily mode reveal exactly one card and save its id and upright/reversed orientation for the local day. Reloading on that day must show the same result even after a mode switch. Use a date-seeded first draw, then persist it; do not use a remote random service. In three-card mode draw three distinct cards with Fisher–Yates shuffling and independently assign a 25% chance of reversed orientation. Label their positions 'Past', 'Present', and 'Future'. A 'Shuffle a new spread' button resets only the three-card reading. For every result show card name, orientation, a 25–45 word interpretation, and a separate reflection prompt. Rotate only the illustration 180 degrees for reversed cards; keep all labels upright. The default reading language must come from the six original card records in the deck section, not generic fortune-telling text. Layout: For daily mode on desktop, place the revealed 240 × 360px card at left and its interpretation in a 360px-wide column at right with a thin gold rule and 'TODAY'S CARD' eyebrow. For three cards, use a three-column card row with 170px maximum card width, position labels above, then show three aligned interpretation panels below. On mobile, daily interpretation sits below a centered 210px card; three cards remain a three-column row with equal widths and 8px gaps, while interpretation panels stack as expandable details with the first open. Use aria-live='polite' for the completed reading heading and move focus to it after the final flip. Motion: Reveal the selected cards with the specified 3D flips. Interpretation text fades in only after its card finishes. Reversed orientation is assigned before animation and must never change on rerender or reload. 3. **How the ritual works** — Title the section 'A small pause, in three turns.' Use three numbered steps: '01 — Shuffle' / 'Let the cards gather, separate, and settle. There is nothing to get right.'; '02 — Turn' / 'Choose one card for today or three cards for a wider view. Reversed cards offer another angle, not a warning.'; '03 — Reflect' / 'Keep the sentence or question that feels useful. Let the rest go.' Add a compact explanation strip for three-card positions: 'Past — what you carry in', 'Present — what asks for attention', 'Future — what you might practice next'. This language frames possibility, never prediction. Layout: Place the section heading in a narrow left column and three step panels in a stacked right column. Each step is a grid of 64px number, 150px title, and flexible description separated by hairlines. The position strip spans the full width below as three equal cells. On mobile, stack heading and steps, keep each step's number and title on one line, and stack the three position cells without horizontal scrolling. Motion: Use only a subtle one-time section reveal and 180ms border highlight on hover or keyboard focus. Do not pin this section or scrub its content. 4. **Meet the original deck** — Title the section 'Six symbols. Another way in.' Introduce [DECK_NAME] as a compact original deck created for [REFLECTION_FOCUS]. Each card is a button that opens its full upright and reversed text in a native dialog. Use these default records verbatim for the default variables, adapting them naturally for alternate variables: The Ember — upright: 'Protect the small beginning. Give one idea your attention before asking it to become more.' reversed: 'Your energy may be scattered. Lower the stakes and return to one warm, manageable task.' prompt: 'What deserves a little more of my care today?'. The Current — upright: 'Let circumstances move without gripping every outcome. A flexible next step will carry farther than a rigid plan.' reversed: 'Notice where resistance has become habit. Change one condition rather than pushing harder.' prompt: 'Where can I allow an easier route?'. The Threshold — upright: 'A useful transition is near, but it asks for a deliberate choice. Name what you are ready to leave and what comes with you.' reversed: 'Pause before forcing closure. An unanswered question may need information, not urgency.' prompt: 'What am I truly ready to step toward?'. The Garden — upright: 'Small routines are shaping more than you can see. Tend the environment around your goal, not only the goal itself.' reversed: 'Something needs pruning. Remove one obligation or distraction before adding another.' prompt: 'What would help my better habits take root?'. The Mirror — upright: 'Look at the story you are telling about yourself. Keep what is honest and soften what is merely familiar.' reversed: 'Avoid using self-reflection as self-judgment. Ask for a kinder, more complete interpretation.' prompt: 'Which assumption about myself can I revisit?'. The Orbit — upright: 'Return to the people and practices that restore perspective. You do not have to solve everything from the center of the problem.' reversed: 'You may be circling the same thought. Change your setting or seek another viewpoint.' prompt: 'What helps me see the wider pattern?'. The dialog also shows 'Upright', 'Reversed', and 'A question to carry' headings. Layout: Use a six-column desktop gallery with 16px gaps; each card contains its 3:4 illustration, number 01–06, and name beneath. At tablet use three columns and at 390px use two columns with 12px gaps. The native dialog is max-width 760px with the card image at left and scrollable meanings at right, a visible X button, Escape support, focus trapping, and focus return to the invoking card. At mobile, dialog image and meanings stack within 90svh. Motion: Cards lift no more than 6px and brighten their gold border on hover/focus. Dialog entry is a 160ms opacity and 8px rise; reduced-motion users get an immediate dialog. 5. **Share-card studio** — Title the section 'Keep the thought, not the fortune.' Explain: 'Turn your revealed reading into a private image. It is drawn on your device and never uploaded.' Before a reveal, disable the download button and show 'Reveal a card to create your image.' After either reading, enable 'Download reading card'. The 1080 × 1350 PNG contains [BRAND], [DECK_NAME], the visitor's localized date, the card art and names, orientations, one shortened interpretation per card, and the first reflection prompt. A daily layout uses one large centered illustration; a three-card layout uses three narrow illustrations above 'Past · Present · Future'. End the image with 'For entertainment and reflection only'. Generate the filename from the derived [BRAND] slug and local date, such as 'asterhollow-2026-11-05.png', never a hard-coded default brand. Layout: Use a two-column section with explanation and download controls at left and a live responsive canvas preview at right. The canvas element has a 4:5 CSS aspect ratio, max-width 440px, rounded 24px border, and exact internal dimensions of 1080 × 1350. Draw parchment text on midnight ink, fine gold frames, and the already-downloaded local images after they have loaded. Wrap text explicitly, clip artwork neatly, and wait for image decoding before enabling download. On mobile, stack controls above the centered preview. Motion: Crossfade the updated canvas preview over 180ms after reveal. Show a small inline 'Image ready' state and preserve the download button's width when its label changes. 6. **Questions, disclaimer, and footer** — Title the FAQ 'Before you turn a card.' Include these four exact default questions and answers: 'Does this predict my future?' — 'No. The cards are original visual prompts for entertainment and reflection. They do not predict events and are not medical, mental-health, legal, or financial advice.'; 'Where is my daily reading stored?' — 'Only in this browser's local storage, keyed to your local day. There is no account and nothing is sent to a server. Clearing site data removes it.'; 'Can I draw more than once?' — 'Your daily card stays the same for the local day. The three-card spread can be shuffled again whenever you want another set of prompts.'; 'What does reversed mean here?' — 'It simply opens another interpretation of the symbol. It is not a bad omen, a warning, or a result to worry about.' Below the FAQ place a plainly visible note: 'For entertainment and reflection only. Take what resonates and leave the rest.' The footer repeats [BRAND], 'An original digital deck for a quieter moment.', and the optional [CREDIT] link. Layout: Use native details/summary elements in a single max-width 860px column, separated by 1px plum lines, with comfortable 22px vertical padding and a rotating ChevronDown. Place the disclaimer in a bordered parchment-and-gold callout below. The footer is a simple flex row on desktop and stacked on mobile, with no social icons, fake testimonials, or made-up usage numbers. Motion: Use a 160ms chevron rotation and no height animation that could clip text. Respect reduced motion. ## Assets - image: The Ember card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/ember.webp to public/images/cards/ember.webp. Alt: 'A geometric glass lantern glowing above a winding midnight path.' Use on The Ember card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: The Current card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/current.webp to public/images/cards/current.webp. Alt: 'Two luminous streams weaving among smooth stepping stones.' Use on The Current card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: The Threshold card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/threshold.webp to public/images/cards/threshold.webp. Alt: 'An open stone archway with a small brass key and dawn beyond.' Use on The Threshold card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: The Garden card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/garden.webp to public/images/cards/garden.webp. Alt: 'Night-blooming flowers circling a small stone sundial.' Use on The Garden card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: The Mirror card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/mirror.webp to public/images/cards/mirror.webp. Alt: 'An oval hand mirror reflecting an abstract sunrise, with no person present.' Use on The Mirror card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: The Orbit card illustration. Download https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/orbit.webp to public/images/cards/orbit.webp. Alt: 'A small brass orrery tracing luminous rings beneath a starry sky.' Use on The Orbit card, its reading and dialog, and the share canvas when drawn. Generated by VibeFather with qwen-image-3.0-pro, redistributable with this template; record that exact credit in ASSETS.md. - image: Draw the reusable card back in original CSS or local SVG: a midnight-plum field, two thin antique-gold rectangular frames, one central eight-point star, concentric orbital lines, and six dots. Do not copy the symmetry, motifs, or composition of an existing deck. Use it for all six backs and the pre-draw hero. - icon: Install lucide-react and use only Sparkles, RotateCcw, Download, ArrowRight, X, and ChevronDown for interface actions. ISC license. Draw no brand logos or proprietary suit icons. Record the package and license in ASSETS.md. - font: Self-host Cormorant Garamond weights 500 and 600 through @fontsource/cormorant-garamond (OFL-1.1). Record the package and license in ASSETS.md; do not use a font CDN. - font: Self-host Manrope weights 400, 500, 600, and 700 through @fontsource/manrope (OFL-1.1). Record the package and license in ASSETS.md; do not use a font CDN. ## Don'ts - Do not copy, trace, recolor, or closely imitate any existing tarot or oracle deck, including its card art, card-back pattern, suit system, signature composition, guidebook passages, names, packaging, or slogans. Keep this six-card deck and its interpretations original. - Do not use real people's likenesses, celebrities, fictional characters, brand logos, proprietary occult marks, or recognizable commercial products. The illustrations must contain no people, text, letters, numbers, logos, or watermarks. - Do not present readings as predictions, diagnoses, warnings, instructions, or professional advice. Never generate alarming interpretations. Keep the entertainment-and-reflection disclaimer visible in the header, FAQ, share image, and footer area. - Do not add accounts, a backend, API routes, databases, analytics, remote randomness, external forms, tracking pixels, social widgets, or any network submission. Daily readings and share images stay on the visitor's device. - Do not use Unsplash, Pexels, Pixabay, Google Images, placeholder-image services, hotlinked files, or assets with unclear, noncommercial, or share-alike licenses. Use only the six supplied generated images and original code-drawn decoration. - Do not load fonts from Google Fonts, Adobe Fonts, or any CDN. Use only the specified self-hosted Fontsource packages and do not add commercial fonts. - Do not add Three.js, a physics engine, a screenshot package, a state-management library, or another animation framework. CSS transforms, React state, and native Canvas 2D are sufficient. - Do not hard-code [BRAND], [DECK_NAME], the default storage namespace, share-image filename, audience copy, or reflection themes outside src/content.ts. Alternate variable values must produce a coherent site without default-brand remnants. - Do not redraw the daily card on reload, mode change, resize, or rerender. Use the visitor's local calendar day and validate localStorage contents; three-card mode alone may be reshuffled repeatedly. - Do not allow repeated taps or unfinished animations to create duplicate draws, timers, or inconsistent card orientations. Disable actions during transitions and make the full flow keyboard and touch accessible. - Do not hide card meanings behind hover, rotate labels for reversed cards, use tiny low-contrast text, or let the fan create horizontal overflow. Verify the full experience at 1440 × 900 and 390 × 844 with zero console errors. - Do not use scroll-jacking, pinned sections, a custom cursor, autoplay audio, parallax on the reading controls, or animation that ignores prefers-reduced-motion. - Do not emit source maps, copy src/ into dist/, use CDN script or style tags, or exceed 20 MB in dist/. Keep Vite base relative and all assets local. - Do not add extra pages, bare-directory links, SEO markup, structured data, fake testimonials, invented visitor counts, pricing, newsletter forms, or calls to purchase a physical deck. --- — Prompt by VibeFather · https://vibefather.ai/t/daily-tarot-reading-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 每日塔罗占卜页面 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 为虚构品牌 [BRAND] 打造一个精致的单页塔罗占卜小工具,使用原创的六张牌组 [DECK_NAME]。默认邀请语为 '[TAGLINE]',面向 [AUDIENCE],反思主题围绕 [REFLECTION_FOCUS] 展开。访客可以洗开一扇富有触感的牌背扇形,揭示一张持续存在的每日牌,或展开一个三张牌的过去-现在-未来牌阵,阅读原创的正位或逆位解读,并下载一张由 canvas 渲染的分享图片。这是一副原创的象征性牌组,并非对传统或商业塔罗牌的复刻。 - 受众:主要受众是 [AUDIENCE]:喜欢精美互动物件、日记提示和简短日常仪式的成年人。它也适合设计师和创作者,将此形式改编用于肯定语、神谕卡或创意反思。无需任何塔罗知识基础。 - 目标:让首次访客通过两个有意的操作,从引人入胜的视觉牌组走向一次完整、可理解的解读。让每日牌在访客本地日期内跨刷新保持稳定,让三张牌解读可自由重复,并提供一份有用的下载纪念品,同时保持每一次交互私密且完全在客户端进行。 - 语调:安静、诗意、脚踏实地、非指导性。使用精确的反思提示而非预言。绝不声称能预测未来,也不就健康、金钱、关系或安全提供建议。一条可见的“仅供娱乐与反思”说明是体验的一部分,而非隐藏的小字。 ## 技术栈 - 框架:Vite 6 + React 18 + TypeScript - 样式:使用自定义属性的原生 CSS - 库:react(MIT)、react-dom(MIT)、vite(MIT)、typescript(Apache-2.0)、lucide-react(ISC)、@fontsource/cormorant-garamond(OFL-1.1)、@fontsource/manrope(OFL-1.1) - 构建:`npm run build` → `dist/` 中的静态文件。无后端、无服务器代码、无外部 API。 - 设置: - 创建一个 Vite 6 React 18 TypeScript 项目。在 vite.config.ts 中设置 base: './'、build.outDir: 'dist' 和 build.sourcemap: false。不使用路由,也不使用后端。 - 将所有变量值、派生的品牌文案、六条卡片记录、正位与逆位含义、反思提示、说明和常见问题保留在 src/content.ts 中。当变量值变化时,重写所有依赖的标题、标签、存储键命名空间、含义和提示,以适配 [BRAND]、[TAGLINE]、[AUDIENCE]、[DECK_NAME] 和 [REFLECTION_FOCUS];不要留下默认品牌的残留。 - 通过列出的 Fontsource 包自托管 Cormorant Garamond 500 和 600 以及 Manrope 400、500、600 和 700。在 src/main.tsx 中仅导入所需的字重。 - 在 src/styles.css 中使用自定义属性、8px 间距系统、命名的 shuffle 和 flip 关键帧以及明确的桌面和移动布局来实现设计。使用内联 CSS 或本地 SVG 实现微妙的纸张纹理;不要获取纹理。 - 仅将 Lucide 图标用于界面操作:Sparkles 用于原始几何品牌点缀,RotateCcw 用于洗牌,Download 用于分享,ArrowRight 用于主要操作,X 用于关闭,ChevronDown 用于可展开的说明。不要使用任何品牌或花色图标。 - 将阅读交互定义为显式状态机:idle、shuffling、ready、revealing 和 revealed。在重置或模式更改时清除待处理的动画计时器,以便快速点击不会创建重复抽取。 - 每日阅读使用本地浏览器日期,而非 UTC 日期。从 [BRAND] 派生的 slug 和本地 YYYY-MM-DD 日期命名 localStorage 键。存储一个包含日期、卡片 id、方向和模式的有版本对象;验证恢复的数据,并从格式错误的存储中静默恢复。 - 使用原生 Canvas 2D API 以 1080 × 1350 像素实现可下载的分享图片,包括文本换行辅助函数和 toBlob 下载。无需截图服务、canvas 依赖、Web Share 要求或远程请求。 - 在构建之前,将六张生成的卡片插图下载到 Assets 中列出的确切公共路径。使用相对安全的公共 URL 引用它们,并创建 ASSETS.md,包含每个资源路径、来源、作者或生成器以及许可证。 ## 变量 - [BRAND] — 品牌(默认:"Asterhollow")。一个为阅读体验而虚构的、优雅的两到三音节名称。 - [TAGLINE] — 邀请语(默认:"A quiet card for the day ahead.")。一句简短、不作预测的邀请,让人暂停并反思。 - [AUDIENCE] — 受众(默认:"curious minds who enjoy a nightly reflection ritual")。一个用平实语言描述该仪式面向谁的短语。 - [DECK_NAME] — 牌组名称(默认:"The Night Field Deck")。为六张牌象征牌组起的原创名称。 - [REFLECTION_FOCUS] — 反思主题(默认:"creativity, relationships, and everyday choices")。三个平易近人的主题,用于调整牌义和提示语。 - [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接,指向 https://vibefather.ai/t/daily-tarot-reading-page(默认:是;删除此行即可移除) Pages & Sections 下的文案是按默认值撰写的。如果你的取值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便日后无需改动组件即可替换内容。 ## 设计 ### 颜色(Colors) - 午夜墨色(Midnight ink)`#0C0B12` — 页面背景与分享画布底色 - 隆起茄紫(Raised aubergine)`#17131E` — 阅读台、对话框与抬升面板 - 柔梅紫(Soft plum)`#241A29` — 卡背、悬停表面与细微渐变区域 - 羊皮纸色(Parchment)`#F2E8D5` — 主文本与浅色卡片细节 - 淡薰衣草色(Muted lavender)`#B9ACBE` — 次要文案与非活动控件 - 古金色(Antique gold)`#D5B77D` — 细线、活动状态、焦点环与主按钮背景 - 深金墨色(Deep gold ink)`#21180D` — 古金色按钮上的文字 - 发丝梅紫(Hairline plum)`#433348` — 低视觉权重的边框与分隔线 ### 字体排印(Typography) - 展示文字、卡名与阅读引文:Cormorant Garamond(OFL),字重 500/600 - 正文、控件、标签与解读文字:Manrope(OFL),字重 400/500/600/700 ### 布局与动效(Layout & motion) - 间距:使用 8px 基础网格。内容外壳最大宽度 1240px,桌面端侧内边距 32px,移动端 20px。页头高度 76px。桌面端区块垂直内边距 104px;移动端区块 64px。Hero 文案与阅读台在桌面端间隔 64px,移动端间隔 36px。阅读正文保持每行 62–68 个字符。 - 圆角:大型阅读与分享面板使用 28px,实体卡片与小内容面板使用 18px,分段控件与按钮使用 999px。实体卡片严格保持 3:4 宽高比,1px 古金色边框、45% 不透明度,以及柔和的 0 24px 70px rgba(0,0,0,.38) 阴影。 - 动效:在 Shuffle 时,六张卡组成的扇形在 240ms 内收拢为叠放的牌堆,交替的卡片分三次、每次 180ms 向左右分开,然后在 300ms 内回到扇形。在这段 1.1s 的序列期间禁用控件,并且只使用 transform 与 opacity。 - 动效:在 Reveal 时,选中的一张或多张卡片在 320ms 内从牌堆移动到各自的阅读位置,然后每张内层卡片在 680ms 内从显示卡背的 rotateY(0deg) 旋转到显示卡面的 rotateY(180deg)。三张卡片的翻转以 140ms 错开。使用 perspective: 1200px、transform-style: preserve-3d 与 backface-visibility: hidden。 - 动效:使用克制的 180ms 悬停抬升,最多 6px,以及边框颜色变化和图标旋转。绝不要让整个页面漂移,也不要添加自定义光标。 - 动效:滚动显现仅对指南与牌堆区块可选:向上移动 16px,450ms ease-out 过渡,每个区块一次,且不延迟内容访问。 - 动效:在 prefers-reduced-motion: reduce 下,移除扇形运动、错开、视差、平滑滚动与 3D 旋转。立即显示下一状态,最多使用 100ms 的不透明度变化;所有阅读功能仍然可用。 - 图像:使用恰好六张原创生成的树胶水彩与金墨象征性插画,[DECK_NAME] 中的每张卡片各一张。每张图像都在代码构建的 3:4 卡片框架内满版显示,不包含生成的字体排印或边框。共享的视觉语言是带纹理的午夜靛蓝、炭黑、灰梅紫、羊皮纸色与柔和古金色,带有柔和的烛光照亮效果与精细的木版画式颗粒。不要模仿任何现有的塔罗牌组。卡背单独用 CSS/SVG 绘制,由原创同心线条、中央八角星与六个小轨道点组成;不使用生成的图像。交互式扇形牌堆是 Hero 的视觉锚点,而不仅仅是字体排印。 ## 页面与区块 ### [BRAND] — [TAGLINE] (`index.html`) 1. **页头与阅读主视觉区** — 创建一个紧凑的页头,包含一个原创的八角星 Lucide/CSS 装饰元素、使用 Cormorant Garamond 600 字体的 [BRAND],以及两个锚点链接,分别标注为 'The deck' 和 'How it works'。在右侧合适位置放置一个小胶囊标签,内容为 'For entertainment & reflection'。在移动端保留品牌名和胶囊标签,并将两个链接置于下方一行,高度为 44px。主视觉区的眉题(eyebrow)为 '[DECK_NAME] · AN ORIGINAL SIX-CARD DECK'。默认 H1 为 'One quiet moment. A different perspective.'。将 [TAGLINE] 直接放在其下方,随后是 'A reflective ritual for [AUDIENCE], exploring [REFLECTION_FOCUS]. No sign-up. Your reading stays in this browser.'。使用一个双选项分段控件,标注为 'Daily card' 和 'Three cards'。每日卡片的辅助说明文字为 'One card, held for your local day.'。三卡片的辅助说明文字为 'Past, present, and future — a fresh spread whenever you choose.'。初始主按钮文字为 'Shuffle the deck';洗牌后变为 'Reveal today's card' 或 'Reveal three cards'。一个次要的 'How it works' 锚点链接滚动至指南区域。 布局:在 1240px 外壳内使用 12 列主视觉网格,文案和控件占 5 列,阅读台占 7 列。将 H1 设置为 clamp(48px, 5.7vw, 80px),行高 .96,字间距 -.035em。阅读台是一个 600px 高的圆角面板,带有微妙的径向梅子色光晕、细边框,以及六张可见的卡背,从共享的下方中心原点呈扇形展开。每张卡背为 190 × 285px;使用 -18、-11、-4、4、11 和 18 度的旋转角度,水平偏移从 -150 到 150px。在 390px 宽度下,将文案堆叠在 380px 高的阅读台上方,使用 92 × 138px 的卡背,并将旋转角度减小至 -12、-7、-2、2、7 和 12 度,以确保没有卡片溢出。在移动端将主操作按钮保持在阅读台上方,所有点击目标至少为 44px。 动效:扇形以 500ms 的不透明度和 12px 的上移进入。洗牌和揭示遵循设计中的状态机。模式切换会将瞬态三卡片状态返回至空闲状态,而现有的每日阅读保持可用并被恢复,而非重新抽取。 2. **交互式阅读与解读** — 这是阅读台内部及紧邻下方的实时结果区域,而非独立路由。抽牌前显示提示 'Shuffle, then turn your card face-up.'。在每日模式下,仅揭示一张牌,并为其本地日保存其 id 和正位/逆位方向。当天重新加载必须显示相同结果,即使在模式切换后也是如此。使用基于日期种子的首次抽取,然后持久化;不要使用远程随机服务。在三卡片模式下,使用 Fisher–Yates 洗牌抽取三张不同的牌,并独立分配 25% 的逆位概率。将其位置标注为 'Past'、'Present' 和 'Future'。一个 'Shuffle a new spread' 按钮仅重置三卡片阅读。对于每个结果,显示牌名、方向、25–45 词的解读,以及一个单独的反思提示。仅将插图旋转 180 度以表示逆位牌;保持所有标签正立。默认阅读语言必须来自牌组区块中的六条原创牌记录,而非通用的算命文本。 布局:在桌面端的每日模式下,将揭示的 240 × 360px 牌放在左侧,其解读放在右侧 360px 宽的列中,带有细金色分隔线和 'TODAY'S CARD' 眉题。对于三张牌,使用三列牌行,最大牌宽 170px,位置标签在上方,然后在下方显示三个对齐的解读面板。在移动端,每日解读位于居中的 210px 牌下方;三张牌保持为三列等宽行,间距 8px,而解读面板堆叠为可展开的详情,第一个默认展开。对完成的阅读标题使用 aria-live='polite',并在最后一次翻转后将焦点移至该标题。 动效:使用指定的 3D 翻转揭示选中的牌。解读文本仅在其牌完成翻转后淡入。逆位方向在动画前分配,且在重新渲染或重新加载时绝不改变。 3. **仪式如何进行** — 将该区块标题设为 'A small pause, in three turns.'。使用三个编号步骤:'01 — Shuffle' / 'Let the cards gather, separate, and settle. There is nothing to get right.';'02 — Turn' / 'Choose one card for today or three cards for a wider view. Reversed cards offer another angle, not a warning.';'03 — Reflect' / 'Keep the sentence or question that feels useful. Let the rest go.'。为三卡片位置添加一个紧凑的说明条:'Past — what you carry in'、'Present — what asks for attention'、'Future — what you might practice next'。此语言框架表达可能性,而非预测。 布局:将区块标题放在左侧窄列中,三个步骤面板放在右侧堆叠列中。每个步骤是一个网格,包含 64px 编号、150px 标题和弹性描述,由细线分隔。位置说明条在下方横跨全宽,分为三个等宽单元格。在移动端,堆叠标题和步骤,保持每个步骤的编号和标题在同一行,并堆叠三个位置单元格,不出现水平滚动。 动效:仅使用一次微妙的区块显现效果,以及在悬停或键盘聚焦时 180ms 的边框高亮。不要固定此区块或对其内容进行滚动驱动动画。 4. **认识原创牌组** — 将该区块标题设为 'Six symbols. Another way in.'。介绍 [DECK_NAME] 为一个为 [REFLECTION_FOCUS] 创建的紧凑原创牌组。每张牌是一个按钮,可在原生对话框中打开其完整的正位和逆位文本。对于默认变量,逐字使用以下默认记录,并针对替代变量进行自然调整:The Ember — 正位:'Protect the small beginning. Give one idea your attention before asking it to become more.' 逆位:'Your energy may be scattered. Lower the stakes and return to one warm, manageable task.' 提示:'What deserves a little more of my care today?'。The Current — 正位:'Let circumstances move without gripping every outcome. A flexible next step will carry farther than a rigid plan.' 逆位:'Notice where resistance has become habit. Change one condition rather than pushing harder.' 提示:'Where can I allow an easier route?'。The Threshold — 正位:'A useful transition is near, but it asks for a deliberate choice. Name what you are ready to leave and what comes with you.' 逆位:'Pause before forcing closure. An unanswered question may need information, not urgency.' 提示:'What am I truly ready to step toward?'。The Garden — 正位:'Small routines are shaping more than you can see. Tend the environment around your goal, not only the goal itself.' 逆位:'Something needs pruning. Remove one obligation or distraction before adding another.' 提示:'What would help my better habits take root?'。The Mirror — 正位:'Look at the story you are telling about yourself. Keep what is honest and soften what is merely familiar.' 逆位:'Avoid using self-reflection as self-judgment. Ask for a kinder, more complete interpretation.' 提示:'Which assumption about myself can I revisit?'。The Orbit — 正位:'Return to the people and practices that restore perspective. You do not have to solve everything from the center of the problem.' 逆位:'You may be circling the same thought. Change your setting or seek another viewpoint.' 提示:'What helps me see the wider pattern?'。对话框还显示 'Upright'、'Reversed' 和 'A question to carry' 标题。 布局:使用六列桌面画廊,间距 16px;每张牌包含其 3:4 插图、编号 01–06 和下方名称。在平板端使用三列,在 390px 宽度下使用两列,间距 12px。原生对话框最大宽度 760px,牌图在左,可滚动释义在右,包含可见的 X 按钮、Escape 支持、焦点陷阱,并将焦点返回至触发牌。在移动端,对话框图片和释义在 90svh 内堆叠。 动效:卡片上浮不超过 6px,并在悬停/聚焦时提亮其金色边框。对话框进入为 160ms 不透明度和 8px 上移;减少动效用户获得即时对话框。 5. **分享卡工作室** — 将该区块标题设为 'Keep the thought, not the fortune.'。解释:'Turn your revealed reading into a private image. It is drawn on your device and never uploaded.'。在揭示之前,禁用下载按钮并显示 'Reveal a card to create your image.'。在任一阅读之后,启用 'Download reading card'。1080 × 1350 PNG 包含 [BRAND]、[DECK_NAME]、访客的本地化日期、牌面艺术和名称、方向、每张牌一条缩短的解读,以及第一个反思提示。每日布局使用一张大型居中插图;三卡片布局在 'Past · Present · Future' 上方使用三张窄插图。以 'For entertainment and reflection only' 结束图片。从派生的 [BRAND] slug 和本地日期生成文件名,例如 'asterhollow-2026-11-05.png',绝不使用硬编码的默认品牌名。 布局:使用双栏区块,左侧为说明和下载控件,右侧为实时响应式画布预览。画布元素的 CSS 宽高比为 4:5,max-width 为 440px,边框圆角为 24px,内部精确尺寸为 1080 × 1350。在午夜墨色上绘制羊皮纸文字、精细金色边框,以及已下载的本地图片(在它们加载完成后)。显式换行文本,整齐裁剪图稿,并在启用下载前等待图片解码完成。在移动端,将控件堆叠在居中预览上方。 动效:在显示后以 180ms 对更新后的画布预览进行交叉淡入淡出。显示一个小的内联“Image ready”状态,并在下载按钮标签变化时保持其宽度不变。 6. **问题、免责声明和页脚** — 将 FAQ 标题设为“Before you turn a card.”。包含以下四个精确的默认问题和答案:“Does this predict my future?” — “No. The cards are original visual prompts for entertainment and reflection. They do not predict events and are not medical, mental-health, legal, or financial advice.”;“Where is my daily reading stored?” — “Only in this browser's local storage, keyed to your local day. There is no account and nothing is sent to a server. Clearing site data removes it.”;“Can I draw more than once?” — “Your daily card stays the same for the local day. The three-card spread can be shuffled again whenever you want another set of prompts.”;“What does reversed mean here?” — “It simply opens another interpretation of the symbol. It is not a bad omen, a warning, or a result to worry about.” 在 FAQ 下方放置一条清晰可见的说明:“For entertainment and reflection only. Take what resonates and leave the rest.” 页脚重复 [BRAND]、“An original digital deck for a quieter moment.”,以及可选的 [CREDIT] 链接。 布局:在单个 max-width 为 860px 的列中使用原生 details/summary 元素,以 1px 梅紫色(plum)线条分隔,具有舒适的 22px 垂直内边距,以及一个旋转的 ChevronDown。将免责声明放在下方一个带边框的羊皮纸与金色(parchment-and-gold)提示框中。页脚在桌面端为简单的 flex 行,在移动端堆叠,不包含社交图标、虚假推荐语或编造的使用数据。 动效:使用 160ms 的 chevron 旋转,不使用可能裁剪文本的高度动画。遵循减少动态效果(reduced motion)设置。 ## 资源 - image:The Ember 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/ember.webp 下载到 public/images/cards/ember.webp。Alt:'A geometric glass lantern glowing above a winding midnight path.' 用于 The Ember 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:The Current 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/current.webp 下载到 public/images/cards/current.webp。Alt:'Two luminous streams weaving among smooth stepping stones.' 用于 The Current 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:The Threshold 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/threshold.webp 下载到 public/images/cards/threshold.webp。Alt:'An open stone archway with a small brass key and dawn beyond.' 用于 The Threshold 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:The Garden 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/garden.webp 下载到 public/images/cards/garden.webp。Alt:'Night-blooming flowers circling a small stone sundial.' 用于 The Garden 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:The Mirror 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/mirror.webp 下载到 public/images/cards/mirror.webp。Alt:'An oval hand mirror reflecting an abstract sunrise, with no person present.' 用于 The Mirror 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:The Orbit 卡牌插画。将 https://media.vibefather.ai/assets/9a7129f3-3a18-444d-962a-8be79495c87b/orbit.webp 下载到 public/images/cards/orbit.webp。Alt:'A small brass orrery tracing luminous rings beneath a starry sky.' 用于 The Orbit 卡牌、其解读和对话框,以及抽到时的分享画布。由 VibeFather 使用 qwen-image-3.0-pro 生成,可随本模板再分发;在 ASSETS.md 中记录该确切署名。 - image:用原生 CSS 或本地 SVG 绘制可复用的卡背:midnight-plum(午夜梅紫)底色、两个细长的 antique-gold(古金色)矩形边框、一个居中的八角星、同心轨道线,以及六个圆点。不要复制现有牌组的对称性、图案或构图。将其用于全部六个卡背和抽牌前的 hero 区域。 - icon:安装 lucide-react,界面操作仅使用 Sparkles、RotateCcw、Download、ArrowRight、X 和 ChevronDown。ISC 许可证。不要绘制任何品牌标志或专有花色图标。在 ASSETS.md 中记录该包和许可证。 - font:通过 @fontsource/cormorant-garamond(OFL-1.1)自托管 Cormorant Garamond 字重 500 和 600。在 ASSETS.md 中记录该包和许可证;不要使用字体 CDN。 - font:通过 @fontsource/manrope(OFL-1.1)自托管 Manrope 字重 400、500、600 和 700。在 ASSETS.md 中记录该包和许可证;不要使用字体 CDN。 ## 不要做 - 不要复制、描摹、重新上色或密切模仿任何现有的塔罗牌或神谕卡牌组,包括其牌面艺术、牌背图案、花色系统、标志性构图、指南手册段落、名称、包装或宣传语。保持这套六张牌组及其解读的原创性。 - 不要使用真实人物的肖像、名人、虚构角色、品牌标志、专有神秘学标记或可识别的商业产品。插图中不得包含人物、文字、字母、数字、标志或水印。 - 不要将解读呈现为预测、诊断、警告、指示或专业建议。绝不要生成令人不安的解读。在页眉、FAQ、分享图片和页脚区域保持娱乐与反思免责声明的可见性。 - 不要添加账户、后端、API 路由、数据库、分析、远程随机性、外部表单、跟踪像素、社交小部件或任何网络提交。每日解读和分享图片保留在访客的设备上。 - 不要使用 Unsplash、Pexels、Pixabay、Google Images、占位图服务、热链接文件或具有不明确、非商业或相同方式共享许可的资产。仅使用提供的六张生成图片和原创代码绘制的装饰。 - 不要从 Google Fonts、Adobe Fonts 或任何 CDN 加载字体。仅使用指定的自托管 Fontsource 包,不要添加商业字体。 - 不要添加 Three.js、物理引擎、截图包、状态管理库或其他动画框架。CSS transforms、React state 和原生 Canvas 2D 已足够。 - 不要在 src/content.ts 之外硬编码 [BRAND]、[DECK_NAME]、默认存储命名空间、分享图片文件名、受众文案或反思主题。替换变量值必须生成一个连贯的网站,不残留默认品牌痕迹。 - 不要在重新加载、模式切换、调整大小或重新渲染时重绘每日牌。使用访客的本地日历日并验证 localStorage 内容;仅三牌模式可以反复重新洗牌。 - 不要允许重复点击或未完成的动画产生重复抽牌、计时器或不一致的牌面方向。在过渡期间禁用操作,并使整个流程可通过键盘和触摸访问。 - 不要将牌义隐藏在悬停之后、为逆位牌旋转标签、使用微小低对比度文本,或让扇形展开产生水平溢出。在 1440 × 900 和 390 × 844 下验证完整体验,控制台零错误。 - 不要使用滚动劫持、固定区块、自定义光标、自动播放音频、解读控件上的视差效果,或忽略 prefers-reduced-motion 的动画。 - 不要输出 source maps、将 src/ 复制到 dist/、使用 CDN script 或 style 标签,或使 dist/ 超过 20 MB。保持 Vite base 相对路径,所有资产本地化。 - 不要添加额外页面、裸目录链接、SEO 标记、结构化数据、虚假推荐语、虚构访客数量、定价、新闻订阅表单或购买实体牌组的号召。 --- — Prompt by VibeFather · https://vibefather.ai/t/daily-tarot-reading-page · 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: "Daily Tarot Reading Page"
colors:
midnight_ink: "#0C0B12"
raised_aubergine: "#17131E"
soft_plum: "#241A29"
parchment: "#F2E8D5"
muted_lavender: "#B9ACBE"
antique_gold: "#D5B77D"
deep_gold_ink: "#21180D"
hairline_plum: "#433348"
typography:
display_card_names_and_reading_quotations: { family: "Cormorant Garamond", weights: [500, 600] }
body_controls_labels_and_interpretation_text: { family: "Manrope", weights: [400, 500, 600, 700] }
spacing: "Use an 8px base grid. The content shell is max-width 1240px with 32px desktop and 20px mobile side padding. Header height is 76px. Desktop sections have 104px vertical padding; mobile sections have 64px. Hero copy and reading table are separated by 64px on desktop and 36px on mobile. Keep reading prose at 62–68 characters per line."
radius: "Use 28px for large reading and share panels, 18px for physical cards and small content panels, and 999px for segmented controls and buttons. Physical cards have a strict 3:4 aspect ratio, a 1px antique-gold border at 45% opacity, and a soft 0 24px 70px rgba(0,0,0,.38) shadow."
---
# Daily Tarot Reading Page — 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
- **Midnight ink** `#0C0B12` — Page background and share-canvas ground
- **Raised aubergine** `#17131E` — Reading table, dialogs, and elevated panels
- **Soft plum** `#241A29` — Card backs, hover surfaces, and subtle gradient fields
- **Parchment** `#F2E8D5` — Primary text and light card details
- **Muted lavender** `#B9ACBE` — Secondary copy and inactive controls
- **Antique gold** `#D5B77D` — Fine rules, active states, focus rings, and primary-button background
- **Deep gold ink** `#21180D` — Text on antique-gold buttons
- **Hairline plum** `#433348` — Borders and dividers at low visual weight
## Typography
- **Display, card names, and reading quotations** — Cormorant Garamond (OFL), weights 500/600. Self-host the font files.
- **Body, controls, labels, and interpretation text** — Manrope (OFL), weights 400/500/600/700. Self-host the font files.
## Spacing & shape
- Spacing: Use an 8px base grid. The content shell is max-width 1240px with 32px desktop and 20px mobile side padding. Header height is 76px. Desktop sections have 104px vertical padding; mobile sections have 64px. Hero copy and reading table are separated by 64px on desktop and 36px on mobile. Keep reading prose at 62–68 characters per line.
- Radius: Use 28px for large reading and share panels, 18px for physical cards and small content panels, and 999px for segmented controls and buttons. Physical cards have a strict 3:4 aspect ratio, a 1px antique-gold border at 45% opacity, and a soft 0 24px 70px rgba(0,0,0,.38) shadow.
## Motion
- On Shuffle, collapse the six-card fan into a stacked deck over 240ms, split alternating cards left and right in three 180ms passes, then return to a fan over 300ms. Disable controls during the 1.1s sequence and use transform and opacity only.
- On Reveal, move the selected card or cards from the deck into their reading positions over 320ms, then rotate each inner card from rotateY(0deg) showing its back to rotateY(180deg) showing its face over 680ms. Stagger three-card flips by 140ms. Use perspective: 1200px, transform-style: preserve-3d, and backface-visibility: hidden.
- Use restrained 180ms hover lifts of at most 6px, border-color changes, and icon rotations. Never make the whole page drift or add a custom cursor.
- Scroll reveals are optional only for the guide and deck sections: 16px upward movement with a 450ms ease-out transition, once per section, without delaying access to content.
- With prefers-reduced-motion: reduce, remove fan movement, stagger, parallax, smooth scrolling, and 3D rotation. Show the next state immediately with a 100ms opacity change at most; all reading functions remain available.
## Imagery
Use exactly six original generated gouache-and-gold-ink symbolic illustrations, one for each card in [DECK_NAME]. Every image is full-bleed inside a code-built 3:4 card frame with no generated typography or border. The shared visual language is textured midnight indigo, charcoal, dusty plum, parchment, and muted antique gold, with soft candlelit illumination and fine woodblock-like grain. Do not imitate any existing tarot deck. The card back is separately drawn in CSS/SVG from original concentric lines, a central eight-point star, and six small orbital dots; it uses no generated image. The interactive fanned deck is the hero's visual anchor, not typography alone.
## Tone
Quiet, poetic, grounded, and non-directive. Use precise reflection prompts rather than prophecy. Never claim to predict the future or advise on health, money, relationships, or safety. A visible 'For entertainment and reflection only' note is part of the experience, not hidden fine print.
---
— Prompt by VibeFather · https://vibefather.ai/t/daily-tarot-reading-page · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 对于日记创作者:将 BRAND 和 DECK_NAME 设置为你自己的实践,将 REFLECTION_FOCUS 指向每日提示,并将六张牌的含义改写为写作线索。
- 对于小型设计工作室:将牌组用作季节性问候,将 TAGLINE 设置为你的工作室标语,并保留分享卡片作为客户可下载的纪念品。
- 对于健康通讯:将 AUDIENCE 设置为你的读者,将反思主题替换为休息与平衡,并将占卜链接到你的注册页面。
- 对于神谕卡组作者:用你自己的符号替换六张牌的插图和含义,将 DECK_NAME 设置为你的牌组,并保留仅供娱乐的免责声明。
每日塔罗占卜页面:常见问题
如何更改每日塔罗占卜页面中的牌、名称和解读?
每日塔罗占卜页面将所有六张牌的名称、正位和逆位含义、反思提示、指南文案和常见问题都保存在一个内容文件中。将这些记录替换为你自己的符号,然后重写所有与 BRAND、TAGLINE、AUDIENCE、DECK_NAME 和 REFLECTION_FOCUS 相关的标题和标签,确保不残留默认品牌文本。布局、颜色和卡片动效保持原样。
怎么用 AI 做一个每日塔罗占卜页面?
复制本页的提示词,或者运行 npx vibefather add daily-tarot-reading-page,把 [BRAND]、[TAGLINE]、[AUDIENCE]、[DECK_NAME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。