19:33
This commit is contained in:
parent
760f7090d1
commit
55cf3989b3
14
assets/css/fooldal.css
Normal file
14
assets/css/fooldal.css
Normal file
|
@ -0,0 +1,14 @@
|
|||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.main-cont{
|
||||
display: grid;
|
||||
grid-template-rows: 0.5fr 1fr 3fr;
|
||||
}
|
||||
|
||||
.first-row{
|
||||
|
||||
}
|
|
@ -1,5 +1,154 @@
|
|||
body{
|
||||
background-image: url(../img/background.avif);
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
|
||||
}
|
||||
|
||||
body {
|
||||
background-image: url(../img/background.jpg.avif);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
display: grid !important;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
display: grid;
|
||||
grid-template-columns: 1.3fr 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
}
|
||||
|
||||
h1{
|
||||
color: #656565;
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
|
||||
.login-user-div{
|
||||
text-align: center;
|
||||
font-size: 5rem;
|
||||
margin-bottom: 1rem;
|
||||
color: #656565;
|
||||
}
|
||||
|
||||
.grid1 {
|
||||
grid-column: 1;
|
||||
align-self: center !important;
|
||||
justify-self: center !important;
|
||||
}
|
||||
|
||||
.grid2 {
|
||||
grid-column: 2/4;
|
||||
align-self: flex-end;
|
||||
justify-self: right;
|
||||
padding-right: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.sizeing {
|
||||
size: 50%;
|
||||
}
|
||||
|
||||
.login-container {
|
||||
width: 450px;
|
||||
height: auto;
|
||||
background: whitesmoke;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0px 0px 25px -2px #000000;
|
||||
}
|
||||
|
||||
.center-container {
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.label {
|
||||
padding: 20px 110px;
|
||||
font-size: 35px;
|
||||
font-weight: bold;
|
||||
color: #656565;
|
||||
}
|
||||
|
||||
.login_form {
|
||||
padding-left: 40px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
|
||||
.login_form .font {
|
||||
font-size: 18px;
|
||||
color: #656565;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
|
||||
.login_form input {
|
||||
height: 40px;
|
||||
width: 100%;
|
||||
padding: 0 5px;
|
||||
font-size: 18px;
|
||||
outline: none;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
|
||||
.login_form .font2 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.login_form button {
|
||||
margin: 20px 0 5px 0;
|
||||
height: 45px;
|
||||
width: 100%;
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
background: #818F78;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #818F78;
|
||||
transition: .5s;
|
||||
}
|
||||
|
||||
.login_form button:hover {
|
||||
background: #5A6354;
|
||||
}
|
||||
|
||||
.login_form #email_error,
|
||||
.login_form #password_error {
|
||||
margin-top: 5px;
|
||||
width: 100%;
|
||||
font-size: 18px;
|
||||
color: #c62828;
|
||||
background: rgba(255, 0, 0, 0.1);
|
||||
text-align: center;
|
||||
padding: 5px 8px;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #EF9A9A;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.user-div{
|
||||
border: solid 2px #656565;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 450px) {
|
||||
.login-container {
|
||||
position: relative !;
|
||||
border-radius: 0px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1300px) {
|
||||
.grid2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.grid1 {
|
||||
grid-column: 1/4;
|
||||
}
|
||||
}
|
22
assets/html/fooldal.html
Normal file
22
assets/html/fooldal.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="hu">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Főoldal</title>
|
||||
<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="../css/fooldal.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css">
|
||||
<link rel="icon" type="image/x-icon" href="../img/icon.jpg">
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-cont">
|
||||
<div class="first-row"></div>
|
||||
<div class="second-row"></div>
|
||||
<div class="third-row"></div>
|
||||
</div>
|
||||
<script src="../js/fooldal.js"></script>
|
||||
<script src="../bootstrap/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -6,11 +6,30 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Bejelentkezés</title>
|
||||
<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
|
||||
<script src="../bootstrap/js/bootstrap.min.js"></script>
|
||||
<link rel="stylesheet" href="../css/login.css">
|
||||
<script src="../js/login.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css">
|
||||
<link rel="icon" type="image/x-icon" href="../img/icon.jpg">
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-div">asd</div>
|
||||
<div class="center-container grid1">
|
||||
<div class="login-container">
|
||||
<h1>LaGeDa pékség</h1>
|
||||
<div class="login-user-div"><i class="fa-solid fa-circle-user"></i></div>
|
||||
<form class="login_form" method="post" name="form">
|
||||
<div class="font">Email cím</div>
|
||||
<input autocomplete="off" type="text" name="email">
|
||||
<div id="email_error">Hibás Email cím</div>
|
||||
<div class="font font2">Jelszó</div>
|
||||
<input type="password" name="password">
|
||||
<div id="password_error">Helytelen Jelszó</div>
|
||||
<p><a href="#">Elfelejtette a jelszavát?</a></p>
|
||||
<button type="button" onclick="login()" id="loginBtn" class="submit mb-4">Bejelentkezés</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid2">
|
||||
</div>
|
||||
<script src="../js/login.js"></script>
|
||||
<script src="../bootstrap/js/bootstrap.min.js"></script>
|
||||
</body>
|
||||
</html>
|
BIN
assets/img/icon.jpg
Normal file
BIN
assets/img/icon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
0
assets/js/fooldal.js
Normal file
0
assets/js/fooldal.js
Normal file
|
@ -1 +1,43 @@
|
|||
console.log("xd");
|
||||
const email = document.forms['form']['email'];
|
||||
const password = document.forms['form']['password'];
|
||||
|
||||
const email_error = document.getElementById('email_error');
|
||||
const password_error = document.getElementById('password_error');
|
||||
|
||||
const loginBtn = document.getElementById('loginBtn');
|
||||
loginBtn.addEventListener('click',login)
|
||||
|
||||
function login(){
|
||||
let validemail = email_Verify();
|
||||
let validpassword = password_Verify();
|
||||
if (validemail && validpassword){
|
||||
window.location.href = "fooldal.html"
|
||||
}
|
||||
}
|
||||
|
||||
function email_Verify(){
|
||||
if (email.value.indexOf("@") == -1 || email.value=='') {
|
||||
email.style.border = "1px solid red";
|
||||
email_error.style.display = "block";
|
||||
email.focus();
|
||||
password.style.border = "1px solid red";
|
||||
password_error.style.display = "block";
|
||||
password.focus();
|
||||
return false;
|
||||
}
|
||||
email_error.style.display="none";
|
||||
email.style.border = "1px solid green";
|
||||
return true;
|
||||
}
|
||||
|
||||
function password_Verify(){
|
||||
if (password.value.length < 8) {
|
||||
password.style.border = "1px solid red";
|
||||
password_error.style.display = "block";
|
||||
password.focus();
|
||||
return false;
|
||||
}
|
||||
password_error.style.display="none";
|
||||
password.style.border = "1px solid green";
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user