show confirmation popup
This commit is contained in:
parent
94c2231a57
commit
7e8b27b49d
3 changed files with 18 additions and 11 deletions
|
|
@ -62,7 +62,7 @@
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translate(-50%, -200px);
|
transform: translate(-50%, -500px);
|
||||||
transition:
|
transition:
|
||||||
transform 2s ease-in-out;
|
transform 2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
@ -218,7 +218,7 @@ h1 {
|
||||||
padding: 0 10%;
|
padding: 0 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.invite-card-content * {
|
.invite-card-content > * {
|
||||||
margin: 1vh auto;
|
margin: 1vh auto;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,15 @@ window.onload = function () {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const signUpConfirmation = document.querySelector('#sign-up-success');
|
||||||
|
|
||||||
|
function showConfirmationAndRedirect() {
|
||||||
|
signUpConfirmation.classList.add('revealed');
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.href = '/createProfile';
|
||||||
|
}, 5000);
|
||||||
|
}
|
||||||
|
|
||||||
async function acceptInvite() {
|
async function acceptInvite() {
|
||||||
let challengeResponse;
|
let challengeResponse;
|
||||||
try {
|
try {
|
||||||
|
|
@ -60,9 +69,6 @@ async function acceptInvite() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (verifyResponse.ok) {
|
if (verifyResponse.ok) {
|
||||||
document.querySelector('#sign-up-success').style.display = 'block';
|
showConfirmationAndRedirect();
|
||||||
setTimeout(() => {
|
|
||||||
window.location.href = '/createProfile';
|
|
||||||
}, 1000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
<title>Invite Details</title>
|
<title>Invite Details</title>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<script src="/javascript/invite.js"></script>
|
|
||||||
<link rel="stylesheet" href="/css/seca.css" />
|
<link rel="stylesheet" href="/css/seca.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -89,11 +88,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
id="sign-up-success"
|
id="sign-up-success"
|
||||||
class="card-secondary"
|
class="top-notification-good "
|
||||||
style="display: none"
|
|
||||||
>
|
>
|
||||||
<p>¡Bien! Hemos dado de alta tu clave de Nostr.</p>
|
<img
|
||||||
<p>Te vamos a redirigir a la seca, espera un momento.</p>
|
src="/img/circle-check-white.svg"
|
||||||
|
/>
|
||||||
|
<p>¡Bien! Hemos dado de alta tu clave de Nostr. Te vamos a redirigir a la seca, espera un momento.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>¿No tienes cuenta de Nostr?</p>
|
<p>¿No tienes cuenta de Nostr?</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -107,5 +107,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
<script src="/javascript/invite.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue