From c8c0cf7ebbb72320b9f6686a3b22b317cccedc1f Mon Sep 17 00:00:00 2001 From: ditatompel Date: Wed, 8 May 2024 02:16:16 +0700 Subject: [PATCH] Place modal and toast at the root of layout.svelte --- frontend/src/app.css | 10 +++++++++- .../lib/components/navigation/MainNav.svelte | 2 +- frontend/src/routes/(front)/+layout.svelte | 17 +---------------- frontend/src/routes/(loggedin)/+layout.svelte | 5 +---- frontend/src/routes/+layout.svelte | 16 +++++----------- 5 files changed, 17 insertions(+), 33 deletions(-) diff --git a/frontend/src/app.css b/frontend/src/app.css index 2f37859..c441c87 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -7,7 +7,15 @@ html, body { @apply h-full; } - +p { + @apply mb-2; +} +.link { + @apply text-primary-800 dark:text-primary-500 hover:brightness-110; +} +a.external { + @apply link after:content-['_↗'] +} .dashboard-card { @apply bg-surface-50-900-token rounded-lg border-2 border-dashed border-gray-200 p-4 dark:border-gray-700; } diff --git a/frontend/src/lib/components/navigation/MainNav.svelte b/frontend/src/lib/components/navigation/MainNav.svelte index 4570968..1007d96 100644 --- a/frontend/src/lib/components/navigation/MainNav.svelte +++ b/frontend/src/lib/components/navigation/MainNav.svelte @@ -61,6 +61,6 @@ @apply block rounded bg-primary-500 p-2 text-black; } .nav-link { - @apply block rounded hover:bg-secondary-500 md:p-2 hover:text-black; + @apply block rounded hover:bg-secondary-500 md:p-2 hover:text-white; } diff --git a/frontend/src/routes/(front)/+layout.svelte b/frontend/src/routes/(front)/+layout.svelte index 3e93402..3806cfb 100644 --- a/frontend/src/routes/(front)/+layout.svelte +++ b/frontend/src/routes/(front)/+layout.svelte @@ -1,23 +1,10 @@ - - -

Navigation


diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 2befc05..abc5733 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,29 +1,23 @@ + + + {#if isLoading}