diff options
| author | Adam Soltys <[email protected]> | 2024-11-04 23:03:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-11-04 23:03:01 -0800 |
| commit | 4ef5028356e566220e9f1588757800db8a739aed (patch) | |
| tree | 4bab5906251596a78ca957d81e30f7af5c88dd37 /src | |
| parent | ea52c70b3d862002350b17e5c7fb8652da9fa190 (diff) | |
| download | coinos-ui-4ef5028356e566220e9f1588757800db8a739aed.tar.gz coinos-ui-4ef5028356e566220e9f1588757800db8a739aed.zip | |
dark styles
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Card.svelte | 14 | ||||
| -rw-r--r-- | src/routes/(app)/invoice/[id]/tip/+page.svelte | 111 | ||||
| -rw-r--r-- | src/routes/(app)/settings/[...tab]/_account.svelte | 29 | ||||
| -rw-r--r-- | src/routes/(static)/login/+page.svelte | 4 | ||||
| -rw-r--r-- | src/routes/(static)/register/+page.svelte | 2 |
5 files changed, 69 insertions, 91 deletions
diff --git a/src/components/Card.svelte b/src/components/Card.svelte deleted file mode 100644 index 864465c0..00000000 --- a/src/components/Card.svelte +++ /dev/null @@ -1,14 +0,0 @@ -<svg - xmlns="http://www.w3.org/2000/svg" - class="absolute bottom-0 left-0 -mb-0.5 transform translate-x-1/2 -translate-y-1/2 text-black peer-placeholder-shown:text-gray-300 h-6 w-6" - fill="none" - viewBox="0 0 24 24" - stroke="currentColor" -> - <path - stroke-linecap="round" - stroke-linejoin="round" - stroke-width="2" - d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" - /> -</svg> diff --git a/src/routes/(app)/invoice/[id]/tip/+page.svelte b/src/routes/(app)/invoice/[id]/tip/+page.svelte index 217b8474..ff3da46e 100644 --- a/src/routes/(app)/invoice/[id]/tip/+page.svelte +++ b/src/routes/(app)/invoice/[id]/tip/+page.svelte @@ -112,7 +112,12 @@ </script> <div class="container px-4 max-w-lg text-center mx-auto"> - <form method="POST" use:enhance class:invisible={submitting}> + <form + method="POST" + use:enhance + class:invisible={submitting} + class="space-y-5" + > <input type="hidden" name="aid" value={aid} /> <input type="hidden" name="amount" value={amount} /> <input type="hidden" name="tip" value={tip} /> @@ -147,33 +152,41 @@ </div> </div> - {#if tip} - <div> - <button type="button" on:click={() => submit.click()}>Next</button> - <button type="button" on:click={() => (tipPercent = 0)}>Reset</button> - </div> - {:else} - {#each tipAmounts as amount, i} - {#if i === 0} - <button - use:focus - type="button" - class:active={active(amount, tipPercent)} - on:click={() => handleTipButtonClick(amount)}>{amount}</button - > - {:else} - <button - type="button" - class:active={active(amount, tipPercent)} - on:click={() => handleTipButtonClick(amount)}>{amount}</button - > - {/if} - {/each} - {/if} + <div class="space-y-2"> + {#if tip} + <button type="button" class="btn" on:click={() => submit.click()} + >Next</button + > + <button type="button" class="btn" on:click={() => (tipPercent = 0)} + >Reset</button + > + {:else} + {#each tipAmounts as amount, i} + {#if i === 0} + <button + use:focus + type="button" + class="btn" + class:active={active(amount, tipPercent)} + on:click={() => handleTipButtonClick(amount)}>{amount}</button + > + {:else} + <button + type="button" + class="btn" + class:active={active(amount, tipPercent)} + on:click={() => handleTipButtonClick(amount)}>{amount}</button + > + {/if} + {/each} + {/if} + </div> <div> - <button type="button" on:click={() => (showCustomAmount = true)} - >Custom</button + <button + type="button" + class="btn" + on:click={() => (showCustomAmount = true)}>Custom</button > </div> {/if} @@ -182,40 +195,18 @@ </form> {#if showCustomAmount} - <form on:submit|preventDefault={apply}> - <div class="relative"> - <span - class="absolute top-[18px] left-5 font-semibold {!customTipAmount - ? 'opacity-50' - : 'opacity-100'}">$</span - > - <input - bind:this={customInput} - type="number" - step="0.01" - on:input={(e) => handleCustomTipAmount(e)} - class="pl-10" - placeholder="Custom amount" - use:focus - /> - <button - type="submit" - class="w-full mt-2 bg-black text-white font-semibold py-3 px-7 rounded-2xl {!customTipAmount - ? 'opacity-50' - : 'opacity-100 hover:opacity-80'}" - disabled={!customTipAmount}>Apply</button - > - </div> + <form on:submit|preventDefault={apply} class="space-y-2"> + <input + bind:this={customInput} + type="number" + step="0.01" + on:input={(e) => handleCustomTipAmount(e)} + placeholder={$t("payments.amount")} + use:focus + /> + <button type="submit" class="btn" disabled={!customTipAmount} + >Apply</button + > </form> {/if} </div> - -<style> - .active { - @apply !bg-black !text-white; - } - - .container button[type="button"] { - @apply w-full mt-2 bg-primary text-black hover:bg-black hover:text-white font-semibold py-5 px-7 rounded-2xl; - } -</style> diff --git a/src/routes/(app)/settings/[...tab]/_account.svelte b/src/routes/(app)/settings/[...tab]/_account.svelte index 28540280..c4621f1a 100644 --- a/src/routes/(app)/settings/[...tab]/_account.svelte +++ b/src/routes/(app)/settings/[...tab]/_account.svelte @@ -75,21 +75,22 @@ </p> <label - class="input input-bordered input-lg rounded-2xl flex items-center gap-2" + class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2" > - <input - type="text" - name="email" - class="blank grow" - bind:value={user.email} - /> - <!-- {#if user.verified} --> - <!-- <iconify-icon icon="ph:check-bold" width="32" /> --> - <!-- {:else if user.email} --> - <div class="text-warning"> - <iconify-icon icon="ph:clock-bold" width="32" /> - </div> - <!-- {/if} --> + <input type="text" name="email" class="blank" bind:value={user.email} /> + {#if user.verified} + <iconify-icon + icon="ph:check-bold" + class="text-success ml-auto" + width="32" + /> + {:else if user.email} + <iconify-icon + icon="ph:clock-bold" + class="text-warning ml-auto" + width="32" + /> + {/if} </label> </div> diff --git a/src/routes/(static)/login/+page.svelte b/src/routes/(static)/login/+page.svelte index a0bba457..1b927406 100644 --- a/src/routes/(static)/login/+page.svelte +++ b/src/routes/(static)/login/+page.svelte @@ -138,7 +138,7 @@ </div> <div class="flex justify-end items-center"> - <a href="/forgot" class="underline underline-offset-4 text-black" + <a href="/forgot" class="underline underline-offset-4 text-primary-content" >{$t("login.forgotUserOrPassword")}</a > </div> @@ -155,7 +155,7 @@ {$t("login.noAccount")} <a href={"/register"} - class="block md:inline text-black underline underline-offset-4 hover:opacity-80" + class="block md:inline text-primary-content underline underline-offset-4 hover:opacity-80" > {$t("login.register")} </a> diff --git a/src/routes/(static)/register/+page.svelte b/src/routes/(static)/register/+page.svelte index fc760452..db7f761c 100644 --- a/src/routes/(static)/register/+page.svelte +++ b/src/routes/(static)/register/+page.svelte @@ -275,7 +275,7 @@ {$t("login.haveAccount")} <a href={"/login"} - class="block md:inline text-black underline underline-offset-4 hover:opacity-80" + class="block md:inline text-primary-content underline underline-offset-4 hover:opacity-80" > {$t("login.signIn")} </a> |
