Making error overlay more generic, WIP

This commit is contained in:
Daniel Scalzi 2018-04-02 22:43:11 -04:00
parent 5c7e0c3c8a
commit c6f9121806
No known key found for this signature in database
GPG Key ID: 5CA2F145B63535F9
2 changed files with 74 additions and 0 deletions

View File

@ -14,6 +14,9 @@
height: calc(100% - 22px);
background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
}
#main[overlay] {
filter: blur(3px) contrast(0.9) brightness(1.0);
}
</style>
</head>
<body>
@ -23,5 +26,6 @@
<% include login.ejs %>
<% include landing.ejs %>
</div>
<% include overlay.ejs %>
</body>
</html>

70
app/overlay.ejs Normal file
View File

@ -0,0 +1,70 @@
<style type="text/css">
#overlayContainer {
position: absolute;
top: 22px;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: calc(100% - 22px);
background: rgba(0, 0, 0, 0.50);
}
#overlayContent {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
width: 300px;
height: 35%;
box-sizing: border-box;
padding: 15px 0px;
/* background-color: #424242; */
text-align: center;
}
#overlayTitle {
font-family: 'Avenir Medium';
font-size: 20px;
color: #fff;
font-weight: bold;
letter-spacing: 1px;
}
#overlayDesc {
font-family: 'Avenir Book';
font-size: 12px;
color: #fff;
font-weight: bold;
}
#overlayAcknowledge {
background: none;
border: 1px solid #ffffff;
color: white;
font-family: 'Avenir Medium';
font-weight: bold;
border-radius: 2px;
width: 75px;
cursor: pointer;
transition: 0.25s ease;
}
#overlayAcknowledge:hover,
#overlayAcknowledge:focus {
box-shadow: 0px 0px 10px 0px #fff;
outline: none;
}
#overlayAcknowledge:active {
border-color: rgba(255, 255, 255, 0.75);
color: rgba(255, 255, 255, 0.75);
}
</style>
<div id="overlayContainer" style="display: none;">
<div id="overlayContent">
<span id="overlayTitle">LOGIN FAILED:<br>INVALID CREDENTIALS</span>
<span id="overlayDesc">Either the email or password you supplied is invalid. Please ensure everything is correct and try again.</span>
<button id="overlayAcknowledge">Try Again</button>
</div>
</div>