返回提示词目录第 23 页

LifeClock · 你的人生

LifeClock · 你的人生:LifeClock · 你的人生,每一秒都算数 🌸 输入生日,实时看到你的人生已经走过了多少。 核心功能: · 人生总进度实时更新,精确到小数点后3位 · 已活秒数每秒跳动,今天/今年进度实时显示 · 距下一个生日倒计时 · 小事清单:添加任何

完整提示词

Build a single-page web app called **LifeClock — 你的人生,每一秒都算数 🌸**.
Use React + Vite + TypeScript + Tailwind CSS + shadcn/ui.

The aesthetic is: warm, cozy, deeply personal — like a handwritten diary crossed with a starlit sky.
Dark background with warm cream, honey gold, and blush rose accents.
Think: a cup of chamomile tea at midnight, soft candlelight, the feeling of being held.
This is NOT a productivity tool. It is a love letter to time — gentle, beautiful, a little wistful.
Every number on screen is REAL and updates live.

═══════════════════════════════════════════════════
FONTS & DESIGN SYSTEM
═══════════════════════════════════════════════════

Google Fonts:
- Instrument Serif (italic) — all headings and big numbers
- Fraunces (300, 400, italic) — decorative quotes and hero sub
- DM Sans (300, 400, 500) — all body text and UI labels

Tailwind config fontFamily:
- heading: ["'Instrument Serif'", "serif"]
- serif: ["'Fraunces'", "serif"]
- body: ["'DM Sans'", "sans-serif"]

CSS Variables (:root in index.css):
--background: 20 15% 6%;
--foreground: 35 28% 94%;
--primary: 35 85% 68%;
--primary-foreground: 20 15% 6%;
--muted: 20 10% 10%;
--muted-foreground: 35 15% 55%;
--border: 35 40% 70% / 0.12;
--accent: 355 60% 75%;
--accent2: 35 85% 68%;
--radius: 9999px;

Body: bg-[#0E0B09], color hsl(35 28% 94%), font-body.

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

═══════════════════════════════════════════════════
WARM GLASS CSS (in @layer components)
═══════════════════════════════════════════════════

.warm-glass:
- background: rgba(244, 229, 201, 0.03)
- backdrop-filter: blur(12px)
- border: none
- box-shadow: inset 0 1px 1px rgba(244,229,201,0.10),
              0 20px 60px rgba(0,0,0,0.4)
- position: relative; overflow: hidden

.warm-glass::before:
- content: ''
- position: absolute; inset: 0; border-radius: inherit; padding: 1.2px
- background: linear-gradient(160deg,
    rgba(244,229,201,0.35) 0%,
    rgba(244,229,201,0.08) 30%,
    rgba(244,229,201,0) 60%,
    rgba(232,160,32,0.15) 100%)
- -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)
- -webkit-mask-composite: xor; mask-composite: exclude
- pointer-events: none

.warm-glass-strong:
- Same but backdrop-filter: blur(40px)
- box-shadow: inset 0 1px 1px rgba(244,229,201,0.18),
              0 0 0 1px rgba(244,229,201,0.06),
              0 30px 80px rgba(0,0,0,0.55)

.honey-glow:
- color: #F4C57A
- text-shadow: 0 0 30px rgba(232,160,32,0.45),
               0 0 60px rgba(232,160,32,0.2)

.rose-glow:
- color: #F4A5A5
- text-shadow: 0 0 30px rgba(244,165,165,0.4)

.progress-warm:
- height: 3px; border-radius: 9999px
- background: linear-gradient(90deg, #E8A020, #F4C57A, #F4A5A5)
- box-shadow: 0 0 12px rgba(232,160,32,0.5)
- transition: width 0.6s ease

═══════════════════════════════════════════════════
SHARED HOOK — useLiveTime
═══════════════════════════════════════════════════

Create `src/lib/useLiveTime.ts`.
Takes birthdate (Date) as param. Updates every 100ms via setInterval.
Returns:

可替换内容

  • ["'Instrument Serif'", "serif"]
  • ["'Fraunces'", "serif"]
  • ["'DM Sans'", "sans-serif"]
  • [#0E0B09]

分类与标签

AI 图片

前往 AI 图片创作