diff --git a/docs/deployment-handover.md b/docs/deployment-handover.md index 00cd49b..882370e 100644 --- a/docs/deployment-handover.md +++ b/docs/deployment-handover.md @@ -109,7 +109,7 @@ Connect to `127.0.0.1:15432`, database `ins`, user `ins`. Get the password with ## Open items, not blocking the install -- Content placeholders on the page: follow-up timeframe, installation timeline, hotel photo. These are with the page owner. +- Content placeholders on the page: follow-up timeframe and installation timeline. These are with the page owner. - Backup confirmation (see above). ## Contact diff --git a/public/hero-bg.webp b/public/hero-bg.webp new file mode 100644 index 0000000..5d59db9 Binary files /dev/null and b/public/hero-bg.webp differ diff --git a/public/index.html b/public/index.html index a74e8de..c5555fe 100644 --- a/public/index.html +++ b/public/index.html @@ -58,8 +58,8 @@ @media (max-width: 420px) { header .btn { padding: 9px 14px; font-size: .85rem; } } /* Hero */ - .hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy), var(--midnight)); padding: 72px 0 88px; } - .hero .net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; } + /* the photo already darkens its left side for the headline; the gradient keeps text readable where it doesn't */ + .hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(10, 26, 44, .55), rgba(10, 26, 44, .1) 70%), url(/hero-bg.webp) center / cover, var(--midnight); padding: 72px 0 88px; } .hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; } .hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); } .hero .sub { font-size: 1.15rem; color: #d5dde6; max-width: 32em; } @@ -67,7 +67,7 @@ .hero .points li { display: flex; gap: 10px; align-items: baseline; } .hero .points li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); } .badge { display: inline-block; margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(224,176,74,.5); border-radius: 999px; color: var(--gold); font-size: .85rem; } - @media (max-width: 920px) { .hero { padding: 48px 0 56px; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } } + @media (max-width: 920px) { .hero { padding: 48px 0 56px; background: linear-gradient(rgba(10, 26, 44, .72), rgba(10, 26, 44, .72)), url(/hero-bg.webp) 70% center / cover, var(--midnight); } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } } /* Form */ .form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); } @@ -138,8 +138,8 @@ .why li svg { width: 24px; height: 24px; color: var(--gold-ink); margin-top: 2px; } .why li strong { display: block; color: var(--navy); } .why li span { color: var(--muted); font-size: .95rem; } - .img-ph { aspect-ratio: 4 / 5; border-radius: 18px; border: 2px dashed #c3cad2; background: repeating-linear-gradient(135deg, var(--mist) 0 14px, #eef0ee 14px 28px); display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px; } - @media (max-width: 860px) { .why { grid-template-columns: 1fr; } .img-ph { aspect-ratio: 16 / 9; } } + .why-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; } + @media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why-photo { aspect-ratio: 4 / 3; object-position: center 40%; } } .faq { max-width: 780px; } .faq details { border-bottom: 1px solid var(--line); } @@ -188,20 +188,6 @@
- -
- + Infinity technician mounting an in-room TV showing the hotel IPTV menu in a guest room
diff --git a/public/why-iptv.webp b/public/why-iptv.webp new file mode 100644 index 0000000..9526a98 Binary files /dev/null and b/public/why-iptv.webp differ diff --git a/server.js b/server.js index f5f53ed..19e52de 100644 --- a/server.js +++ b/server.js @@ -20,6 +20,8 @@ const PAGES = { '/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'], + '/hero-bg.webp': ['hero-bg.webp', 'image/webp'], + '/why-iptv.webp': ['why-iptv.webp', 'image/webp'], }; // Kept identical to docs/schema.sql (a test compares the two). diff --git a/server.test.js b/server.test.js index 7313c7f..de838b2 100644 --- a/server.test.js +++ b/server.test.js @@ -70,6 +70,14 @@ test('serves the browser tab icons', async () => { } }); +test('serves the page photos', async () => { + for (const url of ['/hero-bg.webp', '/why-iptv.webp']) { + const res = await fetch(`${base}${url}`); + assert.strictEqual(res.status, 200, url); + assert.strictEqual(res.headers.get('content-type'), 'image/webp', url); + } +}); + test('valid lead is stored', async () => { const res = await post(valid); assert.strictEqual(res.status, 201);