Skip to content

Commit 0e49d10

Browse files
committed
fix: dashboard sections invisible — move animation delay to inline style
1 parent e6e24fd commit 0e49d10

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

apps/web/app/(app)/dashboard/page.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ export default function DashboardPage() {
3131
<div className="mx-auto max-w-6xl space-y-10 p-6 lg:p-8">
3232

3333
{/* ── Header ───────────────────────────────────────────── */}
34-
<div className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_forwards]">
34+
<div
35+
className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_forwards]"
36+
style={{ animationDelay: "0ms" }}
37+
>
3538
<h1 className="font-heading text-2xl font-semibold tracking-tight">
3639
{greeting()}, {name}
3740
</h1>
@@ -42,7 +45,10 @@ export default function DashboardPage() {
4245
<StatsCards />
4346

4447
{/* ── Topic clusters ───────────────────────────────────── */}
45-
<section className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_0.28s_forwards]">
48+
<section
49+
className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_forwards]"
50+
style={{ animationDelay: "280ms" }}
51+
>
4652
<div className="mb-4 flex items-center gap-2">
4753
<h2 className="font-heading text-base font-semibold tracking-tight">Topic Clusters</h2>
4854
<span className="rounded-full bg-muted px-2 py-0.5 font-mono text-[10px] text-muted-foreground">
@@ -57,7 +63,10 @@ export default function DashboardPage() {
5763
</section>
5864

5965
{/* ── Review activity heatmap ──────────────────────────── */}
60-
<section className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_0.38s_forwards]">
66+
<section
67+
className="opacity-0 animate-[fadeSlideUp_0.35s_ease-out_forwards]"
68+
style={{ animationDelay: "380ms" }}
69+
>
6170
<div className="mb-4 flex items-center justify-between">
6271
<h2 className="font-heading text-base font-semibold tracking-tight">Review Activity</h2>
6372
<span className="font-mono text-[10px] text-muted-foreground">last {15} weeks</span>
@@ -69,7 +78,10 @@ export default function DashboardPage() {
6978

7079
{/* ── Empty state CTA (no snippets yet) ───────────────── */}
7180
{snippets.length === 0 && (
72-
<div className="rounded-2xl border border-dashed border-border/60 bg-card/40 px-8 py-12 text-center opacity-0 animate-[fadeSlideUp_0.35s_ease-out_0.48s_forwards]">
81+
<div
82+
className="rounded-2xl border border-dashed border-border/60 bg-card/40 px-8 py-12 text-center opacity-0 animate-[fadeSlideUp_0.35s_ease-out_forwards]"
83+
style={{ animationDelay: "480ms" }}
84+
>
7385
<div className="mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10">
7486
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} aria-hidden className="size-6 text-primary">
7587
<path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" />

0 commit comments

Comments
 (0)