Skip to content

Commit

Permalink
fix: better contact form handling
Browse files Browse the repository at this point in the history
Signed-off-by: lennartrommeiss <[email protected]>
  • Loading branch information
lenderom committed Jan 22, 2025
1 parent 27bc338 commit d1aaf75
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
title: "Kontakt"
---

<form action="https://api.web3forms.com/submit" method="POST">
<input type="hidden" name="access_key" value="0a8dc059-6054-425e-8a5c-d8ba490cd5f7">
<input type="hidden" name="from_name" value="FIPGuide">
<input type="hidden" name="subject" value="New Message from FIPGuide">
<input type="hidden" name="redirect" value="{{< ref "common/success" >}}">

<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br><br>
Expand All @@ -12,4 +17,4 @@
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" cols="50" required></textarea><br><br>
<input type="submit" value="Submit">
</form>
</form>
7 changes: 0 additions & 7 deletions content/common/contact.de.md

This file was deleted.

20 changes: 20 additions & 0 deletions content/common/contact.en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "Contact"
---

<form action="https://api.web3forms.com/submit" method="POST">
<input type="hidden" name="access_key" value="0a8dc059-6054-425e-8a5c-d8ba490cd5f7">
<input type="hidden" name="from_name" value="FIPGuide">
<input type="hidden" name="subject" value="New Message from FIPGuide">
<input type="hidden" name="redirect" value="{{< ref "common/success" >}}">

<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br><br>

<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>

<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" cols="50" required></textarea><br><br>
<input type="submit" value="Submit">
</form>
7 changes: 0 additions & 7 deletions content/common/contact.en.md

This file was deleted.

8 changes: 8 additions & 0 deletions content/common/success.de.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Erfolgreich!"
---

<div>
<p>Wir melden uns schnellstmöglich zurück</p>
<a href="{{< ref "/" >}}">Zurück zur Startseite</a>
</div>
9 changes: 9 additions & 0 deletions content/common/success.en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Success"
---

<div>
<p>We will get back to you as soon as possible</p>
<a href="{{< ref "/" >}}">Back to start page</a>

</div>

0 comments on commit d1aaf75

Please sign in to comment.