Device Rise Hero 1
Device-rise hero: one calm promise, supplied credential chips and one answering action, then a themed phone rising from the fold over a token light pool that grows up from the bottom of the band, with a three-step stepper that explains how it works and pulls the visitor into the scroll.
Use it in a prompt
Use hero/device-rise-hero from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/hero/device-rise-hero.tsx. - Import it and pass your copy and images (Props tab):
import { DeviceRiseHero } from "@/components/funneldna/hero/device-rise-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/device-rise-hero/component.tsx 311 lines
// layout: segmented-stepper
// Device-rise hero: one calm promise, supplied credential chips and one answering action, then a themed phone rising from the fold over a token light pool that grows up from the bottom of the band, with a three-step stepper that explains how it works and pulls the visitor into the scroll.
import * as React from "react";
import { motion, useReducedMotion } from "motion/react";
import { Award, BatteryFull, Check, MonitorSmartphone, ShieldCheck, SignalHigh, Star, Wifi } from "lucide-react";
export type DeviceRiseCredential = {
label: string;
/** Inline icon before the label */
icon?: "award" | "platforms" | "rating" | "secure";
};
export type DeviceRiseStep = {
/** Short tab label, one or two words */
label: string;
/** One sentence shown while this step is active */
caption: string;
};
export type DeviceRiseHeroProps = {
headline?: string;
/** Phrase inside the headline set in the accent colour */
highlight?: string;
subline?: string;
/** Credential chips (award, platforms, rating): supplied facts only; hidden when empty */
credentials?: DeviceRiseCredential[];
/** The question the button answers */
question?: string;
label?: string;
/** One short reassurance line under the button */
note?: string;
href?: string;
onAction?: () => void;
disabled?: boolean;
/** How it works, as a segmented stepper above the phone; hidden with fewer than two steps */
steps?: DeviceRiseStep[];
/** Accessible name of the stepper */
stepsLabel?: string;
/** App screen shown inside the phone (slot: product) */
screenImage?: string;
screenAlt?: string;
/** Clock in the phone's status bar */
statusTime?: string;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function DeviceRiseHero(props: DeviceRiseHeroProps) {
const {
headline = "Every dollar, finally on the same page.",
highlight = "on the same page",
subline = "The budgeting app that brings your spending, saving and goals into one view, so you always know what comes next.",
credentials = [],
question = "Ready to see where your money really goes?",
label = "I'm ready, show me",
note = "",
href,
onAction,
disabled = false,
steps = DEFAULT_STEPS,
stepsLabel = "How it works",
screenImage = "",
screenAlt = "The app's home screen",
statusTime = "9:41",
state = "default",
className,
} = props;
const reduce = useReducedMotion();
const uid = React.useId();
const [active, setActive] = React.useState(0);
const tabs = React.useRef<Array<HTMLButtonElement | null>>([]);
const chips = credentials.filter((c) => c && c.label && c.label.trim());
const shownSteps = steps.filter((s) => s && s.label && s.caption);
const activeIdx = Math.max(0, Math.min(active, shownSteps.length - 1));
const current = shownSteps[activeIdx];
const isDisabled = disabled || state === "disabled";
const forced = state === "hover" || state === "active" ? state : undefined;
const move = (e: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
const n = shownSteps.length;
let next = -1;
if (e.key === "ArrowRight") next = (i + 1) % n;
else if (e.key === "ArrowLeft") next = (i - 1 + n) % n;
else if (e.key === "Home") next = 0;
else if (e.key === "End") next = n - 1;
if (next < 0) return;
e.preventDefault();
setActive(next);
tabs.current[next]?.focus();
};
const button = href ? (
<a
className="cf-drh__cta"
href={isDisabled ? undefined : href}
role="link"
aria-disabled={isDisabled || undefined}
data-force={forced}
onClick={(e) => {
if (isDisabled) {
e.preventDefault();
return;
}
onAction?.();
}}
>
{label}
</a>
) : (
<button type="button" className="cf-drh__cta" disabled={isDisabled} data-force={forced} onClick={() => onAction?.()}>
{label}
</button>
);
return (
<section className={["cf-drh", className].filter(Boolean).join(" ")} aria-labelledby={`${uid}-title`}>
<style>{CSS}</style>
<div className="cf-drh__glow" aria-hidden="true" />
<div className="cf-drh__inner">
<h1 id={`${uid}-title`} className="cf-drh__title">
{renderHeadline(headline, highlight)}
</h1>
{subline ? <p className="cf-drh__sub">{subline}</p> : null}
{chips.length ? (
<ul className="cf-drh__chips">
{chips.map((c, i) => {
const Icon = c.icon ? ICONS[c.icon] : null;
return (
<motion.li
key={`${c.label}-${i}`}
className="cf-drh__chip"
initial={reduce ? false : { opacity: 0.82, y: 8 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.45, ease: EASE, delay: Math.min(i * 0.07, 0.28) }}
>
{Icon ? <Icon aria-hidden="true" size={16} strokeWidth={2.5} /> : null}
<span>{c.label}</span>
</motion.li>
);
})}
</ul>
) : null}
{question ? <p className="cf-drh__ask">{question}</p> : null}
<div className="cf-drh__action">{button}</div>
{note ? (
<p className="cf-drh__note">
<Check aria-hidden="true" size={16} strokeWidth={2.5} />
{note}
</p>
) : null}
{shownSteps.length > 1 && current ? (
<div className="cf-drh__steps">
<div role="tablist" aria-label={stepsLabel} className="cf-drh__tabs">
{shownSteps.map((s, i) => (
<button
key={`${s.label}-${i}`}
ref={(el) => {
tabs.current[i] = el;
}}
type="button"
role="tab"
id={`${uid}-tab-${i}`}
aria-selected={i === activeIdx}
aria-controls={`${uid}-panel`}
tabIndex={i === activeIdx ? 0 : -1}
className="cf-drh__tab"
onClick={() => setActive(i)}
onKeyDown={(e) => move(e, i)}
>
<span className="cf-drh__num" aria-hidden="true">
{i + 1}
</span>
{s.label}
</button>
))}
</div>
<p key={activeIdx} role="tabpanel" id={`${uid}-panel`} aria-labelledby={`${uid}-tab-${activeIdx}`} className="cf-drh__panel">
{current.caption}
</p>
</div>
) : null}
</div>
<div className="cf-drh__stage">
<motion.div
className="cf-drh__rise"
initial={reduce ? false : { y: 40 }}
whileInView={{ y: 0 }}
viewport={{ once: true, amount: 0.1 }}
transition={{ duration: 0.8, ease: EASE }}
>
<div className="cf-drh__phone">
<div className="cf-drh__screen">
<div className="cf-drh__status" aria-hidden="true">
<span className="cf-drh__time">{statusTime}</span>
<span className="cf-drh__island" />
<span className="cf-drh__icons">
<SignalHigh size="1.15em" strokeWidth={2.5} />
<Wifi size="1.15em" strokeWidth={2.5} />
<BatteryFull size="1.3em" strokeWidth={2.5} />
</span>
</div>
{screenImage ? (
<img className="cf-drh__shot" src={screenImage} alt={screenAlt} width={720} height={1440} decoding="async" />
) : (
<div className="cf-drh__skel" aria-hidden="true">
<span className="cf-drh__skel-hero" />
<span className="cf-drh__skel-row" />
<span className="cf-drh__skel-row" />
<span className="cf-drh__skel-row" />
</div>
)}
</div>
</div>
</motion.div>
</div>
</section>
);
}
export default DeviceRiseHero;
const ICONS = { award: Award, platforms: MonitorSmartphone, rating: Star, secure: ShieldCheck };
const EASE = [0.2, 0.7, 0.2, 1] as const;
const DEFAULT_STEPS: DeviceRiseStep[] = [
{ label: "Connect", caption: "Link your accounts once and every purchase lands in the right place." },
{ label: "Plan", caption: "Set a monthly plan and see what is left at a glance." },
{ label: "Grow", caption: "Pick a goal and watch your savings move toward it." },
];
function renderHeadline(text: string, phrase?: string) {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="cf-drh__hl">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
// The light pool is anchored to the bottom edge of the band and fades to nothing well above the stage,
// so there is no hard top edge; it is built only from --accent-fill mixed with transparent in OKLCH.
const CSS = `
.cf-drh{--pw:clamp(260px,25vw,340px);--vis:.6;--stage-h:calc(var(--pw) * 2.1 * var(--vis));--glow-w:62%;position:relative;overflow:clip;isolation:isolate;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding-top:clamp(56px,8vw,112px)}
.cf-drh *{box-sizing:border-box}
.cf-drh__glow{position:absolute;z-index:0;left:0;right:0;bottom:0;height:calc(var(--stage-h) + clamp(200px,24vw,340px));pointer-events:none;background:radial-gradient(ellipse var(--glow-w) 100% at 50% 100%,color-mix(in oklch,var(--accent-fill,var(--accent)) 26%,transparent) 0%,color-mix(in oklch,var(--accent-fill,var(--accent)) 14%,transparent) 32%,color-mix(in oklch,var(--accent-fill,var(--accent)) 5%,transparent) 58%,color-mix(in oklch,var(--accent-fill,var(--accent)) 0%,transparent) 82%)}
.cf-drh__inner{position:relative;z-index:1;max-width:1120px;margin:0 auto;padding:0 clamp(16px,5vw,48px);display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-drh__title{margin:0;max-width:60rem;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--ink);text-wrap:balance}
.cf-drh__hl{color:var(--accent)}
.cf-drh__sub{margin:20px 0 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:balance}
.cf-drh__chips{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.cf-drh__chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;max-width:100%;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--ink) 6%,var(--card));border:1px solid oklch(from var(--ink) l c h / .08);color:var(--ink);font-size:.875rem;font-weight:700;line-height:1.2;text-align:left}
.cf-drh__chip svg{flex:0 0 auto;color:var(--accent)}
.cf-drh__ask{margin:40px 0 0;max-width:40rem;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.3;letter-spacing:-.01em;color:var(--ink);text-wrap:balance}
.cf-drh__action{margin-top:40px;display:flex;justify-content:center;width:100%}
.cf-drh__ask+.cf-drh__action{margin-top:16px}
.cf-drh__cta{--b:var(--button-bg,var(--cta));--b2:var(--button-bg-2,var(--cta-2));--sh:var(--shadow,oklch(.22 .03 260));display:inline-flex;align-items:center;justify-content:center;min-height:72px;min-width:300px;max-width:100%;padding:0 32px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--b2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-wrap:balance;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--sh) l c h / .3),0 8px 16px -6px oklch(from var(--sh) l c h / .42));cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;-webkit-tap-highlight-color:transparent}
.cf-drh__cta:hover:not(:disabled):not([aria-disabled="true"]),.cf-drh__cta[data-force="hover"]{background:linear-gradient(oklch(from var(--b) calc(l - .01) c h),oklch(from var(--b2) calc(l - .07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--b) calc(l + .1) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .2) c h),0 1px 2px oklch(from var(--sh) l c h / .34),0 12px 20px -6px oklch(from var(--sh) l c h / .5)}
.cf-drh__cta:active:not(:disabled):not([aria-disabled="true"]),.cf-drh__cta[data-force="active"]{transform:translateY(1px);background:linear-gradient(oklch(from var(--b) calc(l - .04) c h),oklch(from var(--b2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - .22) c h / .6),inset 0 -2px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 1px oklch(from var(--sh) l c h / .3)}
.cf-drh__cta:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .55);outline-offset:3px}
.cf-drh__cta:disabled,.cf-drh__cta[aria-disabled="true"]{background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
.cf-drh__note{margin:14px 0 0;max-width:36rem;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-drh__note svg{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success)}
.cf-drh__steps{margin-top:clamp(48px,6vw,64px);display:flex;flex-direction:column;align-items:center;width:100%}
.cf-drh__tabs{display:inline-flex;max-width:100%;gap:4px;padding:4px;border-radius:999px;background:color-mix(in oklch,var(--ink) 7%,var(--surface));box-shadow:inset 0 1px 2px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .14)}
.cf-drh__tab{appearance:none;border:0;margin:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;font-family:var(--font-body);font-size:.9375rem;font-weight:600;line-height:1.15;color:var(--ink);white-space:nowrap;cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
.cf-drh__tab:hover{background:color-mix(in oklch,var(--ink) 6%,transparent)}
.cf-drh__tab[aria-selected="true"]{background:var(--card);font-weight:800;box-shadow:var(--shadow-sm,0 1px 2px oklch(.22 .03 260 / .2))}
.cf-drh__tab:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .45);outline-offset:2px}
.cf-drh__num{font-family:var(--font-display);font-variant-numeric:tabular-nums;font-weight:800;color:var(--ink)}
.cf-drh__tab[aria-selected="true"] .cf-drh__num{color:var(--accent)}
.cf-drh__panel{margin:14px 0 0;max-width:34rem;min-height:3em;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty;animation:cf-drh-in .45s cubic-bezier(.2,.7,.2,1) both}
.cf-drh__stage{position:relative;z-index:1;margin-top:clamp(32px,4vw,48px);height:var(--stage-h);overflow:hidden;display:flex;justify-content:center;align-items:flex-start;-webkit-mask-image:linear-gradient(to top,transparent 0,black 72px);mask-image:linear-gradient(to top,transparent 0,black 72px)}
.cf-drh__rise{position:relative;z-index:1}
.cf-drh__phone{position:relative;display:grid;width:var(--pw);aspect-ratio:10 / 21;padding:calc(var(--pw) * .032);border-radius:calc(var(--pw) * .155);background:linear-gradient(160deg,oklch(from var(--band) calc(l + .12) c h),var(--band) 42%,oklch(from var(--band) calc(l - .04) c h));box-shadow:inset 0 0 0 1px oklch(from var(--band) calc(l + .28) c h / .55),inset 0 0 0 calc(var(--pw) * .012) oklch(from var(--band) calc(l - .06) c h),0 2px 4px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .24),0 28px 40px -22px oklch(from var(--shadow,oklch(.22 .03 260)) l c h / .48)}
.cf-drh__phone::before,.cf-drh__phone::after{content:"";position:absolute;width:3px;border-radius:3px;background:oklch(from var(--band) calc(l + .08) c h)}
.cf-drh__phone::before{left:-3px;top:18%;height:11%;border-radius:3px 0 0 3px}
.cf-drh__phone::after{right:-3px;top:24%;height:14%;border-radius:0 3px 3px 0}
.cf-drh__screen{position:relative;display:flex;flex-direction:column;min-height:0;border-radius:calc(var(--pw) * .125);overflow:hidden;background:var(--card)}
.cf-drh__status{flex:0 0 auto;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:calc(var(--pw) * .14);padding:0 calc(var(--pw) * .085);background:var(--band);color:var(--band-ink);font-family:var(--font-body);font-size:calc(var(--pw) * .047);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}
.cf-drh__time{justify-self:start}
.cf-drh__island{width:calc(var(--pw) * .3);height:calc(var(--pw) * .088);border-radius:999px;background:oklch(from var(--shadow,oklch(.22 .03 260)) calc(l - .12) c h)}
.cf-drh__icons{justify-self:end;display:inline-flex;align-items:center;gap:.3em}
.cf-drh__shot{display:block;flex:1 1 auto;min-height:0;width:100%;height:100%;object-fit:cover;object-position:top center}
.cf-drh__skel{flex:1 1 auto;display:flex;flex-direction:column;gap:calc(var(--pw) * .04);padding:calc(var(--pw) * .06);background:var(--card)}
.cf-drh__skel-hero{display:block;height:calc(var(--pw) * .42);border-radius:calc(var(--pw) * .05);background:color-mix(in oklch,var(--accent-fill,var(--accent)) 14%,var(--card))}
.cf-drh__skel-row{display:block;height:calc(var(--pw) * .11);border-radius:calc(var(--pw) * .03);background:color-mix(in oklch,var(--ink) 6%,var(--card))}
@keyframes cf-drh-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (max-width:640px){
.cf-drh{--pw:min(68vw,272px);--vis:.7;--glow-w:110%}
.cf-drh__cta{width:100%;min-width:0;padding:0 24px}
.cf-drh__tabs{width:100%}
.cf-drh__tab{flex:1 1 0;min-width:0;padding:0 12px;white-space:normal;text-align:center}
.cf-drh__num{display:none}
}
@media (prefers-reduced-motion:reduce){
.cf-drh__panel{animation:none}
.cf-drh__cta,.cf-drh__tab{transition:none}
.cf-drh__cta:hover:not(:disabled):not([aria-disabled="true"]),.cf-drh__cta[data-force="hover"]{transform:none}
}
`;
pieces/hero/device-rise-hero/specimen.tsx 35 lines
import __studioImage92bb0fb5 from "../assets/94e74e105c09f743.webp";
import { DeviceRiseHero } from "../device-rise-hero";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function DeviceRiseHeroSpecimen({ state }: { state?: "default" | "hover" | "active" | "disabled" }) {
return (
<DeviceRiseHero
state={state}
headline="Your family budget, finally in one calm place."
highlight="in one calm place"
subline="Pennywise brings everyone's spending, saving and goals together, so the whole house knows what is left before the month runs out."
credentials={[
{ icon: "award", label: "Family Finance Awards finalist" },
{ icon: "platforms", label: "iPhone, Android and web" },
{ icon: "rating", label: "4.8 stars from 2,400 ratings" },
]}
question="Ready to see where this month's money goes?"
label="I'm ready, show me my budget"
note="Free for 14 days · Cancel anytime in the app"
stepsLabel="How Pennywise works"
steps={[
{ label: "Connect", caption: "Link your cards and accounts once. Pennywise sorts every purchase for you." },
{ label: "Plan", caption: "Give each person a monthly allowance and see what is left in real time." },
{ label: "Save", caption: "Set one family goal and watch every round-up move you closer." },
]}
screenImage={slot(
"product",
__studioImage92bb0fb5
)}
screenAlt="Pennywise home screen showing the family budget left this month, spending categories and recent purchases"
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalDeviceRiseHero |
string |
|
highlight OptionalDeviceRiseHero |
string |
|
subline OptionalDeviceRiseHero |
string |
|
credentials OptionalDeviceRiseHero |
DeviceRiseCredential[] |
|
question OptionalDeviceRiseHero |
string |
|
label OptionalDeviceRiseHero |
string |
|
note OptionalDeviceRiseHero |
string |
|
href OptionalDeviceRiseHero |
string |
|
onAction OptionalDeviceRiseHero |
() => void |
|
disabled OptionalDeviceRiseHero |
boolean |
|
steps OptionalDeviceRiseHero |
DeviceRiseStep[] |
|
stepsLabel OptionalDeviceRiseHero |
string |
|
screenImage OptionalDeviceRiseHero |
string |
|
screenAlt OptionalDeviceRiseHero |
string |
|
statusTime OptionalDeviceRiseHero |
string |
|
state OptionalDeviceRiseHero |
"default" | "hover" | "active" | "disabled" |
|
className OptionalDeviceRiseHero |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
94e74e105c09f743.webp
image/webp · 29.1 KB