add mail + github stars

This commit is contained in:
Emily
2024-08-29 14:55:42 +02:00
parent c1bdc30933
commit 1cb6b92d5c
2 changed files with 30 additions and 5 deletions

View File

@@ -51,6 +51,15 @@ const scriptDeferTokens = ref<string[]>([
const snippetIndex = ref<number>(0);
async function saveEmail() {
await fetch('http://savemail.litlyx.com/email/' + encodeURIComponent(email.value), {
mode: 'no-cors'
});
email.value = '';
alert('We will keep you updated');
}
</script>
@@ -331,7 +340,7 @@ const snippetIndex = ref<number>(0);
</div>
<div class="button-container">
<LyxUiButton class="button" type="primary">
<LyxUiButton class="button" type="primary" @click="saveEmail()">
Keep me updated
</LyxUiButton>
</div>