feat(frontend): micro-interactions — page-enter transition + MetricTile lift
- Add animate-fade-up utility (reduced-motion aware) and a PageTransition wrapper; every dashboard view now rises + settles on mount/route change. - MetricTile gains a subtle hover lift (-translate-y) + ring-focus glow. - Theme toggle and command palette (⌘K) already existed and persist; no-op.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { PageTransition } from "@/components/shared";
|
||||
import { getActivity, getDashboardStats } from "@/lib/api/server";
|
||||
import { DashboardView } from "./view";
|
||||
|
||||
@@ -14,5 +15,9 @@ export default async function DashboardPage() {
|
||||
} catch {
|
||||
// Backend unavailable — client hooks will surface the error state.
|
||||
}
|
||||
return <DashboardView initialStats={stats} initialActivity={activity} />;
|
||||
return (
|
||||
<PageTransition>
|
||||
<DashboardView initialStats={stats} initialActivity={activity} />
|
||||
</PageTransition>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user