2022-05-06 17:04:41 +02:00
{% 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 class = "" href = "{{ url_for('dashboard.index') }}" >
< picture >
< source media = "(max-width: 650px)" srcset = "/static/logo.svg" >
2022-05-20 09:52:54 +02:00
< img src = "/static/logo.svg" style = "width: 12rem" alt = "logo" >
2022-05-06 17:04:41 +02:00
< / picture >
< / a >
< / div >
<!-- Text container -->
2022-05-20 09:52:54 +02:00
< 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 >
2022-05-13 08:51:58 +02:00
< / div >
<!-- Input + button container -->
2022-05-13 15:05:30 +02:00
< div class = "mt-8" style = "display:grid; place-items:center;width:1024px;margin:auto;position:relative;" >
< img
2022-05-20 09:52:54 +02:00
src="/static/images/onboarding-click-icon.svg"
style="width:400px;position:absolute;right:-70px;top:-90px;"
2022-05-13 15:05:30 +02:00
/>
2022-05-13 16:13:15 +02:00
< img
2022-05-20 09:52:54 +02:00
src="/static/images/onboarding-right-click.svg"
2022-05-13 16:13:15 +02:00
style="position:absolute;width:440px;right:-20px;top:25px;"
/>
2022-05-13 08:51:58 +02:00
< div style = "width: 25rem; display: block" >
< form method = "post" >
{{ form.csrf_token }}
2022-05-20 09:52:54 +02:00
{{ form.email(class="p-3", type="email", autofocus="true", placeholder="email", style="border: 1px solid black; border-radius: 2px; width:100%") }}
2022-05-13 08:51:58 +02:00
{{ render_field_errors(form.email) }}
2022-05-20 09:52:54 +02:00
< 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 >
2022-05-13 08:51:58 +02:00
< / form >
< / div >
2022-05-06 17:04:41 +02:00
< / div >
2022-05-20 09:52:54 +02:00
< div class = "text-center" style = "margin-top:350px" >
2022-05-13 12:17:02 +02:00
< p style = "font-size: 1rem" > For advanced options please use our < a href = "{{ url_for(" dashboard . index " ) } } " > web dashboard< / a > < / p >
2022-05-20 09:52:54 +02:00
< p id = "extension-version-text" class = "font-weight-light" style = "display:none;" > < / p >
2022-05-13 12:17:02 +02:00
< / div >
2022-05-06 17:04:41 +02:00
< / div >
2022-05-19 11:47:41 +02:00
< 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 >
2022-05-06 17:04:41 +02:00
{% endblock %}