forked from apu52/Travel_Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
152 lines (132 loc) · 7.58 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Registration Page </title>
<meta name="viewport" content="width=device-width, initial-scale=
1.0", maximum-scale="1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style_.css">
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
</head>
<body>
<header class="registration-header">
<a href="index.html"><img src="./img/Screenshot 2024-01-23 003448.png" style="width: 130px; border-radius: 6px; margin-top: 20px; margin-left: 20px;"></a>
<div class="container">
</div>
<main>
<section class="user-container login-section--display">
<div class="back">
<div class="registration">
<div class="grid-two--column">
<div class="form-text">
<h2>Welcome Back!</h2>
<p>To keep connected with us please login with your personal information.</p>
<button class="login-btn">Login Here</button>
</div>
<div class="registration-form">
<h2>Create Account</h2>
<div class="social-icons">
<a href="https://accounts.google.com/v3/signin/identifier?ifkv=ASKXGp3o7JbWY-Xl_hjXMSHncDJR5Bg1tJjR-AcPnUkBcdPTNTLi-oYd-rV3dgIaufZcXA-T1n6HuQ&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S604814220%3A1705302051981588&theme=glif" target="_blank">
<i class="fa-brands fa-google"></i></a>
<a href="" target="_blank">
<i class="fa-brands fa-github"></i></a>
<a href="" target="_blank">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</div>
<p>or</p>
<form action="#" id="input-form">
<div class="input-field">
<label for="username">
<input type="text" name="#" id="username" placeholder="Name" required>
</label></div>
<div class="input-field">
<label for="Email">
<input type="email" name="#" id="Email" placeholder="Email" required>
</label></div>
<div class="input-field">
<label for="Password">
<input type="password" name="#" id="Password" placeholder="Password" required>
</label>
</div>
<div class="input-field">
<input type="submit" value="register">
</div>
</form>
</div>
</div>
</div>
<div class="login">
<div class="grid-two--column">
<div class="form-text">
<h2>Hello, Friend!</h2>
<p>Enter your personal details and start journey with us</p>
<button class="registration-btn">Register Here</button>
</div>
<div class="login-form">
<h2>Sign In</h2>
<div class="social-icons">
<a href="https://accounts.google.com/v3/signin/identifier?ifkv=ASKXGp3o7JbWY-Xl_hjXMSHncDJR5Bg1tJjR-AcPnUkBcdPTNTLi-oYd-rV3dgIaufZcXA-T1n6HuQ&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S604814220%3A1705302051981588&theme=glif" target="_blank">
<i class="fa-brands fa-google"></i></a>
<a href="" target="_blank">
<i class="fa-brands fa-github"></i></a>
<a href="" target="_blank">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="" target="_blank">
<i class="fa-brands fa-instagram"></i>
</a>
</div>
<p>or</p>
<form action="#">
<div class="input-field">
<label for="Email1">
<input type="email" name="#" id="Email1" placeholder="Email" required>
</label></div>
<div class="input-field">
<label for="Password1">
<input type="password" name="#" id="Password1" placeholder="Password" required>
</label>
</div>
<div class="input-field">
<input type="submit" value="Log In">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
</header>
<script>
document.getElementById("input-form").addEventListener('submit',function(event){
var email = document.getElementById("Email").value;
var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
if(!emailPattern.test(email)){
alert("Please enter a valid email");
return;
}
else{
alert("Registration successful!");
}
});
const user_con=document.querySelector('.user-container');
const regis_btn=document.querySelector('.registration-btn');
const login_btn=document.querySelector('.login-btn');
regis_btn.addEventListener('click',()=>{
user_con.classList.add('login-section--display')
})
login_btn.addEventListener('click',()=>{
user_con.classList.remove('login-section--display')
})
</script>
</body>
</html>