forked from CreatorB/smail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signin.php
243 lines (217 loc) · 8.25 KB
/
signin.php
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<?php
include "inc/config.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Smail</title>
<meta name="description" content="Create your mail without phone verification drama.">
<meta name="keywords"
content="Syathiby Mail, email registration, no phone verification, create email, Syathiby, webmail">
<meta property="og:title" content="Syathiby Mail - Create your mail without phone verification drama">
<meta property="og:description" content="Create your mail without phone verification drama.">
<meta property="og:image" content="assets/imgs/webs/holo-mail.png">
<meta property="og:url" content='<?php echo BASE_URL ?>'>
<meta property="og:type" content="website">
<link rel="shortcut icon" type="image/x-icon" href="assets/imgs/webs/holo-mail.png">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #3d3d3d;
}
.container {
width: 100%;
display: flex;
align-items: center;
height: 100vh;
margin: 0;
}
.form-container {
width: 375px;
height: 450px;
margin: auto;
position: relative;
padding: 40px;
border: 1px solid #dadce0;
border-radius: 5px;
overflow: hidden;
box-shadow: 1px 1px 13px 1px #b7b7b7;
}
.form-group {
position: relative;
}
.form-group input {
width: 100%;
padding: 12px 10px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid #d0d0d0;
background-color: transparent;
font-size: 16px;
}
.form-group label {
position: absolute;
left: 10px;
top: 9px;
color: #a5a5a5;
font-size: 16px;
padding: 0px 4px;
background-color: white;
transition-property: transform;
transition-duration: 500ms;
z-index: -1;
}
.form-link {
padding: 4px 0px;
}
.form-link a {
color: #1a73e8;
font-weight: 500;
}
.form-link label {
color: #5f6368;
font-size: 14px;
}
#email:focus+label {
transform: translate3d(0, -100%, 0);
z-index: 1;
color: #1a73e8;
}
#password:focus+label {
transform: translate3d(0, -100%, 0);
z-index: 1;
color: #1a73e8;
}
.password-fixed {
transform: translate3d(0, -100%, 0);
z-index: 1 !important;
color: #1a73e8;
}
.form-header {
text-align: center;
}
.form-header h2 {
margin: 0;
font-weight: 600;
}
.form-header h4 {
margin: 10px 0px 15px;
font-weight: 600;
}
#logo {
width: 30%;
margin: 0 auto;
}
.btn {
float: right;
color: white;
background: #1a73e8;
border: 0;
padding: 8px 22px;
border-radius: 4px;
}
#eye-icon {
position: absolute;
right: 12px;
top: 10px;
font-size: 22px;
cursor: pointer;
}
a {
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="form-container">
<form id="login-form" action="https://smail.syathiby.id:2096/login" method="POST">
<div id="email-box">
<div class="form-header">
<img id="logo" src="assets/imgs/webs/syathiby-mail-login.webp" alt="">
<h2></h2>
<h4 style="margin-top: 20px;">Welcome to syathiby mail</h4>
</div>
<div class="form-group">
<input type="text" id="email" name="user">
<label class="form-control-placeholder" for="name">Email</label>
</div>
<div class="form-link">
<label><a href="https://wa.me/6285156081434">Forgot Email?</a></label>
</div>
<br />
<br />
<div class="form-link">
<label>Not your computer? Use Guest mode to sign in privately.</label>
<label><a href="">Learn More</a></label>
</div>
<br />
<br />
<div class="form-link">
<label><a href="/">Create Account</a></label>
<button type="button" class="btn" onclick="showPasswordBox()">Next</button>
</div>
</div>
<div id="password-box">
<div class="form-header">
<img id="logo" src="assets/imgs/webs/syathiby-mail-login.webp" alt="">
<h3></h3>
<h4>Continue with <span id='entered-email'></span></h4>
</div>
<div class="form-group">
<input type="password" id="password" name="pass" onfocus="this.value = this.value;" onfocusout="onPasswordFocus()">
<label class="form-control-placeholder" id="password-label" for="name">Enter Your Password</label>
<svg id="eye-icon" onclick="onEyeClick()" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off">
<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path>
<line x1="1" y1="1" x2="23" y2="23"></line>
</svg>
</div>
<br />
<br />
<div class="form-link">
<label><a>Forgot password?</a></label>
<button type="submit" class="btn">Sign In</button>
</div>
</div>
</form>
</div>
</div>
<script>
document.getElementById('password-box').style.display = 'none';
function showPasswordBox() {
var email = document.getElementById('email').value;
document.getElementById('email-box').style.display = 'none';
document.getElementById('password-box').style.display = 'block';
document.getElementById('entered-email').innerHTML = email;
}
function onEyeClick() {
let eyeIcon = document.getElementById('eye-icon');
let password = document.getElementById('password');
if (password.value.length > 0) {
password.focus();
if (eyeIcon.classList.contains('feather-eye-off')) {
eyeIcon.classList.remove('feather-eye-off');
eyeIcon.classList.add('feather-eye');
password.setAttribute('type', 'text');
} else {
eyeIcon.classList.remove('feather-eye');
eyeIcon.classList.add('feather-eye-off');
password.setAttribute('type', 'password');
}
}
}
function onPasswordFocus() {
let password = document.getElementById('password');
if (password.value.length > 0) {
document.getElementById('password-label').classList.add('password-fixed');
} else {
document.getElementById('password-label').classList.remove('password-fixed');
}
}
</script>
</body>
</html>