diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index 693a399..6754960 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -5,7 +5,6 @@ import { useParams, useSearchParams, useRouter } from 'next/navigation' import { getPublicDashboard, type DashboardData } from '@/lib/api/stats' import { toast } from 'sonner' import LoadingOverlay from '@/components/LoadingOverlay' -import StatsCard from '@/components/dashboard/StatsCard' import Chart from '@/components/dashboard/Chart' import TopPages from '@/components/dashboard/ContentStats' import TopReferrers from '@/components/dashboard/TopReferrers' @@ -156,107 +155,103 @@ export default function PublicDashboardPage() { return (
-
+
{/* Header */} -
-
-
-
- Public Dashboard -
-

- {site.name} { - (e.target as HTMLImageElement).src = '/globe.svg' - }} - /> - {site.domain} -

-
+
+
+
+
+
+
+
+ Public Dashboard +
+

+ {site.name} { + (e.target as HTMLImageElement).src = '/globe.svg' + }} + /> + {site.domain} +

+
-
- { + if (value === '7') setDateRange(getDateRange(7)) + else if (value === '30') setDateRange(getDateRange(30)) + else if (value === 'today') { + const today = new Date().toISOString().split('T')[0] + setDateRange({ start: today, end: today }) + } + else if (value === 'custom') { + setIsDatePickerOpen(true) + } + }} + options={[ + { value: 'today', label: 'Today' }, + { value: '7', label: 'Last 7 days' }, + { value: '30', label: 'Last 30 days' }, + { value: 'custom', label: 'Custom' }, + ]} + /> + {/* Powered by Ciphera Badge */} + + + Powered by Ciphera + +
+
+ + {/* Realtime Indicator - Mobile */} +
+ + + + + + {realtime_visitors} current visitors + +
{/* Chart */}