Layout
Sign in
Enter your details to continue.
Don't have an account?
<template>
<div class="d-flex justify-center">
<AppAuthCard :title="$t('auth.login.title')" :description="$t('auth.login.description')">
<AppAuthSocial :loading="loading" @select="signIn" />
<v-form class="d-flex flex-column ga-4 mt-6" @submit.prevent>
<BaseTextField
v-model="email"
type="email"
:label="$t('auth.login.email')"
autocomplete="email"
/>
<BasePasswordField v-model="password" :label="$t('auth.login.password')" />
<BaseButton button-type="inverse" type="submit" size="large" block>
{{ $t('auth.login.submit') }}
</BaseButton>
</v-form>
<template #footer>
<span class="text-body-medium text-medium-emphasis">{{ $t('auth.login.noAccount') }}</span>
</template>
</AppAuthCard>
</div>
</template>
<script setup lang="ts">
import type { AuthSignInMethod } from '~/composables/useSocialSignIn'
const email = ref('')
const password = ref('')
const loading = ref<string>()
function signIn(method: AuthSignInMethod) {
loading.value = method
setTimeout(() => (loading.value = undefined), 1200)
}
</script>
Props
| | | |
|---|
title | string | — | The page title. |
description | string | — | The line under it. |
Slots
| | |
|---|
#default | — | The social buttons and the form. |
#footer | — | A link such as “Don’t have an account?”. |
The auth layout adds the brand panel, language, theme and legal links around it.