diff --git a/app/dashboard/loading.tsx b/app/dashboard/loading.tsx deleted file mode 100644 index 4de21f2..0000000 --- a/app/dashboard/loading.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import {metadata} from './page' -import {SimpleLayout} from '@/components/layouts/SimpleLayout' -import {SpinnerIcon} from '@/components/icons/SpinnerIcon' - -export default function LoadingSkeleton() { - return ( - - - - ) -} \ No newline at end of file diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx deleted file mode 100644 index 4e8e04d..0000000 --- a/app/dashboard/page.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import {SimpleLayout} from '@/components/layouts/SimpleLayout' -import {Card} from '@/components/ui/Card' -import {CardGroup} from '@/components/ui/CardGroup' -import {getDashboardData} from '@/lib/dashboard' -import {numberFormat} from '@/lib/numberFormat' - -export const metadata = { - title: 'Dashboard - Ryan Freeman', - description: 'This is my digital life in numbers, I use this dashboard to keep track of various metrics across platforms like Spotify, GitHub, Twitter and for monitoring the performance of my Raspberry Pi using Grafana and Prometheus.' -} - -export const dynamic = 'force-dynamic' - -export default async function Dashboard() { - const metrics = await getDashboardData() - - return ( - - {metrics.map(({groupName, groupItems}) => ( - - {groupItems.map((item) => ( - -

- {item.title} -

- - {typeof item.value === "number" ? numberFormat(item.value) : item.value} - -
- ))} -
- ))} -
- ) -} \ No newline at end of file diff --git a/app/sitemap.ts b/app/sitemap.ts index a1f8120..a3f1682 100644 --- a/app/sitemap.ts +++ b/app/sitemap.ts @@ -5,7 +5,6 @@ export default async function sitemap(): Promise { const urls = [ 'https://ryanfreeman.dev/', 'https://ryanfreeman.dev/about', - 'https://ryanfreeman.dev/dashboard', 'https://ryanfreeman.dev/writing', 'https://ryanfreeman.dev/projects', 'https://ryanfreeman.dev/uses' diff --git a/components/common/Footer.tsx b/components/common/Footer.tsx index d59ff28..f14dce4 100644 --- a/components/common/Footer.tsx +++ b/components/common/Footer.tsx @@ -18,7 +18,6 @@ export function Footer() { className="flex flex-wrap justify-center gap-6 text-sm font-medium text-zinc-800 dark:text-zinc-200"> Home About - Dashboard Writing Projects Uses diff --git a/components/ui/Navigation.tsx b/components/ui/Navigation.tsx index 438a6a8..a47df13 100644 --- a/components/ui/Navigation.tsx +++ b/components/ui/Navigation.tsx @@ -65,7 +65,6 @@ export function MobileNavigation(props: Props) {