Heroes
JS behaviour
Split hero
Copy and CTA on one side, the product mockup on the other — tilted in perspective, wrapped in a soft halo; capability chips float over the mockup and tilt with the pointer so the product feels touchable from the first screen.
Real scenarios
The component as it is used in a product — not a specimen grid.
For platform teams
Your console for every rollout
Asterly sits between your pipeline and your users — progressive delivery, live traces and one-click rollback on a single plane.
Free for 30 days · no credit card · deploys from your own GitHub org
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| perspective | length | '1200px' | The scene depth on the mockup frame; less reads theatrical, more reads subtle. |
| tilt | degrees | '±4°' | The mockup’s per-axis pointer rotation; chips travel 1.6× further for parallax. |
| chips | count | '3' | The capability chips floating over the mockup; each bobs calmly on its own delay. |
| stack | breakpoint | '< 56.25rem' | Under 900px the columns stack, the mockup drops below the copy and the tilt halves. |
Snippet
<section class="hrsl" x-data="{
rx: 0, ry: 0,
track(e) {
const r = this.$el.getBoundingClientRect();
this.rx = ((e.clientY - r.top) / r.height - .5) * -8;
this.ry = ((e.clientX - r.left) / r.width - .5) * 8;
},
}"
x-on:pointermove="track($event)" x-on:pointerleave="rx = 0; ry = 0"
:style="`--hrsl-rx:${rx}deg; --hrsl-ry:${ry}deg`">
<div class="hrsl-copy">
<h1 class="hrsl-title">Your console for every rollout</h1>
<p class="hrsl-sub">Asterly sits between your pipeline and your users — progressive delivery, traces and rollback on one plane.</p>
<button class="hrsl-btn">Start building</button>
</div>
<div class="hrsl-stage">
<i class="hrsl-halo" aria-hidden="true"></i>
<div class="hrsl-mock">
<span class="hrsl-bar"><i></i><i></i><i></i><b>app.asterly.io</b></span>
<div class="hrsl-row"><i class="hrsl-dot ok"></i> api · v2.14.0 <small>Healthy</small></div>
</div>
<span class="hrsl-chip">Traces in 12ms</span>
<span class="hrsl-chip">Zero-downtime rollouts</span>
</div>
</section>
<style>
.hrsl { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
padding: 4.5rem 1.5rem; }
.hrsl-stage { perspective: 1200px; }
.hrsl-mock { transform: rotateY(calc(var(--hrsl-ry, 0deg) - 10deg)) rotateX(var(--hrsl-rx, 0deg));
border-radius: 1rem; background: #fff; box-shadow: 0 30px 60px #0b102033;
transition: transform .25s ease-out; }
.hrsl-chip { position: absolute; translate: calc(var(--hrsl-ry, 0deg) * 1.6) calc(var(--hrsl-rx, 0deg) * -1.6);
padding: .5rem .875rem; border-radius: 999px; background: #fff;
box-shadow: 0 8px 24px #0b102024; }
@media (prefers-reduced-motion: reduce) { .hrsl-mock { transition: none; } }
</style>
// resources/js/Pages/Landing.jsx — the Inertia (React) page; renders the
// React snippet below unchanged inside the app’s provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import SplitHero from '@/components/heroes/SplitHero';
export default function Landing() {
return (
<NabuXUIProvider locale="en" linkComponent={Link}>
<SplitHero />
</NabuXUIProvider>
);
}
// SplitHero.jsx — copy one side, tilting mockup + floating chips the other
import { useRef, useState } from 'react';
export default function SplitHero() {
const stage = useRef(null);
const [tilt, setTilt] = useState({ rx: 0, ry: 0 });
const track = (e) => {
const r = stage.current.getBoundingClientRect();
setTilt({
rx: ((e.clientY - r.top) / r.height - 0.5) * -8,
ry: ((e.clientX - r.left) / r.width - 0.5) * 8,
});
};
return (
<>
<style>{`
.hrsl { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
padding: 4.5rem 1.5rem; }
.hrsl-stage { position: relative; perspective: 1200px; }
.hrsl-mock { transform: rotateY(${tilt.ry - 10}deg) rotateX(${tilt.rx}deg);
border-radius: 1rem; background: #fff; box-shadow: 0 30px 60px #0b102033;
transition: transform .25s ease-out; }
.hrsl-chip { position: absolute; translate: ${tilt.ry * 1.6}px ${tilt.rx * -1.6}px;
padding: .5rem .875rem; border-radius: 999px; background: #fff;
box-shadow: 0 8px 24px #0b102024; }
.hrsl-halo { position: absolute; inset: -10% -15%; border-radius: 50%;
background: radial-gradient(#6d7cff40, transparent 65%); filter: blur(40px); }
@media (prefers-reduced-motion: reduce) { .hrsl-mock { transition: none; } }
`}</style>
<section className="hrsl" onPointerMove={track} onPointerLeave={() => setTilt({ rx: 0, ry: 0 })}>
<div className="hrsl-copy">
<h1 className="hrsl-title">Your console for every rollout</h1>
<p className="hrsl-sub">Progressive delivery, traces and rollback on one plane.</p>
<button className="hrsl-btn">Start building</button>
</div>
<div className="hrsl-stage" ref={stage}>
<i className="hrsl-halo" aria-hidden="true" />
<div className="hrsl-mock">
<span className="hrsl-bar"><i /><i /><i /><b>app.asterly.io</b></span>
<div className="hrsl-row"><i className="hrsl-dot ok" /> api · v2.14.0 <small>Healthy</small></div>
</div>
<span className="hrsl-chip">Traces in 12ms</span>
<span className="hrsl-chip">Zero-downtime rollouts</span>
</div>
</section>
</>
);
}
<!-- SplitHero.vue — copy one side, tilting mockup + floating chips the other -->
<script setup>
import { ref } from 'vue';
const stage = ref(null);
const tilt = ref({ rx: 0, ry: 0 });
function track(e) {
const r = stage.value.getBoundingClientRect();
tilt.value = {
rx: ((e.clientY - r.top) / r.height - 0.5) * -8,
ry: ((e.clientX - r.left) / r.width - 0.5) * 8,
};
}
</script>
<template>
<section class="hrsl" @pointermove="track" @pointerleave="tilt = { rx: 0, ry: 0 }">
<div class="hrsl-copy">
<h1 class="hrsl-title">Your console for every rollout</h1>
<p class="hrsl-sub">Progressive delivery, traces and rollback on one plane.</p>
<button class="hrsl-btn">Start building</button>
</div>
<div class="hrsl-stage" ref="stage">
<i class="hrsl-halo" aria-hidden="true"></i>
<div class="hrsl-mock" :style="{
transform: `rotateY(${tilt.ry - 10}deg) rotateX(${tilt.rx}deg)`,
'--hrsl-ry': tilt.ry + 'deg', '--hrsl-rx': tilt.rx + 'deg',
}">
<span class="hrsl-bar"><i></i><i></i><i></i><b>app.asterly.io</b></span>
<div class="hrsl-row"><i class="hrsl-dot ok"></i> api · v2.14.0 <small>Healthy</small></div>
</div>
<span class="hrsl-chip">Traces in 12ms</span>
<span class="hrsl-chip">Zero-downtime rollouts</span>
</div>
</section>
</template>
<style scoped>
.hrsl { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
padding: 4.5rem 1.5rem; }
.hrsl-stage { position: relative; perspective: 1200px; }
.hrsl-mock { border-radius: 1rem; background: #fff; box-shadow: 0 30px 60px #0b102033;
transition: transform .25s ease-out; }
.hrsl-chip { position: absolute; translate: calc(var(--hrsl-ry, 0deg) * 1.6) calc(var(--hrsl-rx, 0deg) * -1.6);
padding: .5rem .875rem; border-radius: 999px; background: #fff;
box-shadow: 0 8px 24px #0b102024; }
.hrsl-halo { position: absolute; inset: -10% -15%; border-radius: 50%;
background: radial-gradient(#6d7cff40, transparent 65%); filter: blur(40px); }
</style>
<!-- SplitHero.svelte — copy one side, tilting mockup + floating chips the other -->
<script>
let stage;
let tilt = $state({ rx: 0, ry: 0 });
function track(e) {
const r = stage.getBoundingClientRect();
tilt = {
rx: ((e.clientY - r.top) / r.height - 0.5) * -8,
ry: ((e.clientX - r.left) / r.width - 0.5) * 8,
};
}
</script>
<section class="hrsl" onpointermove={track} onpointerleave={() => (tilt = { rx: 0, ry: 0 })}
style={`--hrsl-rx:${tilt.rx}deg; --hrsl-ry:${tilt.ry}deg`}>
<div class="hrsl-copy">
<h1 class="hrsl-title">Your console for every rollout</h1>
<p class="hrsl-sub">Progressive delivery, traces and rollback on one plane.</p>
<button class="hrsl-btn">Start building</button>
</div>
<div class="hrsl-stage" bind:this={stage}>
<i class="hrsl-halo" aria-hidden="true"></i>
<div class="hrsl-mock">
<span class="hrsl-bar"><i></i><i></i><i></i><b>app.asterly.io</b></span>
<div class="hrsl-row"><i class="hrsl-dot ok"></i> api · v2.14.0 <small>Healthy</small></div>
</div>
<span class="hrsl-chip">Traces in 12ms</span>
<span class="hrsl-chip">Zero-downtime rollouts</span>
</div>
</section>
<style>
.hrsl { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
padding: 4.5rem 1.5rem; }
.hrsl-stage { position: relative; perspective: 1200px; }
.hrsl-mock { transform: rotateY(calc(var(--hrsl-ry, 0deg) - 10deg)) rotateX(var(--hrsl-rx, 0deg));
border-radius: 1rem; background: #fff; box-shadow: 0 30px 60px #0b102033;
transition: transform .25s ease-out; }
.hrsl-chip { position: absolute; translate: calc(var(--hrsl-ry, 0deg) * 1.6) calc(var(--hrsl-rx, 0deg) * -1.6);
padding: .5rem .875rem; border-radius: 999px; background: #fff;
box-shadow: 0 8px 24px #0b102024; }
.hrsl-halo { position: absolute; inset: -10% -15%; border-radius: 50%;
background: radial-gradient(#6d7cff40, transparent 65%); filter: blur(40px); }
</style>