From eb1822556a61aa156a3f7c7f401490d5a8158bbe Mon Sep 17 00:00:00 2001 From: shannonwells Date: Wed, 20 Nov 2024 16:16:16 -0800 Subject: [PATCH] resizing, padding/margins, mobile-first --- client/src/app.css | 35 +++++--------- client/src/lib/components/Card.svelte | 10 ++-- client/src/lib/components/Faucet.svelte | 46 +++++++++---------- client/src/lib/components/Footer.svelte | 4 +- client/src/lib/components/Form.svelte | 6 +-- client/src/lib/components/NavBar.svelte | 22 +++------ .../lib/components/icons/CheckCircle.svelte | 2 +- .../lib/components/icons/ErrorCircle.svelte | 2 +- .../lib/components/icons/FrequencyLogo.svelte | 2 +- .../src/lib/components/screens/Error.svelte | 9 ++-- .../screens/FrequentlyAskedQuestions.svelte | 6 +-- .../src/lib/components/screens/Success.svelte | 7 ++- 12 files changed, 63 insertions(+), 88 deletions(-) diff --git a/client/src/app.css b/client/src/app.css index 2b51c054..f83599b8 100644 --- a/client/src/app.css +++ b/client/src/app.css @@ -11,20 +11,6 @@ @tailwind components; @tailwind utilities; -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} - -a:hover { - color: #535bf2; -} - -.card { - @apply p-[2em] bg-cream; -} - button { @apply bg-teal text-black font-bold cursor-pointer; border: 1px solid transparent !important; @@ -47,19 +33,17 @@ button:hover { :root { @apply text-black bg-white; } +} +.btn { + @apply w-full rounded-3xl font-bold border-0 text-normal md:text-md; +} - a:hover { - color: #747bff; - } - - button { - background-color: #f9f9f9; - } +.btn-primary { + @apply text-black bg-teal; } -.submit-btn { - @apply btn w-full mt-6 rounded-3xl text-black font-bold bg-teal; - /*text-transform: none;*/ +.btn-disabled { + @apply text-white bg-gray3; } @layer components { @@ -81,6 +65,9 @@ button:hover { } @layer base { + .toast { + @apply max-w-full text-wrap opacity-60 !important; + } html { color-scheme: light dark; font-synthesis: none; diff --git a/client/src/lib/components/Card.svelte b/client/src/lib/components/Card.svelte index 5671f1a4..5375978e 100644 --- a/client/src/lib/components/Card.svelte +++ b/client/src/lib/components/Card.svelte @@ -3,12 +3,12 @@ import { testnet } from "$lib/utils/stores"; -
-
-

{$testnet.networkName} Faucet

-

+
+
+

{$testnet.networkName} Faucet

+

Get {$testnet.currency} tokens for {$testnet.networkName} testnet. -

+

diff --git a/client/src/lib/components/Faucet.svelte b/client/src/lib/components/Faucet.svelte index 8e3e3f8c..e3d88e3b 100644 --- a/client/src/lib/components/Faucet.svelte +++ b/client/src/lib/components/Faucet.svelte @@ -1,5 +1,5 @@ -
+
- - {#if !$operation} -
- {:else} -
- {#if $operation.success} - + +
+

{$testnet.networkName} Faucet

+

+ Get {$testnet.currency} tokens for {$testnet.networkName} testnet. +

+
+ {#if !$operation} + {:else} - +
+ {#if $operation.success} + + {:else} + + {/if} +
{/if}
- {/if} +
- - diff --git a/client/src/lib/components/Footer.svelte b/client/src/lib/components/Footer.svelte index 37e597f3..e67dd6d4 100644 --- a/client/src/lib/components/Footer.svelte +++ b/client/src/lib/components/Footer.svelte @@ -20,7 +20,9 @@