From 213f8c3b6c4c451b02d101c1c83462e756c7a113 Mon Sep 17 00:00:00 2001 From: Alexandru G Date: Tue, 23 Jan 2024 01:11:45 +0200 Subject: [PATCH] Fix color contrast --- flowbite.config.ts | 4 +-- src/components/ActionLink.tsx | 2 +- src/components/AssetInput.tsx | 6 ++-- src/components/AssetList.tsx | 8 +++-- src/components/Footer.tsx | 13 ++++++-- src/components/LoadingPlaceholder.tsx | 4 ++- src/pages/Create/components/Checklist.tsx | 8 +++-- src/pages/Create/components/Creator.tsx | 24 +++++++------- src/pages/Create/components/Preview.tsx | 23 +++++++++----- src/pages/Dashboard/components/Govnft.tsx | 31 +++++++++++++------ src/pages/Delegate/components/DelegateNft.tsx | 31 +++++++++++++------ src/pages/Transfer/components/TransferNft.tsx | 31 +++++++++++++------ 12 files changed, 121 insertions(+), 64 deletions(-) diff --git a/flowbite.config.ts b/flowbite.config.ts index 0f3cc185..8110e96d 100644 --- a/flowbite.config.ts +++ b/flowbite.config.ts @@ -63,8 +63,8 @@ export default { md: "p-3 text-sm", }, colors: { - gray: "bg-transparent border-gray-300 text-gray-900 placeholder-black/40 dark:placeholder-white/20 hover:border-opacity-70 dark:hover:border-opacity-70 focus:border-gray-400 dark:border-gray-600 dark:bg-transparent dark:text-white dark:focus:border-gray-500 outline-0", - info: "border-gray-900 border-opacity-10 placeholder-black/40 dark:placeholder-white/20 focus:border-opacity-30 bg-transparent text-gray-900 dark:text-white dark:border-white dark:border-opacity-10 dark:focus:border-opacity-30 dark:bg-transparent outline-0", + gray: "bg-transparent border-gray-300 text-gray-900 placeholder-black/40 dark:placeholder-white/20 hover:border-opacity-70 dark:hover:border-opacity-70 dark:border-gray-600 dark:bg-transparent dark:text-white outline-0", + info: "border-gray-900 border-opacity-10 placeholder-black/40 dark:placeholder-white/20 bg-transparent text-gray-900 dark:text-white dark:border-white dark:border-opacity-10 dark:bg-transparent outline-0", warning: "border-amber-500 bg-transparent text-yellow-500 placeholder-yellow-700 focus:border-amber-500 dark:border-yellow-700 dark:bg-amber-800 dark:bg-opacity-10 dark:focus:border-amber-600 outline-0", }, diff --git a/src/components/ActionLink.tsx b/src/components/ActionLink.tsx index dc6c07c8..7c0ca7d9 100644 --- a/src/components/ActionLink.tsx +++ b/src/components/ActionLink.tsx @@ -22,7 +22,7 @@ export default function ActionLink({ color="light" className={ withClassName || disabled - ? "opacity-30 dark:opacity-20 flex items-center gap-3" + ? "text-gray-600 dark:text-gray-400 flex items-center gap-3" : "text-primary underline hover:no-underline underline-offset-2" } > diff --git a/src/components/AssetInput.tsx b/src/components/AssetInput.tsx index e733e7cf..f19a96fc 100644 --- a/src/components/AssetInput.tsx +++ b/src/components/AssetInput.tsx @@ -66,8 +66,10 @@ export default function AssetInput({ return (
-
{title}
-
+
+ {title} +
+
{!asset && } {asset && asset?.value && ( diff --git a/src/components/AssetList.tsx b/src/components/AssetList.tsx index 57b0f37b..6782bc59 100644 --- a/src/components/AssetList.tsx +++ b/src/components/AssetList.tsx @@ -37,8 +37,10 @@ export default function AssetsList({ return (
- {assets.length} Tokens - Balance + + {assets.length} Tokens + + Balance
@@ -55,7 +57,7 @@ export default function AssetsList({
{asset.symbol}
-
+
{asset?.value && asset.value > 0 && (
{/* @ts-ignore */} - 2023 © GOVNFT. {__APP_VERSION__} + + {/* @ts-ignore */} + 2023 © GOVNFT. {__APP_VERSION__} +
- A public good for{" "} + + A public good for + {" "} - OPTIMISM + + OPTIMISM +
diff --git a/src/components/LoadingPlaceholder.tsx b/src/components/LoadingPlaceholder.tsx index 28d3c968..b31391d6 100644 --- a/src/components/LoadingPlaceholder.tsx +++ b/src/components/LoadingPlaceholder.tsx @@ -4,7 +4,9 @@ export default function LoadingPlaceholder(props) { return (
-

{props.message}

+

+ {props.message} +

); } diff --git a/src/pages/Create/components/Checklist.tsx b/src/pages/Create/components/Checklist.tsx index 3b9b5491..4fdc9939 100644 --- a/src/pages/Create/components/Checklist.tsx +++ b/src/pages/Create/components/Checklist.tsx @@ -10,10 +10,12 @@ export default function Checklist({ toAddress, amount, vestingDuration }) { <>
- Create a GovNFT + + Create a GovNFT +
{!isAddress(toAddress) ? ( -
+
@@ -29,7 +31,7 @@ export default function Checklist({ toAddress, amount, vestingDuration }) { )} {!amount || amount == 0 || !vestingDuration || vestingDuration == 0 ? ( -
+
diff --git a/src/pages/Create/components/Creator.tsx b/src/pages/Create/components/Creator.tsx index b46f5663..f4421882 100644 --- a/src/pages/Create/components/Creator.tsx +++ b/src/pages/Create/components/Creator.tsx @@ -50,10 +50,10 @@ export default function Creator() { return ( <> -
+
-
+
Recipient Address
-
Start Date
+
+ Start Date +
-
+
Vesting Duration
@@ -104,7 +106,7 @@ export default function Creator() {
-
+
Cliff Duration
@@ -128,7 +130,7 @@ export default function Creator() {
-
+
Transferable
-
+
Optional Details
-
+
Recipient Name
-
Tags
+
Tags
-
+
Description