Header
The modern header features sticky navigation and glass effects.
Key Features
Section titled “Key Features”🎨 Design Features
Section titled “🎨 Design Features”Sticky Navigation, Glass Effect, Gradient Background, Smooth Animations
📱 Responsive Design
Section titled “📱 Responsive Design”Responsive layout that works perfectly on all screen sizes
🌟 Interactions
Section titled “🌟 Interactions”Smooth hover effects and animations applied to all elements
🌙 Dark Mode
Section titled “🌙 Dark Mode”Perfect support for light/dark themes
📱 Responsive Design
Section titled “📱 Responsive Design”The header works perfectly on all screen sizes:
Screen Size | Behavior |
---|---|
Desktop | Full navigation display |
Tablet | Compressed layout |
Mobile | Switches to hamburger menu |
🌟 Interactions
Section titled “🌟 Interactions”All header elements respond on hover:
- Logo: Gradient and rotation effects on hover
- Navigation Links: Background color change and movement effects
- Theme Toggle: Rotation animation
- Social Links: Platform-specific color changes
Code Examples
Section titled “Code Examples”---// Header component usage exampleimport Header from '@pelagornis/page/overrides/Header.astro';---
<Header />
---// Custom header configurationimport Header from '@pelagornis/page/overrides/Header.astro';
const customNavLinks = [ { label: "Home", link: "/" }, { label: "Docs", link: "/docs/" }, { label: "Blog", link: "/blog/" },];---
<Header navLinks={customNavLinks} />
Tip: The header automatically detects the current page and displays active states.
Customization
Section titled “Customization”You can change the header appearance using CSS variables:
:root { --header-height: 4rem; --header-blur: 16px; --header-opacity: 0.8; --header-bg: rgba(255, 255, 255, 0.8); --header-border: rgba(0, 0, 0, 0.1);}
[data-theme="dark"] { --header-bg: rgba(0, 0, 0, 0.8); --header-border: rgba(255, 255, 255, 0.1);}