Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-8-thinking-webdev· AnthropicHugging Face Arena WebDev Preferences (2026)

制作一个CBT-I(失眠认知行为治疗)的科普页面,配上动画插图。纯英文,黑色背景。

  1. User

    制作一个CBT-I(失眠认知行为治疗)的科普页面,配上动画插图。纯英文,黑色背景。

  2. Claude Assistant

    I'll create a CBT-I (Cognitive Behavioral Therapy for Insomnia) educational page with animated illustrations on a black background. Let me first explore the project structure.

    This is a Tailwind v4 project. I'll build a polished, animated CBT-I educational page. Let me set up the title, CSS animations, and components.

    Now the CSS with custom keyframe animations:

    Now let me create a scroll-reveal hook and the animated star background:

    Now the animated SVG illustrations — the centerpiece of the page:

    Now the main App composing everything into a full page:

    Now let me build the project to confirm everything works:

    The build succeeded. I've created a complete, animated CBT-I educational page.

    What I built

    Rest Easy — a polished, single-page CBT-I (Cognitive Behavioral Therapy for Insomnia) explainer, fully in English on a deep black background.

    Animated illustrations

    • Hero moon scene — a floating gradient moon with orbiting rings (spinning in opposite directions) and rising "Z" sleep particles
    • The Insomnia Loop — a rotating dashed cycle diagram showing how poor sleep → worry → more time in bed → frustration → stress feeds back on itself
    • Breathing circle — an interactive relaxation visual that expands and contracts to guide breathing
    • Custom animated SVG icons for each pillar (a ticking clock, bed, brain, leaf, moon)
    • Twinkling starfield background + drifting ambient gradient blobs
    • Draw-on-scroll timeline with an animated gradient line

    Content sections

    1. Hero — "Sleep, Reimagined" with animated gradient text
    2. What is CBT-I — intro + key stats (70–80% improvement, 4–8 weeks, #1 treatment)
    3. The vicious cycle — the rotating insomnia loop
    4. The Five Pillars — Sleep Restriction, Stimulus Control, Cognitive Restructuring, Relaxation Training, Sleep Hygiene, plus the breathing card
    5. The Journey — a week-by-week program timeline
    6. FAQ — expandable questions
    7. CTA + medical-disclaimer footer

    Technical details

    • Scroll-reveal animations via an IntersectionObserver hook
    • All animations driven by custom CSS keyframes (float, twinkle, breathe, spin, gradient shift, line-draw)
    • Fully responsive layout with Tailwind

    The project builds cleanly and is ready to serve.

    Files built: index.html, src/index.css, src/hooks/useReveal.ts, src/components/StarField.tsx, src/components/Illustrations.tsx, src/App.tsx

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.