From e5042260c1b80215918a4592042becf595ea1b65 Mon Sep 17 00:00:00 2001 From: A Charlwood Date: Tue, 10 Feb 2026 16:32:55 +0000 Subject: [PATCH] feat: Build Hero section component (Task 6) - Create Hero.tsx with name, title, location pill, summary paragraph - Add four vital sign metric cards (10+ Years, Python/SQL/BI, Pop. Health, NHS N&W) - Implement staggered entrance animations with Framer Motion - Add hover elevation effects on vital cards - Responsive design with flex-wrap for mobile --- src/App.tsx | 12 +----- src/components/Hero.tsx | 85 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 10 deletions(-) create mode 100644 src/components/Hero.tsx diff --git a/src/App.tsx b/src/App.tsx index f435334..dc687a6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,6 +3,7 @@ import type { Phase } from './types' import { BootSequence } from './components/BootSequence' import { ECGAnimation } from './components/ECGAnimation' import { FloatingNav } from './components/FloatingNav' +import { Hero } from './components/Hero' function App() { const [phase, setPhase] = useState('boot') @@ -21,16 +22,7 @@ function App() { <>
-
-

Andy Charlwood

-

Deputy Head of Population Health & Data Analysis

- - Norwich, UK - -

- GPhC Registered Pharmacist specialising in medicines optimisation, population health analytics, and NHS efficiency programmes. -

-
+

diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx new file mode 100644 index 0000000..a392c3e --- /dev/null +++ b/src/components/Hero.tsx @@ -0,0 +1,85 @@ +import { motion } from 'framer-motion' + +interface VitalCardProps { + value: string + label: string + valueSize?: 'default' | 'small' | 'medium' + delay?: number +} + +function VitalCard({ value, label, valueSize = 'default', delay = 0 }: VitalCardProps) { + const sizeClasses = { + default: 'text-[28px]', + small: 'text-base', + medium: 'text-lg' + } + + return ( + +
+ {value} +
+
+ {label} +
+
+ ) +} + +export function Hero() { + return ( +
+ + Andy Charlwood + + + + Deputy Head of Population Health & Data Analysis + + + + Norwich, UK + + + + GPhC Registered Pharmacist specialising in medicines optimisation, population health analytics, and NHS efficiency programmes. Bridging clinical pharmacy with data science to drive meaningful improvements in patient outcomes. + + +
+ + + + +
+
+ ) +}