From 6576159875fbfd2edb7b1960c11d64caf6a6689b Mon Sep 17 00:00:00 2001 From: Dean Srebnik <49134864+load1n9@users.noreply.github.com> Date: Sun, 4 Jun 2023 20:53:38 -0400 Subject: [PATCH] feat: dark mode (#219) * feat(WIP): dark mode * feat: dark mode * feat: hover styles + fmt * Update utils/constants.ts Co-authored-by: Asher Gomez * tweaks --------- Co-authored-by: Asher Gomez --- components/ItemSummary.tsx | 13 ++++++++++--- components/Layout.tsx | 4 ++-- routes/index.tsx | 2 +- routes/item/[id].tsx | 6 ++---- routes/pricing.tsx | 2 +- routes/submit.tsx | 4 +++- utils/constants.ts | 6 +++--- 7 files changed, 22 insertions(+), 15 deletions(-) diff --git a/components/ItemSummary.tsx b/components/ItemSummary.tsx index 07a307037..572fd3558 100644 --- a/components/ItemSummary.tsx +++ b/components/ItemSummary.tsx @@ -11,19 +11,26 @@ export interface ItemSummaryProps { export default function ItemSummary(props: ItemSummaryProps) { return ( -
+
- + {props.item.title} - + {new URL(props.item.url).host} ↗ diff --git a/components/Layout.tsx b/components/Layout.tsx index 1271cd8a7..15006effc 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -70,7 +70,7 @@ function Footer(props: JSX.HTMLAttributes) { {...props} class={`flex flex-col md:flex-row p-4 justify-between gap-y-4 ${SITE_WIDTH_STYLES} ${ props.class ?? "" - }`} + } `} > {SITE_NAME} @@ -133,7 +133,7 @@ export default function Layout(props: LayoutProps) { ]; return ( -
+