mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 15:15:42 +00:00
Removed dashboard page
This commit is contained in:
parent
0edbaf5573
commit
2d2737ea7b
@ -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 (
|
||||
<SimpleLayout heading="Dashboard."
|
||||
description={metadata.description}
|
||||
gradient="bg-gradient-to-r from-orange-300 to-rose-300">
|
||||
<SpinnerIcon className="animate-spin w-8 h-8 text-indigo-400"/>
|
||||
</SimpleLayout>
|
||||
)
|
||||
}
|
@ -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 (
|
||||
<SimpleLayout heading="Dashboard."
|
||||
description={metadata.description}
|
||||
gradient="bg-gradient-to-r from-orange-300 to-rose-300">
|
||||
{metrics.map(({groupName, groupItems}) => (
|
||||
<CardGroup title={groupName} key={groupName}>
|
||||
{groupItems.map((item) => (
|
||||
<Card as="li" key={item.title}>
|
||||
<h2 className="text-base font-semibold transition group-hover:text-indigo-500 text-zinc-800 dark:text-zinc-400">
|
||||
<Card.Link href={item.href}>{item.title}</Card.Link>
|
||||
</h2>
|
||||
<Card.Description className="mt-0 text-zinc-800 dark:text-zinc-100 font-semibold text-3xl">
|
||||
{typeof item.value === "number" ? numberFormat(item.value) : item.value}
|
||||
</Card.Description>
|
||||
</Card>
|
||||
))}
|
||||
</CardGroup>
|
||||
))}
|
||||
</SimpleLayout>
|
||||
)
|
||||
}
|
@ -5,7 +5,6 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
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'
|
||||
|
@ -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">
|
||||
<NavLink href="/">Home</NavLink>
|
||||
<NavLink href="/about">About</NavLink>
|
||||
<NavLink href="/dashboard">Dashboard</NavLink>
|
||||
<NavLink href="/writing">Writing</NavLink>
|
||||
<NavLink href="/projects">Projects</NavLink>
|
||||
<NavLink href="/uses">Uses</NavLink>
|
||||
|
@ -65,7 +65,6 @@ export function MobileNavigation(props: Props) {
|
||||
<ul className="-my-2 divide-y divide-zinc-100 text-base text-zinc-800 dark:divide-zinc-100/5 dark:text-zinc-300">
|
||||
<MobileNavItem href="/">Home</MobileNavItem>
|
||||
<MobileNavItem href="/about">About</MobileNavItem>
|
||||
<MobileNavItem href="/dashboard">Dashboard</MobileNavItem>
|
||||
<MobileNavItem href="/writing">Writing</MobileNavItem>
|
||||
<MobileNavItem href="/projects">Projects</MobileNavItem>
|
||||
<MobileNavItem href="/uses">Uses</MobileNavItem>
|
||||
@ -109,7 +108,6 @@ export function DesktopNavigation(props: Props) {
|
||||
<ul className="flex rounded-full bg-white/90 px-3 text-sm font-medium text-zinc-800 shadow-lg shadow-zinc-800/5 ring-1 ring-zinc-900/5 backdrop-blur dark:bg-zinc-800/90 dark:text-zinc-200 dark:ring-white/10">
|
||||
<NavItem href="/">Home</NavItem>
|
||||
<NavItem href="/about">About</NavItem>
|
||||
<NavItem href="/dashboard">Dashboard</NavItem>
|
||||
<NavItem href="/writing">Writing</NavItem>
|
||||
<NavItem href="/projects">Projects</NavItem>
|
||||
<NavItem href="/uses">Uses</NavItem>
|
||||
|
Loading…
Reference in New Issue
Block a user