About
Focused 3D morphing particle hero with theme-aware canvas geometry, four shape modes, and reduced-motion support.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Quantal Particle Hero to your project and fits it to your theme.
Code
How Quantal Particle Hero is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useEffect } from "react";
import { QuantalParticleHero, type ParticleShape } from "@/components/ui/quantal-hero";
const settings = {
initialShape: "torus" as ParticleShape,
autoCycleShapes: true,
particleCount: 2800,
interactive: true,
badgeText: "Quantal v2 Mainnet is live",
headline: "Supercomputing for the on-chain economy.",
primaryCtaLabel: "Get started",
showFooterCredit: true,
};
export default function QuantalHeroDemo(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
useEffect(() => {
if (typeof window === "undefined") return;
const themeParam = new URLSearchParams(window.location.search).get("theme");
if (themeParam === "light") {
document.documentElement.classList.remove("dark");
} else if (themeParam === "dark") {
document.documentElement.classList.add("dark");
}
}, []);
return (
<div className="flex min-h-screen w-full flex-col items-center justify-center bg-background px-4 py-8 text-foreground sm:px-6 lg:px-8">
<div className="w-full max-w-6xl">
<QuantalParticleHero
badge={s.badgeText ? { text: s.badgeText, href: "#platform" } : undefined}
title={s.headline}
subtitle="Quantal connects high-performance computing to decentralized finance. Run heavy workloads and settle every result on-chain."
primaryCta={{ label: s.primaryCtaLabel, href: "#get-started" }}
secondaryCta={{ label: "How it works", href: "#how-it-works" }}
particleCount={s.particleCount}
initialShape={s.initialShape}
autoCycleShapes={s.autoCycleShapes}
interactive={s.interactive}
/>
{s.showFooterCredit && (
<footer className="mt-5 flex justify-center">
<a
href="https://21st.dev/@wrapcoders?ref=mdruhulhasan"
target="_blank"
rel="noopener noreferrer"
className="rounded-sm text-xs text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
>
More by @wrapcoders
</a>
</footer>
)}
</div>
</div>
);
}
















