mirror of
https://github.com/ivabus/www
synced 2024-11-22 18:45:06 +03:00
add script to make post-auth changes
This commit is contained in:
parent
132a3322a1
commit
9511a8d283
1 changed files with 30 additions and 11 deletions
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const q = window.location.search.match(/[\^\?&]store=[^&]*/)
|
const q = window.location.search.match(/[\^\?&]store=[^&]*/)
|
||||||
if(q) {
|
if (q) {
|
||||||
localStorage.signup = q[0].split('=')[1]
|
localStorage.signup = q[0].split('=')[1]
|
||||||
window.location.replace(`${window.location.origin}${window.location.pathname}`)
|
window.location.replace(`${window.location.origin}${window.location.pathname}`)
|
||||||
}
|
}
|
||||||
|
@ -154,9 +154,9 @@
|
||||||
<a class="nav-link" href="https://linktr.ee/teaxyz">Linktree</a>
|
<a class="nav-link" href="https://linktr.ee/teaxyz">Linktree</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<a class="btn btn-primary auth-btn mt-lg-0 mt-md-0 mt-sm-4 mt-4" href="https://github.com/apps/tea-xyz/installations/new"
|
<a class="btn btn-primary auth-btn mt-lg-0 mt-md-0 mt-sm-4 mt-4"
|
||||||
role="button">Authenticate with tea<span class="badge rounded-pill bg-primary ms-3"><span
|
href="https://github.com/apps/tea-xyz/installations/new" role="button">Authenticate with tea<span
|
||||||
id="count1">287</span></span></a>
|
class="badge rounded-pill bg-primary ms-3"><span id="count1">287</span></span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -190,11 +190,14 @@
|
||||||
<p class="card-title display-1"
|
<p class="card-title display-1"
|
||||||
style="color: #54BAAB; text-align:center; font-size: 6rem; font-family: 'Playfair Display', serif"><span
|
style="color: #54BAAB; text-align:center; font-size: 6rem; font-family: 'Playfair Display', serif"><span
|
||||||
id="count"></span></p>
|
id="count"></span></p>
|
||||||
<p class="text-center" id="count-sub-text" style="text-transform:uppercase; color:#54BAAB;">Developers Authenticated</p>
|
<p class="text-center" id="count-sub-text" style="text-transform:uppercase; color:#54BAAB;">Developers
|
||||||
<h5 class="mb-3" style="text-align:center; font-size:2rem;"><span id="communitea">Join the<span> communi'<span
|
Authenticated</p>
|
||||||
style="color:#54BAAB;">tea</span></h5>
|
<h5 class="mb-3" style="text-align:center; font-size:2rem;"><span id="communitea">Join the<span>
|
||||||
<p class="card-text lead" id="revolution-text" style="text-align:center;">The revolution is here. Be among the first to authenticate your Github with tea. </p>
|
communi'<span style="color:#54BAAB;">tea</span></h5>
|
||||||
<p style="text-align:center;" id="auth-body-text">Early-adoption developers will be entitled a variety of exciting rewards,
|
<p class="card-text lead" id="revolution-text" style="text-align:center;">The revolution is here. Be among
|
||||||
|
the first to authenticate your Github with tea. </p>
|
||||||
|
<p style="text-align:center;" id="auth-body-text">Early-adoption developers will be entitled a variety of
|
||||||
|
exciting rewards,
|
||||||
including minted NFT certificates. Take a sip while it’s hot!</p>
|
including minted NFT certificates. Take a sip while it’s hot!</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-auth-false">
|
<div class="box-auth-false">
|
||||||
|
@ -203,7 +206,8 @@
|
||||||
href="https://github.com/apps/tea-xyz/installations/new"><strong>Authenticate now</strong></a>.</p>
|
href="https://github.com/apps/tea-xyz/installations/new"><strong>Authenticate now</strong></a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-auth-true">
|
<div class="box-auth-true">
|
||||||
<p class="text-center my-auto p-3" style="color:#23282C;"><i class="bi bi-check-circle-fill lead pe-2" style="color:#23282C;"></i>Authenticated as <span id="auth-username">[username]</span></p>
|
<p class="text-center my-auto p-3" style="color:#23282C;"><i class="bi bi-check-circle-fill lead pe-2"
|
||||||
|
style="color:#23282C;"></i>Authenticated as <span id="auth-username">[username]</span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -568,6 +572,21 @@
|
||||||
$(window).scroll(function () {
|
$(window).scroll(function () {
|
||||||
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
|
$('nav').toggleClass('scrolled', $(this).scrollTop() > 100);
|
||||||
});
|
});
|
||||||
|
if (localStorage['signup'].match(/:::/)) {
|
||||||
|
const [username, serial] = localStorage.signup.split(':::');
|
||||||
|
$('.box-auth-true').show();
|
||||||
|
$('.box-auth-false').hide();
|
||||||
|
$('#auth-username').html(username);
|
||||||
|
$('#count').html(serial);
|
||||||
|
$('#count-sub-text').html('YOUR AUTHENTICATION NUMBER');
|
||||||
|
$('#communitea').html('Thanks for joining our');
|
||||||
|
$('#revolution-text').html(
|
||||||
|
'Now stay tuned! As an early authenticator, you’ll be entitled to a variety of exciting rewards, including minted NFT certificates.'
|
||||||
|
);
|
||||||
|
$('#auth-body-text').hide();
|
||||||
|
$('.rounded-pill').hide();
|
||||||
|
$('.auth-btn').html('Configure GitHub App');
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue