feat: add sliding tab indicator and content crossfade animations

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Usman Baig
2026-03-09 23:41:34 +01:00
parent 330cc134aa
commit 6f964f38f3
4 changed files with 30 additions and 19 deletions

View File

@@ -4,7 +4,6 @@
import { logger } from '@/lib/utils/logger'
import { useCallback, useEffect, useState, useMemo } from 'react'
import { useParams, useRouter, useSearchParams } from 'next/navigation'
import { motion } from 'framer-motion'
import {
getPerformanceByPage,
getTopPages,
@@ -432,12 +431,7 @@ export default function SiteDashboardPage() {
}
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.2 }}
className="w-full max-w-6xl mx-auto px-4 sm:px-6 pb-8"
>
<div className="w-full max-w-6xl mx-auto px-4 sm:px-6 pb-8">
<div className="mb-8">
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-4">
@@ -649,6 +643,6 @@ export default function SiteDashboardPage() {
topReferrers={referrers?.top_referrers}
campaigns={campaigns}
/>
</motion.div>
</div>
)
}