ntdservices commited on
Commit
3a15e4c
·
verified ·
1 Parent(s): 2fdf2ef

Upload login.html

Browse files
Files changed (1) hide show
  1. templates/login.html +54 -0
templates/login.html ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Sign in – File Hub</title>
6
+ <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
8
+ <style>
9
+ :root { --accent-rgb: 25,85,130; }
10
+ body { background:#f8fafc; }
11
+ .btn-primary,
12
+ .btn-primary:hover,
13
+ .btn-primary:focus {
14
+ background:rgb(var(--accent-rgb)) !important;
15
+ border-color:rgb(var(--accent-rgb)) !important;
16
+ }
17
+ </style>
18
+ </head>
19
+
20
+ <body class="d-flex justify-content-center align-items-center vh-100">
21
+ <div class="card shadow p-4" style="min-width:325px">
22
+ <h4 class="mb-3 text-center">Welcome to File Hub</h4>
23
+
24
+ <form method="POST" class="needs-validation" novalidate>
25
+ <div class="mb-3">
26
+ <label class="form-label">Your name</label>
27
+ <input class="form-control" name="username" required autofocus placeholder="e.g. Kevin">
28
+ <div class="invalid-feedback">Please choose a name.</div>
29
+ </div>
30
+ <button class="btn btn-primary w-100">Enter</button>
31
+ </form>
32
+
33
+ {% with messages = get_flashed_messages() %}
34
+ {% if messages %}
35
+ <div class="alert alert-warning mt-3">{{ messages[0] }}</div>
36
+ {% endif %}
37
+ {% endwith %}
38
+ </div>
39
+
40
+ <script>
41
+ /* simple Bootstrap validation */
42
+ (function () {
43
+ 'use strict';
44
+ const forms = document.querySelectorAll('.needs-validation');
45
+ Array.from(forms).forEach(form => {
46
+ form.addEventListener('submit', evt => {
47
+ if (!form.checkValidity()) { evt.preventDefault(); evt.stopPropagation(); }
48
+ form.classList.add('was-validated');
49
+ }, false);
50
+ });
51
+ })();
52
+ </script>
53
+ </body>
54
+ </html>