Overview
TheHeader component provides a sticky navigation bar at the top of the application. It displays the VisionaryAI branding along with external links for contact and repository access.
Props
This component does not accept any props.Usage
Component structure
The header is divided into two main sections:Left section - Branding
Displays the VisionaryAI logo and tagline:Right section - Navigation links
Provides external navigation options:Features
Sticky positioning
The header remains visible at the top of the viewport while scrolling:Responsive typography
Navigation link text sizes adapt to screen size:- Mobile: Extra small text (
text-xs) - Desktop (md and above): Base text size (
md:text-base)
Visual separation
The navigation links are separated by vertical dividers using thedivide-x utility class.
Layout
The header uses flexbox for layout:justify-between- Distributes branding and navigation to opposite endsitems-center- Vertically centers content in the navigation sectionspace-x-2- Adds horizontal spacing between logo and text
Branding elements
OpenAI logo from external CDN (seeklogo.com)
- Width: 37px
- Height: 20px
“VisionaryAI: AI Image generator” with violet accent on “AI”
“Powered by DALL.E 3 & GPT turbo” in small text
External links
Links to Twitter profile: https://twitter.com/Srijan_Dby
Links to GitHub repository: https://github.com/Srijan-D/dall-e2
Dependencies
next/image- Optimized image loadingnext/link- Client-side navigation and external links
Styling
The component uses Tailwind CSS classes:- White background with shadow for depth
- Sticky positioning with high z-index (z-40)
- Responsive text sizing
- Violet accent color (#8b5cf6) for brand emphasis
- Gray text for navigation links
- Padding and spacing utilities for consistent layout