@@ -7,9 +7,8 @@ import { useRouter } from 'next/navigation';
77import Header from '@/components/layout/Header' ;
88import Footer from '@/components/layout/Footer' ;
99import SectionNavigation from '@/components/ui/SectionNavigation' ;
10- import { SectionTitle } from '@/components/ui/SectionTitle' ;
11- import { BlurReveal } from '@/components/ui/BlurReveal' ;
12- import { AnimatedSection } from '@/components/ui/AnimatedSection' ;
10+ import { PageHero } from '@/components/ui/PageHero' ;
11+ import { SectionHeader } from '@/components/ui/SectionHeader' ;
1312import PatternAccordion from '@/components/ui/PatternAccordion' ;
1413import { interactionPatterns } from '@/data/interactionPatterns' ;
1514
@@ -45,52 +44,20 @@ const UXPatternsPage = () => {
4544 </ div >
4645
4746 { /* Intro Screen */ }
48- < section className = "min-h-screen flex items-center justify-center px-4 sm:px-6 lg:px-8" >
49- < div className = "max-w-7xl mx-auto text-center" >
50- < motion . div
51- initial = { { opacity : 0 , y : 30 } }
52- animate = { { opacity : 1 , y : 0 } }
53- transition = { { duration : 0.8 , ease : 'easeOut' } }
54- className = "mb-8"
55- >
56- < MousePointer className = "w-16 h-16 text-white mx-auto mb-6" />
57- </ motion . div >
58-
59- < motion . h1
60- initial = { { opacity : 0 , y : 30 } }
61- animate = { { opacity : 1 , y : 0 } }
62- transition = { { duration : 0.8 , delay : 0.2 , ease : 'easeOut' } }
63- className = "text-5xl md:text-7xl font-bold mb-6 bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent"
64- >
65- UX Patterns
66- </ motion . h1 >
67-
68- < motion . p
69- initial = { { opacity : 0 , y : 30 } }
70- animate = { { opacity : 1 , y : 0 } }
71- transition = { { duration : 0.8 , delay : 0.4 , ease : 'easeOut' } }
72- className = "text-xl text-muted-foreground max-w-2xl mx-auto leading-relaxed"
73- >
74- { t ( 'product.guidelines.uxPatterns.description' ) }
75- </ motion . p >
76- </ div >
77- </ section >
47+ < PageHero
48+ icon = { MousePointer }
49+ title = "UX Patterns"
50+ description = { t ( 'product.guidelines.uxPatterns.description' ) }
51+ maxWidth = "7xl"
52+ />
7853
7954 < div id = "interaction-patterns" className = "scroll-mt-24" >
8055 < section className = "py-20 px-4 sm:px-6 lg:px-8" >
8156 < div className = "max-w-7xl mx-auto" >
82- < AnimatedSection className = "text-center mb-16" delay = { 0.1 } >
83- < BlurReveal >
84- < SectionTitle >
85- < h2 className = "text-4xl md:text-5xl font-bold text-white mb-6" >
86- Interaction Patterns
87- </ h2 >
88- < p className = "text-xl text-muted-foreground max-w-3xl mx-auto" >
89- { t ( 'product.guidelines.uxPatterns.description' ) }
90- </ p >
91- </ SectionTitle >
92- </ BlurReveal >
93- </ AnimatedSection >
57+ < SectionHeader
58+ title = "Interaction Patterns"
59+ description = { t ( 'product.guidelines.uxPatterns.description' ) }
60+ />
9461
9562 { /* Best Practices & Dark Patterns */ }
9663 < div className = "grid grid-cols-1 lg:grid-cols-2 gap-6 mb-12" >
@@ -149,18 +116,10 @@ const UXPatternsPage = () => {
149116 < div id = "ui-kit" className = "scroll-mt-24" >
150117 < section className = "py-20 px-4 sm:px-6 lg:px-8" >
151118 < div className = "max-w-7xl mx-auto" >
152- < AnimatedSection className = "text-center mb-16" delay = { 0.1 } >
153- < BlurReveal >
154- < SectionTitle >
155- < h2 className = "text-4xl md:text-5xl font-bold text-white mb-6" >
156- UI Kit
157- </ h2 >
158- < p className = "text-xl text-muted-foreground max-w-3xl mx-auto" >
159- From atoms to modules to views - our comprehensive design system components.
160- </ p >
161- </ SectionTitle >
162- </ BlurReveal >
163- </ AnimatedSection >
119+ < SectionHeader
120+ title = "UI Kit"
121+ description = "From atoms to modules to views - our comprehensive design system components."
122+ />
164123
165124 { /* UI Kit Structure */ }
166125 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
@@ -192,18 +151,10 @@ const UXPatternsPage = () => {
192151 < div id = "micro-interactions" className = "scroll-mt-24" >
193152 < section className = "py-20 px-4 sm:px-6 lg:px-8" >
194153 < div className = "max-w-7xl mx-auto" >
195- < AnimatedSection className = "text-center mb-16" delay = { 0.1 } >
196- < BlurReveal >
197- < SectionTitle >
198- < h2 className = "text-4xl md:text-5xl font-bold text-white mb-6" >
199- Micro-interactions
200- </ h2 >
201- < p className = "text-xl text-muted-foreground max-w-3xl mx-auto" >
202- Delightful details that bring our interfaces to life.
203- </ p >
204- </ SectionTitle >
205- </ BlurReveal >
206- </ AnimatedSection >
154+ < SectionHeader
155+ title = "Micro-interactions"
156+ description = "Delightful details that bring our interfaces to life."
157+ />
207158
208159 { /* Micro-interactions Examples */ }
209160 < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" >
0 commit comments