Added necessary ID's to navbar CTA to edit with JS on landing page.

This commit is contained in:
Thomas Smith 2022-08-05 16:30:06 -04:00
parent e5e1a162ef
commit 6060fadacf
2 changed files with 12 additions and 4 deletions

View file

@ -5,15 +5,23 @@
<script>
document.getElementById("nav-cta").innerHTML = "Authenticate with GitHub";
document.getElementById("lp-text").innerHTML = "Developers Authenticated";
</script>
<style>
.badge{
#cta-text{
display:none;
}
#lp-text{
margin-left: 10px;
}
.ms-3{
margin:0px !important;
}
@media only screen and (min-width: 600px) {
.prompt{
font-family: 'Prompt', sans-serif !important;

View file

@ -22,7 +22,7 @@
</li>
{{ end }}
</ul>
<a class="btn btn-primary auth-btn mt-lg-0 mt-md-0 mt-sm-4 mt-4" id="nav-cta" href="https://github.com/login/oauth/authorize?client_id=9d1f1a72f1300b6991df&state=teaxyz" role="button">Authenticate with tea<span class="badge rounded-pill bg-primary ms-3"><span id="count1">287</span></span></a>
<a class="btn btn-primary auth-btn mt-lg-0 mt-md-0 mt-sm-4 mt-4" id="nav-cta" href="https://github.com/login/oauth/authorize?client_id=9d1f1a72f1300b6991df&state=teaxyz" role="button"><span id="cta-text">Authenticate with tea</span><span class="badge rounded-pill bg-primary ms-3"><span id="count1">287</span></span><span id="lp-text"></span></a>
</div>
</div>
</nav>