feat(frontend): content micro-animations — stagger, button press, toast polish
- animate-stagger utility + staggerDelay() helper; lists now rise in sequence (recordings grid, moderation rows, message list, media queue, dashboard tiles). - Button gets a subtle active:scale-[0.97] press feedback. - Toaster: toast-in slide-up, tone-accent border, rounded hover-close target. - All motion is reduced-motion aware (killed under prefers-reduced-motion).
This commit is contained in:
@@ -37,6 +37,7 @@ export function MetricTile({
|
||||
spark,
|
||||
icon,
|
||||
className,
|
||||
style,
|
||||
}: {
|
||||
label: string;
|
||||
value: React.ReactNode;
|
||||
@@ -45,6 +46,7 @@ export function MetricTile({
|
||||
spark?: number[];
|
||||
icon?: React.ReactNode;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
}) {
|
||||
const toneColor =
|
||||
tone === "vermilion"
|
||||
@@ -60,6 +62,7 @@ export function MetricTile({
|
||||
"glass p-4 ring-focus transition-transform duration-200 hover:-translate-y-0.5",
|
||||
className,
|
||||
)}
|
||||
style={style}
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="eyebrow">{label}</div>
|
||||
|
||||
Reference in New Issue
Block a user