feat: add contact form with Netlify integration and success/error messages

This commit is contained in:
ARC Developer
2025-07-10 20:31:49 +03:00
parent 27f3407175
commit d9ddffacb1
2 changed files with 37 additions and 1 deletions
+9 -1
View File
@@ -5,7 +5,15 @@ import Button from '~/components/ui/Button.astro';
const { inputs, textarea, disclaimer, button = 'İletişim', description = '' } = Astro.props;
---
<form>
<form method="POST" data-netlify="true" name="contact-form" action="/iletisim?success=true" netlify-honeypot="bot-field">
<!-- Hidden honeypot field for spam protection -->
<div style="display: none;">
<label>
Don't fill this out if you're human:
<input name="bot-field" />
</label>
</div>
{
inputs &&
inputs.map(