mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
Hide onboarding contents for a while
This commit is contained in:
parent
d3f4602bb7
commit
c01db463f7
@ -13,6 +13,12 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="loading-section" class="mt-8 mb-4 text-center">
|
||||||
|
<h3>Loading...</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="content-section" style="display: none">
|
||||||
<!-- Text container -->
|
<!-- Text container -->
|
||||||
<div class="mt-8 mb-4 text-center">
|
<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>
|
<h2 class="text-dark" style="font-size:2rem">Let's take back control of your inbox!</h2>
|
||||||
@ -23,6 +29,7 @@
|
|||||||
<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: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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -30,7 +37,15 @@
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
const data = { tag: "PERFORM_EXTENSION_SETUP" };
|
const data = { tag: "PERFORM_EXTENSION_SETUP" };
|
||||||
window.postMessage(data, "/");
|
window.postMessage(data, "/");
|
||||||
}, 300);
|
}, 300); // Give some time to the extension for registering the listener
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
const loadingSection = document.getElementById("loading-section");
|
||||||
|
const contentSection = document.getElementById("content-section");
|
||||||
|
|
||||||
|
loadingSection.style.display = "none";
|
||||||
|
contentSection.style.display = "block";
|
||||||
|
}, 1500); // If in this time the extension has not been able to perform the setup, show the buttons
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user