ki-frontend/src/views/Index.vue

84 lines
2.0 KiB
Vue
Raw Normal View History

2021-09-19 12:55:33 +02:00
<!--
SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
SPDX-License-Identifier: AGPL-3.0-or-later
-->
2021-08-02 19:06:41 +02:00
<template>
2021-09-21 23:56:17 +02:00
<div class="bg-wtf">
<div class="container pt-5">
<div class="text-center mb-5">
<img class="wtf-logo wtf-logo--index" src="@/assets/img/wtf_logo.svg">
<h1 class="text-white">Kompetenzinventar</h1>
2021-09-19 15:56:48 +02:00
</div>
2021-09-21 23:56:17 +02:00
<form @submit.prevent="submitLogin()" class="card bg-white login-form">
<div class="card-body">
<div class="mb-3">
<label for="exampleInputusername1" class="form-label" >
WTF-Benutzername:
</label>
<input
type="username"
class="form-control"
id="exampleInputusername1"
v-model="username"
required
/>
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">Passwort:</label>
<input
type="password"
class="form-control"
id="exampleInputPassword1"
v-model="password"
required
/>
</div>
<button type="submit" class="btn btn-primary">Login</button>
<a class="btn btn-link" href="https://resetpw.wtf-eg.de/">Passwort vergessen?</a>
<div
class="alert alert-danger mt-3 mb-0"
role="alert"
v-if="showErrorMessage"
>
Dein Benutzername oder Passwort ist falsch.<br>Versuche es noch einmal.
</div>
</div>
</form>
</div>
2021-06-07 17:41:25 +02:00
</div>
</template>
2021-09-21 23:56:17 +02:00
2021-06-07 17:41:25 +02:00
<script>
2021-08-18 22:59:44 +02:00
import RequestMixin from "@/mixins/request.mixin"
2021-06-07 17:41:25 +02:00
export default {
name: "Index",
2021-08-18 22:59:44 +02:00
mixins: [RequestMixin],
2021-06-24 00:40:27 +02:00
data() {
return {
showErrorMessage: false,
username: "",
password: "",
};
},
2021-06-24 00:40:27 +02:00
};
2021-08-15 20:35:15 +02:00
</script>
2021-09-19 15:56:48 +02:00
<style scoped>
2021-09-21 23:56:17 +02:00
2021-09-19 15:56:48 +02:00
.container {
min-height: 100vh;
}
.login-form {
margin: 0 auto;
max-width: 500px;
}
.wtf-logo--index {
max-width: 200px;
}
</style>