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 }}

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Danke für deine Nachricht</title>
<meta http-equiv="refresh" content="5; url=/">
<style>
body { font-family: Arial, sans-serif; line-height: 1.6; text-align: center; padding: 20px; }
a { color: #007BFF; text-decoration: none; }
a:hover { text-decoration: underline; }
</style>
</head>
<body>
<h1>Vielen Dank!</h1>
<p>Deine Nachricht wurde erfolgreich gesendet. Du wirst in 5 Sekunden weitergeleitet.</p>
<p><a href="/">Zurück zu Amperion</a></p>
</body>
</html>

View file

@ -23,7 +23,7 @@
"bodyPosition": "top",
"hashtag": "#tarteaucitron",
"cookieName": "tarteaucitron",
"orientation": "top",
"orientation": "middle",
"groupServices": true,
"showDetailsOnClick": false,
@ -68,4 +68,8 @@
<script>tarteaucitron.user.matomoHost = 'https://matomo.amperion.at/';
tarteaucitron.user.matomoDontTrackPageView = dontTrackPageView (false | true);
tarteaucitron.user.matomoFullTracking = fullTracking (true | false);
</script>
<script>
(tarteaucitron.job = tarteaucitron.job || []).push('hcaptcha');
</script>