<template>
    <div class="container">
        <div class="header">
            <h1 class="display-4"><router-link :to="{ name: 'home' }">RPG Helper</router-link></h1>
        </div>
        <div class="card">
            <div class="card-header">
                <ul class="nav nav-pills card-header-pills">
                    <li class="nav-item">
                        <router-link :to="{ name: 'login' }" active-class="active" class="nav-link">{{ $t('auth.login.title') }}</router-link>
                    </li>
                    <li class="nav-item">
                        <router-link :to="{ name: 'register' }" active-class="active" class="nav-link">{{ $t('auth.registration.title') }}</router-link>
                    </li>
                </ul>
            </div>
            <div class="card-block">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                login: '',
                password: '',
                inProgress: false
            };
        },
        methods: {
            onSubmit() {
                this.inProgress = true;
                this.$store
                    .dispatch('login', {
                        login: this.login,
                        password: this.password
                    })
                    .then(() => {
                        this.$router.push({ name: 'home' })
                    })
                    .finally(() => this.inProgress = false);
            }
        }
    }
</script>
<template>
    <div class="container">
        <h1 class="display-4"><router-link :to="{ name: 'home' }">RPG Helper</router-link></h1>
        <div class="card">
            <div class="card-header">
                <ul class="nav nav-pills card-header-pills">
                    <li class="nav-item">
                        <router-link :to="{ name: 'login' }" active-class="active" class="nav-link">{{ $t('auth.login.title') }}</router-link>
                    </li>
                    <li class="nav-item">
                        <router-link :to="{ name: 'register' }" active-class="active" class="nav-link">{{ $t('auth.registration.title') }}</router-link>
                    </li>
                </ul>
            </div>
            <div class="card-block">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                login: '',
                password: '',
                inProgress: false
            };
        },
        methods: {
            onSubmit() {
                this.inProgress = true;
                this.$store
                    .dispatch('login', {
                        login: this.login,
                        password: this.password
                    })
                    .then(() => {
                        this.$router.push({ name: 'home' })
                    })
                    .finally(() => this.inProgress = false);
            }
        }
    }
</script>
Fix guest app logo styles
Fix guest app logo styles

