About
Dark-mode crypto wallet hero header with aligned PCB circuit traces, multi-chain network nodes, security audit badge, and responsive navigation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Flash Technologies Crypto Wallet Hero to your project and fits it to your theme.
Code
How Flash Technologies Crypto Wallet Hero is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { useState, useEffect } from "react";
import FlashCryptoHero from "@/components/ui/flash-crypto-hero";
import { Sun, Moon, Laptop, Tablet, Smartphone, Sparkles, Box, CreditCard } from "lucide-react";
export default function FlashCryptoHeroDemo() {
const [isDark, setIsDark] = useState<boolean>(() => {
if (typeof window !== "undefined") {
const params = new URLSearchParams(window.location.search);
const themeParam = params.get("theme");
if (themeParam === "light") return false;
if (themeParam === "dark") return true;
return true;
}
return true;
});
const [viewport, setViewport] = useState<"desktop" | "tablet" | "mobile">("desktop");
const [hubVariant, setHubVariant] = useState<"squircle" | "card">("squircle");
useEffect(() => {
if (typeof document !== "undefined") {
if (isDark) {
document.documentElement.classList.add("dark");
} else {
document.documentElement.classList.remove("dark");
}
}
}, [isDark]);
const toggleTheme = () => {
setIsDark((prev) => !prev);
};
return (
<div className="relative min-h-screen w-full bg-[#08090C] text-foreground transition-colors duration-200">
{/* Top Demo Toolbar */}
<header className="sticky top-0 z-50 w-full border-b border-white/10 bg-neutral-950/80 backdrop-blur-md">
<div className="mx-auto flex max-w-7xl items-center justify-between px-3 sm:px-6 py-2">
{/* Left Brand Badge */}
<div className="flex items-center gap-2">
<span className="text-xs font-semibold tracking-wide text-white font-mono uppercase">
Flash Technologies Hero
</span>
<span className="hidden sm:inline-flex rounded-full bg-amber-400/10 text-amber-400 border border-amber-400/20 px-2 py-0.5 text-[10px] font-mono font-medium">
v1.1
</span>
</div>
{/* Right Action Tools */}
<div className="flex items-center gap-2">
{/* High-Converting Referral Button */}
<a
href="https://21st.dev/?ref=mdruhulhasan"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1.5 rounded-full bg-gradient-to-r from-yellow-400 via-amber-500 to-amber-600 px-3 sm:px-4 py-1 text-xs font-bold text-neutral-950 shadow-[0_0_15px_rgba(245,158,11,0.4)] hover:shadow-[0_0_22px_rgba(245,158,11,0.6)] transition-[box-shadow,transform] duration-200 active:scale-95"
>
<Sparkles className="h-3.5 w-3.5 fill-neutral-950" />
<span className="hidden sm:inline">Explore on 21st.dev</span>
<span className="sm:hidden">21st.dev</span>
</a>
{/* Hub Variant Switcher */}
<div className="hidden md:flex items-center rounded-lg border border-white/10 bg-white/5 p-0.5">
<button
type="button"
onClick={() => setHubVariant("squircle")}
className={`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${
hubVariant === "squircle"
? "bg-white/15 text-white shadow-sm font-semibold"
: "text-zinc-400 hover:text-white"
}`}
title="Squircle Icon Hub"
>
<Box className="h-3.5 w-3.5" />
<span>Squircle</span>
</button>
<button
type="button"
onClick={() => setHubVariant("card")}
className={`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${
hubVariant === "card"
? "bg-white/15 text-white shadow-sm font-semibold"
: "text-zinc-400 hover:text-white"
}`}
title="3D Payment Card"
>
<CreditCard className="h-3.5 w-3.5" />
<span>Card</span>
</button>
</div>
{/* Viewport Switcher */}
<div className="hidden lg:flex items-center rounded-lg border border-white/10 bg-white/5 p-0.5">
<button
type="button"
onClick={() => setViewport("desktop")}
className={`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${
viewport === "desktop"
? "bg-white/15 text-white shadow-sm"
: "text-zinc-400 hover:text-white"
}`}
title="Desktop View"
>
<Laptop className="h-3.5 w-3.5" />
<span>Desktop</span>
</button>
<button
type="button"
onClick={() => setViewport("tablet")}
className={`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${
viewport === "tablet"
? "bg-white/15 text-white shadow-sm"
: "text-zinc-400 hover:text-white"
}`}
title="Tablet View (768px)"
>
<Tablet className="h-3.5 w-3.5" />
<span>Tablet</span>
</button>
<button
type="button"
onClick={() => setViewport("mobile")}
className={`inline-flex items-center gap-1 rounded-md px-2 py-1 text-xs font-medium transition-colors ${
viewport === "mobile"
? "bg-white/15 text-white shadow-sm"
: "text-zinc-400 hover:text-white"
}`}
title="Mobile View (375px)"
>
<Smartphone className="h-3.5 w-3.5" />
<span>Mobile</span>
</button>
</div>
{/* Theme Toggle */}
<button
type="button"
onClick={toggleTheme}
className="inline-flex h-7 items-center gap-1.5 rounded-full border border-white/10 bg-white/5 px-2.5 text-xs font-medium text-white transition-colors hover:bg-white/10"
aria-label={`Switch to ${isDark ? "light" : "dark"} mode`}
>
{isDark ? (
<>
<Sun className="h-3 w-3 text-amber-400" />
<span className="hidden sm:inline">Light</span>
</>
) : (
<>
<Moon className="h-3 w-3 text-zinc-400" />
<span className="hidden sm:inline">Dark</span>
</>
)}
</button>
</div>
</div>
</header>
{/* Main Container */}
<main className="w-full flex justify-center">
<div
className={`w-full transition-[max-width] duration-300 ${
viewport === "mobile"
? "max-w-sm border border-white/10 rounded-3xl overflow-hidden shadow-2xl bg-[#0A0B0E] my-4"
: viewport === "tablet"
? "max-w-3xl border border-white/10 rounded-2xl overflow-hidden shadow-2xl bg-[#0A0B0E] my-4"
: "max-w-full"
}`}
>
<FlashCryptoHero
hubVariant={hubVariant}
referralUrl="https://21st.dev/?ref=mdruhulhasan"
onNodeSelect={(node) => console.log("Selected node:", node.name)}
/>
</div>
</main>
</div>
);
}
















