d16656b954e6113ad1f3f8f1ca1b71c2a12e00c3
Root cause: sentinel element with `absolute top-0` inside PatientBanner was positioned at viewport top, always triggering the IntersectionObserver's -100px rootMargin threshold — banner was permanently stuck in condensed state. Fix: Restructured PMRInterface layout from document-scroll to flex container with explicit scroll container (`overflow-y-auto` on main). Lifted scroll condensation logic to PMRInterface, passing `isCondensed` prop down to PatientBanner. Replaced IntersectionObserver with scroll event listener on the main element for reliable scroll position detection. Key changes: - PMRInterface: flex h-screen overflow-hidden layout (sidebar + content column) - PatientBanner: accepts isCondensed prop, removed sticky/sentinel/hook - ClinicalSidebar: h-full instead of h-screen sticky (parent handles sizing) - useScrollCondensation: scroll event on container element via callback ref Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Andy Charlwood - Interactive CV
A distinctive interactive portfolio website featuring a three-phase cinematic loading experience: terminal boot sequence → ECG heartbeat animation → main content. Built with React, TypeScript, and Vite.
Features
- Three-Phase Loading Experience: Terminal boot (~4s) → ECG animation (~5-6s) → content reveal
- Interactive Sections: Hero, Skills, Experience, Education, Projects, Contact
- Smooth Animations: Framer Motion for scroll reveals and staggered transitions
- SVG Skill Visualization: Circular progress indicators for skill levels
- Floating Navigation: Active section tracking as you scroll
- Responsive Design: Tailwind CSS with custom breakpoints
Tech Stack
- Framework: React 18 + TypeScript
- Build Tool: Vite 6
- Styling: Tailwind CSS 3
- Animations: Framer Motion + Canvas API
- Icons: Lucide React
- Linting: ESLint 9
Getting Started
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview
Available Scripts
| Command | Description |
|---|---|
npm run dev |
Start dev server (localhost:5173) |
npm run build |
TypeScript compile + Vite production build |
npm run typecheck |
TypeScript type checking only |
npm run lint |
Run ESLint |
npm run preview |
Preview production build |
Project Structure
src/
├── components/ # React components (PascalCase)
├── hooks/ # Custom hooks (use* prefix)
├── lib/ # Utility functions
├── types/ # TypeScript interfaces
├── App.tsx # Phase manager (root component)
└── index.css # Global styles + Tailwind
Design Tokens
- Primary: Teal
#00897B - Accent: Coral
#FF6B6B - Fonts: Plus Jakarta Sans (primary), Inter Tight (secondary), Fira Code (mono)
- Breakpoints: xs 480px, sm 640px, md 768px, lg 1024px, xl 1280px
License
Private - All rights reserved.
Languages
TypeScript
71.7%
HTML
25.5%
CSS
2.3%
JavaScript
0.5%