headline refactoring in auth pages

This commit is contained in:
Čarodej
2021-10-25 10:33:14 +02:00
parent 3f93373f60
commit b45662942d
10 changed files with 126 additions and 164 deletions

View File

@@ -1,11 +1,10 @@
<template>
<div id="password-view">
<AuthContent class="center" name="password" :visible="true">
<img v-if="config.app_logo" class="logo mx-auto" :src="$getImage(config.app_logo)" :alt="config.app_name">
<b v-if="! config.app_logo" class="auth-logo-text">{{ config.app_name }}</b>
<h1>{{ $t('page_shared.title') }}</h1>
<h2>{{ $t('page_shared.subtitle') }}</h2>
<Headline
:title="$t('page_shared.title')"
:description="$t('page_shared.subtitle')"
/>
<ValidationObserver @submit.prevent="authenticateProtected" ref="authenticateProtected" v-slot="{ invalid }" tag="form" class="form inline-form">
@@ -21,11 +20,12 @@
</template>
<script>
import {ValidationProvider, ValidationObserver} from 'vee-validate/dist/vee-validate.full'
import {ValidationProvider, ValidationObserver} from 'vee-validate/dist/vee-validate.full'
import AuthContent from '/resources/js/components/Auth/AuthContent'
import AuthButton from '/resources/js/components/Auth/AuthButton'
import axios from "axios";
import Headline from "./Headline";
import {mapGetters} from "vuex";
import axios from "axios";
export default {
name: 'SharedAuthentication',
@@ -34,6 +34,7 @@
ValidationProvider,
AuthContent,
AuthButton,
Headline,
},
computed: {
...mapGetters([