WIP
This commit is contained in:
parent
d0fc8f5fc4
commit
49983db632
|
@ -0,0 +1,139 @@
|
|||
<!--
|
||||
Adapted from login.html of:
|
||||
* # Semantic UI - 2.4.2
|
||||
* https://github.com/Semantic-Org/Semantic-UI
|
||||
* http://www.semantic-ui.com/
|
||||
*
|
||||
* Copyright 2014 Contributors
|
||||
* Released under the MIT license
|
||||
* http://opensource.org/licenses/MIT
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Standard Meta -->
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
|
||||
<!-- Site Properties -->
|
||||
<title>Login Example - Semantic</title>
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/reset.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/site.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/container.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/grid.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/header.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/image.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/menu.css">
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/divider.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/segment.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/form.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/input.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/button.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/list.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/message.css">
|
||||
<link rel="stylesheet" type="text/css" href="https://semantic-ui.com/dist/components/icon.css">
|
||||
|
||||
<script src="https://semantic-ui.com/examples/assets/library/jquery.min.js"></script>
|
||||
<script src="https://semantic-ui.com/dist/components/form.js"></script>
|
||||
<script src="https://semantic-ui.com/dist/components/transition.js"></script>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #DADADA;
|
||||
}
|
||||
body > .grid {
|
||||
height: 100%;
|
||||
}
|
||||
.image {
|
||||
margin-top: -100px;
|
||||
}
|
||||
.column {
|
||||
max-width: 450px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$(document)
|
||||
.ready(function() {
|
||||
$('.ui.form')
|
||||
.form({
|
||||
fields: {
|
||||
email: {
|
||||
identifier : 'email',
|
||||
rules: [
|
||||
{
|
||||
type : 'empty',
|
||||
prompt : 'Please enter your e-mail'
|
||||
},
|
||||
{
|
||||
type : 'email',
|
||||
prompt : 'Please enter a valid e-mail'
|
||||
}
|
||||
]
|
||||
},
|
||||
password: {
|
||||
identifier : 'password',
|
||||
rules: [
|
||||
{
|
||||
type : 'empty',
|
||||
prompt : 'Please enter your password'
|
||||
},
|
||||
{
|
||||
type : 'length[6]',
|
||||
prompt : 'Your password must be at least 6 characters'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
;
|
||||
})
|
||||
;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="ui middle aligned center aligned grid">
|
||||
<div class="column">
|
||||
<h2 class="ui teal image header">
|
||||
<img src="https://semantic-ui.com/examples/assets/images/logo.png" class="image">
|
||||
<div class="content">
|
||||
Log-in to your account
|
||||
</div>
|
||||
</h2>
|
||||
<form class="ui large form">
|
||||
<div class="ui stacked segment">
|
||||
<div class="field">
|
||||
<div class="ui left icon input">
|
||||
<i class="user icon"></i>
|
||||
<input type="text" name="email" placeholder="E-mail address">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<div class="ui left icon input">
|
||||
<i class="lock icon"></i>
|
||||
<input type="password" name="password" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui fluid large teal submit button">Login</div>
|
||||
</div>
|
||||
|
||||
<div class="ui error message"></div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="ui message">
|
||||
New to us? <a href="#">Sign Up</a>
|
||||
</div>
|
||||
<iframe width=422 height=400 src="https://semantic-ui.com/examples/login.html"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,12 @@
|
|||
<html>
|
||||
<body>
|
||||
<style>
|
||||
#emailfield { display: none; }
|
||||
</style>
|
||||
<form id="login" action="index.html?login" method="get">
|
||||
<input id="emailfield" type="text" value="me@example.test" autocomplete="username">
|
||||
<input type="password" autocomplete="current-password">
|
||||
<input type="submit" value="Sign In!">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<form id="login" action="index.html?signup" method="get">
|
||||
<input type="text" autocomplete="username">
|
||||
<input type="password" autocomplete="new-password">
|
||||
<input type="password" autocomplete="new-password">
|
||||
<input type="submit" value="Sign Up!">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue