-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
87 lines (85 loc) · 4.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>فحه ورود</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body{
background: url(images/bg__login.jpg);
max-width: 100%;
}
</style>
</head>
<body>
<body class="flex flex-wrap justify-center items-center">
<form class="my-10 p-5 w-72 md:w-96 bg-slate-200 rounded-lg flex flex-col items-center gap-4" id="user-form">
<div class="signup">
<a href="signup.html">ثبت نام نکرده ام؟</a>
</div>
<div class="flex flex-col gap-2">
<label class="text-slate-700">نام کاربری</label>
<input type="text" id="username" class="border-2 border-gray-300 rounded-lg px-3 py-2 w-60 focus:outline-none" required />
</div>
<div class="flex flex-col gap-2">
<label class="text-slate-700">ایمیل</label>
<input type="email" id="email" class="border-2 border-gray-300 rounded-lg px-3 py-2 w-60 focus:outline-none" required />
<div id="email-error" class="hidden mt-2 text-red-800 text-xs">
ایمیل نامعتبر
</div>
</div>
<!-- Dont use the below code😜💖 -->
<!-- <div class="flex flex-col gap-2">
<label class="text-slate-700">Phone</label>
<div class="relative">
<span class="absolute bottom-2.5 left-2 text-slate-500 font-bold">+91</span>
<input type="number" id="phone" class="border-2 border-gray-300 rounded-lg pl-10 py-2 w-60 focus:outline-none text-slate-800" required />
</div>
<div id="phone-error" class="hidden mt-2 text-red-800 text-xs">
شماره تماس باید بیشتر از 10 عدد باشد
</div>
</div>
<div class="flex flex-col gap-2">
<label class="text-slate-700">Password
<button class="px-3 py-2" id="password-view">
<i class="fa-solid fa-eye text-blue-600"></i></button></label>
<div>
<input type="password" id="password" class="border-2 border-gray-300 rounded-lg px-3 py-2 w-60 focus:outline-none" required />
</div>
<p id="letter" class="hidden text-red-800 text-xs"><b>حروف </b>کوچک </p>
<p id="capital" class="hidden text-red-800 text-xs">
یک<b>حروف (بزرگ)</b>
</p>
<p id="number" class="hidden text-red-800 text-xs">یک <b>عدد</b></p>
<p id="length" class="hidden text-red-800 text-xs">
حداقل <b>10 کاراکتر</b>
</p>
</div>
<div class="flex flex-col gap-2">
<label class="text-slate-700">Confirm Password
<button class="px-3 py-2" id="confirm-password-view">
<i class="fa-solid fa-eye text-blue-600"></i></button></label>
<input type="password" id="confirm-password" class="border-2 border-gray-300 rounded-lg px-3 py-2 w-60 focus:outline-none" required />
<p id="confirm-letter" class="hidden text-red-800 text-xs">
یک <b>حروف</b> کوچک
</p>
<p id="confirm-capital" class="hidden text-red-800 text-xs">
یک<b>حروف (بزرگ)</b>
</p>
<p id="confirm-number" class="hidden text-red-800 text-xs">یک<b>عدد</b></p>
<p id="confirm-length" class="hidden text-red-800 text-xs">
حداقل <b>8 کاراکتر</b>
</p>
<p id="confirm-password-checker" class="hidden text-red-800 text-xs">رمز شما همخوانی با هم ندارد</p>
</div> -->
<!-- finish above code 😜 -->
<div class="flex justify-center mt-5">
<input type="submit" value="ورود" class="px-4 py-2 rounded-lg border-2 border-violet-600 text-violet-600 cursor-pointer" />
</div>
</form>
<div id="data-container" class="self-start mt-10"></div>
</body>
<script src="js/validation.js"></script>
</body>
</html>