From 448d3fcb143ff0b3463a0d5ac40dc6233efe9583 Mon Sep 17 00:00:00 2001 From: r-freeman Date: Fri, 27 Jan 2023 23:33:49 +0000 Subject: [PATCH] Added dashboard page --- components/Card.tsx | 5 ++-- components/Footer.tsx | 1 + components/Header.tsx | 1 + lib/github.ts | 66 ++++++++++++++++++++++++++++++++++++++++-- pages/dashboard.tsx | 67 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 136 insertions(+), 4 deletions(-) create mode 100644 pages/dashboard.tsx diff --git a/components/Card.tsx b/components/Card.tsx index b5b4edc..64843a1 100644 --- a/components/Card.tsx +++ b/components/Card.tsx @@ -23,6 +23,7 @@ type CardTitle = { type CardDescription = { children: ReactNode + className?: string } type CardCta = { @@ -86,9 +87,9 @@ Card.Title = function CardTitle({as: Component = 'h2', href, children}: CardTitl ) } -Card.Description = function CardDescription({children}: CardDescription) { +Card.Description = function CardDescription({children, className}: CardDescription) { return ( -

+

{children}

) diff --git a/components/Footer.tsx b/components/Footer.tsx index d41ded7..74f4790 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -25,6 +25,7 @@ export function Footer() {
About + Dashboard Writing Projects Uses diff --git a/components/Header.tsx b/components/Header.tsx index 38cdc3b..8418f36 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -168,6 +168,7 @@ function DesktopNavigation(props: Props) {