HARDHAT · FIELD MANUAL

HardHat Documentation

Everything you need to take an under-construction page from preview to live — one HTML file, one settings block, no build step. Plus a ready-made mail backend that emails you about every new signup.

v1.1.0 20 templates 7 signup providers mail backend included Updated November 2026
Contents

Introduction

HardHat is a downloadable kit of 20 under-construction pages with a shared signup engine. Each page is a single self-contained HTML file — inline CSS, inline JavaScript, Google Fonts, inline SVG favicon — with a live countdown, an animated build-progress bar, a validated email capture form, honeypot spam protection and share links. No frameworks, no dependencies, no build step.

This guide walks you from unzipping the download to a live page that stores signups and emails you about every new subscriber (chapter 6).

What’s inside the zip
hardhat/
├── templates/                  20 single-file pages (01–20)
│   ├── 01-hazard-tape.html
│   ├── 02-blueprint.html
│   ├── 03-cone-zone.html
│   ├── 04-progress-first.html
│   ├── 05-foreman-checklist.html
│   ├── 06-steel-industrial.html
│   ├── 07-night-shift.html
│   ├── 08-caution-cinema.html
│   ├── 09-excavator-scene.html
│   ├── 10-minimal-serif.html
│   ├── 11-terminal-dev.html
│   ├── 12-brick-workshop.html
│   ├── 13-city-crane.html
│   ├── 14-iso-blocks.html
│   ├── 15-maintenance-mode.html
│   ├── 16-swiss-scaffold.html
│   ├── 17-retro-bios.html
│   ├── 18-concrete-brutalist.html
│   ├── 19-roadmap-timeline.html
│   └── 20-control-tower.html
├── gallery/index.html          visual picker for all 20 designs
├── index.html                  the kit's own sales page
├── backend/                    optional Node mail backend — see chapter 6
├── google-apps-script/
│   └── Code.gs                 Google Sheets signup endpoint
├── documentation.html          this guide
├── README.md                   folder map + quick start
├── README.txt                  plain-text quick start
├── CHANGELOG.md                release history
└── LICENSE-ASSETS.txt          third-party font & package credits
FileWhat it is
templates/The 15 single-file under-construction pages, 01-hazard-tape.html through 15-maintenance-mode.html.
gallery/index.htmlVisual picker for all 20 designs.
index.htmlThe kit’s own sales page — a ready-made site you can rebrand and reuse to sell or present anything.
backend/Optional Node mail backend — see chapter 6.
google-apps-script/Code.gsGoogle Sheets signup endpoint.
documentation.htmlThis guide.
README.mdFolder map + quick start.
CHANGELOG.mdRelease history.
LICENSE-ASSETS.txtThird-party font and package license credits.

Requirements — Templates run in current versions of Chrome, Edge, Firefox and Safari, on desktop and mobile. Hosting is any static web host: no server runtime, no database, no build step. Google Fonts load from the network; offline, every file falls back to system fonts and keeps working.

Quick start

Three steps from download to live page:

Open a template

Browse gallery/index.html to compare all 20 designs side by side, pick your favorite, rename the file to index.html and open it in any code editor.

Edit the UCON SETTINGS block

Scroll to the bottom of the file. One window.UCON object controls everything: your launch date, signup provider and counter. See the settings reference for every key.

Host it

Drag the file onto Netlify Drop, or push to Vercel, GitHub Pages, Cloudflare Pages — any static host works. Then submit your own email once and confirm it arrived. Note: the Netlify Forms provider only works when the file is hosted on Netlify.

Where to next — Compare all 20 designs in the gallery, then set your launch date and copy in the UCON settings block (chapter 3), pick a signup provider (chapter 4), and switch on email notifications (chapter 6) when you’re ready to collect real signups.

Demo mode — Templates work in demo mode out of the box: the form validates and shows the thank-you state, but nothing is saved and no request leaves the page until you pick a provider. The browser console reminds you while demo mode is active: [UC] Demo mode: nothing is saved. Set UCON.provider to go live.

The UCON settings block

Every template ends with the same two script blocks. UCON SETTINGS is the only code you need to edit; the UCON ENGINE below it handles the countdown, build progress, validation, spam protection and sharing.

OptionType / DefaultWhat it does
launchDate string · "" Countdown target, format "YYYY-MM-DDTHH:MM:SS" in the visitor’s local time. Add an offset like "+05:00" to lock one timezone worldwide. While empty, the page runs a rolling demo countdown of demoDays days.
demoDays number · 21 Length of the rolling demo countdown used while launchDate is empty.
progress number 0–100 · 68 Build-progress percentage animated into every [data-uc-progress] bar and [data-uc-progress-label]. null leaves hand-made progress UI untouched.
provider string · "demo" Where signups go. One of seven values: "demo", "formspree", "web3forms", "googlesheets", "mailchimp", "netlify", "custom".
endpoint string · "" Your form URL. Used by formspree, googlesheets, mailchimp and custom. Not needed for web3forms and netlify.
accessKey string · "" Your Web3Forms access key. Only used when provider is "web3forms".
signupCount number / null · 1247 The number rendered into every [data-uc-count] element. It is a static figure, not a live total. Set to null to keep your own markup untouched.
redirectUrl string · "" Send people to this URL immediately after they sign up (leave empty to show the built-in success message).
launchUrl string · "" Send everyone to this URL when the countdown reaches zero. The page also gets a uc-launched class on <html> at that moment.
share boolean · true Show “Share on X / Share on LinkedIn / Copy link” inside the success message after signup.
shareText string · "I just joined…" The text used in the X share link after signup.
formName string · "signup" The Netlify form name, sent as form-name with every Netlify submission.
emailSubject string · "New signup" Subject line for Web3Forms email notifications.
onSuccess function / null · null Your own hook, called with the email after a successful signup: function(email) { }. Useful for analytics events.

A complete example

UCON SETTINGS
window.UCON = {

  launchDate: "2026-03-01T09:00:00+01:00",  // locked to one timezone
  demoDays: 21,
  progress: 68,

  provider: "formspree",
  endpoint: "https://formspree.io/f/abcdwxyz",
  accessKey: "",

  signupCount: 2418,
  redirectUrl: "",
  launchUrl: "",
  share: true,
  shareText: "This site is under construction — watch it launch:",
  onSuccess: null
};

Launch-day behavior

When the timer hits zero the engine paints 00 into all four digits, adds a uc-launched class to the <html> element, and redirects to launchUrl if one is set. The class lets you restyle the page for launch day with pure CSS — no JavaScript needed:

CSS
/* example: hide the timer and change the eyebrow once launched */
.uc-launched .countdown { display: none; }
.uc-launched .eyebrow   { color: #22c55e; }

The DOM contract

The engine targets a small set of elements by id or attribute. If you restructure a template, keep these intact — the countdown, the form and the counter stop working without them:

SelectorWhat it is
d h m sThe four countdown digit boxes (inside the role="timer" container).
formSectionThe signup form wrapper. The engine disables native submit and wires its own handler.
emailInputThe email text input. Gets an aria-label if it has none.
successMsgThe thank-you message shown after signup; made a role="status" live region automatically.
[data-uc-count]Every element whose text shows the signup counter (see chapter 5).
[data-uc-progress]The build-progress fill element — the engine sets its width to the percentage from progress (see chapter 3).
[data-uc-progress-label]The percentage text beside the bar — the engine writes the rounded value into it, e.g. “68%”.

You don’t need to add anything else: the engine injects an invisible honeypot field named company_website, a role="alert" error line (#ucError), and remembers joined visitors in localStorage under uc-joined:<path> so they see the thank-you state on return visits.

Signup providers

Pick one provider and fill in its details in the settings block. All providers run over HTTPS from a static page — no server code required on your side.

Every signup reports where it came from: the payload always includes page (the URL), referrer and a joined_at timestamp, plus any utm_source, utm_medium, utm_campaign and ref parameters present on the link the visitor clicked, e.g. https://yoursite.com/?utm_source=x&ref=newsletter. Providers that accept extra fields (Google Sheets, custom API) store them as their own columns or keys, so you can see which post or ad brought each signup in.

Demo — nothing is saved

The default. Submitting the form validates the email, “sends” for about a second, and shows the thank-you state with share links — but nothing is stored and no request ever leaves the page. It exists so you can preview the full flow locally before wiring a real provider.

UCON SETTINGS
window.UCON = {
  provider: "demo"   // nothing is saved — preview only
};

Remember — A demo page that looks live will silently discard every signup. Set a real provider before you launch.

Formspree

Signups are sent as a JSON POST to your Formspree form endpoint. Submissions appear in the Formspree dashboard and are emailed to you — a solid default with zero code.

  1. Create a free account at formspree.io and create a new form.
  2. Copy the form endpoint — it looks like https://formspree.io/f/XXXXXXX.
  3. Set provider: "formspree" and paste the URL into endpoint (snippet below).
  4. Submit one test signup, then confirm your email address in the Formspree dashboard — a one-time requirement before deliveries start.
UCON SETTINGS
window.UCON = {
  provider: "formspree",
  endpoint: "https://formspree.io/f/XXXX"
};

Free tier limits — The free Formspree plan caps submissions per month (currently around 50). If you expect a bigger spike, upgrade or point the template at the bundled mail backend in chapter 6.3 instead.

Web3Forms

Signups are posted as JSON straight to the Web3Forms API with your access key attached, and each one lands in your inbox as an email. No endpoint needed — just the key.

  1. Create an access key at web3forms.com using the inbox where you want notifications.
  2. Set provider: "web3forms" and paste the key into accessKey.
  3. Submit a test signup and check the inbox — the subject line comes from the emailSubject setting (“New signup” by default).
UCON SETTINGS
window.UCON = {
  provider: "web3forms",
  accessKey: "YOUR-ACCESS-KEY"   // endpoint not needed
};

Tip — Web3Forms emails you automatically on every signup, which makes it the fastest way to get notified without any backend of your own.

Google Sheets

Turns a Google Sheet into your signup database. Every signup appends one row with a timestamp and the campaign fields — the header row (received_at, email, page, referrer, joined_at, utm_source, utm_medium, utm_campaign, ref) is written automatically the first time a signup arrives.

  1. Create a Google Sheet — it becomes your signup database.
  2. Open Extensions > Apps Script in the sheet.
  3. Delete the sample code and paste this entire file into Code.gs (also included in the download as google-apps-script/Code.gs):
Code.gs
/**
 * HardHat — Google Sheets signup endpoint (Code.gs)
 * =====================================================
 * Turns a Google Sheet into a signup database. Every signup
 * appends one row with a timestamp and the campaign fields.
 *
 * SETUP
 * 1. Create a Google Sheet (this becomes your signup database).
 * 2. Extensions > Apps Script.
 * 3. Delete the sample code and paste this entire file into Code.gs.
 * 4. Deploy > New deployment > Select type: Web app
 *      - Description:    HardHat signups
 *      - Execute as:     Me
 *      - Who has access: Anyone        (required, or rows will not save)
 * 5. Authorize the script when Google asks.
 * 6. Copy the web app URL (it ends in /exec) into your template:
 *      provider: "googlesheets",
 *      endpoint: "https://script.google.com/macros/s/XXXXXXXX/exec"
 * 7. Test: open the web app URL in a browser — it should say
 *    "HardHat Sheets endpoint is live". Then submit a test email.
 */

// Header row written automatically the first time a signup arrives.
var HEADERS = [
  'received_at',
  'email',
  'page',
  'referrer',
  'joined_at',
  'utm_source',
  'utm_medium',
  'utm_campaign',
  'ref'
];

/**
 * Receives the form POST from the signup engine and appends a row.
 */
function doPost(e) {
  try {
    var p = (e && e.parameter) || {};

    // First sheet of the spreadsheet this script is bound to.
    var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];

    // Create the header row if the sheet is empty.
    if (sheet.getLastRow() === 0) {
      sheet.appendRow(HEADERS);
    }

    sheet.appendRow([
      new Date(),            // received_at (server timestamp)
      p.email || '',
      p.page || '',
      p.referrer || '',
      p.joined_at || '',
      p.utm_source || '',
      p.utm_medium || '',
      p.utm_campaign || '',
      p.ref || ''
    ]);

    return ContentService
      .createTextOutput(JSON.stringify({ result: 'success' }))
      .setMimeType(ContentService.MimeType.JSON);
  } catch (err) {
    return ContentService
      .createTextOutput(JSON.stringify({
        result: 'error',
        message: String(err && err.message ? err.message : err)
      }))
      .setMimeType(ContentService.MimeType.JSON);
  }
}

/**
 * Health check. Open the web app URL in a browser to confirm
 * the deployment is alive and pointing at the right sheet.
 */
function doGet() {
  return ContentService.createTextOutput('HardHat Sheets endpoint is live');
}
  1. Deploy > New deployment, choose Web app. Set Execute as: Me and Who has access: Anyone — this step is required, otherwise rows will not save.
  2. Authorize the script when Google asks, then copy the web app URL (it ends in /exec).
  3. Set provider: "googlesheets" and paste the URL into endpoint:
UCON SETTINGS
window.UCON = {
  provider: "googlesheets",
  endpoint: "https://script.google.com/macros/s/XXXXXXXX/exec"
};
  1. Health check: open the web app URL in a browser — it should reply “HardHat Sheets endpoint is live”. Then submit a test email and confirm a row appears.

How it sends — The engine posts FormData with mode: 'no-cors', so the sheet endpoint must accept form-encoded posts — the bundled Code.gs does. Because the request is no-cors, the page can’t read Google’s reply and always shows the success state: verify rows actually appear in the sheet after your test.

Mailchimp

Adds each signup directly to your Mailchimp audience. The engine talks to Mailchimp’s embedded form endpoint via JSONP — the only method Mailchimp allows from other pages — and automatically converts the /post? action URL to /post-json?.

  1. In Mailchimp, go to Audience > Signup forms > Embedded forms and generate the classic embedded form.
  2. Copy the form action URL — it looks like https://…list-manage.com/subscribe/post?u=…&id=….
  3. Set provider: "mailchimp" and paste that URL into endpoint.
  4. Submit a test signup and confirm the address appears in your audience.
UCON SETTINGS
window.UCON = {
  provider: "mailchimp",
  endpoint: "https://yourlist.usXX.list-manage.com/subscribe/post?u=XXXX&id=XXXX"
};

Already subscribed — Mailchimp’s “already subscribed” reply is treated as success, so returning subscribers still see the thank-you state instead of an error.

Netlify Forms

Submissions are posted to / with form-name: signup and appear in your site’s Forms tab. This provider only works when the file is hosted on Netlify — no endpoint needed.

  1. Host the file on Netlify (drag-and-drop the folder or connect your repository).
  2. Paste this hidden detection form just inside the <body> of your template so Netlify registers the form at deploy time:
HTML
<!-- paste just inside <body> so Netlify detects the form at deploy time -->

<form name="signup" method="POST" data-netlify="true" hidden>
  <input type="hidden" name="form-name" value="signup">
  <input type="email" name="email">
</form>
  1. Set provider: "netlify". Rename the form with the formName setting if you like (it defaults to "signup").
  2. Trigger a new deploy so form detection picks the form up, then check Forms in the Netlify dashboard after a test submission.
UCON SETTINGS
window.UCON = {
  provider: "netlify"   // endpoint not needed; formName defaults to "signup"
};

Email notifications, zero code — In the Netlify dashboard go to Forms > Settings > Notifications and add an email address to be notified about every submission. This is the only built-in provider that gives you new-signup emails with no code at all.

Custom API or webhook

Any URL that accepts a JSON POST works: your own backend, a serverless function, Zapier, Make. Set provider: "custom" and paste the URL into endpoint.

UCON SETTINGS
window.UCON = {
  provider: "custom",
  endpoint: "https://api.yourdomain.com/signup"
};

The contract — Chapter 6.2 documents the exact JSON payload, response codes, honeypot behavior and CORS requirements — plus two ready-made mail backends (6.3 and 6.4) that store signups and email you on every new subscriber.

Signup counter

The number on the page shows whatever you set in UCON.signupCount. The engine formats it into every [data-uc-count] element — it is a static figure, not a live total read from your provider.

HTML
<p class="count-note">
  <strong><span data-uc-count="compact" data-uc-suffix=" crews already on the notify list">8,921</span></strong>
</p>
  • Plain mode. Without data-uc-count="compact" the number renders with US thousands separators: 1247 → “1,247”.
  • Compact mode. Values above 999 are shortened: 1247 → “1.2k”, 12400 → “12.4K”. If your markup already shows an uppercase “K”, the engine keeps that style.
  • Suffix. data-uc-suffix appends text after the number (“ crews already on the notify list”).
  • Updating. Just edit UCON.signupCount in the settings block. After a real (non-demo) signup the displayed number also goes up by one locally for that visitor.
  • Opting out. Set signupCount: null to keep your own markup untouched, or delete the whole block if you don’t want a counter.

Not a live count — The counter never queries your provider and does not grow on its own. Update the number yourself (or wire it to your backend later). Don’t promise visitors a real-time total.

Is the progress bar live?

No — progress is a number you set (see chapter 3). Update it as the build advances; the page animates to the new value on load.

Kit feature

Email notifications & backend setup

Providers store signups — but where do you see them, and how do you get an email the moment someone joins? This chapter maps every provider to its data destination, documents the JSON contract your templates speak, and gives you two ready-made backends that email you on every signup.

6.1 — Where signups go today

ProviderWhere the data landsHow to get an email notification
demoNowhere — nothing is saved.—
formspreeFormspree dashboard.Automatic — Formspree emails you after you confirm your address once.
web3formsWeb3Forms service.Automatic — delivered to the inbox tied to your access key.
googlesheetsRows in your Google Sheet.In the sheet: Tools > Notification settings → notify you on changes.
mailchimpYour Mailchimp audience.Mailchimp’s own notifications and welcome automations (per audience settings).
netlifyNetlify Forms dashboard.Forms > Settings > Notifications → add an email. Zero code.
customYour endpoint.You build it — the two ready options below do it for you.

6.2 — The API contract

When provider is "custom", every template sends the same JSON payload to your endpoint:

JSON payload
{
  "email": "ada@example.com",
  "page": "https://yoursite.com/index.html",
  "referrer": "https://x.com/post/123",
  "joined_at": "2026-01-01T10:20:30.000Z",
  "utm_source": "x",
  "utm_medium": "social",
  "utm_campaign": "launch",
  "ref": "newsletter"
}

The utm_* and ref fields are only present when those query parameters were on the page URL.

What your backend must do:

  • Accept a POST with a JSON body.
  • Respond 200 or 201. The body is optional — { "ok": true } is a nice touch.
  • If the honeypot field company_website has any value, respond { "ok": true } but do nothing — it’s a bot.
  • For an invalid email, respond 400.
  • Handle CORS (below) when the page and the API live on different origins.

Because the engine sends Content-Type: application/json, cross-origin browsers send a preflight OPTIONS request first. Answer it with HTTP 204 and these headers:

CORS headers
Access-Control-Allow-Origin: https://your-site.com   (or * while testing)
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: Content-Type

6.3 — Option A: the bundled Node mail backend (recommended, zero coding)

The kit ships hardhat/backend/ — a small Node server that receives signups, stores them, and emails you on every new subscriber. No coding required, just five commands:

  1. Open a terminal in the backend folder:

    cd backend

  2. Install dependencies:

    npm install  (or bun install)

  3. Copy .env.example to .env and fill in your SMTP values plus NOTIFY_EMAIL (full reference in 6.5):

    cp .env.example .env

  4. Start the server:

    node server.js  → listening on http://localhost:8787

  5. Point each template at it — set provider: "custom" and the public HTTPS URL of your deployment:

UCON SETTINGS
window.UCON = {
  provider: "custom",
  endpoint: "https://mail.yourdomain.com/api/signup",
  launchDate: "2026-03-01T09:00:00+05:00"
};

Run it on any Node host (a VPS, Railway, Render, Fly.io) and use its public HTTPS URL as the endpoint. What the bundled backend does:

  • Validates the email server-side and rejects junk with 400.
  • Honeypot trap: a filled company_website field gets a fake success and records nothing.
  • Per-IP rate limiting (10 signups per 15 minutes) and a persistent duplicate guard loaded from data/signups.json.
  • Sends you an HTML-escaped “new signup” email via Nodemailer to NOTIFY_EMAIL.
  • Appends every signup atomically to backend/data/signups.json.
  • GET /health returns { "ok": true, "smtp": true } (with smtp telling you whether mail is configured).
  • Sends the subscriber a welcome email when WELCOME_EMAIL=true.

Keep it alive — On a VPS, run the server under pm2 so it survives reboots: pm2 start server.js --name hardhat-mail. If your site and the backend live on different origins, make sure the deployment answers OPTIONS preflights (see 6.2); same-origin setups behind one domain need nothing extra.

6.4 — Option B: a Next.js / serverless API route

If your site already runs on Next.js (App Router), drop this file in as app/api/signup/route.js. It speaks the exact same contract — JSON in, { ok, notified } out, honeypot and validation included — and leaves a marked spot where you can add Prisma or any database; without one it simply emails you and returns. Run npm install nodemailer in that project first.

app/api/signup/route.js
// app/api/signup/route.js  — drop into any Next.js (App Router) project
import { NextResponse } from "next/server";
import nodemailer from "nodemailer";

const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;

function transport() {
  if (!process.env.SMTP_HOST) return null;               // no SMTP configured -> mail off
  return nodemailer.createTransport({
    host: process.env.SMTP_HOST,
    port: Number(process.env.SMTP_PORT || 587),
    secure: String(process.env.SMTP_SECURE || "false") === "true",
    auth: process.env.SMTP_USER
      ? { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS }
      : undefined,
  });
}

export async function POST(request) {
  let body = {};
  try { body = await request.json(); } catch {}
  if (body.company_website) return NextResponse.json({ ok: true });  // honeypot bot -> pretend success

  const email = String(body.email || "").trim().toLowerCase();
  if (!EMAIL_RE.test(email)) {
    return NextResponse.json({ ok: false, error: "invalid_email" }, { status: 400 });
  }

  // ...store the signup in your database here (optional)...

  const mailer = transport();
  let notified = false;
  if (mailer) {
    try {
      await mailer.sendMail({
        from: process.env.MAIL_FROM || "HardHat <no-reply@example.com>",
        to: process.env.NOTIFY_EMAIL || process.env.MAIL_FROM,
        subject: "New signup — " + email,
        text: "Email: " + email + "\nPage: " + (body.page || "-") + "\nReferrer: " + (body.referrer || "-"),
      });
      notified = true;
    } catch (err) { console.error("[signup] mail failed:", err.message); }
  }
  return NextResponse.json({ ok: true, notified });
}

6.5 — Environment reference

Both options read the same variables (from backend/.env or your host’s environment settings):

VariableValueMeaning
SMTP_HOSTstringYour SMTP server hostname, e.g. smtp.gmail.com.
SMTP_PORTnumber587 (STARTTLS) or 465 (implicit SSL).
SMTP_SECURE"true" / "false"true for port 465, false for port 587.
SMTP_USERstringSMTP username — usually your sending email address.
SMTP_PASSstringSMTP password or app password (never your web login for Gmail).
MAIL_FROMstringSender line, e.g. "HardHat <no-reply@yourdomain.com>" — must be a real address on your domain or replies will bounce.
NOTIFY_EMAILstringWhere “new signup” alerts are sent — your inbox.
WELCOME_EMAIL"true" / "false"Send subscribers a welcome email right after they join.
CORS_ORIGINstring · *Allowed browser origin(s) for cross-origin signups.
TRUST_PROXY"true" / "false"Set true behind reverse proxies so rate limits read the visitor IP.
PORTnumber · 8787Port the bundled backend listens on.

The full .env for the bundled backend, ready to paste:

hardhat/backend/.env
# hardhat/backend/.env
PORT=8787
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=you@gmail.com
SMTP_PASS=your-app-password
MAIL_FROM="HardHat Launch <you@gmail.com>"
NOTIFY_EMAIL=founder@yourstartup.com
WELCOME_EMAIL=true

Provider tips — Gmail: enable 2FA and generate an App Password (Google Account > Security), then use smtp.gmail.com port 587 with SMTP_SECURE=false. Transactional providers — Resend, Brevo, Mailgun, Zoho, Postmark — all hand you SMTP credentials that drop straight into these same variables and deliver more reliably than consumer inboxes.

6.6 — Testing your mail backend

With the server running, poke it from a terminal:

terminal
curl http://localhost:8787/health
curl -X POST http://localhost:8787/api/signup \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","page":"test"}'

Expected responses:

expected response
{"ok":true,"smtp":true}                        ← GET /health
{"ok":true,"duplicate":false,"notified":true}  ← POST /api/signup

Then check two places: your NOTIFY_EMAIL inbox for the alert, and backend/data/signups.json for the stored row.

If smtp is false — A {"ok":true,"smtp":false} health response means email delivery is off (missing or broken .env). Signups are still accepted and stored — you just won’t get notified until SMTP is fixed.

6.7 — Mail & backend troubleshooting

SymptomLikely causeFix
EAUTH in the server log Wrong SMTP user/password, or a missing App Password. Double-check SMTP_USER / SMTP_PASS. Gmail requires an App Password with 2FA enabled.
ETIMEDOUT / ECONNREFUSED Wrong host or port, or the port is blocked on your host. Try SMTP_PORT=587 with SMTP_SECURE=false, then 465 with true.
self signed certificate TLS mode doesn’t match the port. Set SMTP_SECURE correctly: true for 465, false for 587.
Emails land in spam Your sending domain has no SPF/DKIM records. Set SPF/DKIM on the domain, or send via a transactional provider (Resend, Brevo).
“CORS policy” error in the browser console Your endpoint doesn’t answer OPTIONS preflights. Add the CORS headers from 6.2 and answer OPTIONS with HTTP 204.
Nothing happens at all on submit The template still has provider / endpoint unset. Set provider: "custom" and the endpoint in the template file, save, reload.

Customization

  • Colors. Each file starts its CSS with a :root block of variables such as --bg, --text, --accent. Change those and the whole palette follows.
  • Fonts. Swap the Google Fonts <link> in the head and the matching font-family declarations. Files degrade gracefully to system fonts offline.
  • Copy & branding. Every visible string lives in the HTML — search-and-replace the brand name across the title, meta tags, headline and button label.
  • Removing sections. It is safe to delete the counter block, trust rows, chips or social links — each template is one self-contained file with no dependencies, so nothing else breaks.

Safe zones — Edit anything above the scripts freely. Never edit anything below the UCON ENGINE banner — that shared code runs the countdown, capture, spam protection and sharing. And keep the DOM contract ids intact (formSection, emailInput, successMsg, d/h/m/s, [data-uc-count]), or those features stop working (see 3 — The DOM contract).

Accessibility & performance

Accessibility built in

  • The email field is properly labelled; the engine adds aria-label="Email address" if your input has none, and ties the error line to the field with aria-describedby.
  • Errors appear in a role="alert" line; the success message is a role="status" region with aria-live="polite".
  • Visible keyboard focus styles everywhere; Enter submits the form; the button is disabled while sending so double-submits are impossible.
  • Spam protection is an invisible honeypot field — no CAPTCHA, no third-party requests, nothing for humans to solve.
  • Templates respect prefers-reduced-motion.

Performance by construction

  • Zero dependencies. No JS libraries, no icon fonts, no framework — just one HTML file (~28 KB) with inline CSS, inline JS and inline SVG.
  • One request beyond the page itself (Google Fonts), with system-font fallbacks so offline rendering still looks right.
  • Any static host. No server runtime, no build step, no database required to serve the page.

SEO & social cards

Every template ships with the social/SEO head tags already in place: a <title>, a meta description, Open Graph tags (og:title, og:description, og:image) and Twitter card tags (twitter:card, twitter:title, twitter:description). To go live:

  • Swap the og:image URL for your own 1200×630 image — put the file next to the template and update the path (the templates mark the spot with a comment).
  • Rewrite the title and description for your product; they’re plain HTML in <head>.
  • Keep the Twitter card type summary_large_image for the big preview, or switch to summary for a compact card.

FAQ & troubleshooting

The counter and progress bar never change on their own

It’s designed that way — UCON.signupCount and UCON.progress are static numbers you control (see chapter 5 and chapter 3). Edit them whenever you want the displayed values to move.

Visitors see different countdown times

Without an offset, launchDate is interpreted in each visitor’s local time. Use an offset like "2026-03-01T09:00:00+05:00" to count down to one worldwide moment.

How do I change what happens at launch?

Set launchUrl to redirect everyone when the timer hits zero, and/or restyle the page for launch day with the .uc-launched class (see Launch-day behavior).

Checklist for switching providers

  1. Set the new provider value.
  2. Fill in what it needs: endpoint (Formspree, Sheets, Mailchimp, custom) or accessKey (Web3Forms); Netlify needs neither.
  3. Clear the keys the old provider used that the new one doesn’t.
  4. Submit one test signup and confirm it arrived in the new destination.

Will it work offline / without a provider?

The page renders fully offline (fonts fall back to system stacks), and demo mode lets the whole flow be previewed — but demo mode stores nothing, so signups are lost until a provider is set.

Pre-launch checklist

  • Submit once with your own email and confirm it appears in your provider’s dashboard, spreadsheet or inbox.
  • Open the page on a phone (or narrow the window to 375px) and check the countdown stacks 2×2 and the form goes single-column.
  • Set launchDate about two minutes ahead and confirm the countdown targets it and decrements every second.
  • Test the zero state: with a date a few seconds ahead, confirm the timer shows 00s, the uc-launched class is applied and any launchUrl redirect fires.
  • Submit a deliberately invalid email to confirm the inline error appears.

License

Governed by the standard Codester Regular or Extended License under which you purchased this item. See LICENSE-ASSETS.txt for third-party font and optional package credits.

General troubleshooting

SymptomLikely causeFix
Form does nothing after submit The provider is still "demo" (or endpoint is empty for the chosen provider). Set a real provider and fill in its endpoint or accessKey.
Google Sheets rows are missing The web app deployment is not public. Redeploy with Who has access: Anyone, then use the new /exec URL as the endpoint.
Mailchimp reports “already subscribed” That address is on your list already. Nothing to fix — the engine counts it as success and shows the thank-you state.
Fonts do not load Google Fonts require an internet connection. Online it works by default; for offline use, self-host the font files and replace the <link> tags.
Netlify form does not appear in the dashboard Form detection runs at deploy time. Trigger a new deploy after adding the hidden detection form, and check form detection is enabled in site settings.

Mail-specific problems (SMTP errors, CORS, spam delivery) have their own table in 6.7.

What’s next & support

HardHat v1.1.0 includes 20 under-construction pages, six signup providers plus demo mode, the countdown, the animated build progress, honeypot protection, campaign fields, share links, the signup counter, a gallery, this documentation, the hardened Google Sheets endpoint and the bundled mail backend. Release history lives in CHANGELOG.md, and the folder map in README.md.

This is a self-serve kit: the browser console prints [UC] hints when something’s off (demo mode active, empty endpoint, failed requests), and this guide covers the rest. When you’re ready to ship:

Pick a template and launch this week

Browse all 20 designs in the gallery, or check index.html — the kit’s own ready-made sales page — then put your page live in an afternoon.