Overview
TheHero component is the main landing section of the portfolio, featuring:
- Animated gradient text for the main headline
- Floating SVG character layers with staggered animations
- Responsive text sizing using clamp()
- Dual CTA buttons (Contact and Projects)
- Two-column grid layout (content left, visual right)
File Location
Component Structure
Features
1. Animated Gradient Text
The main headline uses a gradient animation class:2. Floating SVG Layers
Four colored character SVGs float with different animation speeds:3. Responsive Text Sizing
Uses fluid typography withclamp() for optimal sizing across viewports:
4. Call-to-Action Buttons
Two CTAs with different visual treatments:Layout Structure
Desktop (lg:grid-cols-2)
- Left column: Headline, description, CTAs (text-left alignment)
- Right column: Scene SVG with floating character layers
Mobile (grid-cols-1)
- Content and visual stack vertically
- Text center-aligned
- CTAs full-width
Visual Scene
The right side features a layered SVG composition:Padding & Spacing
Responsive horizontal padding:Assets Required
/brand/hero/scene.svg- Base scene background/brand/hero/char-blue.svg- Blue floating character/brand/hero/char-pink.svg- Pink floating character/brand/hero/char-green.svg- Green floating character/brand/hero/char-yellow.svg- Yellow floating character
Usage Example
Key CSS Classes
text-gradient-anim- Animated gradient text effectfloat-slow-1throughfloat-slow-4- Staggered float animationswill-change-transform- Optimizes layer animation performance
Accessibility
- Section has
id="home"for anchor navigation - Decorative SVGs use
aria-hidden="true" - All images have
draggable={false}andselect-nonefor better UX