WRAPCODERS

AI SaaS Workflow Hero

Component 16

About

Ultra-clean AI SaaS landing hero featuring an interactive workflow mind-map canvas with animated bezier conduits and live telemetry nodes.

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

Code

How AI SaaS Workflow 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 AiSaasHero from "@/components/ui/ai-saas-workflow-hero";
import { Sun, Moon } from "lucide-react";

export default function AiSaasHeroDemo() {
  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;
  });

  // 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);
  };

  return (
    <div className="relative min-h-screen bg-background text-foreground transition-colors duration-200">
      {/* Floating Theme Switcher & Referral Link for Interactive Previews */}
      <div className="fixed bottom-4 right-4 z-50 flex items-center gap-3 rounded-full border border-border bg-card/90 px-3.5 py-1.5 shadow-lg backdrop-blur-md">
        <a
          href="https://21st.dev/?ref=mdruhulhasan"
          target="_blank"
          rel="noopener noreferrer"
          className="text-xs font-medium text-muted-foreground hover:text-primary transition-colors duration-200"
        >
          Built for <span className="font-semibold text-foreground">21st.dev</span> ↗
        </a>
        <span className="h-3 w-px bg-border/80" aria-hidden="true" />
        <button
          type="button"
          onClick={toggleTheme}
          className="flex items-center gap-1.5 text-xs font-medium text-foreground hover:text-primary transition-colors cursor-pointer"
          aria-label={isDark ? "Switch to light mode" : "Switch to dark mode"}
        >
          {isDark ? (
            <>
              <Sun className="h-3.5 w-3.5 text-amber-500" />
              <span>Light Mode</span>
            </>
          ) : (
            <>
              <Moon className="h-3.5 w-3.5 text-indigo-500" />
              <span>Dark Mode</span>
            </>
          )}
        </button>
      </div>

      {/* Main SaaS Hero Block */}
      <AiSaasHero
        navigation={{
          logo: { text: "Quize.net" },
          links: [
            { label: "Home", href: "#" },
            { label: "About us", href: "#about" },
            { label: "Pricing", href: "#pricing" },
            { label: "Features", href: "#features" },
            { label: "Integrations", href: "#integrations" },
            { label: "Blog", href: "#blog" },
          ],
          actions: [
            { label: "Sign In", variant: "ghost", href: "https://21st.dev/?ref=mdruhulhasan" },
            { label: "Start a free demo", variant: "primary", href: "https://21st.dev/?ref=mdruhulhasan" },
          ],
        }}
        badge={{
          text: "SASS THAT GROW YOUR BUSINESS BUILT BY AI",
          href: "https://21st.dev/?ref=mdruhulhasan",
        }}
        headline={{
          line1: "Smarter AI",
          line2: "workflows",
          highlight: "happier users.",
        }}
        subheadline="Analyze and optimize every customer interaction with AI-driven insights, automatically improving workflows."
        primaryAction={{
          label: "Try for free",
          href: "https://21st.dev/?ref=mdruhulhasan",
        }}
        secondaryAction={{
          label: "Book a demo",
          href: "https://21st.dev/?ref=mdruhulhasan",
        }}
      />
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    89
  • Real Estate 3D Hero

    Real Estate 3D Hero

    50
  • Metric Trend Chart

    Metric Trend Chart

    35
  • LoopAI CRM

    LoopAI CRM

    32
  • Flash Technologies Crypto Wallet Hero

    Flash Technologies Crypto Wallet Hero

    23
  • AI Motion Visual Orb

    AI Motion Visual Orb

    21
  • TraceRocket Reports Dashboard

    TraceRocket Reports Dashboard

    20
  • Client Management CRM Hub

    Client Management CRM Hub

    19

Explore more