Files
reground-site/layouts/_default/devops.html
T
will 3a40244d7f
deploy / deploy (push) Successful in 7s
Add dedicated /devops funnel, leave /contact as generic form
Homepage's Technical Help CTA now points to a qualifying page for
DevOps prospects instead of the bare contact form.
2026-07-30 20:44:55 -04:00

80 lines
2.9 KiB
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ with .Params.hero_subhead }}<p style="opacity:0.85;">{{ . }}</p>{{ end }}
{{ with .Params.proof_bullets }}
<ul class="course-bullets">
{{ range . }}<li>{{ . | markdownify }}</li>{{ end }}
</ul>
{{ end }}
{{ with .Params.fit_note }}<p style="opacity:0.7;font-size:0.9em;">{{ . }}</p>{{ end }}
<form id="devops-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="company">Company / site</label>
<input type="text" id="company" name="company" autocomplete="organization">
<label for="message">What's going on right now?</label>
<textarea id="message" name="message" rows="6" required placeholder="Site keeps going down, hosting's gotten expensive, email's landing in spam, thinking about migrating off somewhere..."></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">Tell me what's going on</button>
</form>
<p id="devops-status" role="status" style="margin-top:1rem;"></p>
<p style="margin-top:2rem;">Prefer to just get on a call? <a href="/talk/">Book a time →</a></p>
<script>
(function () {
var form = document.getElementById("devops-form");
var status = document.getElementById("devops-status");
form.addEventListener("submit", function (e) {
e.preventDefault();
var messageParts = [];
if (form.company.value) {
messageParts.push("Company/site: " + form.company.value);
messageParts.push("");
}
messageParts.push(form.message.value);
var payload = {
name: form.name.value,
email: form.email.value,
message: messageParts.join("\n"),
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) {
submitBtn.disabled = false;
if (res.ok) {
form.reset();
status.textContent = "Thanks — I'll get back to you soon.";
return;
}
return res.text().then(function (msg) {
status.textContent = msg || "Something went wrong sending that. Try again, or email hello@reground.org directly.";
});
}).catch(function () {
submitBtn.disabled = false;
status.textContent = "Something went wrong sending that. Try again, or email hello@reground.org directly.";
});
});
})();
</script>
{{ end }}