WRAPCODERS

GeoSales Order Dashboard

Dashboards

About

Dark acrylic logistics orders dashboard with filter tabs, status indicators, and sleek navigation dock

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

Code

How GeoSales Order Dashboard is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useState } from "react";
import GeoSalesOrderDashboard, {
  DEFAULT_GEOSALES_ORDERS,
  type GeoSalesOrder,
} from "@/components/ui/geosales-order-dashboard";
import { Sun, Moon, ArrowUpRight, RefreshCw } from "lucide-react";

interface GeoSalesDemoProps {
  currentTheme?: "dark" | "light";
  onToggleTheme?: () => void;
}

export default function GeoSalesDemo({
  currentTheme = "dark",
  onToggleTheme,
}: GeoSalesDemoProps) {
  const [internalTheme, setInternalTheme] = useState<"dark" | "light">(currentTheme);
  const [orders, setOrders] = useState<GeoSalesOrder[]>(DEFAULT_GEOSALES_ORDERS);

  const isDark = (onToggleTheme ? currentTheme : internalTheme) === "dark";

  const handleToggle = () => {
    if (onToggleTheme) {
      onToggleTheme();
    } else {
      const next = isDark ? "light" : "dark";
      setInternalTheme(next);
      const root = document.documentElement;
      if (next === "dark") {
        root.classList.add("dark");
        root.classList.remove("light");
      } else {
        root.classList.remove("dark");
        root.classList.add("light");
      }
    }
  };

  const handleResetData = () => {
    setOrders([...DEFAULT_GEOSALES_ORDERS]);
  };

  return (
    <div className="relative min-h-screen w-full bg-[#0d0f14] dark:bg-[#0d0f14] bg-zinc-100 text-zinc-100 dark:text-zinc-100 text-zinc-900 transition-colors duration-200">
      {/* Decorative Grid Background Pattern */}
      <div
        className="pointer-events-none absolute inset-0 opacity-[0.03] dark:opacity-[0.04]"
        style={{
          backgroundImage: `radial-gradient(currentColor 1px, transparent 1px)`,
          backgroundSize: "24px 24px",
        }}
      />

      {/* Top Referral & Control Bar */}
      <header className="relative z-30 mx-auto max-w-7xl px-4 pt-6 pb-4 sm:px-6 lg:px-8">
        <div className="flex flex-col sm:flex-row items-center justify-between gap-4 rounded-xl border border-white/10 dark:border-white/10 border-zinc-300/80 bg-[#16181f]/80 dark:bg-[#16181f]/80 bg-white/80 p-3 backdrop-blur-md shadow-lg">
          <div className="flex items-center gap-3">
            <span className="flex h-2 w-2 rounded-full bg-[#9bef3c] shadow-[0_0_8px_#9bef3c]" />
            <div className="text-xs sm:text-sm font-semibold tracking-tight text-white dark:text-white text-zinc-900">
              GeoSales Logistics Hub
            </div>
            <span className="hidden sm:inline-block text-xs text-zinc-400">|</span>
            <span className="hidden sm:inline-block text-xs text-zinc-400">
              Orders & Dispatch Management
            </span>
          </div>

          <div className="flex items-center gap-2.5">
            {/* Theme Toggle Button */}
            <button
              type="button"
              onClick={handleToggle}
              aria-label={`Switch to ${isDark ? "light" : "dark"} theme`}
              className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-white/10 dark:border-white/10 border-zinc-200 bg-[#1c1f27] dark:bg-[#1c1f27] bg-zinc-100 px-3 text-xs font-medium text-zinc-300 dark:text-zinc-300 text-zinc-700 hover:text-white hover:border-white/20 transition-colors"
            >
              {isDark ? (
                <>
                  <Sun className="h-3.5 w-3.5 text-amber-400" />
                  <span className="hidden xs:inline">Light mode</span>
                </>
              ) : (
                <>
                  <Moon className="h-3.5 w-3.5 text-indigo-400" />
                  <span className="hidden xs:inline">Dark mode</span>
                </>
              )}
            </button>

            {/* Reset Data Button */}
            <button
              type="button"
              onClick={handleResetData}
              aria-label="Reset demo orders"
              className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-white/10 dark:border-white/10 border-zinc-200 bg-[#1c1f27] dark:bg-[#1c1f27] bg-zinc-100 px-3 text-xs font-medium text-zinc-300 dark:text-zinc-300 text-zinc-700 hover:text-white hover:border-white/20 transition-colors"
            >
              <RefreshCw className="h-3 w-3" />
              <span>Reset</span>
            </button>

            {/* Primary Referral CTA */}
            <a
              href="https://21st.dev/?ref=mdruhulhasan"
              target="_blank"
              rel="noopener noreferrer"
              className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-lime-400/40 bg-lime-400/10 px-3.5 text-xs font-semibold text-[#9bef3c] shadow-[0_0_12px_rgba(155,239,60,0.2)] transition-colors hover:bg-lime-400/20 hover:border-lime-400/70"
            >
              <span>Explore on 21st.dev</span>
              <ArrowUpRight className="h-3.5 w-3.5" />
            </a>
          </div>
        </div>
      </header>

      {/* Main Component Stage */}
      <main className="relative z-10 mx-auto max-w-7xl px-4 py-4 sm:px-6 lg:px-8">
        <GeoSalesOrderDashboard
          orders={orders}
          defaultSelectedIds={["ord-3", "ord-7"]}
          initialTab="Active"
          platformName="GeoSales platform"
          referralUrl="https://21st.dev/?ref=mdruhulhasan"
        />
      </main>

      {/* Showcase Footer / Attribution */}
      <footer className="relative z-10 mx-auto max-w-7xl px-4 py-8 sm:px-6 lg:px-8 text-center">
        <div className="flex flex-col sm:flex-row items-center justify-between gap-4 border-t border-white/10 dark:border-white/10 border-zinc-300/80 pt-6 text-xs text-zinc-500">
          <div>
            Built with React, Tailwind CSS, and Lucide icons for{" "}
            <a
              href="https://21st.dev/?ref=mdruhulhasan"
              target="_blank"
              rel="noopener noreferrer"
              className="font-medium text-zinc-400 hover:text-[#9bef3c] transition-colors"
            >
              21st.dev
            </a>
          </div>

          <div className="flex items-center gap-4">
            <a
              href="https://21st.dev/?ref=mdruhulhasan"
              target="_blank"
              rel="noopener noreferrer"
              className="inline-flex items-center gap-1 text-zinc-400 hover:text-white transition-colors"
            >
              <span>Component Registry</span>
              <ArrowUpRight className="h-3 w-3" />
            </a>
            <a
              href="https://21st.dev/?ref=mdruhulhasan"
              target="_blank"
              rel="noopener noreferrer"
              className="inline-flex items-center gap-1 text-[#9bef3c] hover:underline"
            >
              <span>Get this template</span>
            </a>
          </div>
        </div>
      </footer>
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Product Hover Showcase

    Product Hover Showcase

    75
  • Real Estate 3D Hero

    Real Estate 3D Hero

    45
  • Metric Trend Chart

    Metric Trend Chart

    34
  • AI Motion Visual Orb

    AI Motion Visual Orb

    16
  • Interactive 3D Hero Header

    Interactive 3D Hero Header

    16
  • Portfolio Projects Showcase

    Portfolio Projects Showcase

    14
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    11
  • Executive Pricing Plan

    Executive Pricing Plan

    10

More in Dashboards

View all
  • serf dashboard

    serf dashboard

    39
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.6K
  • Glass Dashboard

    Glass Dashboard

    690
  • Adjustable Glass Dashboard

    Adjustable Glass Dashboard

    1.1K
  • Dashboard Shell

    Dashboard Shell

    193
  • Stat Card

    Stat Card

    70
  • Chart Component

    Chart Component

    29
  • App Dashboard Layout

    App Dashboard Layout

    541