summaryrefslogtreecommitdiffstats
path: root/templates/login.html
blob: 3fcd9878607eae24963e0a4f1030555fd91cc427 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="color-scheme" content="dark light">

    <title>WireGuard Gateway Portal</title>
    <link rel="stylesheet" href="/static/css/styles.css">
</head>
<body>
    <header>
        <h1 class="header__title">WireGuard Gateway Portal</h1>
        <p class="header__subtitle">Manage WireGuard VPN connections</p>
    </header>
    <main>
        <div class="login">
            <div class="login__container">
                <div id="notifications__container" class="notifications__container">
                    {{if not .IsHTTPS}}
                    <div class="message warning">Consider upgrading to HTTPS for better security.</div>
                    {{end}}
                    {{if .Error}}
                    <div class="message error">{{.Error}}</div>
                    {{end}}
                </div>

                <form class="login__form" method="POST" action="/login">
                    <input type="password" name="password" placeholder="Password" required>
                    <button type="submit">Login</button>
                </form>
            </div>
        </div>
    </main>
    <footer></footer>
</body>
</html>