fix some styles
This commit is contained in:
@@ -31,14 +31,18 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex justify-end items-center min-h-10 gap-10 py-1 px-10 border-b border-accent">
|
<div class="h-lvh flex flex-col">
|
||||||
<a href="/" class="flex-1">ME-FIT</a>
|
<div class="flex justify-end items-center min-h-10 gap-10 py-1 px-10 border-b border-accent">
|
||||||
{#if user}
|
<a href="/" class="flex-1">ME-FIT</a>
|
||||||
<p>{user?.email}</p>
|
{#if user}
|
||||||
<button class="btn" on:click={async () => signOut()}>Logout</button>
|
<p>{user?.email}</p>
|
||||||
{:else}
|
<button class="btn" on:click={async () => signOut()}>Logout</button>
|
||||||
<a href="/login" class="btn">Login</a>
|
{:else}
|
||||||
{/if}
|
<a href="/login" class="btn">Login</a>
|
||||||
</div>
|
{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
<slot></slot>
|
<div class="flex-1">
|
||||||
|
<slot></slot>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<div class="flex h-svh justify-center items-center">
|
<div class="flex justify-center items-center h-full">
|
||||||
<h1 class="text-9xl text-primary-content">Welcome to ME-FIT</h1>
|
<h1 class="text-9xl text-primary-content">Welcome to ME-FIT</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,7 +23,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form class="max-w-xl mx-auto flex flex-col gap-4" on:submit|preventDefault={signIn}>
|
<form
|
||||||
|
class="max-w-xl mx-auto flex flex-col gap-4 h-full justify-center"
|
||||||
|
on:submit|preventDefault={signIn}
|
||||||
|
>
|
||||||
<h2 class="text-6xl mb-10">Login</h2>
|
<h2 class="text-6xl mb-10">Login</h2>
|
||||||
<label class="input input-bordered flex items-center gap-2">
|
<label class="input input-bordered flex items-center gap-2">
|
||||||
<svg
|
<svg
|
||||||
|
|||||||
Reference in New Issue
Block a user