制作一个CBT-I(失眠认知行为治疗)的科普页面,配上动画插图。纯英文,黑色背景。
- User
制作一个CBT-I(失眠认知行为治疗)的科普页面,配上动画插图。纯英文,黑色背景。
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
- Hero — "Sleep, Reimagined" with animated gradient text
- What is CBT-I — intro + key stats (70–80% improvement, 4–8 weeks, #1 treatment)
- The vicious cycle — the rotating insomnia loop
- The Five Pillars — Sleep Restriction, Stimulus Control, Cognitive Restructuring, Relaxation Training, Sleep Hygiene, plus the breathing card
- The Journey — a week-by-week program timeline
- FAQ — expandable questions
- CTA + medical-disclaimer footer
Technical details
- Scroll-reveal animations via an
IntersectionObserverhook - 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
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.