/** * Globe Hero Section Template * * A hero section with a 3D globe image background, perfect for crypto, * fintech, or global SaaS platforms. Features gradient overlays and * Framer Motion entrance animations. * * Dependencies: * - framer-motion * - next/image (optional, can use img) * - next/link (optional, can use a) */ 'use client'; import { motion } from 'framer-motion'; import Image from 'next/image'; import Link from 'next/link'; // ============================================ // TYPES // ============================================ interface GlobeHeroProps { badge?: string; title?: string; highlightText?: string; description?: string; primaryCTA?: { text: string; href: string; }; secondaryCTA?: { text: string; href: string; }; globeImage?: string; dashboardImage?: string; accentColor?: string; className?: string; } // ============================================ // COMPONENT // ============================================ export function GlobeHero({ badge = 'NEXT GENERATION OF CRYPTO TRADING', title = 'Trade Smarter with', highlightText = 'AI-Powered', description = 'Lunexa combines artificial intelligence with cutting-edge trading strategies to help you maximize your crypto investments with precision and ease.', primaryCTA = { text: 'Get Started', href: '/docs/get-started', }, secondaryCTA = { text: 'Learn how it works', href: '#how-it-works', }, globeImage = 'https://blocks.mvp-subha.me/assets/earth.png', dashboardImage = 'https://blocks.mvp-subha.me/assets/lunexa-db.png', accentColor = '#9b87f5', className = '', }: GlobeHeroProps) { return ( {/* Gradient overlays */} {/* Text Content */} {/* Badge */} {badge} {/* Title */} {title} {highlightText} Crypto Insights {/* Description */} {description} {/* CTAs */} { e.currentTarget.style.boxShadow = `0 0 20px ${accentColor}80`; }} onMouseLeave={(e) => { e.currentTarget.style.boxShadow = `0 0 20px ${accentColor}00`; }} > {primaryCTA.text} {secondaryCTA.text} {/* Globe and Dashboard */} {/* Globe Image */} {/* Dashboard Image */} ); } // ============================================ // VARIANT: Minimal Globe Hero (no dashboard) // ============================================ export function MinimalGlobeHero({ badge, title = 'Global Infrastructure', highlightText = 'Everywhere', description = 'Deploy to 200+ edge locations worldwide with zero configuration.', primaryCTA = { text: 'Start Building', href: '#' }, globeImage = 'https://blocks.mvp-subha.me/assets/earth.png', accentColor = '#9b87f5', className = '', }: Omit) { return ( {/* Globe background */} {/* Gradient overlays */} {/* Content */} {badge && ( {badge} )} {title} {highlightText} {description} {primaryCTA.text} ); } // ============================================ // PRESET ACCENT COLORS // ============================================ export const globeHeroPresets = { purple: '#9b87f5', cyan: '#00d4ff', emerald: '#10b981', amber: '#f59e0b', rose: '#f43f5e', blue: '#3b82f6', }; // ============================================ // USAGE EXAMPLE // ============================================ /* import { GlobeHero, MinimalGlobeHero, globeHeroPresets } from './globe-hero'; // Full hero with dashboard function CryptoLanding() { return ( ); } // Minimal hero without dashboard function GlobalPlatform() { return ( ); } */ export default GlobeHero;
{description}