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 >
2022-05-19 11:47:22 +02:00
<!-- Text container -->
< div class = "mt-8 mb-4 text-center" >
< h2 class = "text-dark" style = "font-size:2rem" > Let's take back control of your inbox!< / h2 >
2022-05-06 17:04:41 +02:00
< / div >
2022-05-19 11:47:22 +02:00
< div class = "mt-8 text-center" >
2022-05-20 08:48:01 +02:00
{% if current_user != None and current_user.is_authenticated %}
2022-05-19 11:47:22 +02:00
< h2 class = "text-black-50" style = "font-size:2rem" > Performing the extension setup...< / h2 >
{% else %}
< a class = "mx-6 p-4 text-decoration-none" style = "background:black;color:white;" href = "{{ url_for('auth.register', next=url_for('onboarding.setup_done')) }}" > Create a new account< / a >
< a class = "mx-6 p-4 text-decoration-none" style = "background:white;color:black;border-radius: 2px;border:1px solid black;" href = "{{ url_for('auth.login', next=url_for('onboarding.setup_done')) }}" > I already have an account< / a >
{% endif %}
2022-05-06 17:04:41 +02:00
< / div >
< / div >
2022-05-20 08:48:01 +02:00
{% if current_user != None and current_user.is_authenticated %}
2022-05-19 11:47:22 +02:00
< script type = "text/javascript" >
2022-05-20 08:52:55 +02:00
let counterIterations = 5;
let extensionSetupIntervalId = setInterval(function() {
counterIterations--;
if (counterIterations === 0) {
clearInterval(extensionSetupIntervalId);
return;
}
2022-05-19 11:47:22 +02:00
const data = { tag: "PERFORM_EXTENSION_SETUP" };
window.postMessage(data, "/");
2022-05-19 11:51:18 +02:00
}, 300); // Send it many times, in case the extension had not registered the listener yet
2022-05-19 11:47:22 +02:00
< / script >
{% endif %}
2022-05-17 16:51:08 +02:00
2022-05-06 17:04:41 +02:00
{% endblock %}