1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-22 06:19:38 +02:00

Refactor static file path and update theme selection text in Navbar; change localization keys for login and signup buttons

This commit is contained in:
Sean Morley 2024-11-05 10:13:30 -05:00
parent 40cb5daa07
commit 44c0ffc1d7
3 changed files with 4 additions and 4 deletions

View file

@ -132,7 +132,7 @@ USE_TZ = True
BASE_DIR = Path(__file__).resolve().parent.parent
STATIC_ROOT = BASE_DIR / "staticfiles"
STATIC_ROOT = BASE_DIR / "static"
STATIC_URL = '/static/'
MEDIA_URL = '/media/'

View file

@ -222,7 +222,7 @@
on:click={() => (window.location.href = 'https://discord.gg/wRbQ9Egr8C')}
>{$t('navbar.discord')}</button
>
<p class="font-bold m-4 text-lg">{$t('navbar.theme_selection')}</p>
<p class="font-bold m-4 text-lg text-center">{$t('navbar.theme_selection')}</p>
<form method="POST" use:enhance={submitUpdateTheme}>
<li>
<button formaction="/?/setTheme&theme=light"

View file

@ -46,10 +46,10 @@
</button>
{:else}
<button on:click={() => goto('/login')} class="btn btn-primary">
{$t('navbar.login')}
{$t('auth.login')}
</button>
<button on:click={() => goto('/signup')} class="btn btn-neutral">
{$t('navbar.signup')}
{$t('auth.signup')}
</button>
{/if}
</div>