diff --git a/content/6_kontakt/kontakt.txt b/content/6_kontakt/kontakt.txt index fbe7b04..197dcbb 100644 --- a/content/6_kontakt/kontakt.txt +++ b/content/6_kontakt/kontakt.txt @@ -2,4 +2,29 @@ Title: Kontakt ---- +Blocks: + +[ + { + "content": [], + "id": "d77eb3be-0de2-44f2-bda9-4043475d471f", + "isHidden": false, + "type": "kontaktformular" + } +] + +---- + +Herotext: Haben Sie Fragen? Möchten Sie Mitglied werden? Dann nehmen Sie doch direkt Kontakt zu unserem Vorstand auf! + +---- + +Herobutton: + +---- + +Buttonlink: + +---- + Uuid: usx96dfncvtmlu4y \ No newline at end of file diff --git a/site/controllers/kontakt.php b/site/controllers/kontakt.php new file mode 100644 index 0000000..8c9731c --- /dev/null +++ b/site/controllers/kontakt.php @@ -0,0 +1,33 @@ + [ + 'rules' => ['required', 'email'], + 'message' => 'Bitte geben Sie eine gültige E-Mail Adresse ein.', + ], + 'name' => [ + 'rules' => ['required'], + 'message' => 'Bitte geben Sie Ihren Namen ein.', + ], + 'message' => [ + 'rules' => ['required'], + 'message' => 'Bitte geben Sie eine Nachricht ein.', + ], + ]); + + if ($kirby->request()->is('POST')) { + $form->emailAction([ + 'to' => [ + 'info@feigel.it' + ], + 'from' => 'webmaster@schachfreunde-badsteben.de', + 'subject' => 'Kontaktanfrage über die Homepage der Schachfreunde Bad Steben', + ])->done(); + } + + return compact('form'); + }; diff --git a/site/snippets/blocks/kontaktformular.php b/site/snippets/blocks/kontaktformular.php new file mode 100644 index 0000000..e69de29 diff --git a/site/templates/kontakt.php b/site/templates/kontakt.php new file mode 100644 index 0000000..effa858 --- /dev/null +++ b/site/templates/kontakt.php @@ -0,0 +1,104 @@ + + +
+
+
+
+
+
+ +
+

Wir freuen uns über Ihre Nachricht!
Sie können uns auf verschiedene Arten kontaktieren!

+
+
+
+ Adresse unseres Spiellokals: + +
+
+ Vereinsheim TV Reinersreuth
+ Reinersreuth 91
+ 95234 Sparneck +
+
+
+
+ Telefon + +
+
+ 1. Vorsitzender Bernd Haberzettl
+ +49 (9286) 7631 +
+
+ +
+
+
+ +
+
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ + + success()): ?> + Thank you for your message. We will get back to you soon! + +
+ $form]) ?> +
+ + +
+
+
+
+ + \ No newline at end of file diff --git a/src/css/input.css b/src/css/input.css index cfb10d4..8281ff3 100644 --- a/src/css/input.css +++ b/src/css/input.css @@ -70,5 +70,8 @@ @apply text-sf_blau-500 font-bold hover:text-sf_gelb-600; } - + .uniform__potty { + position: absolute; + left: -9999px; + } } \ No newline at end of file