Header Section 1

PreviousNext

Page header with title and description

Docs
shadcndesigncomponent

Preview

Loading preview…
components/pro-blocks/landing-page/header-sections/header-section-1.tsx
"use client";

import { Tagline } from "@/components/pro-blocks/landing-page/tagline";

export function HeaderSection1() {
  return (
    <section
      className="bg-background section-padding-y"
      aria-labelledby="page-heading"
    >
      <div className="container-padding-x container mx-auto">
        <div className="section-title-gap-xl mx-auto flex max-w-xl flex-1 flex-col items-center text-center">
          <div className="section-title-gap-xl flex flex-col items-center">
            <Tagline>Header section</Tagline>
            <h1 id="page-heading" className="heading-xl text-foreground">
              Short engaging headline
            </h1>
            <p
              className="text-muted-foreground text-base lg:text-lg"
              aria-description="page description"
            >
              Lorem ipsum dolor sit amet, consectetur adipiscing elit interdum
              hendrerit ex vitae sodales.
            </p>
          </div>
        </div>
      </div>
    </section>
  );
}

Installation

npx shadcn@latest add @shadcndesign/header-section-1

Usage

import { HeaderSection1 } from "@/components/header-section-1"
<HeaderSection1 />