Skip to content

Commit

Permalink
Add create new account link on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodeholic committed Dec 23, 2023
1 parent afad324 commit 91f6ae5
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import InputError from '@/Components/InputError.vue';
import InputLabel from '@/Components/InputLabel.vue';
import PrimaryButton from '@/Components/PrimaryButton.vue';
import TextInput from '@/Components/TextInput.vue';
import { Head, Link, useForm } from '@inertiajs/vue3';
import {Head, Link, useForm} from '@inertiajs/vue3';
defineProps({
canResetPassword: {
Expand All @@ -31,15 +31,24 @@ const submit = () => {

<template>
<GuestLayout>
<Head title="Log in" />
<Head title="Log in"/>
<div class="text-center dark:text-gray-100">
<h2 class="text-2xl text-center">Login</h2>
<span class="text-gray-400 text-sm">or</span>
<div class="flex justify-center">
<Link :href="route('register')" class="inline-block hover:underline">
create new account
</Link>
</div>
</div>

<div v-if="status" class="mb-4 font-medium text-sm text-green-600">
{{ status }}
</div>

<form @submit.prevent="submit">
<div>
<InputLabel for="email" value="Email" />
<InputLabel for="email" value="Email"/>

<TextInput
id="email"
Expand All @@ -51,11 +60,11 @@ const submit = () => {
autocomplete="username"
/>

<InputError class="mt-2" :message="form.errors.email" />
<InputError class="mt-2" :message="form.errors.email"/>
</div>

<div class="mt-4">
<InputLabel for="password" value="Password" />
<InputLabel for="password" value="Password"/>

<TextInput
id="password"
Expand All @@ -66,12 +75,12 @@ const submit = () => {
autocomplete="current-password"
/>

<InputError class="mt-2" :message="form.errors.password" />
<InputError class="mt-2" :message="form.errors.password"/>
</div>

<div class="block mt-4">
<label class="flex items-center">
<Checkbox name="remember" v-model:checked="form.remember" />
<Checkbox name="remember" v-model:checked="form.remember"/>
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400">Remember me</span>
</label>
</div>
Expand Down

0 comments on commit 91f6ae5

Please sign in to comment.