mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Contact page
This commit is contained in:
@@ -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 }}
|
||||
@@ -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>
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user