mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 01:40:38 +01:00
046748c443
* Update pre-commit * Upgrade djlint, remove flake8 and add pylint * Reformat with new djlint version * Run pre-commit on CI * Use only python3.10 on CI * Reformat files with pre-commit * Run pre-commit against all files * Reformat * Added global excludes * Added pre-commit to the contributing file * Set python 3.9 as default * Set language version to python3 Co-authored-by: Adrià Casajús <adria.casajus@proton.ch> Co-authored-by: Carlos Quintana <carlos.quintana@proton.ch>
77 lines
2.9 KiB
HTML
77 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="flex-fill align-items-center mt-8">
|
|
<!-- Image container -->
|
|
<div class="mt-4 mb-4 text-center" style="display:block;">
|
|
<a href="{{ url_for('dashboard.index') }}">
|
|
<picture>
|
|
<source media="(max-width: 650px)" srcset="/static/logo.svg">
|
|
<img src="/static/logo.svg" style="width: 12rem" alt="logo">
|
|
</picture>
|
|
</a>
|
|
</div>
|
|
<!-- Text container -->
|
|
<div class="mt-8 text-center" style="margin-bottom: 120px">
|
|
<h2 class="text-black-75" style="font-size:2rem">Quickly create an alias every time you need an email</h2>
|
|
</div>
|
|
<!-- Input + button container -->
|
|
<div class="mt-8"
|
|
style="display:grid;
|
|
place-items:center;
|
|
width:1024px;
|
|
margin:auto;
|
|
position:relative;">
|
|
<img src="/static/images/onboarding-click-icon.svg"
|
|
style="width:400px;
|
|
position:absolute;
|
|
right:-70px;
|
|
top:-90px;"/>
|
|
<img src="/static/images/onboarding-right-click.svg"
|
|
style="position:absolute;
|
|
width:440px;
|
|
right:-20px;
|
|
top:25px;"/>
|
|
<div style="width: 25rem; display: block">
|
|
<form method="post">
|
|
{{ form.csrf_token }}
|
|
{{ form.email(class="p-3", type="email", autofocus="true", placeholder="email", style="border: 1px solid black; border-radius: 2px; width:100%") }}
|
|
{{ render_field_errors(form.email) }}
|
|
<button type="submit"
|
|
class="p-4 mt-2 text-decoration-none"
|
|
style="background:black;color:white; width:10rem; border-radius: 4px">
|
|
Send me an email
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="text-center" style="margin-top:350px">
|
|
<p style="font-size: 1rem">
|
|
For advanced options please use our
|
|
<a href="{{ url_for("dashboard.index") }}">web dashboard</a>
|
|
</p>
|
|
<p id="extension-version-text"
|
|
class="font-weight-light"
|
|
style="display:none;"></p>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
const extensionVersionTextElement = document.getElementById("extension-version-text");
|
|
window.addEventListener("message", (event) => {
|
|
if (!event.data) return;
|
|
if (!event.data.tag) return;
|
|
if (event.data.tag === "EXTENSION_INSTALLED_RESPONSE") {
|
|
const eventData = event.data.data;
|
|
if (!eventData) return;
|
|
|
|
extensionVersionTextElement.style.display = "block";
|
|
extensionVersionTextElement.textContent = `Extension version: ${eventData.version}`;
|
|
}
|
|
});
|
|
setTimeout(function() {
|
|
const data = { tag: "EXTENSION_INSTALLED_QUERY" };
|
|
window.postMessage(data, "/");
|
|
}, 300); // Give some time to the extension for registering the listener
|
|
</script>
|
|
{% endblock %}
|