htmlbeginnermitFeatured

Centered Hero

A centered headline hero with dual CTAs.

3.5k2.2k509379

About this module

The classic centered hero: eyebrow badge, large headline, subtext and a primary + secondary CTA pair.

#hero#centered#cta#landing

Source code

Installation

  1. 1

    Create the files

    Create `index.html` and `style.css` in the same folder.

  2. 2

    Paste the code

    Copy each file's source into its matching file.

  3. 3

    Open in the browser

    Open `index.html` in any modern browser.

Usage

  1. 1

    Copy the HTML

    Paste the section markup where you need it.

    <link rel="stylesheet" href="style.css" />
    <section class="mh-sec mh-hero">
      <div class="mh-container mh-center">
        <span class="mh-eyebrow">✦ New · v2.0</span>
        <h1 class="mh-h1">Production-ready modules<br/>for developers</h1>
        <p class="mh-sub">Discover, preview, customize and copy reusable components, sections and animations for your next project.</p>
        <div class="mh-actions">
          <a href="#" class="mh-btn-primary">Explore modules</a>
          <a href="#" class="mh-btn-ghost">Submit a module</a>
        </div>
        <p class="mh-trust">Trusted by 12,000+ developers · Free forever</p>
      </div>
    </section>
Overview
Categorysections
Frameworkhtml
Difficultybeginner
Licensemit
Versionv1.0.0
Features
  • Fully responsive
  • Semantic markup
  • No dependencies
Traits
  • ResponsiveYes
  • Dark modeYes
  • AccessibleYes
  • Production readyYes
Browser support
  • Chrome 90+
  • Firefox 90+
  • Safari 15+
  • Edge 90+

Related modules

Command Palette

Search modules and jump anywhere