// ============================================================================= // Astovia · Contact page // ============================================================================= const WEB3FORMS_KEY = '2c5fba33-654d-4f82-ba59-2bd93df73308'; function ContactPage({ go }) { const [form, setForm] = React.useState({ first: '', last: '', email: '', message: '' }); const [submitted, setSubmitted] = React.useState(false); const [submitting, setSubmitting] = React.useState(false); const [error, setError] = React.useState(false); const upd = (k) => (e) => setForm((f) => ({ ...f, [k]: e.target.value })); const submit = async (e) => { e.preventDefault(); setError(false); setSubmitting(true); try { const res = await fetch('https://api.web3forms.com/submit', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ access_key: WEB3FORMS_KEY, subject: 'New enquiry from astovia.de — ' + form.first + ' ' + form.last, from_name: form.first + ' ' + form.last, email: form.email, message: form.message, botcheck: '' }) }); const data = await res.json(); if (!data.success) throw new Error(data.message); setSubmitted(true); setForm({ first: '', last: '', email: '', message: '' }); setTimeout(() => setSubmitted(false), 6000); } catch (err) { console.error('Form submission failed:', err); setError(true); } finally { setSubmitting(false); } }; return (

contact us.

{/* === Send a message + photo ========================================= */}

Send a message.

{submitted &&
● Message received — we will reply within one working day.
} {error &&
● Something went wrong. Please try again or email info@astovia.de.
}