51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta
|
|
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
name="viewport"
|
|
/>
|
|
<base href="{{ host_prefix | safe }}/" />
|
|
<link rel="icon" type="image/png" href=".client/favicon-96x96.png" sizes="96x96" />
|
|
<link rel="icon" type="image/svg+xml" href=".client/favicon.svg" />
|
|
<link rel="shortcut icon" href=".client/favicon.ico" />
|
|
<link rel="stylesheet" href=".client/app.css" />
|
|
<title>Login to {{ space_name }}</title>
|
|
<style>
|
|
/* Login-page-only layout; everything else comes from app.css. */
|
|
header {
|
|
position: absolute;
|
|
padding: 1rem;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
}
|
|
|
|
form > div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="sb-standalone">
|
|
<!-- Config crosses over as data attributes, not a JSON island: the
|
|
template autoescapes (the space name is user-controlled), and
|
|
attribute escaping is the case autoescaping handles correctly.
|
|
A JSON <script> island would arrive HTML-escaped and unparseable,
|
|
and un-escaping it would let a space named "</script>…" break out. -->
|
|
<div
|
|
id="root"
|
|
data-space-name="{{ space_name }}"
|
|
data-encryption-salt="{{ encryption_salt }}"
|
|
data-remember-me-days="{{ remember_me_days }}"
|
|
data-account-managed="{{ account_managed }}"
|
|
></div>
|
|
<script type="module" src=".client/auth.js"></script>
|
|
</body>
|
|
</html>
|