htmlintermediatemit

Split Hero

A two-column hero with copy and a visual panel.

7.8k1.5k487357

About this module

A balanced hero: marketing copy on the left, a stylized product panel on the right. Collapses to a column on mobile.

#hero#split#product#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-split">
      <div class="mh-container mh-grid">
        <div class="mh-copy">
          <span class="mh-eyebrow">Dashboard</span>
          <h1 class="mh-h1">Analytics that make sense</h1>
          <p class="mh-sub">Understand your users with beautiful, real-time dashboards — no SQL required.</p>
          <div class="mh-actions">
            <a href="#" class="mh-btn-primary">Start free</a>
            <a href="#" class="mh-btn-ghost">See demo</a>
          </div>
        </div>
        <div class="mh-visual" role="img" aria-label="Product preview">
          <div class="mh-card1"><span>👋</span>Welcome back, Ada</div>
          <div class="mh-card2"><b>+24%</b><small>Weekly growth</small></div>
          <div class="mh-chart"><i></i><i></i><i></i><i></i><i></i><i></i></div>
        </div>
      </div>
    </section>
Overview
Categorysections
Frameworkhtml
Difficultyintermediate
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