diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/languages/en.ini | 6 | ||||
| -rw-r--r-- | static/scripts/main.js | 0 | ||||
| -rw-r--r-- | static/style/style.scss | 0 | ||||
| -rw-r--r-- | static/templates/base.html | 16 | ||||
| -rw-r--r-- | static/templates/login.html | 11 |
5 files changed, 33 insertions, 0 deletions
diff --git a/static/languages/en.ini b/static/languages/en.ini new file mode 100644 index 0000000..1848a7d --- /dev/null +++ b/static/languages/en.ini @@ -0,0 +1,6 @@ +loginTitle = Log In +usernameLabel = Username +usernamePlaceholder = Enter your username +passwordLabel = Password +passwordPlaceholder = Enter your password +loginSubmitButton = Log In diff --git a/static/scripts/main.js b/static/scripts/main.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/scripts/main.js diff --git a/static/style/style.scss b/static/style/style.scss new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/style/style.scss diff --git a/static/templates/base.html b/static/templates/base.html new file mode 100644 index 0000000..2d9f8fd --- /dev/null +++ b/static/templates/base.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="{{lang()}}"> + <head> + <title>{% block title %}{% endblock title %}</title> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + <link rel="stylesheet" href="/style.css" /> + {% block head %}{% endblock head %} + </head> + <body> + {% block content %}{% endblock content %} + <footer> + <div id="copyright">© 2023 Amplify Education Inc.</div> + </footer> + </body> +</html> diff --git a/static/templates/login.html b/static/templates/login.html new file mode 100644 index 0000000..fd3d136 --- /dev/null +++ b/static/templates/login.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% block title %}Log In{% endblock title %} +{% block content %} +<form method="post" action="{{ baseUrl() }}/authenticate"> + <label for="username">Username</label> + <input id="username" type="text" name="username" tabindex="0" placeholder="Enter your username" autofocus autocomplete="off" /> + <label for="password">Password</label> + <input id="password" type="password" name="password" tabindex="0" placeholder="Enter your password" autofocus autocomplete="off" /> + <input type="submit" tabindex="0" name="login" value="Log In" /> +</form> +{% endblock content %}
\ No newline at end of file |
