WRAPCODERS

Minimal Isometric Cloud Hero

Heroes

About

Minimalist technical hero section featuring mathematical 30° isometric cloud infrastructure architecture, interactive telemetry nodes, circuit data packet conduits, and enterprise trust metrics.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Minimal Isometric Cloud Hero to your project and fits it to your theme.

Code

How Minimal Isometric Cloud Hero is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useState, useEffect, useMemo } from "react";
import MinimalIsometricCloudHero, { type TelemetryNode } from "@/components/ui/minimal-isometric-cloud-hero";
import {
  Sun,
  Moon,
  Activity,
  Zap,
  Radio,
  RotateCcw,
  Sparkles,
  Cpu,
  Server,
  Shield,
  Layers,
  HardDrive,
  Cable,
} from "lucide-react";

export default function MinimalIsometricCloudHeroDemo() {
  const [isDark, setIsDark] = useState<boolean>(() => {
    if (typeof window !== "undefined") {
      const params = new URLSearchParams(window.location.search);
      const themeParam = params.get("theme");
      if (themeParam === "dark") return true;
      if (themeParam === "light") return false;
      return document.documentElement.classList.contains("dark");
    }
    return false;
  });

  const [enablePacketFlow, setEnablePacketFlow] = useState(true);
  const [enableSignalWaves, setEnableSignalWaves] = useState(true);
  const [enableParallax, setEnableParallax] = useState(true);
  const [selectedNodeId, setSelectedNodeId] = useState<string>("central-hub");
  const [lastAction, setLastAction] = useState<string | null>(null);

  // Sync dark class on mount and theme state changes
  useEffect(() => {
    if (typeof document !== "undefined") {
      if (isDark) {
        document.documentElement.classList.add("dark");
      } else {
        document.documentElement.classList.remove("dark");
      }
    }
  }, [isDark]);

  const toggleTheme = () => {
    setIsDark((prev) => !prev);
  };

  const customTelemetryNodes: TelemetryNode[] = useMemo(
    () => [
      {
        id: "central-hub",
        label: "Compute Node",
        value: "8 vCPU • 32GB RAM • US-East",
        status: "active",
        pulse: true,
      },
      {
        id: "auth-gateway",
        label: "Identity Gateway",
        value: "OIDC / JWT • 1.2ms latency",
        status: "success",
        pulse: true,
      },
      {
        id: "control-plane",
        label: "Control Plane",
        value: "14 Global Regions Synced",
        status: "active",
      },
      {
        id: "edge-worker",
        label: "Serverless Edge",
        value: "0ms Cold Start • 45 PoPs",
        status: "active",
      },
      {
        id: "storage-pool",
        label: "NVMe Storage Pool",
        value: "4.8 GB/s Read • Encrypted",
        status: "idle",
      },
      {
        id: "ground-uplink",
        label: "Ground Fiber Uplink",
        value: "100 Gbps Terabit Trunk",
        status: "success",
      },
    ],
    []
  );

  const activeNode = customTelemetryNodes.find((n) => n.id === selectedNodeId);

  const getNodeIcon = (id: string) => {
    switch (id) {
      case "central-hub":
        return <Cpu className="h-3.5 w-3.5" />;
      case "auth-gateway":
        return <Shield className="h-3.5 w-3.5" />;
      case "control-plane":
        return <Layers className="h-3.5 w-3.5" />;
      case "edge-worker":
        return <Server className="h-3.5 w-3.5" />;
      case "storage-pool":
        return <HardDrive className="h-3.5 w-3.5" />;
      case "ground-uplink":
        return <Cable className="h-3.5 w-3.5" />;
      default:
        return <Activity className="h-3.5 w-3.5" />;
    }
  };

  return (
    <div className="relative min-h-screen w-full bg-background text-foreground transition-colors duration-200">
      {/* Floating Demo Toolbar (Live Theme & Feature Inspector) */}
      <header className="sticky top-0 z-40 w-full border-b border-border bg-background/90 backdrop-blur-md">
        <div className="mx-auto flex max-w-7xl flex-wrap items-center justify-between gap-4 px-4 py-3 sm:px-6 lg:px-8">
          <div className="flex items-center gap-2.5">
            <span className="flex h-2 w-2 rounded-full bg-emerald-500 animate-pulse" />
            <span className="text-xs font-mono font-medium uppercase tracking-wider text-foreground">
              Minimal Isometric Cloud Hero
            </span>
            <span className="rounded-full border border-border bg-muted px-2 py-0.5 text-[10px] font-mono text-muted-foreground">
              21st.dev Block
            </span>
          </div>

          <div className="flex flex-wrap items-center gap-2">
            {/* Feature Animation Toggles */}
            <div className="flex items-center gap-1 rounded-md border border-border bg-muted/40 p-0.5">
              <button
                type="button"
                onClick={() => setEnablePacketFlow((prev) => !prev)}
                className={`flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs font-mono font-medium transition-colors ${
                  enablePacketFlow
                    ? "bg-foreground text-background shadow-sm"
                    : "text-muted-foreground hover:text-foreground"
                }`}
                title="Toggle packet flow animation along conduits"
                aria-label="Toggle circuit packet flow"
              >
                <Zap className="h-3.5 w-3.5" />
                <span className="hidden sm:inline">Packets</span>
              </button>

              <button
                type="button"
                onClick={() => setEnableSignalWaves((prev) => !prev)}
                className={`flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs font-mono font-medium transition-colors ${
                  enableSignalWaves
                    ? "bg-foreground text-background shadow-sm"
                    : "text-muted-foreground hover:text-foreground"
                }`}
                title="Toggle radiating telemetry wireless waves"
                aria-label="Toggle signal waves"
              >
                <Radio className="h-3.5 w-3.5" />
                <span className="hidden sm:inline">Waves</span>
              </button>

              <button
                type="button"
                onClick={() => setEnableParallax((prev) => !prev)}
                className={`flex h-8 items-center gap-1.5 rounded-md px-2.5 text-xs font-mono font-medium transition-colors ${
                  enableParallax
                    ? "bg-foreground text-background shadow-sm"
                    : "text-muted-foreground hover:text-foreground"
                }`}
                title="Toggle mouse parallax 3D tilt"
                aria-label="Toggle 3D parallax tilt"
              >
                <Sparkles className="h-3.5 w-3.5" />
                <span className="hidden sm:inline">Tilt</span>
              </button>
            </div>

            {/* Live Light / Dark Theme Switcher */}
            <button
              type="button"
              onClick={toggleTheme}
              className="flex h-8 items-center gap-1.5 rounded-md border border-border bg-background px-3 text-xs font-mono font-medium text-foreground transition-colors hover:bg-accent hover:text-accent-foreground"
              aria-label={`Switch to ${isDark ? "light" : "dark"} mode`}
            >
              {isDark ? (
                <>
                  <Sun className="h-3.5 w-3.5 text-amber-400" />
                  <span className="hidden sm:inline">Light</span>
                </>
              ) : (
                <>
                  <Moon className="h-3.5 w-3.5 text-muted-foreground" />
                  <span className="hidden sm:inline">Dark</span>
                </>
              )}
            </button>
          </div>
        </div>
      </header>

      {/* Main Hero Component with realistic props and disciplined typography */}
      <main className="w-full">
        <MinimalIsometricCloudHero
          badge={{
            text: "CLOUD SERVER PLATFORM >",
            showChevron: false,
            onClick: () => setLastAction("Badge clicked: Navigation triggered"),
          }}
          headline="Deploy Your Infrastructure In Minutes"
          subtitle="Professional cloud hosting solutions with high-performance virtual machines."
          socialProof={{
            avatars: [
              {
                src: "https://cdn.21st.dev/assets/mirror/25/257bcf818acd9e23d260149faed403e73c8b7d785db6bf127246741a288b5d84.jpg",
                alt: "Sarah Chen - Staff Infrastructure Engineer",
              },
              {
                src: "https://cdn.21st.dev/assets/mirror/b8/b8c94092491152f0382fcc8f1e7d89c0bf7bd7668611e2cfddec6f26e30c8e25.jpg",
                alt: "Marcus Vance - Head of DevOps",
              },
              {
                src: "https://cdn.21st.dev/assets/mirror/c1/c1e918401d72a2993ff45a47e8a079282db566f43a6b8e9d16c8e1803c19f893.jpg",
                alt: "Elena Rostova - Cloud Architect",
              },
              {
                src: "https://cdn.21st.dev/assets/mirror/cd/cdcc00d6b60d7473e913218439522c4184072337d0d29bcce11f393397ce1db6.jpg",
                alt: "Devon Miller - Principal SRE",
              },
            ],
            rating: 5,
            maxRating: 5,
            ratingText: "from 200+ reviews",
          }}
          primaryAction={{
            label: "Get Started",
            variant: "outline",
            onClick: () => setLastAction("Primary CTA: 'Get Started' clicked"),
          }}
          secondaryAction={{
            label: "Start free trial",
            variant: "primary",
            onClick: () => setLastAction("Secondary CTA: 'Start free trial' clicked"),
          }}
          trustFeatures={[
            { text: "Trusted by 4,000+ companies" },
            { text: "Free Forever" },
            { text: "Set up in just 1 day" },
          ]}
          diagram={{
            enableParallax,
            parallaxIntensity: 10,
            enableSignalWaves,
            enablePacketFlow,
            hubLabel: "HyperCloud Compute Node",
            hubStatus: "99.999% SLA • Operational",
            telemetryNodes: customTelemetryNodes,
            onNodeClick: (nodeId) => {
              setSelectedNodeId(nodeId);
              setLastAction(`Node inspected: ${nodeId}`);
            },
          }}
        />
      </main>

      {/* Interactive Telemetry Inspection Drawer / Quick-Select Bar */}
      <aside
        aria-label="Interactive Telemetry Node Inspector"
        className="mx-auto mb-16 sm:mb-20 max-w-7xl px-4 sm:px-6 lg:px-8"
      >
        <div className="rounded-lg border border-border bg-card p-4 sm:p-6 shadow-sm">
          <div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
            <div className="flex items-center gap-3">
              <div className="flex h-9 w-9 items-center justify-center rounded-md bg-muted text-foreground">
                <Activity className="h-5 w-5 text-emerald-500 animate-pulse" />
              </div>
              <div>
                <h2 className="text-xs font-mono font-medium uppercase tracking-wider text-foreground">
                  Interactive Telemetry Node Inspector
                </h2>
                <p className="text-xs text-muted-foreground mt-0.5">
                  Click any node on the isometric diagram or select below to simulate telemetry queries
                </p>
              </div>
            </div>

            {lastAction && (
              <div className="flex items-center gap-2 rounded-md border border-border bg-muted/60 px-3 py-1 font-mono text-xs text-muted-foreground">
                <span className="h-1.5 w-1.5 rounded-full bg-emerald-500" />
                <span>{lastAction}</span>
                <button
                  type="button"
                  onClick={() => setLastAction(null)}
                  className="ml-1 text-muted-foreground hover:text-foreground transition-colors"
                  aria-label="Dismiss last action log"
                >
                  <RotateCcw className="h-3 w-3" />
                </button>
              </div>
            )}
          </div>

          {/* Quick-Select Nodes List with consistent rounded-md borders */}
          <div className="mt-4 grid grid-cols-2 gap-2 sm:grid-cols-3 lg:grid-cols-6">
            {customTelemetryNodes.map((node) => {
              const isSelected = selectedNodeId === node.id;
              return (
                <button
                  key={node.id}
                  type="button"
                  onClick={() => {
                    setSelectedNodeId(node.id);
                    setLastAction(`Selected ${node.label}`);
                  }}
                  className={`flex flex-col items-start gap-1 rounded-md border p-3 text-left transition-colors ${
                    isSelected
                      ? "border-foreground bg-accent text-accent-foreground shadow-sm"
                      : "border-border bg-background hover:bg-muted/50 text-foreground"
                  }`}
                  aria-pressed={isSelected}
                >
                  <div className="flex w-full items-center justify-between text-muted-foreground">
                    <span className={isSelected ? "text-foreground" : "text-muted-foreground"}>
                      {getNodeIcon(node.id)}
                    </span>
                    <span
                      className={`h-1.5 w-1.5 rounded-full ${
                        node.status === "active"
                          ? "bg-blue-500"
                          : node.status === "success"
                          ? "bg-emerald-500"
                          : "bg-muted-foreground"
                      }`}
                    />
                  </div>
                  <span className="mt-1 text-xs font-mono font-medium text-foreground truncate w-full">
                    {node.label}
                  </span>
                  <span className="text-[10px] font-mono text-muted-foreground truncate w-full">
                    {node.value}
                  </span>
                </button>
              );
            })}
          </div>

          {/* Active Node Detail Card with uniform styling */}
          {activeNode && (
            <div className="mt-4 flex flex-wrap items-center justify-between gap-3 rounded-md border border-border bg-muted/40 px-4 py-3 font-mono text-xs">
              <div className="flex items-center gap-3">
                <span className="text-muted-foreground">Inspected Node:</span>
                <span className="font-medium text-foreground">{activeNode.label}</span>
                <span className="rounded-full bg-emerald-500/10 px-2 py-0.5 text-[10px] font-medium text-emerald-600 dark:text-emerald-400">
                  Status: {activeNode.status}
                </span>
              </div>
              <div className="text-muted-foreground">
                Payload: <span className="text-foreground">{activeNode.value}</span>
              </div>
            </div>
          )}
        </div>
      </aside>
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Metric Trend Chart

    Metric Trend Chart

    31
  • Real Estate 3D Hero

    Real Estate 3D Hero

    23
  • Interactive 3D Hero Header

    Interactive 3D Hero Header

    2
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

  • Minimal Pricing Plan

    Minimal Pricing Plan

  • Portfolio Projects Showcase

    Portfolio Projects Showcase

  • App Integration Celestial Hero

    App Integration Celestial Hero

  • Admin Dashboard Cards

    Admin Dashboard Cards

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Editorial Collage Hero

    Editorial Collage Hero

    507
  • Hero Section

    Hero Section

    445
  • Aero Hero-3

    Aero Hero-3

    618
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    442

Explore more

Part of Components — browse the full library on 21st.dev.