docs: landing page design and plan
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
commit
4c727bc3f7
3 files changed
+118
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# INS Landing Page — Design
|
||||
|
||||
Approved 2026-12-01.
|
||||
|
||||
## Intent
|
||||
|
||||
A single landing page for Infinity Networks Security Sdn Bhd (INS), covering the company overall, that captures leads through a form. Leads are stored in a database and extracted manually. No admin portal.
|
||||
|
||||
## Goals
|
||||
|
||||
- One page with INS's real content, sourced from https://www.infinitynetworks.com.my/.
|
||||
- Lead form whose submissions persist in a database.
|
||||
- Deployable to our Kubernetes cluster.
|
||||
|
||||
## Non-goals
|
||||
|
||||
Admin portal, email notifications, CAPTCHA, analytics, CMS.
|
||||
|
||||
## Anti-goals
|
||||
|
||||
- Publishing unverified claims. The live site's counters render "0" and the footer says ©2022; use only confirmed facts (founded 2012, 200+ hotels, clients in 5+ countries, 100+ F&B clients).
|
||||
- Losing leads silently. A failed save must show an error to the visitor.
|
||||
|
||||
## Approaches
|
||||
|
||||
- **A. Node + SQLite (chosen).** Node 22 built-ins only (`node:http`, `node:sqlite`). One file DB on a PersistentVolume. Constraint: 1 replica. Upgrade path: swap to cluster Postgres if replicas > 1 are ever needed.
|
||||
- B. PHP + MySQL. Fits shared hosting, poor fit for k8s.
|
||||
- C. Static page + hosted DB (Supabase). Adds an external service and a public key with RLS risk.
|
||||
|
||||
## Design
|
||||
|
||||
- `public/index.html` — inline CSS, INS logo and copy: hero, four industries (Hospitality, Healthcare, Education, F&B), Guest Wi-Fi, OneBox gateway, IT services, track record, contact details, lead form.
|
||||
- Form fields: name, email, phone, company (required); industry select, message (optional); hidden honeypot `website`. Submits with `fetch`, shows inline success/error.
|
||||
- `server.js` — `GET /` serves the page; `POST /api/leads` validates and inserts into `leads` with `created_at`, `referrer`, and UTM params (`utm_source`, `utm_medium`, `utm_campaign`).
|
||||
- DB path from `DB_PATH` env, default `./data/leads.db`; Docker uses `/data/leads.db`.
|
||||
- `server.test.js` — `node:test`: valid lead saved, missing required fields rejected, honeypot dropped.
|
||||
- `Dockerfile` + README with export instructions. No k8s manifests yet (depends on cluster conventions).
|
||||
|
||||
## Left to the builder
|
||||
|
||||
Visual styling, exact section copy wording (from source site), field length limits.
|
||||
Reference in new issue
Block a user