frontend: fix login page logo

This commit is contained in:
nkanaev
2026-07-07 00:10:09 +01:00
parent a96bd00be5
commit 6af59b613d
3 changed files with 7 additions and 3 deletions

View File

@@ -617,7 +617,7 @@ a,
margin: 0 auto; margin: 0 auto;
padding: 1rem; padding: 1rem;
} }
.login-page img { .login-page .logo svg {
width: 4rem; width: 4rem;
height: 4rem; height: 4rem;
display: block; display: block;

View File

@@ -1,9 +1,13 @@
import template from './templates/login.html' with {type: 'text'} import template from './templates/login.html' with {type: 'text'}
import icons from './icons'
export default { export default {
template: template, template: template,
data: function () { data: function () {
return { hasError: false } return {
logo: icons.anchor,
hasError: false,
}
}, },
created: function () { created: function () {
this.$setLang(window.app.settings.language) this.$setLang(window.app.settings.language)

View File

@@ -1,6 +1,6 @@
<div class="login-page"> <div class="login-page">
<form @submit.prevent="login"> <form @submit.prevent="login">
<img src="./static/graphicarts/anchor.svg" alt=""> <div class="logo" v-html="logo"></div>
<div class="text-danger text-center my-3" v-if="hasError">{{ $t('login_error') }}</div> <div class="text-danger text-center my-3" v-if="hasError">{{ $t('login_error') }}</div>
<div class="form-group"> <div class="form-group">
<label for="username">{{ $t('username') }}</label> <label for="username">{{ $t('username') }}</label>