UiForge
Prompt

Mega-menu constellation – header Nébula Analytics

Composants UILinearDark modeFuturisticHover effectMicro-interactionsFadeNext.jsTailwindFramer Motion
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
1. CONTEXT & GOAL
Build the full site header for Nebula Analytics, a product-analytics platform for data teams tracking funnels, retention and feature adoption. Audience: heads of product and data engineers evaluating tools. The header contains the logo, two mega-menu triggers (Products, Resources), two plain links (Pricing, Docs), a Sign in link and a 'Start free' CTA. Signature idea: the mega-menu panel behaves like a constellation — every entry is a small star-card with a dot marker, and when you hover one, thin luminous lines draw from its dot to the dots of related entries, mapping the product galaxy in real time. Deliver it on a demo page with 3 viewport-heights of placeholder sections so the scrolled state can be tested.

2. ART DIRECTION
Cold, precise, astronomical. Inspired by Linear and observatory interfaces: near-black indigo canvas, 1px hairlines that glow faintly instead of shadows, tiny dot markers everywhere like a star chart. No stock gradients, no glassmorphism blur backgrounds — the panel is a solid dark surface with a hairline border and a very subtle radial glow at the anchor point. Distinction comes from the living constellation lines, not decoration.

3. COLOR SYSTEM
Page background #070912. Header background rgba(7,9,18,0.85) with backdrop blur 12px once scrolled, transparent at top. Panel surface #0D1020, border #1D2236. Star-card hover surface #131731. Text primary #EDEFF7, secondary #9AA1B9, muted #5C6379. Accent indigo #5B8DEF, hover #7BA5F5, active #4677D9. Constellation lines #5B8DEF at 35% opacity, dots #5B8DEF. Featured-card badge amber #E8B44F. CTA background #5B8DEF with #070912 text, hover #7BA5F5, active #4677D9, disabled #2A3350 with #5C6379 text. Focus ring #7BA5F5. Active nav item underline #5B8DEF. Error state (search in Resources panel, no results) text #F08A8A.

4. TYPOGRAPHY
Wordmark and menu headings in 'Space Grotesk' (Google Fonts) weight 500-600. Nav links 'Inter' 14px/20px medium, letter-spacing 0.01em. Star-card titles 'Space Grotesk' 15px/20px weight 500, descriptions 'Inter' 13px/19px color #9AA1B9. Panel section labels 11px/16px uppercase 'Inter' weight 600 letter-spacing 0.14em color #5C6379. CTA 14px/20px weight 600. Featured card headline 18px/24px.

5. LAYOUT & GRID
Header: full-width, inner container max 1240px with 24px padding, 72px tall at top of page, compacting to 56px after 80px of scroll. Products panel: 720px wide, anchored under its trigger, 3x2 grid of star-cards with 8px gaps, 20px padding. Resources panel: 560px wide, two link columns (2 x 220px) plus a 280px featured card on the right. Below 1024px both panels become full-width sheets under the header. Below 768px the whole nav collapses into a full-screen mobile menu (hamburger right) where Products and Resources are accordions; CTA pinned at the bottom, safe-area aware.

6. SECTIONS & COMPONENTS
Products star-cards (icon dot, title, one-liner): Funnels — 'See where users drop, step by step'; Retention — 'Cohorts that explain churn'; Feature Flags — 'Ship to 1% before 100%'; Session Replay — 'Watch the why behind the metric'; Warehouse Sync — 'Your data, back in Snowflake hourly'; Alerts — 'Anomalies pinged to Slack in seconds'. Related pairs for constellation lines: Funnels-Retention, Feature Flags-Session Replay, Warehouse Sync-Alerts. Resources columns: Learn (Analytics academy, Benchmarks report 2026, Glossary, Webinars) and Build (API reference, SDKs, Changelog, Status). Featured card: 'The 2026 Retention Benchmarks — median D30 retention across 1,400 SaaS apps' with badge 'New' and link 'Read the report'. States: triggers have hover (text brightens, chevron rotates 180deg), focus-visible (2px #7BA5F5 ring), active/open (underline visible, aria-expanded true). Star-cards: hover (surface #131731, dot glow), focus-visible ring, active scale 0.99. CTA: hover, active, disabled, loading (spinner replaces label, width locked). Mobile accordions animate height; menu button morphs to a cross.

7. MOTION
Panel opens on hover-intent (80ms delay) or click: opacity 0 to 1, scale 0.98 to 1, transform-origin at the trigger, 180ms cubic-bezier(0.16,1,0.3,1); closes in 120ms ease-in. Star-cards stagger in 30ms apart, translateY(6px) to 0. Constellation lines draw with stroke-dashoffset over 260ms cubic-bezier(0.65,0,0.35,1) on card hover, fade out 150ms on leave; dots scale 1 to 1.4 with spring stiffness 300 damping 20. Header compaction: height and padding animate 250ms cubic-bezier(0.4,0,0.2,1), logo scales 0.9. CTA glow: box-shadow 0 0 16px rgba(91,141,239,0.35) pulsing to 0.55 over 2600ms ease-in-out loop. Mobile menu slides down 320ms with items staggered 40ms. prefers-reduced-motion: panels swap to 100ms opacity fades, constellation lines appear without drawing, glow static, compaction instant.

8. TECH & QUALITY
Next.js 15 App Router, Tailwind CSS v4 tokens, Framer Motion for panel and line animation, Radix UI NavigationMenu as the accessible base (roving tabindex, Escape to close, aria-expanded managed). Files: components/header/SiteHeader.tsx, MegaPanelProducts.tsx, MegaPanelResources.tsx, ConstellationLayer.tsx, MobileMenu.tsx, demo app/demo/header/page.tsx. Accessibility: keyboard fully operable (arrow keys across cards), focus trapped in mobile menu, contrast checked (#9AA1B9 on #0D1020 = 6.8:1), constellation lines are aria-hidden decoration, reduced-motion honored, header is a semantic header with nav landmark.
Objectif

Nébula Analytics est une plateforme d'analytics produit pour équipes data. Ce header de site complet embarque deux mega-menus déroulants (Produits, Ressources) plus liens simples, CTA et état scrollé compact. Idée signature : le panneau du mega-menu est une constellation — chaque entrée est une étoile-carte et des lignes fines se tracent entre l'élément survolé et ses entrées liées.

Style

Dark glow spatial, fond bleu nuit presque noir, hairlines lumineuses, halos indigo froids façon Linear.

Composants
Barre de navigation sticky avec logo et CTAMega-menu Produits en grille de 6 étoiles-cartesMega-menu Ressources en 2 colonnes + carte mise en avantLignes de constellation SVG tracées au hoverÉtat compact du header au scrollMenu mobile plein écran avec accordéonsIndicateur de section activePage de démo avec contenu factice scrollable
Animations
Ouverture du panneau en fade + scale depuis le déclencheurTracé des lignes de constellation entre cartes liées au hoverCompactage animé de la hauteur du header au scrollStagger d'apparition des étoiles-cartesGlow pulsé discret sur le CTA principal
Stack technique
Next.js 15Tailwind CSS v4Framer MotionRadix UI
Scores
9/10
Qualité
9/10
Originalité
Notes de revue

Force : les lignes de constellation tracées entre les étoiles-cartes liées au survol cartographient littéralement le produit, un geste signature rare pour un mega-menu. Faiblesse : aucune. Rien à changer.

À voir aussi

Prompts liés

Composants UI

Board kanban Slipstream — colonnes, cartes et drag & drop

Dark neon arcade maitrise, violet electrique sur anthracite, energie sans chaos

Q 9/10O 9/10Dark modeFuturisticLinear
Composants UI

Command palette Ridgeline — recherche floue et groupes

Glass sombre flottant, halo profond, inspire de Raycast et Linear

Q 8/10O 7/10LinearGlassmorphismDark mode
Composants UI

Grille bento Atlas — fonctionnalites produit en mosaique

Futuriste sombre bleu profond, lignes de circuit lumineuses, inspire des schemas d'architecture

Q 9/10O 9/10FuturisticDark modeLinear