-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (60 loc) · 2.53 KB
/
index.html
File metadata and controls
67 lines (60 loc) · 2.53 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Index</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="{{url_for('static',filename='myfont/css/all.min.css')}}">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<style>
body{
background-image: url("cover.jpg");
}
.shadow{
box-shadow:3px 3px 10px black;
padding:30px;
fill:powderblue;
}
</style>
</head>
<body>
<div style="margin-top:100px">
<div class="col-md-offset-1 col-md-10" >
<div class="col-md-offset-3 col-md-5">
<div class="shadow">
<form action="/login" method="POST" autocomplete="off">
<h3 class="page-header text-primary text-center"><p><b>Login </b></p></h3>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category,message in messages %}
<div class="alert alert-{{category}}">{{message}}</div>
{% endfor %}
{% endif %}
{% endwith %}
<div class="form-group">
<label>Username</label>
<input type="text" name="name" class="form-control" required>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="password" class="form-control" required>
</div>
<div class="form-group">
<input type="submit" value="Login" class="btn btn-success btn-block">
<hr>
<p><b>Don't have an account?</b></p>
<a href="{{url_for('register')}}" class="btn btn-primary btn-block">Register</a>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function(){
$(".alert").hide(3000)
});
</script>