mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-20 05:19:38 +02:00
Fix contrast issues
This commit is contained in:
parent
1c9c74958b
commit
a70b1f2818
5 changed files with 19 additions and 11 deletions
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<div class="dropdown dropdown-bottom dropdown-end" tabindex="0" role="button">
|
<div class="dropdown dropdown-bottom dropdown-end" tabindex="0" role="button">
|
||||||
<div class="avatar placeholder">
|
<div class="avatar placeholder">
|
||||||
<div class="bg-neutral text-neutral-content rounded-full w-10 ml-4">
|
<div class="bg-neutral rounded-full text-neutral-200 w-10 ml-4">
|
||||||
{#if user.profile_pic}
|
{#if user.profile_pic}
|
||||||
<img src={user.profile_pic} alt="User Profile" />
|
<img src={user.profile_pic} alt="User Profile" />
|
||||||
{:else}
|
{:else}
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
||||||
<ul
|
<ul
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
class="dropdown-content z-[1] menu p-2 shadow bg-primary-content mt-2 rounded-box w-52"
|
class="dropdown-content z-[1] text-neutral-200 menu p-2 shadow bg-neutral mt-2 rounded-box w-52"
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||||||
<!-- svelte-ignore a11y-missing-attribute -->
|
<!-- svelte-ignore a11y-missing-attribute -->
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="dropdown dropdown-end">
|
<div class="dropdown dropdown-end">
|
||||||
<div tabindex="0" role="button" class="btn btn-neutral">
|
<div tabindex="0" role="button" class="btn btn-neutral-200">
|
||||||
<DotsHorizontal class="w-6 h-6" />
|
<DotsHorizontal class="w-6 h-6" />
|
||||||
</div>
|
</div>
|
||||||
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
import Flower from '~icons/mdi/flower';
|
import Flower from '~icons/mdi/flower';
|
||||||
import Water from '~icons/mdi/water';
|
import Water from '~icons/mdi/water';
|
||||||
import AboutModal from './AboutModal.svelte';
|
import AboutModal from './AboutModal.svelte';
|
||||||
|
import AccountMultiple from '~icons/mdi/account-multiple';
|
||||||
import Avatar from './Avatar.svelte';
|
import Avatar from './Avatar.svelte';
|
||||||
import PaletteOutline from '~icons/mdi/palette-outline';
|
import PaletteOutline from '~icons/mdi/palette-outline';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/stores';
|
||||||
|
@ -82,6 +83,9 @@
|
||||||
<li>
|
<li>
|
||||||
<button on:click={() => goto('/map')}>Map</button>
|
<button on:click={() => goto('/map')}>Map</button>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<button on:click={() => goto('/users')}>Users</button>
|
||||||
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if !data.user}
|
{#if !data.user}
|
||||||
|
@ -134,6 +138,11 @@
|
||||||
<li>
|
<li>
|
||||||
<button class="btn btn-neutral" on:click={() => goto('/map')}>Map</button>
|
<button class="btn btn-neutral" on:click={() => goto('/map')}>Map</button>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<button class="btn btn-neutral" on:click={() => goto('/users')}
|
||||||
|
><AccountMultiple /></button
|
||||||
|
>
|
||||||
|
</li>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if !data.user}
|
{#if !data.user}
|
||||||
|
|
|
@ -4,21 +4,20 @@
|
||||||
import Lost from '$lib/assets/undraw_lost.svg';
|
import Lost from '$lib/assets/undraw_lost.svg';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>{$page.status}: {$page.error?.message}</h1>
|
|
||||||
|
|
||||||
{#if $page.status === 404}
|
{#if $page.status === 404}
|
||||||
<div
|
<div
|
||||||
class="flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8"
|
class="flex min-h-[100dvh] flex-col items-center justify-center bg-background px-4 py-12 sm:px-6 lg:px-8"
|
||||||
>
|
>
|
||||||
<div class="mx-auto max-w-md text-center">
|
<div class="mx-auto max-w-md text-center">
|
||||||
<img src={Lost} alt="Lost in the forest" />
|
<img src={Lost} alt="Lost in the forest" />
|
||||||
<h1 class="mt-4 text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
|
<h1 class="text-center text-5xl font-extrabold mt-2">
|
||||||
|
{$page.status}: {$page.error?.message}
|
||||||
|
</h1>
|
||||||
|
<h1 class="mt-4 text-xl font-bold tracking-tight text-foreground">
|
||||||
Oops, looks like you've wandered off the beaten path.
|
Oops, looks like you've wandered off the beaten path.
|
||||||
</h1>
|
</h1>
|
||||||
<p class="mt-4 text-muted-foreground">
|
|
||||||
We couldn't find the page you were looking for. Don't worry, we can help you find your way
|
<p class="mt-4 text-muted-foreground">We couldn't find the page you were looking for.</p>
|
||||||
back.ry, we can
|
|
||||||
</p>
|
|
||||||
<div class="mt-6 flex flex-col items-center gap-4 sm:flex-row">
|
<div class="mt-6 flex flex-col items-center gap-4 sm:flex-row">
|
||||||
<button class="btn btn-neutral" on:click={() => goto('/')}>Go to Homepage</button>
|
<button class="btn btn-neutral" on:click={() => goto('/')}>Go to Homepage</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@ export default {
|
||||||
'accent-content': '#f2eaea',
|
'accent-content': '#f2eaea',
|
||||||
|
|
||||||
neutral: '#2b2a2a',
|
neutral: '#2b2a2a',
|
||||||
'neutral-focus': '#1c1b1b',
|
'neutral-focus': '#272525',
|
||||||
'neutral-content': '#e9e7e7',
|
'neutral-content': '#e9e7e7',
|
||||||
|
|
||||||
'base-100': '#121212', // Dark background
|
'base-100': '#121212', // Dark background
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue