add login / register links to navigate between screens directly

This commit is contained in:
Gregor Vostrak
2024-04-15 22:29:12 +02:00
parent c292afa359
commit 5a359583eb
3 changed files with 19 additions and 0 deletions

View File

@@ -9,5 +9,7 @@
class="w-full sm:max-w-md mt-6 px-6 py-4 bg-card-background shadow-md border border-card-border overflow-hidden sm:rounded-lg">
<slot />
</div>
<slot name="actions"></slot>
</div>
</template>

View File

@@ -37,6 +37,14 @@ const submit = () => {
<AuthenticationCardLogo />
</template>
<template #actions>
<Link
class="py-8 text-muted text-sm font-medium opacity-90 hover:opacity-100 transition"
:href="route('register')">
No account yet? <span class="text-white">Register here!</span>
</Link>
</template>
<div v-if="status" class="mb-4 font-medium text-sm text-green-400">
{{ status }}
</div>

View File

@@ -38,6 +38,15 @@ const page = usePage<{
<AuthenticationCardLogo />
</template>
<template #actions>
<Link
class="py-8 text-muted text-sm font-medium opacity-90 hover:opacity-100 transition"
:href="route('login')">
Already have an account?
<span class="text-white">Login here!</span>
</Link>
</template>
<form @submit.prevent="submit">
<div>
<InputLabel for="name" value="Name" />