Contact form script wip

This commit is contained in:
Hazem Krimi
2023-11-08 18:10:39 +01:00
parent a517624330
commit 770beea258
3 changed files with 24 additions and 5 deletions
+16 -5
View File
@@ -1,10 +1,21 @@
{{ $styles := resources.Get "css/partials/contact-form.css" | toCSS | minify }}
{{ $scripts := resources.Get "js/partials/contact-form.js" | js.Build | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}">
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
<script defer src="{{ $scripts.Permalink }}"></script>
<form action="{{ .Site.Params.formSpreeURL }}" method="post">
<input name="name" placeholder="Your name" type="text" />
<input name="email" placeholder="Your email" type="email" />
<textarea cols="30" name="message" placeholder="Enter your message here" rows="10"></textarea>
<form
action="{{ .Site.Params.formSpreeURL }}"
method="POST"
>
<input name="name" placeholder="Your name" required type="text" />
<input name="email" placeholder="Your email" required type="email" />
<textarea
cols="30"
name="message"
placeholder="Your message"
required
rows="10"
></textarea>
<button type="submit">Submit</button>
</form>