-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.njk
63 lines (52 loc) · 2.35 KB
/
about.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: base.njk
title: Birds Make Sound | About
---
<div class="about-grid-container">
{% include "header.njk" %}
<div class="about-page">
<h1>Welcome! 🕊</h1>
<p>This blog was created by me, <a href="https://parkerdavis.dev/" target="_blank">Parker Davis</a>.</p>
<p>I started this blog in the summer of 2020 then let it lay dormant for a few years... but it is <strong>BACK</strong>. It's got a fresh new look and fresh posts on the way. <a href="/">Click here</a> to see a list of all posts.</p>
<p>Feel free to email me at <a href="mailto:[email protected]">[email protected]</a></p>
<div class="social-container">
<a href="https://ebird.org/profile/NDczMDQx/">
<img src="/images/social-icons/ebird-icon.png" alt="eBird profile" title="eBird profile" class="social-icon">
</a>
<a href="https://twitter.com/park_d">
<img src="/images/social-icons/twitter-icon.png" alt="Twitter profile" title="Twitter profile" class="social-icon">
</a>
<a href="https://www.instagram.com/parkd/">
<img src="/images/social-icons/instagram-icon.png" alt="Instagram profile" title="Instagram profile" class="social-icon">
</a>
</div>
{# <img src="/images/LEBI.gif" alt="Least Bittern wiggling" class="img-center"> #}
<div class="img-center">
{% gifImage "images/LEBI.gif", "Least Bittern wiggling" %}
<figcaption><a href="https://nellsmithwriter.com/">Photo: Nell Smith</a></figcaption>
</div>
</div>
{# <div class="newsletter newsletter-about">
{% include "newsletter.html" %}
</div> #}
{% include "footer.njk" %}
</div>
<script>
let submitButton = document.getElementById('submitButton')
document.querySelector("form").addEventListener("submit", event => {
event.preventDefault();
let myForm = document.getElementById("form");
let formData = new FormData(myForm);
fetch("/", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams(formData).toString(),
})
.then(() => {
console.log("Form successfully submitted");
submitButton.innerText = "Submitted!";
submitButton.disabled = true;
})
.catch((error) => alert(error));
});
</script>