Skip to content

Commit

Permalink
add login / register links to navigate between screens directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Vostrak authored and Gregor Vostrak committed Apr 15, 2024
1 parent 8913dfe commit cd03306
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
9 changes: 9 additions & 0 deletions resources/js/Pages/Auth/Register.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit cd03306

Please sign in to comment.