From 94fb5c7eb161e71a1f22ebf754ab68bc2a001464 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:12:06 -0500 Subject: [PATCH] Added Basic Darkmode and Fixed Small Bugs --- __tests__/__snapshots__/index.test.tsx.snap | 2 +- __tests__/utils.test.ts | 40 ++++ app/(main)/_components/footer.tsx | 2 +- app/(main)/_components/navbar.tsx | 9 +- app/(main)/blog/page.tsx | 10 +- app/(main)/layout.tsx | 6 +- app/(main)/page.tsx | 2 +- .../(dashboard)/_components/Navbar.tsx | 4 +- .../(dashboard)/_components/nav-item.tsx | 11 +- .../[boardId]/_components/board-navbar.tsx | 2 +- .../[boardId]/_components/board-options.tsx | 8 +- .../_components/board-update-image.tsx | 8 +- .../board/[boardId]/_components/card-item.tsx | 6 +- .../board/[boardId]/_components/list-form.tsx | 4 +- .../board/[boardId]/_components/list-item.tsx | 2 +- .../(dashboard)/board/[boardId]/layout.tsx | 6 - .../_components/board-list.tsx | 2 +- .../[organizationId]/activity/page.tsx | 8 +- app/(platform)/layout.tsx | 15 +- app/layout.tsx | 12 +- components/activity-item.tsx | 2 +- components/form/form-input.tsx | 2 +- components/form/form-picker.tsx | 2 +- components/form/form-popover.tsx | 8 +- components/logo.tsx | 12 +- components/modals/card-modal/actions.tsx | 6 +- components/modals/card-modal/activity.tsx | 6 +- components/modals/card-modal/description.tsx | 8 +- components/modals/card-modal/header.tsx | 4 +- components/modals/pro-modal.tsx | 4 +- components/theme-provider.tsx | 11 + components/ui/button.tsx | 5 +- components/ui/dropdown-menu.tsx | 200 ++++++++++++++++++ components/ui/mode-toggle.tsx | 39 ++++ docs/mint.json | 5 +- docs/public/logo-dark.svg | 38 ++++ .../{logo-transparent.svg => logo-light.svg} | 0 package.json | 3 + public/logo-dark.svg | 38 ++++ .../{logo-transparent.svg => logo-light.svg} | 0 tailwind.config.ts | 2 +- yarn.lock | 111 ++++++++++ 42 files changed, 593 insertions(+), 72 deletions(-) create mode 100644 __tests__/utils.test.ts create mode 100644 components/theme-provider.tsx create mode 100644 components/ui/dropdown-menu.tsx create mode 100644 components/ui/mode-toggle.tsx create mode 100644 docs/public/logo-dark.svg rename docs/public/{logo-transparent.svg => logo-light.svg} (100%) create mode 100644 public/logo-dark.svg rename public/{logo-transparent.svg => logo-light.svg} (100%) diff --git a/__tests__/__snapshots__/index.test.tsx.snap b/__tests__/__snapshots__/index.test.tsx.snap index e76a1fd..41d1f31 100644 --- a/__tests__/__snapshots__/index.test.tsx.snap +++ b/__tests__/__snapshots__/index.test.tsx.snap @@ -14,7 +14,7 @@ exports[`Home renders homepage unchanged 1`] = ` No 1 task management app
{post.summary}
++ {post.summary} +