AI automation hero
A navy-to-electric-blue hero with an announcement pill, two-tone headline, a prompt box that cycles example requests and a customer logo row.
Svelte 5 · Version 1.0.0 · Zero extra packages
Live preview
Plug into every tool. Automate the rest.
Describe the job in plain words. Flowbase connects your apps and builds the workflow, so your team ships results instead of glue code.
Trusted by fast-growing teams everywhere
- Northwind
- Lumen
- Halcyon
- Orbit
- Quanta
Design decision
MindCloud’s audit shows a hero that asks visitors to start the product right away. The prompt box replaces a generic call to action, and the blue gradient fades into a light logo row so social proof sits directly under the promise. Original code with fictional copy, brand and logos.
MindCloud audit ↗ · Site score 4
Source and integration
Set brand, headline, highlight, subheading and suggestions, and handle onsubmit. Theme the gradient with --ui-hero-top, --ui-hero-mid and --ui-hero-base, and the send button with --ui-action. Replace the placeholder logos with customers you have permission to show. The headline is an h2 so it can sit inside a page; change it to h1 when this is the page hero.
You may copy and adapt this original SaaSCrisp implementation in personal and commercial websites.
AutomationHero.svelte
<script lang="ts">
let {
brand = 'Flowbase',
headline = 'Plug into every tool.',
highlight = 'Automate the rest.',
subheading = 'Describe the job in plain words. Flowbase connects your apps and builds the workflow, so your team ships results instead of glue code.',
suggestions = [
'Send new Stripe customers to HubSpot…',
'Post every five-star review in Slack…',
'Create a Linear issue from each support email…'
],
onsubmit
}: {
brand?: string;
headline?: string;
highlight?: string;
subheading?: string;
suggestions?: string[];
onsubmit?: (prompt: string) => void;
} = $props();
const id = $props.id();
const logos = [
{ name: 'Northwind', mark: 'M12 2 2 22h20L12 2z' },
{ name: 'Lumen', mark: 'M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10z' },
{ name: 'Halcyon', mark: 'M3 3h8v8H3zM13 13h8v8h-8z' },
{ name: 'Orbit', mark: 'M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM20 3a2 2 0 1 0 0 4 2 2 0 0 0 0-4z' },
{ name: 'Quanta', mark: 'M4 4h16v16H4zm4 4v8h8V8z' }
];
let prompt = $state('');
let hint = $state(0);
let focused = $state(false);
const ready = $derived(prompt.trim().length > 0);
$effect(() => {
if (focused || prompt || suggestions.length < 2) return;
const timer = setInterval(() => (hint = (hint + 1) % suggestions.length), 3200);
return () => clearInterval(timer);
});
function send(event?: SubmitEvent) {
event?.preventDefault();
if (!ready) return;
onsubmit?.(prompt.trim());
prompt = '';
}
function onkeydown(event: KeyboardEvent) {
if (event.key === 'Enter' && !event.shiftKey && !event.isComposing) {
event.preventDefault();
send();
}
}
</script>
<div class="ah">
<div class="ah-bg" aria-hidden="true"></div>
<div class="ah-rails" aria-hidden="true"></div>
<nav class="ah-nav" aria-label={brand}>
<a class="ah-logo" href="#{id}-top">
<svg viewBox="0 0 32 20" aria-hidden="true"><path d="M2 18 9 2h5L7 18zM11 18l7-16h5l-7 16zM20 18l7-16h3l-7 16z" /></svg>
{brand}
</a>
<div class="ah-links">
<a href="#{id}-top">Product</a>
<a href="#{id}-top">Integrations</a>
<a href="#{id}-top">Customers</a>
<a href="#{id}-top">Docs</a>
</div>
<div class="ah-auth">
<a class="ah-signin" href="#{id}-top">Sign in</a>
<a class="ah-start" href="#{id}-prompt">
Get started
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="m9 6 6 6-6 6" /></svg>
</a>
</div>
</nav>
<header class="ah-hero" id="{id}-top">
<a class="ah-pill" href="#{id}-top">
<span>Scheduled workflows are here</span>
<span class="ah-pill-sep" aria-hidden="true"></span>
<b>Read more</b>
</a>
<h2>
<span>{headline}</span>
<span class="ah-highlight">{highlight}</span>
</h2>
<p class="ah-sub">{subheading}</p>
<form class="ah-prompt" id="{id}-prompt" onsubmit={send}>
<textarea
bind:value={prompt}
{onkeydown}
onfocus={() => (focused = true)}
onblur={() => (focused = false)}
rows="2"
aria-label="Describe what to automate"
placeholder={suggestions[hint] ?? 'What should we automate?'}
></textarea>
<div class="ah-actions">
<button type="button" class="ah-mic" aria-label="Dictate with your voice">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3zM19 11a7 7 0 0 1-14 0M12 18v3" /></svg>
</button>
<button type="submit" class="ah-send" disabled={!ready} aria-label="Start automating">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7" /></svg>
</button>
</div>
</form>
</header>
<section class="ah-logos" aria-label="Customers">
<p>Trusted by fast-growing teams everywhere</p>
<ul>
{#each logos as logo (logo.name)}
<li>
<svg viewBox="0 0 24 24" aria-hidden="true"><path d={logo.mark} /></svg>
{logo.name}
</li>
{/each}
</ul>
</section>
</div>
<style>
.ah {
--_top: var(--ui-hero-top, #030712);
--_mid: var(--ui-hero-mid, #0a55f0);
--_base: var(--ui-hero-base, #f5f6f8);
--_action: var(--ui-action, #1667ff);
--_ink: var(--ui-ink, #0b1220);
position: relative;
container-type: inline-size;
overflow: hidden;
border-radius: var(--ui-page-radius, 24px);
background: var(--_base);
color: #fff;
font-family: var(--ui-font, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif);
isolation: isolate;
}
.ah-bg {
position: absolute;
inset: 0 0 auto;
z-index: -1;
height: 88%;
background:
radial-gradient(60% 40% at 50% 62%, color-mix(in srgb, var(--_mid) 70%, #6aa8ff), transparent 70%),
linear-gradient(
180deg,
var(--_top) 0%,
color-mix(in srgb, var(--_top) 70%, var(--_mid)) 22%,
var(--_mid) 52%,
color-mix(in srgb, var(--_mid) 55%, var(--_base)) 76%,
var(--_base) 100%
);
}
.ah-rails {
position: absolute;
inset: 0 clamp(16px, 6cqi, 112px);
z-index: -1;
border-inline: 1px solid rgb(255 255 255 / 0.07);
mask-image: linear-gradient(#000 70%, transparent 88%);
pointer-events: none;
}
.ah-nav {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: 68px;
padding: 0 clamp(28px, 8cqi, 152px);
border-bottom: 1px solid rgb(255 255 255 / 0.07);
}
.ah-logo {
display: inline-flex;
align-items: center;
gap: 8px;
color: #fff;
font-size: 21px;
font-weight: 600;
letter-spacing: -0.03em;
text-decoration: none;
}
.ah-logo svg {
width: 30px;
height: 19px;
fill: #3b82ff;
}
.ah-links {
display: none;
gap: 32px;
}
.ah-links a,
.ah-signin {
color: rgb(255 255 255 / 0.82);
font-size: 15px;
font-weight: 500;
text-decoration: none;
transition: color 0.15s;
}
.ah-links a:hover,
.ah-signin:hover {
color: #fff;
}
.ah-auth {
display: flex;
align-items: center;
gap: 24px;
}
.ah-signin {
display: none;
}
.ah-start {
display: inline-flex;
align-items: center;
gap: 4px;
color: #fff;
font-size: 15px;
font-weight: 500;
text-decoration: none;
}
.ah-start svg {
width: 16px;
height: 16px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
transition: translate 0.2s;
}
.ah-start:hover svg {
translate: 3px 0;
}
@container (min-width: 760px) {
.ah-links,
.ah-signin {
display: flex;
}
}
.ah-hero {
display: grid;
justify-items: center;
padding: clamp(56px, 12cqi, 150px) 20px clamp(64px, 12cqi, 160px);
text-align: center;
}
.ah-pill {
position: relative;
display: inline-flex;
align-items: center;
gap: 14px;
max-width: 100%;
padding: 9px 20px;
border-radius: 999px;
background: rgb(255 255 255 / 0.07);
backdrop-filter: blur(12px);
color: rgb(255 255 255 / 0.85);
font-size: 15px;
font-weight: 500;
text-decoration: none;
box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.ah-pill::before {
content: '';
position: absolute;
inset: 0;
padding: 1px;
border-radius: inherit;
background: linear-gradient(90deg, rgb(255 255 255 / 0.12), #8b9dff 45%, #c08bff 55%, rgb(255 255 255 / 0.12));
mask:
linear-gradient(#000 0 0) content-box exclude,
linear-gradient(#000 0 0);
pointer-events: none;
}
.ah-pill b {
color: #fff;
font-weight: 600;
white-space: nowrap;
}
.ah-pill-sep {
width: 1px;
height: 18px;
background: rgb(255 255 255 / 0.2);
}
h2 {
display: grid;
margin: 36px 0 0;
color: #fff;
font-size: clamp(40px, 7cqi, 80px);
font-weight: 500;
letter-spacing: -0.045em;
line-height: 1.04;
}
.ah-highlight {
color: #b9d2ff;
}
.ah-sub {
max-width: 46ch;
margin: 24px 0 0;
color: #d6e4ff;
font-size: clamp(16px, 1.9cqi, 21px);
line-height: 1.5;
text-wrap: balance;
}
.ah-prompt {
display: grid;
gap: 4px;
width: min(100%, 620px);
margin-top: 44px;
padding: 16px 12px 12px 22px;
border-radius: 20px;
background: #fff;
box-shadow:
0 0 0 1px rgb(255 255 255 / 0.4),
0 30px 60px -20px rgb(3 22 77 / 0.55),
0 0 80px -10px rgb(120 170 255 / 0.5);
text-align: left;
transition: box-shadow 0.2s;
}
.ah-prompt:focus-within {
box-shadow:
0 0 0 4px rgb(255 255 255 / 0.35),
0 30px 60px -20px rgb(3 22 77 / 0.55),
0 0 80px -10px rgb(120 170 255 / 0.6);
}
textarea {
min-height: 52px;
padding: 0;
resize: none;
border: 0;
outline: 0;
background: none;
color: var(--_ink);
font: inherit;
font-size: 17px;
line-height: 1.5;
}
textarea::placeholder {
color: #737a87;
}
.ah-actions {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 10px;
}
.ah-actions button {
display: grid;
place-items: center;
border: 0;
border-radius: 999px;
cursor: pointer;
transition:
background-color 0.15s,
transform 0.15s,
opacity 0.15s;
}
.ah-actions svg {
width: 18px;
height: 18px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.ah-mic {
width: 38px;
height: 38px;
background: none;
color: #4b5260;
}
.ah-mic:hover {
background: #f0f2f5;
}
.ah-send {
width: 46px;
height: 46px;
background: var(--_action);
box-shadow:
inset 0 1px 0 rgb(255 255 255 / 0.25),
0 6px 16px -4px color-mix(in srgb, var(--_action) 70%, transparent);
color: #fff;
}
.ah-send:hover:not(:disabled) {
background: color-mix(in srgb, var(--_action) 88%, #000);
}
.ah-send:active:not(:disabled) {
transform: scale(0.94);
}
.ah-send:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.ah a:focus-visible,
.ah button:focus-visible {
outline: 2px solid #fff;
outline-offset: 3px;
}
.ah-prompt button:focus-visible {
outline-color: var(--_action);
}
.ah-logos {
display: grid;
gap: 22px;
align-items: center;
padding: 24px clamp(28px, 10cqi, 200px) 48px;
color: #3c4352;
}
@container (min-width: 900px) {
.ah-logos {
grid-template-columns: 15rem 1fr;
}
}
.ah-logos p {
margin: 0;
font-size: 17px;
line-height: 1.45;
}
.ah-logos ul {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px 36px;
margin: 0;
padding: 0;
list-style: none;
}
.ah-logos li {
display: flex;
align-items: center;
gap: 8px;
color: #4a5160;
font-size: 21px;
font-weight: 600;
letter-spacing: -0.03em;
opacity: 0.8;
}
.ah-logos li svg {
width: 22px;
height: 22px;
fill: currentColor;
}
@media (prefers-reduced-motion: reduce) {
.ah-start svg,
.ah-actions button {
transition: none;
}
}
</style>
Agent prompt
Use the SaaSCrisp UI Library MCP at https://www.saascrisp.com/api/library/mcp. Retrieve automation-hero version 1.0.0 for svelte with get_ui_asset. Preview: https://www.saascrisp.com/library/automation-hero. Confirm the project's stack, reuse local primitives and map CSS variables to existing design tokens. Integrate the files and run the project's checks. Report changed files and additional dependencies.