Add nav/footer, contact form, privacy/terms drafts, first course landing page
deploy / deploy (push) Successful in 4s

- baseof.html: proper header/nav/footer, CSS custom properties for
  light/dark, button and form component styles — no external theme
  dependency, avoiding the submodule/version churn from the earlier
  PaperMod attempt.
- Contact page: real form (honeypot spam protection) posting to the eec
  service's new /contact endpoint, replacing the plain mailto CTA.
- Privacy Policy and Terms drafts — grounded in what's actually true here
  (self-hosted mail/course infra, no third-party trackers), flagged as
  drafts pending review.
- courses/ section with a generic single template driven by front matter
  (eec_slug, pitch) and the first course, Find Your Right Readers —
  landing page only; the actual course content isn't authored in
  eec-courses yet, so enrolling will 404 until that's written.
- Fixed hugo.toml baseURL (was www.reground.org, but Caddy's canonical
  host is the bare domain — www redirects to it, not the other way).
This commit is contained in:
2026-07-08 16:41:47 -04:00
parent cd6ba1415c
commit 4445da18bb
11 changed files with 425 additions and 14 deletions
+160 -8
View File
@@ -6,29 +6,181 @@
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} · {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ .Site.Params.description }}">
<style>
:root { color-scheme: light dark; }
:root {
color-scheme: light dark;
--bg: #fafafa;
--bg-raised: #ffffff;
--fg: #1a1a1a;
--fg-muted: #5a5a5a;
--border: #e2e2e2;
--accent: #1a5fb4;
--accent-fg: #ffffff;
--radius: 0.5rem;
--max-width: 42rem;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #14161a;
--bg-raised: #1c1f24;
--fg: #e8e8e8;
--fg-muted: #9a9fa6;
--border: #2c3038;
--accent: #8ab4f8;
--accent-fg: #0f1115;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
background: #fafafa;
color: #1a1a1a;
background: var(--bg);
color: var(--fg);
display: flex;
flex-direction: column;
min-height: 100vh;
}
@media (prefers-color-scheme: dark) {
body { background: #14161a; color: #e8e8e8; }
a { color: #8ab4f8; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
header.site {
border-bottom: 1px solid var(--border);
}
header.site .inner {
max-width: var(--max-width);
margin: 0 auto;
padding: 1.25rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
}
header.site .brand {
font-weight: 700;
font-size: 1.1rem;
color: var(--fg);
text-decoration: none;
}
header.site nav {
display: flex;
gap: 1.5rem;
}
header.site nav a {
color: var(--fg-muted);
text-decoration: none;
font-size: 0.95rem;
}
header.site nav a:hover { color: var(--fg); }
main {
max-width: 640px;
flex: 1;
max-width: var(--max-width);
margin: 0 auto;
padding: 4rem 1.5rem;
width: 100%;
}
footer.site {
border-top: 1px solid var(--border);
margin-top: 2rem;
}
footer.site .inner {
max-width: var(--max-width);
margin: 0 auto;
padding: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
font-size: 0.85rem;
color: var(--fg-muted);
}
footer.site nav {
display: flex;
gap: 1.25rem;
}
footer.site nav a {
color: var(--fg-muted);
text-decoration: none;
}
footer.site nav a:hover { color: var(--fg); }
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: var(--radius);
background: var(--accent);
color: var(--accent-fg);
text-decoration: none;
font-weight: 600;
border: none;
font-size: 1rem;
cursor: pointer;
}
.btn:hover { opacity: 0.9; }
label {
display: block;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 0.35rem;
}
input, textarea {
width: 100%;
padding: 0.65rem 0.75rem;
border-radius: var(--radius);
border: 1px solid var(--border);
background: var(--bg-raised);
color: var(--fg);
font-family: inherit;
font-size: 1rem;
margin-bottom: 1.25rem;
}
input:focus, textarea:focus {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
.field-honeypot {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}
a { color: #1a5fb4; }
</style>
</head>
<body>
<header class="site">
<div class="inner">
<a class="brand" href="/">{{ .Site.Title }}</a>
<nav>
{{ range .Site.Menus.main }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
</div>
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer class="site">
<div class="inner">
<span>&copy; {{ now.Year }} {{ .Site.Title }}</span>
<nav>
{{ range .Site.Menus.footer }}
<a href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
</div>
</footer>
</body>
</html>
+55
View File
@@ -0,0 +1,55 @@
{{ define "main" }}
<h1>Get in touch</h1>
<p style="opacity:0.85;">Tell me a bit about what you're working on — I read every message myself.</p>
<form id="contact-form" style="margin-top:2rem;">
<label for="name">Name</label>
<input type="text" id="name" name="name" required autocomplete="name">
<label for="email">Email</label>
<input type="email" id="email" name="email" required autocomplete="email">
<label for="message">Message</label>
<textarea id="message" name="message" rows="6" required></textarea>
<div class="field-honeypot" aria-hidden="true">
<label for="website">Leave this field empty</label>
<input type="text" id="website" name="website" tabindex="-1" autocomplete="off">
</div>
<button type="submit" class="btn">Send message</button>
<p id="contact-status" role="status" style="margin-top:1rem;"></p>
</form>
<script>
(function () {
var form = document.getElementById("contact-form");
var status = document.getElementById("contact-status");
form.addEventListener("submit", function (e) {
e.preventDefault();
var payload = {
name: form.name.value,
email: form.email.value,
message: form.message.value,
website: form.website.value
};
var submitBtn = form.querySelector("button[type=submit]");
submitBtn.disabled = true;
status.textContent = "Sending…";
fetch("{{ .Site.Params.eec_base_url }}/contact", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(payload)
}).then(function (res) {
if (!res.ok) throw new Error("request failed");
form.reset();
form.hidden = true;
status.textContent = "Thanks — I'll get back to you soon.";
}).catch(function () {
submitBtn.disabled = false;
status.textContent = "Something went wrong sending that. Try again, or email hello@reground.org directly.";
});
});
})();
</script>
{{ end }}