Skip to content

Commit ccedf65

Browse files
committed
URL parameters for footer
1 parent 63b9277 commit ccedf65

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,18 @@
4141
<body>
4242
<div style="position: absolute; bottom: 10px; left: 10px; color: white; z-index: 999; background: #ec3750; padding: 20px 20px; border-radius: 16px; margin-right: 10px;">
4343
<h2 style="margin-block-start: 0em; margin-block-end: 0em;">The Hack Club Map</h2>
44-
<p style="margin-block-start: 0.4em; margin-block-end: 0em;">Add your club using <b><a style="color: white;" href="https://leaders.hackclub.com" target="_blank">The Leaders Portal</a></p>
44+
<p id="overlay-text" style="margin-block-start: 0.4em; margin-block-end: 0em;">Add your club using <b><a style="color: white;" href="https://leaders.hackclub.com" target="_blank">The Leaders Portal</a></b></p>
4545
</div>
46+
<script>
47+
const params = new URLSearchParams(window.location.search);
48+
const mode = params.get('mode');
49+
const overlayText = document.getElementById('overlay-text');
50+
if (mode === 'signin') {
51+
overlayText.innerHTML = 'Sign in to manage your club';
52+
} else if (mode === 'manage') {
53+
overlayText.innerHTML = 'Manage your club in the <b><a style="color: white;" href="https://leaders.hackclub.com/my-club" target="_blank">My Club Page</a></b>';
54+
}
55+
</script>
4656
<div class="flag" alt="Hack Club"></div>
4757
<club-map></club-map>
4858
</body>

0 commit comments

Comments
 (0)