Overview
TheHeader component provides the main navigation bar for the Product Builders landing page. It features a sticky header with a dark background, the Product Builders logo, and a call-to-action button that links to the contact section.
The header remains visible at the top of the viewport as users scroll through the page.
Component Structure
Usage Example
Fromsrc/app/page.tsx:50:
Props
This component does not accept any props.Features
- Sticky Positioning: Stays at the top of the viewport while scrolling (
sticky top-0) - High Z-Index: Uses
z-50to ensure it appears above other content - Backdrop Blur: Semi-transparent dark background with blur effect (
bg-[#1a1a1a]/80 backdrop-blur-sm) - Responsive Padding: Adjusts horizontal padding on different screen sizes (
px-4 md:px-6) - Logo Link: Clicking the logo returns to the home page
- CTA Button: “Hablemos” button with scale animation on hover
- Accessibility: Includes screen reader text for the logo link
Navigation Elements
Logo
The logo is rendered using theLogo component and wrapped in a Link to the home page:
Call-to-Action Button
The header includes a single CTA button that scrolls to the contact section:asChildprop to render as a Link component- Scale transform on hover for interactive feedback
- Anchor link to
#contactsection
Customization
To add more navigation items, extend the<nav> element:
Styling
- Background: Dark semi-transparent (
#1a1a1aat 80% opacity) - Backdrop Filter: Blur effect for glassmorphism aesthetic
- Height: Fixed at 4rem (64px)
- Container: Centered with max-width constraints
- Layout: Flexbox with space-between for logo and nav alignment
- Hover Effect: Button scales to 105% on hover with 300ms transition