1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00

Update Navbar and UserAvatar components, and +page styling

This commit is contained in:
Sean Morley 2024-04-10 23:25:24 +00:00
parent 3d0116a684
commit 549840128f
4 changed files with 13 additions and 13 deletions

View file

@ -64,9 +64,8 @@
on:click={goHome}>Home</button
>
{#if user}
<button
class="btn btn-primary my-2 md:my-0 md:mr-4 md:ml-2"
on:click={goToLog}>My Log</button
<button class="btn btn-primary my-2 md:my-0 md:mr-4" on:click={goToLog}
>My Log</button
>
{/if}
<button class="btn btn-primary my-2 md:my-0" on:click={goToFeatured}
@ -87,7 +86,7 @@
{/if}
{#if user}
<p>Adventures: {count}</p>
<p class="font-bold">Adventures: {count}</p>
<UserAvatar {user} />
{/if}
<button class="btn btn-neutral ml-4" on:click={showModal}>About</button>

View file

@ -12,7 +12,7 @@
<div class="dropdown dropdown-bottom dropdown-end" tabindex="0" role="button">
<div class="avatar placeholder">
<div class="bg-neutral text-neutral-content rounded-full w-10 ml-4">
<span class="text-2xl">{firstLetter}</span>
<span class="text-2xl -mt-0.5">{firstLetter}</span>
</div>
</div>
<!-- svelte-ignore a11y-missing-attribute -->

View file

@ -13,13 +13,14 @@
</script>
<div class="flex flex-col items-center justify-center">
<article class="prose">
{#if data.user && data.user.username != ""}
<h1 class="mb-4">Welcome {data.user.first_name}. Let's get Exploring!</h1>
{:else}
<h1 class="mb-4">Welcome. Let's get Exploring!</h1>
{/if}
</article>
{#if data.user && data.user.username != ""}
<h1 class="mb-6 text-4xl font-extrabold">
Welcome {data.user.first_name}. Let's get Exploring!
</h1>
{:else}
<h1 class="mb-6 text-4xl font-extrabold">Welcome. Let's get Exploring!</h1>
{/if}
<img src={campingDrawing} class="w-1/4 mb-4" alt="Logo" />
<button on:click={navToLog} class="btn btn-primary">Open Log</button>

View file

@ -6,6 +6,6 @@ export default {
},
plugins: [require("@tailwindcss/typography"), require("daisyui")],
daisyui: {
themes: ["night"],
themes: ["sunset"],
},
};