Overview
The Hero component is the landing section of Thalyson’s portfolio. It combines engaging animations, clear call-to-action buttons, social links, and real-time GitHub statistics to create a powerful first impression.Component Location
Key Features
Animated Intro
Framer Motion stagger animations for progressive content reveal
Action Buttons
Portfolio navigation, WhatsApp contact, and resume download
Social Links
Direct links to GitHub and LinkedIn profiles
GitHub Stats
Live statistics powered by GitHub API integration
Component Structure
Animation Configuration
The Hero uses sophisticated animation configs powered by Framer Motion:The staggerChildren creates a cascading effect where each child element animates sequentially with a 0.2s delay.
Content Configuration
All Hero content is sourced fromcontent.json with bilingual support:
Action Buttons
The Hero includes three primary CTAs configured through thegetActionButton function:
Visual Effects
Background Glows
The Hero includes premium background effects for visual depth:Gradient Text Animation
The name features an animated gradient effect:Features Badges
Feature highlights are displayed as interactive badges:Customization Guide
Modify Animation Timing
Modify Animation Timing
Edit the
ANIMATION_CONFIG object to adjust:staggerChildren: Delay between child animations (default: 0.2s)damping: Spring animation bounciness (default: 20)stiffness: Spring animation speed (default: 100)
Change Action Buttons
Change Action Buttons
Update Content
Update Content
Edit
src/utils/content.json under the hero key for:- Role/title text
- Tagline and description
- Feature badges
- Button labels and aria-labels
Adjust Visual Effects
Adjust Visual Effects
Modify background glows by changing:
- Blur radius (e.g.,
blur-[120px]) - Opacity levels (e.g.,
opacity-50) - Positioning and size classes
Accessibility Features
The Hero component follows accessibility best practices:
- Semantic HTML with proper
<section>and<header>tags - ARIA labels for all interactive elements
- Keyboard navigation support
- Screen reader friendly with
aria-labelledby