Liana Pepanyan

Processing Card

Cards 197

About

An animated status card for daliagents.com showing a Dali agent working through a live lead run - qualifying, routing, replying - as part of the Dali Agents UI.

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

Code

How Processing Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import * as React from "react";
import ProcessingCard from "@/components/ui/processing-card";

export default function DemoOne() {
  const [status, setStatus] = React.useState<
    "queued" | "running" | "succeeded" | "failed"
  >("queued");
  const [progress, setProgress] = React.useState(0);

  React.useEffect(() => {
    setStatus("queued");
    setProgress(0);

    const t1 = setTimeout(() => setStatus("running"), 800);
    const interval = setInterval(
      () => setProgress((p) => Math.min(p + Math.random() * 10 + 5, 95)),
      500
    );
    const t2 = setTimeout(() => {
      setProgress(100);
      setStatus("succeeded");
      clearInterval(interval);
    }, 6000);

    return () => {
      clearTimeout(t1);
      clearTimeout(t2);
      clearInterval(interval);
    };
  }, []);

  return (
    <div className="min-h-screen w-full relative flex items-center justify-center">
      {/* Gradient background */}
      <div
        className="absolute inset-0 z-0"
        style={{
          background:
            "radial-gradient(125% 125% at 50% 100%, #000000 40%, #010133 100%)",
        }}
      />

      {/* Content on top */}
      <div className="relative z-10 flex flex-col items-center space-y-4">
        <div className="w-[480px]">
          <ProcessingCard
            name="Lead qualification"
            status={status}
            progress={progress}
            className="rounded-2xl border border-white/20 shadow-lg bg-white/[0.03]"
          />
        </div>
      </div>
    </div>
  );
}

Dependencies

More by Liana Pepanyan

View all
  • CTA with Text Marquee

    CTA with Text Marquee

    1.1K
  • Dock

    Dock

    421
  • Hero Minimalism

    Hero Minimalism

    413
  • CTA with Marquee

    CTA with Marquee

    355
  • Dark Grid

    Dark Grid

    203
  • Login / Signup

    Login / Signup

    194
  • Blueprint Shader Grid

    Blueprint Shader Grid

    136
  • Fallback Card

    Fallback Card

    113

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    33
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card

    Card

    70
  • Statistics Card 2

    Statistics Card 2

    264
  • Statistics Card 10

    Statistics Card 10

    263
  • Card

    Card

    17
  • Card Studio

    Card Studio

    9
  • The Item one

    The Item one

    3