Update010920251648

This commit is contained in:
Markus 2025-09-01 16:48:21 +02:00
parent 4055e3ae54
commit 29e3a85eae
6 changed files with 162 additions and 36 deletions

View file

@ -112,24 +112,7 @@
<!-- ===== Formular ===== -->
<div class="col-lg-7" data-reveal>
{{ with site.Params.contact.form }}{{ if .enable }}
{{ $formName := printf "contact_%s" $.Language.Lang }}
<form
method="POST"
class="card card-pad stack"
{{ if .use_netlify }}
name="{{ $formName }}"
netlify
data-netlify="true"
netlify-honeypot="nhp"
action='{{ "/message_sent/" | relLangURL }}'
{{ else }}
name="contact"
action="{{ .action | safeURL }}"
{{ end }}
>
{{ if .use_netlify }}<input type="hidden" name="form-name" value="{{ $formName }}">{{ end }}
<form method="POST" action="/send.php" class="card card-pad stack">
<div class="form-grid">
<div class="form-group">
<label for="name" class="visually-hidden">Name</label>
@ -155,39 +138,27 @@
<label for="message" class="visually-hidden">Ihre Nachricht</label>
<textarea id="message" name="message" class="form-control" rows="6" placeholder="Ihre Nachricht …" required></textarea>
</div>
{{ if .use_netlify }}
<div class="form-group full" style="display:none;">
<label>Bitte nicht ausfüllen</label>
<input name="nhp" type="text">
<!-- hCaptcha -->
<div class="form-group full">
<div class="h-captcha" data-sitekey="15a25108-bbc0-4d02-913c-4ada005ebd20"></div>
</div>
{{ end }}
{{ if .use_recaptcha }}
<input type="hidden" id="captchaResponse" name="g-recaptcha-response">
<div data-netlify-recaptcha="true"></div>
{{ end }}
</div>
<p class="form-legal">
<label for="legal-consent">
<input id="legal-consent" name="legal_consented" type="checkbox" required>
Ich bin mit der Verarbeitung meiner Daten zum Zweck der Kontaktaufnahme einverstanden. (Datenschutzhinweise beachten)
</label>
</p>
<div>
<button class="cta__btn" type="submit" style="--btn-fs:1.5rem; --btn-py:14px; --btn-px:26px;">
<span aria-hidden="true"></span><span>Nachricht senden</span>
</button>
</div>
</form>
{{ end }}{{ end }}
</div>
</div>
</div>
</section>
{{/* Reveal Init (falls global nicht vorhanden) */}}
<script>
(function(){
@ -205,4 +176,6 @@
els.forEach(e=>io.observe(e));
})();
</script>
{{ end }}
<!-- hCaptcha-Skript -->
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
{{ end }}