[+] Add an overlay to the login panel

This commit is contained in:
Hykilpikonna
2019-08-21 14:19:39 +08:00
parent 4be24d59fd
commit 2e697904c9
2 changed files with 39 additions and 6 deletions
+31
View File
@@ -1,6 +1,37 @@
// Parent div for login
#login
{
}
// Parent overlay
.login-overlay
{
// Credit to w3schools.com:
// https://www.w3schools.com/howto/howto_js_fullscreen_overlay.asp
// Fill entire screen
height: 100%;
width: 100%;
left: 0;
top: 0;
// Stay in place
position: fixed;
// Sit on top layer
z-index: 1;
// Overlay color
background-color: rgba(0,0,0, 0.65);
// Disable horizontal scroll
overflow-x: hidden;
}
// The user interacting panel
.login-panel
{
// Make it smaller
width: 300px;
+8 -6
View File
@@ -1,10 +1,12 @@
<template>
<div id="login">
<img alt="Vue logo" src="../../assets/logo.png">
<h1>Veracross Analyzer</h1>
<el-input v-model="username" placeholder="School Username"></el-input>
<el-input v-model="password" placeholder="Veracross Password" show-password=""></el-input>
<el-button plain type="primary" @click="onLoginClick">Login</el-button>
<div id="login" class="login-overlay">
<div class="login-panel">
<img alt="Vue logo" src="../../assets/logo.png">
<h1>Veracross Analyzer</h1>
<el-input v-model="username" placeholder="School Username"></el-input>
<el-input v-model="password" placeholder="Veracross Password" show-password=""></el-input>
<el-button plain type="primary" @click="onLoginClick">Login</el-button>
</div>
</div>
</template>