Skip to content

Commit 1b51e69

Browse files
committed
simple implementation for a contact form
1 parent 1979cca commit 1b51e69

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

Diff for: _includes/header.html

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<li><a class="nav-link" href="/blog" id="yellow-link">Blog</a></li>
1010
<li><a class="nav-link" href="/project" id="green-link">The project</a></li>
1111
<li><a class="nav-link" href="/about-us" id="red-link">About us</a></li>
12+
<li><a class="nav-link" href="/contact" id="green-link">Contact us</a></li>
1213
</ul>
1314
</nav>
1415
</header>

Diff for: _layouts/contact.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: default
3+
---
4+
{% include header.html %}
5+
<main class="content" role="main" id="hero-about">
6+
<section class="main-content">
7+
{{ content }}
8+
<form
9+
action="https://formspree.io/f/maylovzq"
10+
method="POST"
11+
>
12+
<label>
13+
Your email:
14+
<input type="text" name="_replyto">
15+
</label>
16+
<label>
17+
Your message:
18+
<textarea name="message"></textarea>
19+
</label>
20+
21+
<!-- your other form fields go here -->
22+
23+
<button type="submit">Send</button>
24+
</form>
25+
{% include footer.html %}
26+
</section>
27+
</main>

Diff for: contact.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
layout: contact
3+
title: The WebAR Kit contact page
4+
description: some content
5+
image: ./resources/webarkit-logo-social.jpg
6+
permalink: /contact/
7+
---
8+
9+
# Contact US!
10+
11+
We are glad if you send a message, with your thinking

0 commit comments

Comments
 (0)