WRAPCODERS

AI SaaS Workflow Hero

Component

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 for Interactive Previews */}
      <div className="fixed bottom-4 right-4 z-50 flex items-center gap-2 rounded-full border border-border bg-card/90 px-3 py-1.5 shadow-lg backdrop-blur-md">
        <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: "#signin" },
            { label: "Start a free demo", variant: "primary", href: "#demo" },
          ],
        }}
        badge={{
          text: "SASS THAT GROW YOUR BUSINESS BUILT BY AI",
        }}
        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: "#trial",
        }}
        secondaryAction={{
          label: "Book a demo",
          href: "#demo",
        }}
      />
    </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
  • Minimal Pricing Plan

    Minimal Pricing Plan

  • Portfolio Projects Showcase

    Portfolio Projects Showcase

  • App Integration Celestial Hero

    App Integration Celestial Hero

  • Minimal Isometric Cloud Hero

    Minimal Isometric Cloud Hero

  • Admin Dashboard Cards

    Admin Dashboard Cards

Explore more