diff --git a/app/globals.css b/app/globals.css index 95e71d7..6d4cf27 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,5 +1,10 @@ @import "tailwindcss"; +@keyframes shimmer { + 0% { transform: translateX(-100%); } + 100% { transform: translateX(400%); } +} + :root { --background: #0a0a0f; --card: #111118; diff --git a/components/shared/ProgressCard.tsx b/components/shared/ProgressCard.tsx index 8ea06b1..6e4c441 100644 --- a/components/shared/ProgressCard.tsx +++ b/components/shared/ProgressCard.tsx @@ -12,6 +12,8 @@ interface ProgressCardProps { export function ProgressCard({ title, current, total, subtitle, status = "running" }: ProgressCardProps) { const pct = total > 0 ? Math.round((current / total) * 100) : 0; + // Indeterminate = läuft aber noch kein Fortschritt (z.B. warten auf Anymailfinder Bulk) + const indeterminate = status === "running" && current === 0 && total > 0; return (
@@ -25,22 +27,47 @@ export function ProgressCard({ title, current, total, subtitle, status = "runnin
- {current.toLocaleString()} / {total.toLocaleString()} - {pct}% + {indeterminate ? ( + <> + + + + + Warte auf Anymailfinder-Server... + + {total} Domains + + ) : ( + <> + {current.toLocaleString()} / {total.toLocaleString()} + {pct}% + + )}
-
-
+
+ {indeterminate ? ( +
+
+
+ ) : ( +
+ )}
+ {indeterminate && ( +

+ Batch-Verarbeitung läuft auf Anymailfinder-Servern. Dauert ca. 1–3 Min. für {total} Domains. +

+ )}
);