Both images converted to WebP (1.4 MB and 2.0 MB PNG down to 60 KB and 100 KB) and served from the PAGES map. The photo already carries the network lines, so the inline SVG pattern is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfjzaeuedkpHBD7LkFm
This commit is contained in:
1 parent
6b6215f1b5
commit
b182700fff
6 files changed
+17
-22
No files matched your search
@@ -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
|
## 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).
|
- Backup confirmation (see above).
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
+6
-21
@@ -58,8 +58,8 @@
|
|||||||
@media (max-width: 420px) { header .btn { padding: 9px 14px; font-size: .85rem; } }
|
@media (max-width: 420px) { header .btn { padding: 9px 14px; font-size: .85rem; } }
|
||||||
|
|
||||||
/* Hero */
|
/* Hero */
|
||||||
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy), var(--midnight)); padding: 72px 0 88px; }
|
/* the photo already darkens its left side for the headline; the gradient keeps text readable where it doesn't */
|
||||||
.hero .net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; pointer-events: none; }
|
.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 .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 h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
|
||||||
.hero .sub { font-size: 1.15rem; color: #d5dde6; max-width: 32em; }
|
.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 { 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); }
|
.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; }
|
.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 */
|
||||||
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
|
.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 svg { width: 24px; height: 24px; color: var(--gold-ink); margin-top: 2px; }
|
||||||
.why li strong { display: block; color: var(--navy); }
|
.why li strong { display: block; color: var(--navy); }
|
||||||
.why li span { color: var(--muted); font-size: .95rem; }
|
.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; }
|
.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; } .img-ph { aspect-ratio: 16 / 9; } }
|
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why-photo { aspect-ratio: 4 / 3; object-position: center 40%; } }
|
||||||
|
|
||||||
.faq { max-width: 780px; }
|
.faq { max-width: 780px; }
|
||||||
.faq details { border-bottom: 1px solid var(--line); }
|
.faq details { border-bottom: 1px solid var(--line); }
|
||||||
@@ -188,20 +188,6 @@
|
|||||||
|
|
||||||
<main id="top">
|
<main id="top">
|
||||||
<section class="hero on-dark" aria-labelledby="hero-title">
|
<section class="hero on-dark" aria-labelledby="hero-title">
|
||||||
<!-- abstract connectivity pattern -->
|
|
||||||
<svg class="net" viewBox="0 0 1200 600" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
|
|
||||||
<g stroke="#e0b04a" stroke-width="1" fill="none">
|
|
||||||
<path d="M80 480 L260 360 L420 420 L600 260 L780 320 L960 160 L1140 220"/>
|
|
||||||
<path d="M260 360 L340 180 L600 260 M780 320 L860 500 L1040 420 L960 160"/>
|
|
||||||
<path d="M420 420 L520 560 M600 260 L700 80 L960 160"/>
|
|
||||||
</g>
|
|
||||||
<g fill="#e0b04a">
|
|
||||||
<circle cx="80" cy="480" r="4"/><circle cx="260" cy="360" r="5"/><circle cx="420" cy="420" r="4"/>
|
|
||||||
<circle cx="600" cy="260" r="6"/><circle cx="780" cy="320" r="4"/><circle cx="960" cy="160" r="5"/>
|
|
||||||
<circle cx="1140" cy="220" r="4"/><circle cx="340" cy="180" r="3"/><circle cx="860" cy="500" r="3"/>
|
|
||||||
<circle cx="1040" cy="420" r="4"/><circle cx="520" cy="560" r="3"/><circle cx="700" cy="80" r="4"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<div>
|
<div>
|
||||||
<!-- [PLACEHOLDER] Optional event badge. To show it, move the line below out of this comment and fill it in.
|
<!-- [PLACEHOLDER] Optional event badge. To show it, move the line below out of this comment and fill it in.
|
||||||
@@ -346,8 +332,7 @@
|
|||||||
<li class="reveal"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12l5 5L20 7"/></svg><div><strong>Built for multiple properties</strong><span>A proven rollout playbook to bring every site up to the same standard.</span></div></li>
|
<li class="reveal"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12l5 5L20 7"/></svg><div><strong>Built for multiple properties</strong><span>A proven rollout playbook to bring every site up to the same standard.</span></div></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- [PLACEHOLDER] Replace with a hotel photo, e.g. <img src="/hotel.jpg" alt="..." style="width:100%;border-radius:18px">, and add the file to PAGES in server.js -->
|
<img class="why-photo reveal" src="/why-iptv.webp" width="1122" height="1402" loading="lazy" alt="Infinity technician mounting an in-room TV showing the hotel IPTV menu in a guest room">
|
||||||
<div class="img-ph reveal" role="img" aria-label="Hotel photo placeholder">Hotel photo placeholder<br>(lobby or guest room, 4:5)</div>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
@@ -20,6 +20,8 @@ const PAGES = {
|
|||||||
'/favicon-32.png': ['favicon-32.png', 'image/png'],
|
'/favicon-32.png': ['favicon-32.png', 'image/png'],
|
||||||
'/favicon-192.png': ['favicon-192.png', 'image/png'],
|
'/favicon-192.png': ['favicon-192.png', 'image/png'],
|
||||||
'/apple-touch-icon.png': ['apple-touch-icon.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).
|
// Kept identical to docs/schema.sql (a test compares the two).
|
||||||
|
|||||||
@@ -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 () => {
|
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);
|
||||||
|
|||||||
Reference in new issue
Block a user