change login page layout and style

This commit is contained in:
wh1te909 2020-01-05 21:48:43 +00:00
parent 927ff21b6d
commit 324a6a44e5
1 changed files with 48 additions and 56 deletions

View File

@ -1,14 +1,11 @@
<template>
<q-layout view="lHh Lpr lFf" class="bg-grey-9 text-white">
<div class="window-height window-width row justify-center items-center">
<div class="q-pa-md">
<div class="row text-center">
<div class="col"></div>
<div class="col-3">
<q-card dark class="bg-grey-9 shadow-10">
<q-card-section class="text-center text-h5">Tactical Techs RMM</q-card-section>
<q-card-section>
<div class="col">
<h5>Tactical Techs RMM</h5>
<q-form @submit.prevent="prompt = true" class="q-gutter-md">
<q-input
dark
outlined
v-model="credentials.username"
label="Username"
@ -17,7 +14,6 @@
/>
<q-input
dark
outlined
type="password"
v-model="credentials.password"
@ -25,25 +21,22 @@
lazy-rules
:rules="[ val => val && val.length > 0 || 'This field is required']"
/>
<div>
<q-btn label="Login" type="submit" color="primary" class="full-width q-mt-md" />
</div>
</q-form>
</q-card-section>
</q-card>
</div>
<div class="col"></div>
</div>
<!-- 2 factor modal -->
<q-dialog v-model="prompt">
<q-card dark class="bg-grey-9" style="min-width: 400px">
<q-card style="min-width: 400px">
<q-form @submit.prevent="onSubmit">
<q-card-section class="text-center text-h5">
Google Authenticator code
</q-card-section>
<q-card-section class="text-center text-h5">Google Authenticator code</q-card-section>
<q-card-section>
<q-input
dark
autofocus
outlined
v-model="credentials.twofactor"
@ -59,7 +52,6 @@
</q-card>
</q-dialog>
</div>
</q-layout>
</template>
<script>