About
Interactive 3D particle morphing hero section with mathematical torus, screen, diamond, and ribbon formations, dark/light theme support, and clean typography.
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,
headline: "Supercomputing for the on-chain economy.",
primaryCtaLabel: "Get started",
};
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 (
<QuantalParticleHero
brand={{ name: "quantal", href: "#top" }}
navItems={[
{ label: "Platform", href: "#platform" },
{ label: "How it works", href: "#how-it-works" },
{ label: "Use cases", href: "#use-cases" },
{ label: "Docs", href: "#docs" },
]}
navCta={{ label: "Sign in", href: "#signin" }}
badge={{ text: "Quantal v2 Mainnet is live", href: "#platform", external: false }}
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}
showWindowChrome={false}
/>
);
}
















