Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,9 @@ const featuredBlurbs: Record<string, string> = {
white-space: normal;
line-height: 1.25;
}
.rotator { display: block; margin: 0.18em auto 0; }
/* Never let a long phrase push wider than the line; the JS width is
capped to the line so the word stays centered and fully visible. */
.rotator { display: block; margin: 0.18em auto 0; max-width: 100%; }
}
/* Box hugs the current word (auto width) — no dead space — and clips the
vertical slide. Width eases between words so it never jumps. */
Expand Down Expand Up @@ -3158,13 +3160,18 @@ const featuredBlurbs: Record<string, string> = {
var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;

// Size the box to the current word so it hugs it (no dead space).
function fit() { box.style.width = word.offsetWidth + 'px'; }
function fit() {
var max = box.parentElement ? box.parentElement.clientWidth : Infinity;
box.style.width = Math.min(word.offsetWidth, max) + 'px';
}
// Wait for fonts, then lock the initial width.
if (document.fonts && document.fonts.ready) { document.fonts.ready.then(fit); }
fit();
window.addEventListener('resize', fit);
var compact = window.matchMedia && window.matchMedia('(max-width: 760px)').matches;
if (reduce || compact) return;
// Rotate on every viewport. Mobile used to bail out here, which froze the
// line on "discover other agents" for phones; the sr-only copy still lists
// every phrase, so nothing about accessibility changes by rotating.
if (reduce) return;

var i = 0;
setInterval(function () {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/plain/index.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
// Auto-generated by scripts/regen-plain.mjs. Edit the marketing source and re-run.
// plain-source: src/pages/index.astro
// plain-source-sha256: 15afa2149ff0d10f89e71a2218af4464b93917a277c989f6c39de66bfbba637c
// plain-source-sha256: 6292db0499aac89ff3bc9dd344c4d39caf53ed95e59acae6692b4946f8869918
import PlainLayout from '../../layouts/PlainLayout.astro';
---
<PlainLayout title="Pilot Protocol — plain" description="Pilot Protocol is an overlay network for AI agents: virtual addresses, ports, and encrypted tunnels over UDP." canonical="https://pilotprotocol.network/plain/">
Expand Down
Loading