From cff3b97ab774c7b6928a6b4cea5638fc7abe0a7e Mon Sep 17 00:00:00 2001 From: Gisbi Date: Mon, 7 Aug 2023 11:44:09 +0200 Subject: [PATCH] finished working on dark mode --- .../Modal/Collection/DeleteCollection.tsx | 8 +-- .../Modal/Collection/TeamManagement.tsx | 50 ++++++++++--------- components/Modal/Collection/index.tsx | 12 ++--- 3 files changed, 37 insertions(+), 33 deletions(-) diff --git a/components/Modal/Collection/DeleteCollection.tsx b/components/Modal/Collection/DeleteCollection.tsx index 2295abc..44718bb 100644 --- a/components/Modal/Collection/DeleteCollection.tsx +++ b/components/Modal/Collection/DeleteCollection.tsx @@ -50,7 +50,7 @@ export default function DeleteCollection({

Warning!

-
+

Please note that deleting the collection will permanently remove all its contents, including the following: @@ -81,7 +81,7 @@ export default function DeleteCollection({

-

+

To confirm, type " {collection.name} " in the box below: @@ -93,12 +93,12 @@ export default function DeleteCollection({ onChange={(e) => setInputField(e.target.value)} type="text" placeholder={`Type "${collection.name}" Here.`} - className="w-72 sm:w-96 rounded-md p-3 mx-auto border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100" + className="w-72 sm:w-96 rounded-md p-3 mx-auto border-sky-100 dark:border-sky-800 dark:bg-blue-950 border-solid border outline-none focus:border-sky-700 duration-100" />

) : ( -

+

Click the button below to leave the current collection:

)} diff --git a/components/Modal/Collection/TeamManagement.tsx b/components/Modal/Collection/TeamManagement.tsx index ad9a099..7775534 100644 --- a/components/Modal/Collection/TeamManagement.tsx +++ b/components/Modal/Collection/TeamManagement.tsx @@ -117,7 +117,7 @@ export default function TeamManagement({
{permissions === true && ( <> -

Make Public

+

Make Public

-

+

This will let Anyone to view this collection.

@@ -135,7 +135,7 @@ export default function TeamManagement({ {collection.isPublic ? (
-

+

Public Link (Click to copy)

{publicCollectionURL}
@@ -159,7 +159,9 @@ export default function TeamManagement({ {permissions === true && ( <> -

Member Management

+

+ Member Management +

@@ -203,7 +205,7 @@ export default function TeamManagement({ {collection?.members[0]?.user && ( <> -

+

(All Members have Read access to this collection.)

@@ -218,7 +220,7 @@ export default function TeamManagement({ {permissions === true && ( { const updatedMembers = collection.members.filter( @@ -239,7 +241,7 @@ export default function TeamManagement({ className="border-[3px]" />
-

+

{e.user.name}

@{e.user.username}

@@ -248,14 +250,14 @@ export default function TeamManagement({

Permissions

{permissions === true && ( -

+

(Click to toggle.)

)} @@ -265,7 +267,7 @@ export default function TeamManagement({ !e.canCreate && !e.canUpdate && !e.canDelete ? ( -

+

Has no permissions.

) : ( @@ -305,7 +307,7 @@ export default function TeamManagement({ }} />
-

+

{collectionOwner.name}

-

@{collectionOwner.username}

+

+ @{collectionOwner.username} +

-
-

Permissions

-

Full Access (Owner)

+
+

Permissions

+

Full Access (Owner)

diff --git a/components/Modal/Collection/index.tsx b/components/Modal/Collection/index.tsx index 655d1c2..0a38761 100644 --- a/components/Modal/Collection/index.tsx +++ b/components/Modal/Collection/index.tsx @@ -55,8 +55,8 @@ export default function CollectionModal({ selected - ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" - : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" + ? "px-2 py-1 bg-sky-200 dark:bg-sky-500 dark:text-sky-900 duration-100 rounded-md outline-none" + : "px-2 py-1 hover:bg-slate-200 hover:dark:bg-sky-300 hover:dark:text-sky-900 rounded-md duration-100 outline-none" } > Collection Info @@ -65,8 +65,8 @@ export default function CollectionModal({ selected - ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" - : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" + ? "px-2 py-1 bg-sky-200 dark:bg-sky-500 dark:text-sky-900 duration-100 rounded-md outline-none" + : "px-2 py-1 hover:bg-slate-200 hover:dark:bg-sky-300 hover:dark:text-sky-900 rounded-md duration-100 outline-none" } > {isOwner ? "Share & Collaborate" : "View Team"} @@ -74,8 +74,8 @@ export default function CollectionModal({ selected - ? "px-2 py-1 bg-sky-200 duration-100 rounded-md outline-none" - : "px-2 py-1 hover:bg-slate-200 rounded-md duration-100 outline-none" + ? "px-2 py-1 bg-sky-200 dark:bg-sky-500 dark:text-sky-900 duration-100 rounded-md outline-none" + : "px-2 py-1 hover:bg-slate-200 hover:dark:bg-sky-300 hover:dark:text-sky-900 rounded-md duration-100 outline-none" } > {isOwner ? "Delete Collection" : "Leave Collection"}