Header

Navigation header used on all internal pages (non-landing). Wraps HeaderBase which provides the scroll-aware animated shell.

Location

src/features/layout/header.tsx
__tests__/header.test.tsx — 3 tests ✅

Description

Thin wrapper around HeaderBase — injects nav links and CTA as children. Inherits scroll animation, mobile Sheet, and session-aware auth buttons from HeaderBase.

LabelHrefVariant
Solutions/solutionsghost
Formations/formationsghost
Réalisations/realisationsghost
Avis/avisghost
FAQ/faqghost
Blog/postsghost
Documentation/docsghost
Contact/contactghost
Prendre RDV/#audit-formdefault

Examples

// app/(app)/layout.tsx
import { Header } from "@/features/layout/header";

export default function AppLayout({ children }: { children: React.ReactNode }) {
  return (
    <>
      <Header />
      <main>{children}</main>
    </>
  );
}

Testing

Mocks Required

MockReason
next/imageReplaces <Image> with <img>
next/linkReplaces <Link> with <a>
next/navigationuseRouter, usePathname
framer-motionStrip scroll animations from HeaderBase
motion/reactSame — HeaderBase may use either
@/lib/auth-clientuseSession{ data: null }
@/features/auth/auth-button-clientStub AuthButtonClient
@/components/nowts/typographyStub Typography

Coverage

CategoryTests
Render8 nav links present
HrefsAll 8 links verified
CTAPrendre RDV → /#audit-form

© 2026 Lemurian Agency Tous droits réservés.
Crée avec par Andy Ramaroson

CvgConfidentialitéMentions légalesapp icon