CTA Pure CSS

Gradient CTA banner

A full-width mid-page landing banner: violet-to-magenta gradient, a light sweep drifting across it and a fine noise grain that keeps the colour from feeling plastic; a big headline, two buttons and a “no credit card” badge — hover lifts the buttons off the surface.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

No credit card · 14-day trial

Every release, measured.

Meridian traces adoption from the first deploy — from Frankfurt to Singapore, see which features actually get used.

Still reading? Your metrics are waiting.

Set up Meridian before your next release.

data-size="slim" — the same gradient, sweep and grain folded into one line for the gap between blog sections.

Important props

Important props
Prop Type Default What it does
sweep animation '6.5s ease-in-out infinite' The skewed light sweep crossing the whole banner each cycle with a pause between rounds; fully stopped under prefers-reduced-motion.
--ctgr-angle angle '115deg' The gradient direction; turning it swaps the banner’s mood from calm to kinetic.
noise opacity '5%' An SVG feTurbulence grain over the colour; without it the gradient reads plastic.
data-size string 'hero · slim' hero for between the page’s main sections; slim is the one-line variant for the end of each blog post.

Snippet

<section class="ctgr-banner">
<span class="ctgr-noise" aria-hidden="true"></span>
<span class="ctgr-sweep" aria-hidden="true"></span>
<div class="ctgr-body">
<span class="ctgr-chip">No credit card · 14-day trial</span>
<h3>Every release, measured.</h3>
<p>From Frankfurt to Singapore, see which features actually get used.</p>
<div class="ctgr-actions">
<a class="ctgr-btn" href="/signup">Start free</a>
<a class="ctgr-btn ctgr-ghost" href="mailto:sales@meridian.dev">Talk to sales</a>
</div>
</div>
</section>

<style>
.ctgr-banner { position: relative; overflow: clip; border-radius: 24px; color: #fff;
background: linear-gradient(115deg, #312e81, #4f46e5 38%, #7c3aed 62%, #c026d3); }
.ctgr-sweep { position: absolute; inset-block: -20%; inline-size: 34%; inset-inline-start: 0;
background: linear-gradient(105deg, transparent, #ffffff47, transparent);
transform: skewX(-18deg); animation: ctgr-sweep 6.5s ease-in-out infinite; }
@keyframes ctgr-sweep { 0%, 12% { translate: -180% 0; } 62%, 100% { translate: 480% 0; } }
.ctgr-btn { display: inline-flex; block-size: 3rem; align-items: center; padding-inline: 1.5rem;
border-radius: 999px; background: #fff; color: #312e81;
transition: translate .18s, box-shadow .18s; }
.ctgr-btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px #00000038; }
</style>
// app/Pages/Home.jsx — Inertia (React) page; renders the React snippet
// below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import GradientBanner from '@/components/GradientBanner';

export default function Home() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <GradientBanner />
      </main>
    </NabuXUIProvider>
  );
}
// GradientBanner.jsx — the mid-page CTA: gradient, light sweep, grain
import '@nabuxai/ui-core/css';

export default function GradientBanner() {
  return (
    <>
      <style>{`
        .ctgr-banner { position: relative; overflow: clip; border-radius: 1.5rem; color: #fff; text-align: center;
                       background: linear-gradient(115deg, #312e81, #4f46e5 38%, #7c3aed 62%, #c026d3); }
        .ctgr-noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
                      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
        .ctgr-sweep { position: absolute; inset-block: -20%; inline-size: 34%; inset-inline-start: 0; pointer-events: none;
                      background: linear-gradient(105deg, transparent, #ffffff47, transparent);
                      transform: skewX(-18deg); animation: ctgr-sweep 6.5s ease-in-out infinite; }
        @keyframes ctgr-sweep { 0%, 12% { translate: -180% 0; } 62%, 100% { translate: 480% 0; } }
        .ctgr-body { position: relative; display: grid; gap: 1rem; justify-items: center;
                     padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); }
        .ctgr-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
                     background: #ffffff26; backdrop-filter: blur(8px); font-size: .8rem; }
        .ctgr-title { margin: 0; max-inline-size: 24ch; font: 800 clamp(1.9rem, 4.5vw, 3rem)/1.15
                      'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.02em; }
        .ctgr-sub { margin: 0; max-inline-size: 44ch; color: #ffffffcc; }
        .ctgr-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-block-start: .5rem; }
        .ctgr-btn { display: inline-flex; align-items: center; gap: .5rem; block-size: 3rem; padding-inline: 1.5rem;
                    border-radius: 999px; background: #fff; color: #312e81; font-weight: 700; text-decoration: none;
                    transition: translate .18s ease, box-shadow .18s ease; }
        .ctgr-btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px #00000038; }
        .ctgr-ghost { background: #ffffff1f; color: #fff; box-shadow: inset 0 0 0 1px #ffffff59; }
        @media (prefers-reduced-motion: reduce) {
          .ctgr-sweep { animation: none; }
          .ctgr-btn { transition: none; }
        }
      `}</style>
      <section class="ctgr-banner">
        <span className="ctgr-noise" aria-hidden="true" />
        <span className="ctgr-sweep" aria-hidden="true" />
        <div className="ctgr-body">
          <span className="ctgr-chip">No credit card · 14-day trial</span>
          <h3 className="ctgr-title">Every release, measured.</h3>
          <p className="ctgr-sub">From Frankfurt to Singapore, see which features actually get used.</p>
          <div className="ctgr-actions">
            <a className="ctgr-btn" href="/signup">Start free</a>
            <a className="ctgr-btn ctgr-ghost" href="mailto:sales@meridian.dev">Talk to sales</a>
          </div>
        </div>
      </section>
    </>
  );
}
<!-- GradientBanner.vue — the mid-page CTA: gradient, light sweep, grain -->
<script setup lang="ts">
import '@nabuxai/ui-core/css';
</script>

<template>
  <section class="ctgr-banner">
    <span class="ctgr-noise" aria-hidden="true"></span>
    <span class="ctgr-sweep" aria-hidden="true"></span>
    <div class="ctgr-body">
      <span class="ctgr-chip">No credit card · 14-day trial</span>
      <h3 class="ctgr-title">Every release, measured.</h3>
      <p class="ctgr-sub">From Frankfurt to Singapore, see which features actually get used.</p>
      <div class="ctgr-actions">
        <a class="ctgr-btn" href="/signup">Start free</a>
        <a class="ctgr-btn ctgr-ghost" href="mailto:sales@meridian.dev">Talk to sales</a>
      </div>
    </div>
  </section>
</template>

<style scoped>
.ctgr-banner { position: relative; overflow: clip; border-radius: 1.5rem; color: #fff; text-align: center;
               background: linear-gradient(115deg, #312e81, #4f46e5 38%, #7c3aed 62%, #c026d3); }
.ctgr-noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
              background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ctgr-sweep { position: absolute; inset-block: -20%; inline-size: 34%; inset-inline-start: 0; pointer-events: none;
              background: linear-gradient(105deg, transparent, #ffffff47, transparent);
              transform: skewX(-18deg); animation: ctgr-sweep 6.5s ease-in-out infinite; }
@keyframes ctgr-sweep { 0%, 12% { translate: -180% 0; } 62%, 100% { translate: 480% 0; } }
.ctgr-body { position: relative; display: grid; gap: 1rem; justify-items: center;
             padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); }
.ctgr-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
             background: #ffffff26; backdrop-filter: blur(8px); font-size: .8rem; }
.ctgr-title { margin: 0; max-inline-size: 24ch; font: 800 clamp(1.9rem, 4.5vw, 3rem)/1.15
              'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.02em; }
.ctgr-sub { margin: 0; max-inline-size: 44ch; color: #ffffffcc; }
.ctgr-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-block-start: .5rem; }
.ctgr-btn { display: inline-flex; align-items: center; gap: .5rem; block-size: 3rem; padding-inline: 1.5rem;
            border-radius: 999px; background: #fff; color: #312e81; font-weight: 700; text-decoration: none;
            transition: translate .18s ease, box-shadow .18s ease; }
.ctgr-btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px #00000038; }
.ctgr-ghost { background: #ffffff1f; color: #fff; box-shadow: inset 0 0 0 1px #ffffff59; }
@media (prefers-reduced-motion: reduce) {
  .ctgr-sweep { animation: none; }
  .ctgr-btn { transition: none; }
}
</style>
<!-- GradientBanner.svelte — the mid-page CTA: gradient, light sweep, grain -->
<script lang="ts">
  import '@nabuxai/ui-core/css';
</script>

<section class="ctgr-banner">
  <span class="ctgr-noise" aria-hidden="true"></span>
  <span class="ctgr-sweep" aria-hidden="true"></span>
  <div class="ctgr-body">
    <span class="ctgr-chip">No credit card · 14-day trial</span>
    <h3 class="ctgr-title">Every release, measured.</h3>
    <p class="ctgr-sub">From Frankfurt to Singapore, see which features actually get used.</p>
    <div class="ctgr-actions">
      <a class="ctgr-btn" href="/signup">Start free</a>
      <a class="ctgr-btn ctgr-ghost" href="mailto:sales@meridian.dev">Talk to sales</a>
    </div>
  </div>
</section>

<style>
.ctgr-banner { position: relative; overflow: clip; border-radius: 1.5rem; color: #fff; text-align: center;
               background: linear-gradient(115deg, #312e81, #4f46e5 38%, #7c3aed 62%, #c026d3); }
.ctgr-noise { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
              background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ctgr-sweep { position: absolute; inset-block: -20%; inline-size: 34%; inset-inline-start: 0; pointer-events: none;
              background: linear-gradient(105deg, transparent, #ffffff47, transparent);
              transform: skewX(-18deg); animation: ctgr-sweep 6.5s ease-in-out infinite; }
@keyframes ctgr-sweep { 0%, 12% { translate: -180% 0; } 62%, 100% { translate: 480% 0; } }
.ctgr-body { position: relative; display: grid; gap: 1rem; justify-items: center;
             padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem); }
.ctgr-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
             background: #ffffff26; backdrop-filter: blur(8px); font-size: .8rem; }
.ctgr-title { margin: 0; max-inline-size: 24ch; font: 800 clamp(1.9rem, 4.5vw, 3rem)/1.15
              'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.02em; }
.ctgr-sub { margin: 0; max-inline-size: 44ch; color: #ffffffcc; }
.ctgr-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-block-start: .5rem; }
.ctgr-btn { display: inline-flex; align-items: center; gap: .5rem; block-size: 3rem; padding-inline: 1.5rem;
            border-radius: 999px; background: #fff; color: #312e81; font-weight: 700; text-decoration: none;
            transition: translate .18s ease, box-shadow .18s ease; }
.ctgr-btn:hover { translate: 0 -2px; box-shadow: 0 10px 24px #00000038; }
.ctgr-ghost { background: #ffffff1f; color: #fff; box-shadow: inset 0 0 0 1px #ffffff59; }
@media (prefers-reduced-motion: reduce) {
  .ctgr-sweep { animation: none; }
  .ctgr-btn { transition: none; }
}
</style>