Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update footer

Steven Tey307fa1d8f8ef
diff --git a/packages/ui/package.json b/packages/ui/package.json
index cd258a71ed..75730caca8 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@dub/ui",
"description": "UI components for Dub.co",
- "version": "0.0.56",
+ "version": "0.0.57",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsx
index f0a83d2fa9..dc0af450a4 100644
--- a/packages/ui/src/footer.tsx
+++ b/packages/ui/src/footer.tsx
@@ -289,9 +289,23 @@ function StatusBadge() {
<Link
href="https://status.dub.co"
target="_blank"
- className="flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100"
+ className="group flex max-w-fit items-center space-x-2 rounded-md border border-gray-200 bg-white px-3 py-2 transition-colors hover:bg-gray-100"
>
- <div className={cn("h-3 w-3 rounded-full", color)} />
+ <div className="relative h-3 w-3">
+ <div
+ className={cn(
+ "absolute inset-0 m-auto h-3 w-3 animate-ping items-center justify-center rounded-full group-hover:animate-none",
+ color,
+ status === "Loading status..." && "animate-none",
+ )}
+ />
+ <div
+ className={cn(
+ "absolute inset-0 z-10 m-auto h-3 w-3 rounded-full",
+ color,
+ )}
+ />
+ </div>
<p className="text-sm font-medium text-gray-800">{status}</p>
</Link>
);