aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-09-16 12:07:07 -0600
committersecondl1ght <[email protected]>2022-09-16 12:07:07 -0600
commit46572ee10942a817e63e2c31997cac4a4c586b00 (patch)
tree0e115b2e52cb926d77892745737290bd836dbdd3 /src
parent4bfb46782e6974aba1eb62e44019dd878a3f2931 (diff)
downloadcoinos-ui-46572ee10942a817e63e2c31997cac4a4c586b00.tar.gz
coinos-ui-46572ee10942a817e63e2c31997cac4a4c586b00.zip
add shadows to app buttons and refactor avatar position
Diffstat (limited to 'src')
-rw-r--r--src/components/AppHeader.svelte12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index d6ef6158..cd3dfd30 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -5,7 +5,7 @@
import { Icon } from '$comp';
import { t } from '$lib/translations';
- export let avatarPosition = 'left-[calc(50vw-48px)]';
+ export let avatarPosition = 'left-[calc(50vw-48px)] bottom-[-48px]';
const menuButtons = [
{ stringID: 'nav.dashboard', icon: 'dash', goto: 'dashboard' },
@@ -37,12 +37,12 @@
<nav class="flex justify-end items-center space-x-4 p-5">
{#if $user}
<a href={`/${$user.username}/receive`}>
- <button class="bg-white p-2 rounded-full w-12 h-12"
+ <button class="bg-white p-2 rounded-full w-12 h-12 shadow-xl"
><Icon icon="numpad" style="mx-auto" />
</button>
</a>
<a href={`/${$user.username}/transactions`}>
- <button class="bg-white p-2 rounded-full w-12 h-12 relative"
+ <button class="bg-white p-2 rounded-full w-12 h-12 shadow-xl relative"
><Icon icon="clock" style="mx-auto" />
{#if $newPayment}
<span class="absolute top-0 right-0">
@@ -57,14 +57,14 @@
</button>
</a>
<a href={`/${$user.username}`}>
- <button class="bg-white p-2 rounded-full w-12 h-12"
+ <button class="bg-white p-2 rounded-full w-12 h-12 shadow-xl"
><Icon icon="profile" style="mx-auto" />
</button>
</a>
<div class="relative">
<OutClick on:outclick={() => (showMenu = false)}>
<button
- class="bg-white p-2 rounded-full w-12 h-12"
+ class="bg-white p-2 rounded-full w-12 h-12 shadow-xl"
on:click={() => (showMenu = !showMenu)}
><Icon icon="menu" style="mx-auto" />
</button>
@@ -98,7 +98,7 @@
</nav>
{#if $user.profile}
<div
- class="absolute top-[calc(175px-48px)] {avatarPosition} rounded-full overflow-hidden text-center w-24 h-24 my-auto"
+ class="absolute {avatarPosition} rounded-full overflow-hidden text-center w-24 h-24 my-auto"
>
<img
src={$tempProfileFiles && $tempProfileFiles.profile