summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Templates/web_login.liquid
blob: 314c9eff09e6c3ac78e4493d95d9315174ce4058 (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
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
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible"
          content="ie=edge">
    <style>
        :root {
            --lavender-color: rgba(135, 137, 192, .66);
            --text-color: rgb(17, 29, 74);
        }

        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            width: 100%;
            color: var(--text-color);
            aspect-ratio: 1 / 1;
            font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
        }

        form {
            max-width: 420px;
            width: 100%;
            margin: 15px auto;
        }

        label {
            display: inline-block;
            width: 100%;
        }

        input:not([type="submit"],[type="checkbox"]) {
            height: 15px;
            padding: 10px 12px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            max-width: 300px;
            width: 100%;
            margin-bottom: 5px;
        }

        input[type=submit] {
            margin-top: 12px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: 3px;
            transition: all .1s ease-in-out;
            height: 40px;
            font-weight: 600;
            font-size: 1.1rem;
            text-align: right;
            padding-right: 10px;
            background: var(--lavender-color);
            width: 100%;

            &:active {
                transition: all .2s ease-in-out;
                transform: scale(.99);
            }
        }

        #error {
            border-left: 3px solid red;
            padding-left: 5px;
        }

        fieldset {
            border-color: var(--lavender-color);
        }
    </style>
    <title>Logg inn</title>
</head>
<body>
<form action=""
      method="post"
      accept-charset="utf-8"
      autocomplete="off">
    <fieldset>
        <legend><span id="login-tab">Logg inn</span></legend>
        {% if Error != '' %}
            <p id="error">{{ Error }}</p>
        {% endif %}
        <label for="username">Brukernavn
            <input type="text"
                   name="username"
                   id="username"
                   required>
        </label>
        <label for="password">Passord
            <input type="password"
                   name="password"
                   id="password"
                   required>
        </label>
        <label for="read">
            <input type="checkbox"
                   id="read"
                   required
                   name="read">
            Jeg godtar <a href="/terms">vilkår og databehandling</a>
        </label>
        <input type="submit"
               value="Logg inn">
    </fieldset>
</form>
<script>
	window.history.replaceState({}, document.title, "/" + "login");
</script>
</body>
</html>