Contact page

This commit is contained in:
Hazem Krimi
2023-11-07 20:11:09 +01:00
parent 420e348cad
commit 164cf73180
8 changed files with 101 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
{{ define "styles" }}
{{ $styles := resources.Get "css/page/contact.css" | toCSS | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
{{ end }}
{{ define "main" }}
{{ .Content }}
{{ partial "contact-form.html" . }}
{{ end }}
+10
View File
@@ -0,0 +1,10 @@
{{ $styles := resources.Get "css/partials/contact-form.css" | toCSS | minify }}
<link rel="stylesheet" href="{{ $styles.Permalink }}">
<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>
<button type="submit">Submit</button>
</form>
+3 -5
View File
@@ -42,11 +42,9 @@
<nav>
<div id="menus">
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/projects">Projects</a>
<a href="/blog">Blog</a>
<a href="/contact">Contact</a>
{{ range site.Menus.main.Sort.ByWeight }}
<a {{ printf "href=%q" .URL | safeHTMLAttr }}>{{ .Name }}</a>
{{ end }}
</div>
<hr>
<div id="links">