From 1f46c2daeeeae671cff5a3f479664f1b03a2fee8 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 12 May 2023 10:03:37 -0500 Subject: [PATCH] forms: updated the contact-form so it is natural and easy --- layouts/shortcodes/contact-form.html | 94 +++++++++++++++++++++++++--- 1 file changed, 87 insertions(+), 7 deletions(-) diff --git a/layouts/shortcodes/contact-form.html b/layouts/shortcodes/contact-form.html index 9a1b36b..fab3fde 100644 --- a/layouts/shortcodes/contact-form.html +++ b/layouts/shortcodes/contact-form.html @@ -1,7 +1,87 @@ - +{{ $formClasses := "bg-neutral-500 text-neutral-50 placeholder-neutral-300 focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:ring-offset-transparent my-2 p-3 rounded-lg hover:bg-neutral-500 checked:text-neutral-500" }} +{{ $requiredField := "* required" }} + + + +
+
+

Contact Form

+
+ +
+ +
+ + + + + + + + + +
+ +
+ +
+ + {{ partial "icon.html" (.Get 0 | default "triangle-exclamation") }} Make sure you have included an email so we can contact you. + +
+ +
+