feat: browser tab icon from Infinity's own site icon
CI / build (push) Failing after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-01 12:19:07 +08:00
1 parent 58d4393d9d
commit 6b6215f1b5
6 files changed
+20 -1

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+3
View File
@@ -11,6 +11,9 @@
<!-- [PLACEHOLDER] set og:url to the live page address --> <!-- [PLACEHOLDER] set og:url to the live page address -->
<meta property="og:url" content="https://www.infinitynetworks.com.my/"> <meta property="og:url" content="https://www.infinitynetworks.com.my/">
<!-- [PLACEHOLDER] add a 1200x630 share image: <meta property="og:image" content="https://.../og-image.jpg"> --> <!-- [PLACEHOLDER] add a 1200x630 share image: <meta property="og:image" content="https://.../og-image.jpg"> -->
<link rel="icon" href="/favicon-32.png" sizes="32x32" type="image/png">
<link rel="icon" href="/favicon-192.png" sizes="192x192" type="image/png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
+9 -1
View File
@@ -12,7 +12,15 @@ const SERVICES = ['WiFi Managed Services', 'Cloud IP PABX', 'GRE IPTV', 'Digital
// matches the domain's first label, so yahoo.com.my, hotmail.co.uk etc. are covered. // matches the domain's first label, so yahoo.com.my, hotmail.co.uk etc. are covered.
// ponytail: fixed list of the common providers; extend if sales sees others slip through. // ponytail: fixed list of the common providers; extend if sales sees others slip through.
const FREE_EMAIL = /@(gmail|googlemail|yahoo|ymail|rocketmail|hotmail|outlook|live|msn|icloud|me|mac|aol|protonmail|proton|gmx|yandex|zoho)\.[a-z.]+$/i; const FREE_EMAIL = /@(gmail|googlemail|yahoo|ymail|rocketmail|hotmail|outlook|live|msn|icloud|me|mac|aol|protonmail|proton|gmx|yandex|zoho)\.[a-z.]+$/i;
const PAGES = { '/': ['index.html', 'text/html; charset=utf-8'], '/logo.png': ['logo.png', 'image/png'] }; const PAGES = {
'/': ['index.html', 'text/html; charset=utf-8'],
'/logo.png': ['logo.png', 'image/png'],
// tab icons from infinitynetworks.com.my; /favicon.ico is what browsers try when no <link> is found
'/favicon.ico': ['favicon-32.png', 'image/png'],
'/favicon-32.png': ['favicon-32.png', 'image/png'],
'/favicon-192.png': ['favicon-192.png', 'image/png'],
'/apple-touch-icon.png': ['apple-touch-icon.png', 'image/png'],
};
// Kept identical to docs/schema.sql (a test compares the two). // Kept identical to docs/schema.sql (a test compares the two).
const SCHEMA = `CREATE TABLE IF NOT EXISTS leads ( const SCHEMA = `CREATE TABLE IF NOT EXISTS leads (
+8
View File
@@ -62,6 +62,14 @@ test('serves the landing page', async () => {
assert.match(res.headers.get('content-type'), /text\/html/); assert.match(res.headers.get('content-type'), /text\/html/);
}); });
test('serves the browser tab icons', async () => {
for (const url of ['/favicon.ico', '/favicon-32.png', '/favicon-192.png', '/apple-touch-icon.png']) {
const res = await fetch(`${base}${url}`);
assert.strictEqual(res.status, 200, url);
assert.strictEqual(res.headers.get('content-type'), 'image/png', url);
}
});
test('valid lead is stored', async () => { test('valid lead is stored', async () => {
const res = await post(valid); const res = await post(valid);
assert.strictEqual(res.status, 201); assert.strictEqual(res.status, 201);