Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
2.1 KiB
2.1 KiB
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 withfetch, shows inline success/error. server.js—GET /serves the page;POST /api/leadsvalidates and inserts intoleadswithcreated_at,referrer, and UTM params (utm_source,utm_medium,utm_campaign).- DB path from
DB_PATHenv, 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.