htmlbeginnermit

Minimal Hero

A restrained hero with lots of breathing room.

9.2k1.9k256126

About this module

A quiet, editorial hero: a single headline, short line and one CTA. Plenty of whitespace for premium feel.

#hero#minimal#editorial

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-min-hero">
      <div class="mh-container">
        <span class="mh-kicker">01 · Introduction</span>
        <h1 class="mh-h1">Design, documented.</h1>
        <p class="mh-sub">Every component explained, every decision deliberate.</p>
        <a href="#" class="mh-link">Read the docs →</a>
      </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