Skip to content

Commit dfadf64

Browse files
committed
fix: resolve SectionHeader double BlurReveal wrapping issue
- Remove duplicate BlurReveal wrapper in SectionHeader component - SectionTitle already has its own BlurReveal and useInView logic - Double wrapping was preventing section titles from displaying - Now SectionHeader properly uses SectionTitle with duration prop - Section titles and descriptions now display correctly - Maintains consistent BlurReveal animation across all headers
1 parent 11021a9 commit dfadf64

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

src/components/ui/SectionHeader.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use client';
22

33
import React from 'react';
4-
import { BlurReveal } from './BlurReveal';
54
import { SectionTitle } from './SectionTitle';
65

76
interface SectionHeaderProps {
@@ -43,18 +42,16 @@ export function SectionHeader({
4342

4443
return (
4544
<div className={`${containerClass} mb-16 ${className}`}>
46-
<BlurReveal duration={600}>
47-
<SectionTitle>
48-
<h2 className={`${titleSizeClass} font-bold text-white mb-6`}>
49-
{title}
50-
</h2>
51-
{description && (
52-
<p className={`${descriptionSizeClass} text-muted-foreground max-w-3xl mx-auto leading-relaxed`}>
53-
{description}
54-
</p>
55-
)}
56-
</SectionTitle>
57-
</BlurReveal>
45+
<SectionTitle duration={600}>
46+
<h2 className={`${titleSizeClass} font-bold text-white mb-6`}>
47+
{title}
48+
</h2>
49+
{description && (
50+
<p className={`${descriptionSizeClass} text-muted-foreground max-w-3xl mx-auto leading-relaxed`}>
51+
{description}
52+
</p>
53+
)}
54+
</SectionTitle>
5855
</div>
5956
);
6057
}

0 commit comments

Comments
 (0)