aboutsummaryrefslogtreecommitdiff
path: root/themes/ananke/layouts/shortcodes/form-contact.html
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2020-07-11 22:35:14 +0200
committergabrielgio <gabriel.giovanini@pm.me>2020-07-11 22:35:14 +0200
commit60fe49ea3af38d4a7d5e8de1cdb72887b167b22d (patch)
treebb05011c311b74c7c7676b7b689bbbc2c8546c9a /themes/ananke/layouts/shortcodes/form-contact.html
parent60b4299cb90a5b3f6e74ffd0ee0f51a0008fb3cf (diff)
downloadgabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.tar.gz
gabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.tar.bz2
gabrielgio.me-60fe49ea3af38d4a7d5e8de1cdb72887b167b22d.zip
Moving from jekyll to hugo
Diffstat (limited to 'themes/ananke/layouts/shortcodes/form-contact.html')
-rw-r--r--themes/ananke/layouts/shortcodes/form-contact.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/themes/ananke/layouts/shortcodes/form-contact.html b/themes/ananke/layouts/shortcodes/form-contact.html
new file mode 100644
index 0000000..d06b248
--- /dev/null
+++ b/themes/ananke/layouts/shortcodes/form-contact.html
@@ -0,0 +1,20 @@
+{{ $.Scratch.Add "labelClasses" "f6 b db mb1 mt3 sans-serif mid-gray" }}
+{{ $.Scratch.Add "inputClasses" "w-100 f5 pv3 ph3 bg-light-gray bn" }}
+
+<form class="black-80 sans-serif" accept-charset="UTF-8" action="{{ .Get "action" }}" method="POST" role="form">
+
+ <label class="{{ $.Scratch.Get "labelClasses" }}" for="name">{{ i18n "yourName" }}</label>
+ <input type="text" id="name" name="name" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="name"/>
+
+ <label class="{{ $.Scratch.Get "labelClasses" }}" for="email">{{ i18n "emailAddress" }}</label>
+ <input type="email" id="email" name="email" class="{{ $.Scratch.Get "inputClasses" }}" required placeholder=" " aria-labelledby="email"/>
+ <div class="requirements f6 gray glow i ph3 overflow-hidden">
+ {{ i18n "emailRequiredNote" }}
+ </div>
+
+ <label class="{{ $.Scratch.Get "labelClasses" }}" for="message">{{ i18n "message" }}</label>
+ <textarea id="message" name="message" class="{{ $.Scratch.Get "inputClasses" }} h4" aria-labelledby="message"></textarea>
+
+ <input class="db w-100 mv2 white pa3 bn hover-shadow hover-bg-black bg-animate bg-black" type="submit" value="{{ i18n "send" }}" />
+
+</form>