nxtgauge-gitops/coming-soon
sync-test e752326411
All checks were successful
sync-to-github / sync (push) Successful in 6s
feat: wire the coming-soon waitlist form to POST /api/waitlist
Backend endpoint already deployed (nxtgauge-backend-rust
apps/users/src/handlers/waitlist.rs, routed through the gateway).

- ingress.yaml: route /api on nxtgauge.com and www.nxtgauge.com to
  nxtgauge-rust-gateway:9100, same 'more specific paths first' pattern
  nxtgauge-frontend-solid's ingress already uses - the coming-soon
  page is a static nginx site with no backend of its own.
- index.html: handleSubmit now actually awaits the fetch instead of
  unconditionally showing success after a commented-out example call.
  Disables the submit button while in flight, added a form-error state
  for a failed request (was previously just documented, not wired).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-14 03:58:31 +05:30
..
assets Add nxtgauge.com coming soon page 2026-08-06 19:31:59 +02:00
index.html feat: wire the coming-soon waitlist form to POST /api/waitlist 2026-08-14 03:58:31 +05:30
nginx.conf Add nxtgauge.com coming soon page 2026-08-06 19:31:59 +02:00
README.md Add nxtgauge.com coming soon page 2026-08-06 19:31:59 +02:00

Nxtgauge — Coming Soon Page

Pre-launch page for nxtgauge.com.

Folder structure

nxtgauge-coming-soon/
├── index.html                        ← the page
├── nginx.conf                        ← nginx config for nxtgauge.com
├── assets/
│   ├── nxtgauge-logo.png             ← Nxtgauge logo (white-filtered via CSS)
│   └── traceworks-trademark-white.svg ← Traceworks logo (footer)
└── README.md

Deploy with nginx (on your K3s server)

  1. Copy the folder contents to the server:

    scp -r nxtgauge-coming-soon/ user@your-server:/var/www/nxtgauge-coming-soon/
    
  2. In your nginx config, point nxtgauge.com to this folder:

    root /var/www/nxtgauge-coming-soon;
    
  3. Or use the included nginx.conf directly.

Deploy with Docker (static nginx)

FROM nginx:alpine
COPY . /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
docker build -t nxtgauge-coming-soon .
docker run -p 80:80 nxtgauge-coming-soon

Deploy via Flux / K3s (gitops)

Add this repo to your nxtgauge-gitops Kustomize setup and create a Deployment + Service + Ingress pointing nxtgauge.com at the nginx container.

Waitlist email hook

The "Notify Me" form currently logs to console. To capture emails, wire it to your backend by uncommenting the fetch block in index.html:

fetch('/api/waitlist', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ email })
});

Or point it to an external service (Brevo, Mailchimp, Resend, etc.).