From 5cf93f4c83b78dae362b4daac62f82d1b7f0de3f Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 2 Apr 2024 20:20:41 +0100 Subject: [PATCH] feat: light mode tweaks --- .../[...boardId]/components/BoardDropdown.tsx | 23 ++-- .../components/DeleteBoardConfirmation.tsx | 8 +- .../components/DeleteListConfirmation.tsx | 8 +- .../[...boardId]/components/NewCardForm.tsx | 34 +++--- .../[...boardId]/components/NewListForm.tsx | 26 ++-- src/app/boards/[...boardId]/page.tsx | 4 +- .../components/DeleteCardConfirmation.tsx | 8 +- .../cards/[cardId]/components/Dropdown.tsx | 23 ++-- .../[cardId]/components/LabelSelector.tsx | 12 +- .../[cardId]/components/ListSelector.tsx | 64 +++++----- .../[cardId]/components/MemberSelector.tsx | 69 +++++------ .../[cardId]/components/NewLabelForm.tsx | 22 ++-- src/app/cards/[cardId]/page.tsx | 13 +- src/app/components/CheckboxDropdown.tsx | 4 +- src/app/members/page.tsx | 115 +++++++++++------- 15 files changed, 234 insertions(+), 199 deletions(-) diff --git a/src/app/boards/[...boardId]/components/BoardDropdown.tsx b/src/app/boards/[...boardId]/components/BoardDropdown.tsx index 2b16dc35..3995c84e 100644 --- a/src/app/boards/[...boardId]/components/BoardDropdown.tsx +++ b/src/app/boards/[...boardId]/components/BoardDropdown.tsx @@ -11,8 +11,11 @@ export default function BoardDropdown() { return (
- - + +
@@ -25,17 +28,15 @@ export default function BoardDropdown() { leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > - +
- {() => ( - - )} +
diff --git a/src/app/boards/[...boardId]/components/DeleteBoardConfirmation.tsx b/src/app/boards/[...boardId]/components/DeleteBoardConfirmation.tsx index aafd45bf..060c81d8 100644 --- a/src/app/boards/[...boardId]/components/DeleteBoardConfirmation.tsx +++ b/src/app/boards/[...boardId]/components/DeleteBoardConfirmation.tsx @@ -21,16 +21,16 @@ export function DeleteBoardConfirmation() { return ( <>
-

+

Are you sure you want to delete this board?

-

+

{"This action can't be undone."}

diff --git a/src/app/boards/[...boardId]/components/DeleteListConfirmation.tsx b/src/app/boards/[...boardId]/components/DeleteListConfirmation.tsx index 9971cb09..65f4da50 100644 --- a/src/app/boards/[...boardId]/components/DeleteListConfirmation.tsx +++ b/src/app/boards/[...boardId]/components/DeleteListConfirmation.tsx @@ -28,16 +28,16 @@ export function DeleteListConfirmation({ return ( <>
-

+

Are you sure you want to delete this list?

-

+

{"This action can't be undone."}

diff --git a/src/app/boards/[...boardId]/components/NewCardForm.tsx b/src/app/boards/[...boardId]/components/NewCardForm.tsx index c22bcded..cfc8fd83 100644 --- a/src/app/boards/[...boardId]/components/NewCardForm.tsx +++ b/src/app/boards/[...boardId]/components/NewCardForm.tsx @@ -137,13 +137,15 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { return ( <> -
-

New card

+
+

+ New card +

@@ -151,7 +153,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
@@ -159,7 +161,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { id="title" type="text" {...register("title")} - className="block w-full rounded-md border-0 bg-dark-300 bg-white/5 py-1.5 text-dark-1000 shadow-sm ring-1 ring-inset ring-dark-700 focus:ring-2 focus:ring-inset focus:ring-dark-700 sm:text-sm sm:leading-6" + className="ring-light-600 focus:ring-light-600 block w-full rounded-md border-0 bg-dark-300 bg-white/5 py-1.5 text-neutral-900 shadow-sm ring-1 ring-inset focus:ring-2 focus:ring-inset dark:text-dark-1000 dark:ring-dark-700 dark:focus:ring-dark-700 sm:text-sm sm:leading-6" />
@@ -170,7 +172,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { handleSelectList(list.key) } > -
+
{selectedList?.value}
@@ -182,7 +184,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { handleSelectMembers(list.key) } > -
+
{!memberPublicIds.length ? ( "Members" ) : ( @@ -195,7 +197,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { return ( {member?.value @@ -220,7 +222,7 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) { handleSelectLabels(list.key) } > -
+
{!labelPublicIds.length ? ( "Labels" ) : ( @@ -265,16 +267,20 @@ export function NewCardForm({ listPublicId }: NewCardFormProps) {
- Create more + + Create more + - Use setting + Create another