~/projects/sanmin-website⎇ main✓❯cat case-study.md
Sanmin Globe: Company Website & CMS
The public site for my father's chemical distribution company, rebuilt from a static page into a Next.js site with its own admin: product catalogue, quote requests, editable SEO, and privacy-friendly analytics. Live at thangchem.sanminglobe.com.
- Solo developer
- Jul 2025 – Sep 2026
- shipped
Context
PT. Sarana Mitra Inti Global (SANMIN GLOBE) is my father’s company in West Jakarta. It supplies chemical raw materials for personal care, home care, and food and beverage. Its buyers are procurement teams, so the site has to rank for the products they search for, let them request a quote quickly, and stay up to date without a developer.
The first version, in 2025, was a static HTML site with a contact form, a map, and articles. In 2026 I rebuilt it from scratch as a Next.js app with its own content management.
What I built
- Catalogue and storefront. Product, category, article, and about pages in Indonesian, with product specifications, YouTube previews, and a hero carousel. The 55 product images were generated with Gemini and stored in Supabase.
- An admin the company runs itself. Products, articles, services, and SEO are all edited in an admin panel with a rich text editor (Tiptap). Uploads over 300 KB or 1,200 px are converted to WebP automatically.
- Quote requests to replies. The site’s request-for-quote form saves into an admin inbox with a status, internal notes, and one-click WhatsApp or email follow-up.
- SEO that survives edits. Canonical, Open Graph, and Twitter metadata on every page from one helper, with SEO titles, descriptions, and share images editable per page. Product slugs are stored instead of derived from the name, and renamed products 308-redirect through a database-maintained redirect table, so old links keep working. It also has indexable category pages, an hourly sitemap, and JSON-LD limited to facts already published on the site.
- Privacy-friendly analytics. First-party, cookie-free tracking of page views and WhatsApp, email, phone, and quote events. Visitors are counted with a daily salted hash, and raw IPs are never stored.
- Secure admin access. Admins are an allowlist in Supabase, and row-level security guards every read and write. A brief Supabase outage no longer signs admins out: the check retries once, and a request with a session cookie is let through.
Stack
Next.js 16 · React 19 · TypeScript · Supabase (Postgres, Auth, Storage) · Tailwind CSS 4 · Tiptap · Motion · Gemini · Vercel
~/projects/sanmin-website⎇ main✓❯cat links.md