Add userVisitedAdventures table and API endpoints for visits and userinfo

This commit is contained in:
Sean Morley
2024-04-03 23:55:00 +00:00
parent ba6a5283fe
commit d834cef83b
10 changed files with 417 additions and 10 deletions

View File

@@ -16,8 +16,9 @@
<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}
<h1 class="mb-4">Welcome. Let's get Exploring!</h1>
</article>
<img src={campingDrawing} class="w-1/4 mb-4" alt="Logo" />
<button on:click={navToLog} class="btn btn-primary">Open Log</button>
@@ -33,6 +34,6 @@
{#if data.user}
<form method="post" use:enhance>
<button>Sign out</button>
<button class="btn btn-primary">Sign out</button>
</form>
{/if}