This commit is contained in:
Jakub Kropáček 2024-12-23 12:30:36 +01:00
parent 6442270774
commit d2ed2a5202

View file

@ -1,23 +1,2 @@
<script lang="ts">
import { page } from '$app/state';
let steamGiftKey = $state<string | null>(null);
let isLegit = $state<boolean>(true);
$effect(() => {
const bk = page.url.searchParams.get('bk');
if (!bk) {
isLegit = false;
return;
}
steamGiftKey = atob(bk);
});
</script>
{#if isLegit}
<h1>Congrats!</h1>
<h2>Enjoy your gift &lt;3</h2>
<p>{steamGiftKey}</p>
{:else}
<h1>Sorry, this gift is not for you</h1>
{/if}
<h1>Congrats!</h1>
<h2>Check your email at 19:30 :P</h2>