diff --git a/content/de/contact.md b/content/de/contact.md index 282f4b7..d0a8ff1 100644 --- a/content/de/contact.md +++ b/content/de/contact.md @@ -1,31 +1,21 @@ --- title: Kontakt -type: page ---- -
-
- Name: -
- -
-
-
- E-Mail Adresse: -
- -
-
-
- Nachricht: -
- -
-
-
- -
-
+type: contact -
-

(Powered by Un-static Forms)

-
+form: + action: https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092 + input: + - label: Name + id: name + icon: user + type: text + required: true + - label: Email Adresse + id: email + icon: mail + type: email + required: true + message: Nachricht + method: post + submit: Abschicken +--- diff --git a/content/en/contact.md b/content/en/contact.md index 077a1d7..91566e0 100644 --- a/content/en/contact.md +++ b/content/en/contact.md @@ -1,31 +1,21 @@ --- title: Contact -type: page ---- -
-
- Name: -
- -
-
-
- Email address: -
- -
-
-
- Message: -
- -
-
-
- -
-
+type: contact -
-

(Powered by Un-static Forms)

-
+form: + action: https://forms.un-static.com/forms/edabbc7e6afca6f165ce36fc7b6fa6997859c092 + input: + - label: Name + id: name + icon: user + type: text + required: true + - label: Email address + id: email + icon: mail + type: email + required: true + message: Message + method: post + submit: Send +--- diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..b1179de --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} + {{ if eq .Type "post" }} + {{- partial "post.html" . -}} + {{- partial "toc.html" . -}} + {{ end }} + + {{ if eq .Type "page" }} + {{- partial "page.html" . -}} + {{- partial "toc.html" . -}} + {{ end }} + + {{ if eq .Type "contact" }} + {{- partial "contact.html" . -}} + {{ end }} +{{ end }} diff --git a/layouts/partials/contact.html b/layouts/partials/contact.html new file mode 100644 index 0000000..b61994c --- /dev/null +++ b/layouts/partials/contact.html @@ -0,0 +1,29 @@ +
+
+

{{ .Title | markdownify }}

+
+ + {{ $action := .Params.form.action }} + {{ $formInput := .Params.form.input }} + {{ $message := .Params.form.message }} + {{ $method := .Params.form.method }} + {{ $submit := .Params.form.submit }} + +
+
+ {{ range $input := $formInput }} +
+
+ {{ end }} + +
+
+ + +
+ +
+

(Powered by Un-static Forms)

+
+
+
diff --git a/static/css/hoppy.css b/static/css/hoppy.css index 7c24c31..32a5582 100644 --- a/static/css/hoppy.css +++ b/static/css/hoppy.css @@ -1,3 +1,27 @@ +.contact-form form button { + margin: 5px auto -3px; + padding: 3px 5px; +} + +.contact-form form button svg { + margin: 2px 1px -6px; +} + +.contact-form form input { + margin: 5px auto 12px; + width: 50%; +} + +.contact-form form svg { + margin: 2px auto -3px; + stroke-width: 2; +} + +.contact-form form textarea { + margin: 5px auto 12px; + width: 50%; +} + figure figcaption { font-size: 12px; text-align: center;