-
Notifications
You must be signed in to change notification settings - Fork 223
/
pages-signin.html
238 lines (199 loc) · 7.08 KB
/
pages-signin.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
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
<!DOCTYPE html>
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if IE 9]> <html class="ie9 gt-ie8"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="gt-ie8 gt-ie9 not-ie"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Sign In - LanderApp</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Open Sans font from Google CDN -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">
<!-- LanderApp's stylesheets -->
<link href="assets/stylesheets/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/landerapp.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/pages.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/rtl.min.css" rel="stylesheet" type="text/css">
<link href="assets/stylesheets/themes.min.css" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="assets/javascripts/ie.min.js"></script>
<![endif]-->
<!-- $DEMO =========================================================================================
Remove this section on production
-->
<style>
#signin-demo {
position: fixed;
right: 0;
bottom: 0;
z-index: 10000;
background: rgba(0,0,0,.6);
padding: 6px;
border-radius: 3px;
}
#signin-demo img { cursor: pointer; height: 40px; }
#signin-demo img:hover { opacity: .5; }
#signin-demo div {
color: #fff;
font-size: 10px;
font-weight: 600;
padding-bottom: 6px;
}
</style>
<!-- / $DEMO -->
</head>
<!-- 1. $BODY ======================================================================================
Body
Classes:
* 'theme-{THEME NAME}'
* 'right-to-left' - Sets text direction to right-to-left
-->
<body class="theme-default page-signin">
<script>
var init = [];
</script>
<!-- Demo script --> <script src="assets/demo/demo.js"></script> <!-- / Demo script -->
<!-- Page background -->
<div id="page-signin-bg">
<!-- Background overlay -->
<div class="overlay"></div>
<!-- Replace this with your bg image -->
<img src="assets/demo/signin-bg-1.jpg" alt="">
</div>
<!-- / Page background -->
<!-- Container -->
<div class="signin-container">
<!-- Left side -->
<div class="signin-info">
<a href="index.html" class="logo">
Lander<span style="font-weight:100;">App</span>
</a> <!-- / .logo -->
<div class="slogan">
Simple. Flexible. Powerful.
</div> <!-- / .slogan -->
<ul>
<li><i class="fa fa-sitemap signin-icon"></i> Flexible modular structure</li>
<li><i class="fa fa-file-text-o signin-icon"></i> Well Commented Source</li>
<li><i class="fa fa-outdent signin-icon"></i> RTL direction support</li>
<li><i class="fa fa-heart signin-icon"></i> Crafted with love</li>
</ul> <!-- / Info list -->
</div>
<!-- / Left side -->
<!-- Right side -->
<div class="signin-form">
<!-- Form -->
<form action="index.html" id="signin-form_id">
<div class="signin-text">
<span>Sign In to your account</span>
</div> <!-- / .signin-text -->
<div class="form-group w-icon">
<input type="text" name="signin_username" id="username_id" class="form-control input-lg" placeholder="Username or email">
<span class="fa fa-user signin-form-icon"></span>
</div> <!-- / Username -->
<div class="form-group w-icon">
<input type="password" name="signin_password" id="password_id" class="form-control input-lg" placeholder="Password">
<span class="fa fa-lock signin-form-icon"></span>
</div> <!-- / Password -->
<div class="form-actions">
<input type="submit" value="SIGN IN" class="signin-btn bg-primary">
<a href="#" class="forgot-password" id="forgot-password-link">Forgot your password?</a>
</div> <!-- / .form-actions -->
</form>
<!-- / Form -->
<!-- "Sign In with" block -->
<div class="signin-with">
<!-- Facebook -->
<a href="index.html" class="signin-with-btn" style="background:#4f6faa;background:rgba(79, 111, 170, .8);">Sign In with <span>Facebook</span></a>
</div>
<!-- / "Sign In with" block -->
<!-- Password reset form -->
<div class="password-reset-form" id="password-reset-form">
<div class="header">
<div class="signin-text">
<span>Password reset</span>
<div class="close">×</div>
</div> <!-- / .signin-text -->
</div> <!-- / .header -->
<!-- Form -->
<form action="index.html" id="password-reset-form_id">
<div class="form-group w-icon">
<input type="text" name="password_reset_email" id="p_email_id" class="form-control input-lg" placeholder="Enter your email">
<span class="fa fa-envelope signin-form-icon"></span>
</div> <!-- / Email -->
<div class="form-actions">
<input type="submit" value="SEND PASSWORD RESET LINK" class="signin-btn bg-primary">
</div> <!-- / .form-actions -->
</form>
<!-- / Form -->
</div>
<!-- / Password reset form -->
</div>
<!-- Right side -->
</div>
<!-- / Container -->
<div class="not-a-member">
Not a member? <a href="pages-signup.html">Sign up now</a>
</div>
<!-- Get jQuery from Google CDN -->
<!--[if !IE]> -->
<script type="text/javascript"> window.jQuery || document.write('<script src="assets/javascripts/jquery.min.js">'+"<"+"/script>"); </script>
<!-- <![endif]-->
<!--[if lte IE 9]>
<script type="text/javascript"> window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">'+"<"+"/script>"); </script>
<![endif]-->
<!-- LanderApp's javascripts -->
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/landerapp.min.js"></script>
<script type="text/javascript">
// Resize BG
init.push(function () {
var $ph = $('#page-signin-bg'),
$img = $ph.find('> img');
$(window).on('resize', function () {
$img.attr('style', '');
if ($img.height() < $ph.height()) {
$img.css({
height: '100%',
width: 'auto'
});
}
});
});
// Show/Hide password reset form on click
init.push(function () {
$('#forgot-password-link').click(function () {
$('#password-reset-form').fadeIn(400);
return false;
});
$('#password-reset-form .close').click(function () {
$('#password-reset-form').fadeOut(400);
return false;
});
});
// Setup Sign In form validation
init.push(function () {
$("#signin-form_id").validate({ focusInvalid: true, errorPlacement: function () {} });
// Validate username
$("#username_id").rules("add", {
required: true,
minlength: 3
});
// Validate password
$("#password_id").rules("add", {
required: true,
minlength: 6
});
});
// Setup Password Reset form validation
init.push(function () {
$("#password-reset-form_id").validate({ focusInvalid: true, errorPlacement: function () {} });
// Validate email
$("#p_email_id").rules("add", {
required: true,
email: true
});
});
window.LanderApp.start(init);
</script>
</body>
</html>