-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
115 lines (100 loc) · 4.29 KB
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<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">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/style.css"><!--css -->
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&family=Poppins:wght@100;300;400;500;600&display=swap" rel="stylesheet"><!--font-->
<title>Giriş Yap</title>
</head>
<body>
<header>
<div class="navbar">
<div class="logo">
<h2><a href="#">Emir Vardar</a></h2>
</div>
<div onclick="showNavbar()" class="burger">
<svg viewBox="0 0 100 80" width="27" height="27" stroke="black" fill="white">
<rect width="100" height="20"></rect>
<rect y="30" width="100" height="20"></rect>
<rect y="60" width="100" height="20"></rect>
</svg>
</div>
<ul class="nav_links">
<li><a href="index.html">Hakkımda</a></li>
<li><a href="cv.html">Öz Geçmiş</a></li>
<li><a href="sehrim.html">Şehrim</a></li>
<li><a href="miras.html">Mirasımız</a></li>
<li><a href="hobi.html">Hobilerim</a></li>
<li><a href="iletisim.html">İletişim</a></li>
<li><a href="login.html">Giriş Yap</a></li>
</ul>
<div id="show" class="responsiveNav">
<a href="index.html">Hakkımda</a>
<a href="cv.html">Öz Geçmiş</a>
<a href="sehrim.html">Şehrim</a>
<a href="miras.html">Mirasımız</a>
<a href="hobi.html">Hobilerim</a>
<a href="iletisim.html">İletişim</a>
<a href="login.html">Giriş Yap</a>
<span onclick="noneNavbar()" class="closeButton">
<svg width="40" height="40"viewPort="0 0 12 12" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<line x1="1" y1="22"
x2="22" y2="1"
stroke="white"
stroke-width="2"/>
<line x1="1" y1="1"
x2="22" y2="22"
stroke="white"
stroke-width="2"/>
</svg>
</span>
</div>
<script>
const button=document.getElementsByClassName("burger")
const showNavbar=()=>{document.getElementById("show").classList.add("openNav");
}
const noneNavbar=()=>{document.getElementById("show").classList.remove("openNav");}
</script>
</div>
</header>
<section id="giris">
<div class="section_title">
<h2>Giriş Yap</h2>
</div>
<div class="inner_giris">
<div class="child_giris">
<form action="login.php" onsubmit="return validateControl()" method="post">
<input placeholder="E-mail" type="text" name="email" id="email">
<input placeholder="Şifre" type="password" name="password" id="password">
<input type="submit" value="Gönder">
</form>
</div>
</div>
</section>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
<script>
const email=document.getElementById("email");
const password=document.getElementById("password");
function validateControl(){
if(email.value==""){
alert("E-mail giriniz.");
return false;
}
if(password.value==""){
alert("Şifre Giriniz.");
return false;
}
const Regex = /^\S+@\S+.\S+$/;
if (!Regex.test(email.value)) {
alert("Geçerli bir email adresi giriniz.");
return false;
}
return true;
}
</script>
</body>
</html>