feat(landing): Add landing Nuxt page

This commit is contained in:
2026-01-03 10:19:39 +01:00
parent 0803b59f0f
commit b3311155c7
28 changed files with 13620 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
export function useNewsletterSignup() {
const isLoading = ref(false)
const isSuccess = ref(false)
const error = ref<string | null>(null)
const submitEmail = async (_email: string) => {
isLoading.value = true
error.value = null
try {
// Simulate API call - replace with actual newsletter service integration
await new Promise((resolve) => setTimeout(resolve, 1500))
// TODO: Integrate with external newsletter service (e.g., Mailchimp, ConvertKit, etc.)
// Example:
// await $fetch('/api/newsletter/subscribe', {
// method: 'POST',
// body: { email }
// })
isSuccess.value = true
} catch (e: unknown) {
error.value = e instanceof Error ? e.message : 'Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.'
throw e
} finally {
isLoading.value = false
}
}
const reset = () => {
isLoading.value = false
isSuccess.value = false
error.value = null
}
return {
isLoading,
isSuccess,
error,
submitEmail,
reset
}
}