feega

free UI sections and components / sections

hero, product screenshot

By Andrea Buttarelli, founder of Feega · Free · Svelte, React, Vue, Astro, HTML

Centered headline over a browser-framed product mockup; swap the mockup for a real screenshot.

herolandingimage

code

HeroProduct.svelte
<section class="fl-hero-product">
  <div class="fl-container head">
    <p class="fl-eyebrow">for product teams</p>
    <h1 class="title">show the product, not a promise</h1>
    <p class="fl-lead">One sentence on what the screenshot below lets people do. Replace the mockup with a real capture.</p>
    <div class="cta">
      <a class="fl-btn fl-btn--primary" href="#">start free</a>
      <a class="fl-btn" href="#">take the tour <svg class="fl-px" viewBox="0 0 7 5" aria-hidden="true"><path d="M4 0h1v1h-1zM5 1h1v1h-1zM0 2h1v1h-1zM1 2h1v1h-1zM2 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM5 2h1v1h-1zM6 2h1v1h-1zM5 3h1v1h-1zM4 4h1v1h-1z" /></svg></a>
    </div>
  </div>
  <div class="fl-container">
    <figure class="shot fl-dots" aria-label="Product screenshot placeholder">
      <div class="window">
        <div class="chrome"><i></i><i></i><i></i><span>app.example.com</span></div>
        <div class="app">
          <div class="side"><b></b><b></b><b></b><b></b><b></b></div>
          <div class="body">
            <div class="row"><span class="h"></span><span class="pill"></span></div>
            <div class="cards"><span></span><span></span><span></span></div>
            <div class="chart"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
          </div>
        </div>
      </div>
      <figcaption>screenshot placeholder</figcaption>
    </figure>
  </div>
</section>

<style>
.fl-hero-product{font-family:var(--feega-font);font-size:var(--feega-text-body);line-height:1.5;letter-spacing:var(--feega-tracking);color:var(--feega-fg);background:var(--feega-bg);-webkit-font-smoothing:antialiased}
:where(.fl-hero-product) *,:where(.fl-hero-product) *::before,:where(.fl-hero-product) *::after{box-sizing:border-box}
:where(.fl-hero-product) :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote,dl,dd){margin:0}
:where(.fl-hero-product) a{color:inherit;text-decoration:none}
:where(.fl-hero-product) :focus-visible{outline:2px solid var(--feega-focus);outline-offset:3px}
.fl-container{width:min(var(--feega-max-width),100% - 2 * var(--feega-gutter));margin-inline:auto}
.fl-px{display:block;flex:none;width:1em;height:auto;fill:currentColor;shape-rendering:crispEdges}
.fl-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--feega-space-2);min-height:44px;padding:0 var(--feega-space-6);border:1px solid var(--feega-line-strong);border-radius:var(--feega-radius-full);background:transparent;color:var(--feega-fg);font:inherit;font-size:0.9375rem;font-weight:500;letter-spacing:var(--feega-tracking);white-space:nowrap;text-decoration:none;cursor:pointer;transition:background-color var(--feega-dur-fast) var(--feega-ease),border-color var(--feega-dur-fast) var(--feega-ease),color var(--feega-dur-fast) var(--feega-ease),transform var(--feega-dur-fast) var(--feega-ease)}
.fl-btn:hover{border-color:var(--feega-fg-subtle);background:var(--feega-surface)}
.fl-btn:active{transform:scale(0.97)}
.fl-btn--primary{border-color:var(--feega-accent);background:var(--feega-accent);color:var(--feega-accent-fg)}
.fl-btn--primary:hover{border-color:var(--feega-accent-hover);background:var(--feega-accent-hover)}
.fl-btn--ink{border-color:var(--feega-fg);background:var(--feega-fg);color:var(--feega-bg)}
.fl-btn--ink:hover{border-color:var(--feega-fg-muted);background:var(--feega-fg-muted)}
.fl-btn--ghost{border-color:transparent}
.fl-btn--sm{min-height:36px;padding:0 var(--feega-space-4);font-size:var(--feega-text-sm)}
.fl-btn .fl-px{width:10px;transition:transform var(--feega-dur) var(--feega-ease)}
.fl-btn:hover .fl-px{transform:translateX(3px)}
.fl-btn[disabled]{opacity:0.45;cursor:not-allowed}
.fl-title{font-family:var(--feega-font-display);font-size:var(--feega-text-title);font-weight:500;line-height:0.95;letter-spacing:var(--feega-tracking-tight);text-wrap:balance}
.fl-lead{max-width:34rem;font-size:var(--feega-text-lg);line-height:1.4;color:var(--feega-fg-muted);text-wrap:pretty}
.fl-eyebrow{display:inline-flex;align-items:center;gap:var(--feega-space-2);font-family:var(--feega-font-mono);font-size:var(--feega-text-xs);letter-spacing:0.02em;color:var(--feega-fg-muted);text-transform:uppercase}
.fl-eyebrow::before{content:"";width:6px;height:6px;background:var(--feega-accent)}
.fl-dots{background-image:radial-gradient(var(--feega-dot) 1px,transparent 1.5px);background-size:14px 14px}
.fl-hero-product{overflow:hidden;padding-top:var(--feega-space-section)}
.fl-hero-product .head{display:flex;flex-direction:column;align-items:center;gap:var(--feega-space-6);text-align:center}
.fl-hero-product .title{max-width:15ch;font-family:var(--feega-font-display);font-size:var(--feega-text-display);font-weight:500;line-height:0.92;letter-spacing:var(--feega-tracking-tight);text-wrap:balance}
.fl-hero-product .cta{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--feega-space-3)}
.fl-hero-product .shot{position:relative;margin-top:var(--feega-space-16);padding:clamp(1rem,4vw,3rem) clamp(1rem,4vw,3rem) 0;border-radius:var(--feega-radius-lg) var(--feega-radius-lg) 0 0;background-color:var(--feega-surface)}
.fl-hero-product .window{overflow:hidden;border-radius:var(--feega-radius-md) var(--feega-radius-md) 0 0;background:var(--feega-raised);box-shadow:var(--feega-shadow-float);animation:fl-hero-product-up 900ms var(--feega-ease) backwards}
@keyframes fl-hero-product-up{from{opacity:0;transform:translateY(40px)}}
.fl-hero-product .chrome{display:flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-bottom:1px solid var(--feega-line)}
.fl-hero-product .chrome i{width:9px;height:9px;border-radius:var(--feega-radius-full);background:var(--feega-line-strong)}
.fl-hero-product .chrome span{margin-inline:auto;padding-right:40px;font-family:var(--feega-font-mono);font-size:11px;color:var(--feega-fg-subtle)}
.fl-hero-product .app{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr);min-height:clamp(220px,34vw,420px)}
.fl-hero-product .side{display:grid;align-content:start;gap:10px;padding:18px;border-right:1px solid var(--feega-line)}
.fl-hero-product .side b{height:10px;border-radius:var(--feega-radius-xs);background:var(--feega-surface)}
.fl-hero-product .side b:first-child{width:60%;background:var(--feega-accent)}
.fl-hero-product .body{display:grid;align-content:start;gap:18px;padding:clamp(14px,3vw,28px)}
.fl-hero-product .row{display:flex;justify-content:space-between;align-items:center}
.fl-hero-product .h{width:40%;height:18px;border-radius:var(--feega-radius-xs);background:var(--feega-fg)}
.fl-hero-product .pill{width:72px;height:22px;border-radius:var(--feega-radius-full);background:var(--feega-accent)}
.fl-hero-product .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fl-hero-product .cards span{height:clamp(40px,7vw,72px);border-radius:var(--feega-radius-sm);background:var(--feega-surface)}
.fl-hero-product .chart{display:flex;align-items:flex-end;gap:6px;height:clamp(60px,10vw,140px)}
.fl-hero-product .chart i{flex:1;height:var(--h,50%);border-radius:var(--feega-radius-xs) var(--feega-radius-xs) 0 0;background:var(--feega-line-strong)}
.fl-hero-product .chart i:nth-child(1){--h:34%}
.fl-hero-product .chart i:nth-child(2){--h:48%}
.fl-hero-product .chart i:nth-child(3){--h:40%}
.fl-hero-product .chart i:nth-child(4){--h:56%}
.fl-hero-product .chart i:nth-child(5){--h:52%}
.fl-hero-product .chart i:nth-child(6){--h:64%}
.fl-hero-product .chart i:nth-child(7){--h:60%}
.fl-hero-product .chart i:nth-child(8){--h:74%}
.fl-hero-product .chart i:nth-child(9){--h:82%}
.fl-hero-product .chart i:nth-child(10){--h:100%}
.fl-hero-product .chart i:last-child{background:var(--feega-accent)}
.fl-hero-product figcaption{position:absolute;top:12px;right:14px;font-family:var(--feega-font-mono);font-size:10px;color:var(--feega-fg-subtle);text-transform:uppercase}
@media (max-width:640px){.fl-hero-product .app{grid-template-columns:minmax(0,1fr)}.fl-hero-product .side,.fl-hero-product figcaption{display:none}}
@media (prefers-reduced-motion:reduce){:where([class^="fl-"]) *,:where([class^="fl-"]) *::before,:where([class^="fl-"]) *::after{animation:none!important;transition:none!important}}
</style>
tokens.css, the shared file every template reads
tokens.cssopen file
:root,
[data-theme="light"] {
  color-scheme: light;
  --feega-bg: #f7f6f2;
  --feega-surface: #efede7;
  --feega-raised: #ffffff;
  --feega-input: #ffffff;
  --feega-fg: #121212;
  --feega-fg-muted: #5c5a55;
  --feega-fg-subtle: #6d6a63;
  --feega-line: #e2dfd7;
  --feega-line-strong: #cdc9bf;
  --feega-dot: #d3cfc5;
  --feega-accent: #ff4f00;
  --feega-accent-hover: #ff6a26;
  --feega-accent-fg: #121212;
  --feega-accent-soft: #ffe8dc;
  --feega-accent-text: #b83800;
  --feega-danger: #c0231a;
  --feega-danger-fg: #ffffff;
  --feega-danger-soft: #fde6e3;
  --feega-success: #12703a;
  --feega-success-soft: #e0f3e6;
  --feega-focus: #ff4f00;
  --feega-overlay: rgb(18 18 18 / 0.4);
  --feega-shadow: 0 1px 2px rgb(18 18 18 / 0.05), 0 8px 24px -8px rgb(18 18 18 / 0.12);
  --feega-shadow-float: 0 2px 4px rgb(18 18 18 / 0.06), 0 24px 48px -12px rgb(18 18 18 / 0.22);
  --feega-radius-xs: 2px;
  --feega-radius-sm: 6px;
  --feega-radius-md: 10px;
  --feega-radius-lg: 16px;
  --feega-radius-full: 999px;
  --feega-font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --feega-font-display: var(--feega-font);
  --feega-font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --feega-tracking: -0.02em;
  --feega-tracking-tight: -0.05em;
  --feega-text-xs: 0.75rem;
  --feega-text-sm: 0.875rem;
  --feega-text-body: 1rem;
  --feega-text-lg: clamp(1.0625rem, 1.6vw, 1.25rem);
  --feega-text-xl: 1.5rem;
  --feega-text-title: clamp(2.5rem, 6vw, 4.5rem);
  --feega-text-display: clamp(3rem, 9.5vw, 7rem);
  --feega-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --feega-dur-fast: 160ms;
  --feega-dur: 420ms;
  --feega-space-1: 0.25rem;
  --feega-space-2: 0.5rem;
  --feega-space-3: 0.75rem;
  --feega-space-4: 1rem;
  --feega-space-6: 1.5rem;
  --feega-space-8: 2rem;
  --feega-space-12: 3rem;
  --feega-space-16: 4rem;
  --feega-space-section: clamp(4.5rem, 11vw, 9rem);
  --feega-gutter: clamp(1rem, 4vw, 2rem);
  --feega-max-width: 76rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --feega-bg: #050505;
    --feega-surface: #121212;
    --feega-raised: #1a1a1a;
    --feega-input: #0d0d0d;
    --feega-fg: #f0eee9;
    --feega-fg-muted: #a3a09a;
    --feega-fg-subtle: #8a877f;
    --feega-line: #232323;
    --feega-line-strong: #363636;
    --feega-dot: #2c2c2c;
    --feega-accent: #ff5a14;
    --feega-accent-hover: #ff7333;
    --feega-accent-fg: #121212;
    --feega-accent-soft: #2b1206;
    --feega-accent-text: #ff7a3d;
    --feega-danger: #ff6b5e;
    --feega-danger-fg: #121212;
    --feega-danger-soft: #2e0f0c;
    --feega-success: #4cc47a;
    --feega-success-soft: #0d2617;
    --feega-focus: #ff5a14;
    --feega-overlay: rgb(0 0 0 / 0.7);
    --feega-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --feega-shadow-float: 0 2px 4px rgb(0 0 0 / 0.5), 0 24px 48px -12px rgb(0 0 0 / 0.8);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --feega-bg: #050505;
  --feega-surface: #121212;
  --feega-raised: #1a1a1a;
  --feega-input: #0d0d0d;
  --feega-fg: #f0eee9;
  --feega-fg-muted: #a3a09a;
  --feega-fg-subtle: #8a877f;
  --feega-line: #232323;
  --feega-line-strong: #363636;
  --feega-dot: #2c2c2c;
  --feega-accent: #ff5a14;
  --feega-accent-hover: #ff7333;
  --feega-accent-fg: #121212;
  --feega-accent-soft: #2b1206;
  --feega-accent-text: #ff7a3d;
  --feega-danger: #ff6b5e;
  --feega-danger-fg: #121212;
  --feega-danger-soft: #2e0f0c;
  --feega-success: #4cc47a;
  --feega-success-soft: #0d2617;
  --feega-focus: #ff5a14;
  --feega-overlay: rgb(0 0 0 / 0.7);
  --feega-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --feega-shadow-float: 0 2px 4px rgb(0 0 0 / 0.5), 0 24px 48px -12px rgb(0 0 0 / 0.8);
}

what it is

Hero, product screenshot is a free section. Centered headline over a browser-framed product mockup; swap the mockup for a real screenshot. It is tagged hero, landing and image.

It is markup and CSS only, with no script in any version.

Size per version: Svelte 1 file, 91 lines; React 2 files, 95 lines; Vue 1 file, 93 lines; Astro 1 file, 94 lines; HTML 2 files, 89 lines.

tokens this template reads

TokenControlsUses
--feega-accentthe brand colour on primary actions6
--feega-easethe animation curve6
--feega-fgmain text5
--feega-dur-fastthe short animation duration4
--feega-fg-mutedsecondary text4
--feega-radius-xsthe smallest corner radius4
--feega-surfacequiet panels and chips4
--feega-fg-subtlehints and placeholders3
--feega-font-monothe monospace typeface3
--feega-line-strongstronger borders3
--feega-radius-fullfully round pills and buttons3
--feega-accent-hoverthe accent on hover2

To restyle it, set any of these custom properties on :root, or on an ancestor of the template to change it in one place only. For example, --feega-accent changes the brand colour in light and dark alike. Add the shared tokens.css once per project.

fonts

It uses Inter Tight (400, 500, 600) and Fragment Mono (400) from Google Fonts. Without them the font tokens fall back to a system stack.

head
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=Fragment+Mono:wght@400&display=swap" />

insert with Feega

Open Add, then Library, and click Insert or drag it into your running app. Feega writes the component, tokens and fonts for your framework. One undo. how it works

Free VS Code extension. No account, no AI.

get feega →

related templates