From 8eff4d23a7704ad1bf15ed6b5ba8fce720287d21 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 22 Jul 2023 17:49:09 -0400 Subject: [PATCH] improved contrast ratio --- components/Checkbox.tsx | 6 ++--- components/CollectionCard.tsx | 10 +++---- components/LinkCard.tsx | 4 +-- .../Modal/Collection/CollectionInfo.tsx | 12 ++++----- .../Modal/Collection/DeleteCollection.tsx | 4 +-- .../Modal/Collection/TeamManagement.tsx | 24 ++++++++--------- components/Modal/Collection/index.tsx | 4 +-- components/Modal/Link/AddOrEditLink.tsx | 16 ++++++------ components/Modal/Link/LinkDetails.tsx | 14 +++++----- components/Modal/Link/index.tsx | 4 +-- components/Modal/User/ChangePassword.tsx | 8 +++--- components/Modal/User/PrivacySettings.tsx | 6 ++--- components/Modal/User/ProfileSettings.tsx | 20 +++++++------- components/Modal/User/index.tsx | 2 +- components/Navbar.tsx | 6 ++--- components/NoLinksFound.tsx | 4 +-- components/PublicPage/LinkCard.tsx | 6 ++--- components/RadioButton.tsx | 4 +-- components/RequiredBadge.tsx | 2 +- components/Search.tsx | 4 +-- components/Sidebar.tsx | 10 +++---- components/SubmitButton.tsx | 4 +-- pages/choose-username.tsx | 6 ++--- pages/collections/[id].tsx | 10 +++---- pages/collections/index.tsx | 2 +- pages/dashboard.tsx | 22 ++++++++-------- pages/forgot.tsx | 8 +++--- pages/links.tsx | 2 +- pages/login.tsx | 14 +++++----- pages/public/collections/[id].tsx | 4 +-- pages/register.tsx | 26 +++++++++---------- pages/search/[query].tsx | 4 +-- pages/subscribe.tsx | 2 +- pages/tags/[id].tsx | 2 +- 34 files changed, 138 insertions(+), 138 deletions(-) diff --git a/components/Checkbox.tsx b/components/Checkbox.tsx index b9a7321c..2e95895d 100644 --- a/components/Checkbox.tsx +++ b/components/Checkbox.tsx @@ -12,7 +12,7 @@ type Props = { export default function Checkbox({ label, state, className, onClick }: Props) { return ( diff --git a/components/CollectionCard.tsx b/components/CollectionCard.tsx index 66624683..9805f9c1 100644 --- a/components/CollectionCard.tsx +++ b/components/CollectionCard.tsx @@ -49,11 +49,11 @@ export default function CollectionCard({ collection, className }: Props) { href={`/collections/${collection.id}`} className="flex flex-col gap-2 justify-between min-h-[12rem] h-full select-none p-5" > -

+

{collection.name}

-
+
{collection.members .sort((a, b) => (a.userId as number) - (b.userId as number)) .map((e, i) => { @@ -67,14 +67,14 @@ export default function CollectionCard({ collection, className }: Props) { }) .slice(0, 4)} {collection.members.length - 4 > 0 ? ( -
+
+{collection.members.length - 4}
) : null}
-
- +
+ {collection._count && collection._count.links}
diff --git a/components/LinkCard.tsx b/components/LinkCard.tsx index 4f286c93..873966ff 100644 --- a/components/LinkCard.tsx +++ b/components/LinkCard.tsx @@ -142,8 +142,8 @@ export default function LinkCard({ link, count, className }: Props) {
-

{count + 1}.

-

+

{count + 1}.

+

{link.name}

diff --git a/components/Modal/Collection/CollectionInfo.tsx b/components/Modal/Collection/CollectionInfo.tsx index 3e88c2d1..94c711a7 100644 --- a/components/Modal/Collection/CollectionInfo.tsx +++ b/components/Modal/Collection/CollectionInfo.tsx @@ -60,7 +60,7 @@ export default function CollectionInfo({
-

+

Name

@@ -72,11 +72,11 @@ export default function CollectionInfo({ } type="text" placeholder="e.g. Example Collection" - className="w-full rounded-md p-3 border-sky-100 border-solid border outline-none focus:border-sky-500 duration-100" + className="w-full rounded-md p-3 border-sky-100 border-solid border outline-none focus:border-sky-700 duration-100" />
-

Icon Color

+

Icon Color

setCollection({ ...collection, color: "#0ea5e9" }) } @@ -101,9 +101,9 @@ export default function CollectionInfo({
-

Description

+

Description