diff --git a/public/admin.html b/public/admin.html index bc9feb1..9b606c6 100644 --- a/public/admin.html +++ b/public/admin.html @@ -14,7 +14,7 @@ - +
@@ -29,9 +29,9 @@
- - + + - + diff --git a/public/art/seedling-hands-poster.webp b/public/art/seedling-hands-poster.webp new file mode 100644 index 0000000..4d9730a Binary files /dev/null and b/public/art/seedling-hands-poster.webp differ diff --git a/public/art/seedling-hands.mp4 b/public/art/seedling-hands.mp4 new file mode 100644 index 0000000..59a8c2e Binary files /dev/null and b/public/art/seedling-hands.mp4 differ diff --git a/public/art/seedling-hands.webm b/public/art/seedling-hands.webm new file mode 100644 index 0000000..b57be20 Binary files /dev/null and b/public/art/seedling-hands.webm differ diff --git a/public/assets/front.js b/public/assets/front.js index b232f5d..09800e9 100644 --- a/public/assets/front.js +++ b/public/assets/front.js @@ -18,3 +18,8 @@ // PolHunter embed (the network pattern): the find code hides in one of the three steps. The mission is added in polhunter.com/admin at go-live. const ph = document.createElement('script'); ph.async = true; ph.src = 'https://polhunter.com/embed.js'; ph.setAttribute('data-slots', '3'); ph.setAttribute('data-selector', '#how .step'); document.body.appendChild(ph); })(); +// seedling band: honour reduced motion (poster only) +(function () { var v = document.getElementById('growVid'); if (!v) return; + try { if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { v.removeAttribute('autoplay'); v.pause(); return; } } catch (e) {} + var go = function () { var r = v.play(); if (r && r.catch) r.catch(function () {}); }; + if (v.readyState >= 2) go(); else v.addEventListener('canplay', go, { once: true }); })(); diff --git a/public/assets/ypb.css b/public/assets/ypb.css index ca901d9..2c056b5 100644 --- a/public/assets/ypb.css +++ b/public/assets/ypb.css @@ -182,3 +182,14 @@ footer.foot .here{font-weight:700;color:var(--leafInk)} @media (max-width:560px){.bed{grid-template-columns:1fr}.steps{grid-template-columns:1fr}.step{border-right:0;border-bottom:2px dashed var(--line)}.step:last-child{border-bottom:0}nav.links{gap:4px 12px;font-size:14px}} @media (prefers-reduced-motion:no-preference){.bar>span{transition:width .6s ease}} @media (prefers-reduced-motion:reduce){.toast{transition:none}} +/* seedling video band (home): fixed dark look in both themes, like the light .plate */ +.grow{position:relative;margin-block:8px 26px;border:2px solid var(--ink);border-radius:18px;overflow:hidden;aspect-ratio:2/1;max-height:600px;display:flex;align-items:center;justify-content:flex-end;background:#0C1712} +.grow>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:30% 25%} +.grow::before{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(12,23,18,.92) 0%,rgba(12,23,18,.6) 45%,rgba(12,23,18,0) 70%);z-index:1} +.grow .copy{position:relative;z-index:2;max-width:460px;padding:30px clamp(18px,4vw,44px);min-width:0;color:#EEF6EA} +.grow .kicker{color:#7FD8A0} +.grow h2{margin:10px 0 12px;color:#fff;text-wrap:balance} +.grow p{margin:0 0 18px;color:#D3E4D7} +.grow .btn.primary{background:#F2620F;color:#fff;border-color:#F2620F} +@media (max-width:900px){.grow{aspect-ratio:auto;min-height:420px}} +@media (max-width:700px){.grow{display:block;min-height:0}.grow>video{position:relative;display:block;aspect-ratio:16/9;height:auto}.grow::before{display:none}.grow .copy{max-width:none;padding:20px 18px 22px}} diff --git a/public/contract.html b/public/contract.html index d3942fe..47961cc 100644 --- a/public/contract.html +++ b/public/contract.html @@ -14,7 +14,7 @@ - +
@@ -38,9 +38,9 @@

Every order is signed by the site's keeper key, which names the buyer's sponsor line from the network hub. The keeper cannot move money: it can only sign orders that the buyer pays.

- - + + - + diff --git a/public/disclaimer.html b/public/disclaimer.html index b066790..6097b3f 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -14,7 +14,7 @@ - +
@@ -27,8 +27,8 @@

Any figures on this site are examples or live records of what already happened on chain (the ledger), never a forecast.

- - + + diff --git a/public/guide-faq.html b/public/guide-faq.html index c6bf5bd..a2b43de 100644 --- a/public/guide-faq.html +++ b/public/guide-faq.html @@ -14,7 +14,7 @@ - + @@ -23,8 +23,8 @@
Guides

FAQ

Is YourProgramBuilder free?

Yes. Signing in, planting one program and saving IDs are free. A Spotlight is an optional one-time purchase.

How many programs can I plant?

One packet per member at a time. Remove yours to plant a different one. Saving IDs in other packets has no limit.

Why is my packet not showing?

Its link check is yellow (waiting for a person) or red (the link did not load). Check it on My packets. Edits are checked again.

What happens at 10 saves?

The packet goes to Marty's review for the Crypto Team Build Network builder. Approved, it is added there and to DownlineHydra's wild heads with every saved ID. Reaching the number does not guarantee approval.

Whose link does a visitor see?

A visitor through a member sees that member's link first. A signed-in member sees the nearest saved ID up their sponsor line, then the planter's.

Can I plant a program that is already in the builder?

No. Save your ID for it on DownlineHydra's wild heads instead.

Do I need a Spotlight to earn?

No. Spotlight shares go to the buyer's sponsor line, and anyone in it with a network sign-in and a linked wallet is paid. Nothing is promised.

Which wallet do I use?

SafePal or any other crypto wallet on Polygon.

I was a member of the old YourProgramBuilder. What happened to my account?

Old members were matched to the network by email and keep their sponsor. Old links open your new member page. Programs you added come back as dormant packets you confirm on My packets. Old balances were not carried over.

How do I get help?

Network support at instantadpay.com/support handles every network site.

- - + + diff --git a/public/guide-free.html b/public/guide-free.html index 88a89b0..f78ba1e 100644 --- a/public/guide-free.html +++ b/public/guide-free.html @@ -14,7 +14,7 @@ - +
@@ -31,8 +31,8 @@

Nothing here needs a purchase. Nothing is promised.

- - + + diff --git a/public/guide-how.html b/public/guide-how.html index d6da4ff..8974af3 100644 --- a/public/guide-how.html +++ b/public/guide-how.html @@ -14,7 +14,7 @@ - +
@@ -32,8 +32,8 @@

A one-time Spotlight ($10 for 1,000 guaranteed views) puts a packet at the top of the Seed Bed until its views are delivered. It is optional: planting and saving IDs are free. More about Spotlights.

- - + + diff --git a/public/guide-legit.html b/public/guide-legit.html index 0ac5d7a..00b1e17 100644 --- a/public/guide-legit.html +++ b/public/guide-legit.html @@ -14,7 +14,7 @@ - +
@@ -35,8 +35,8 @@

Nothing is promised. See the earnings disclaimer.

- - + + diff --git a/public/guide-planting.html b/public/guide-planting.html index f9b0261..94f2f1e 100644 --- a/public/guide-planting.html +++ b/public/guide-planting.html @@ -14,7 +14,7 @@ - +
@@ -31,8 +31,8 @@

Tell the people you work with to save their IDs in it. Every visitor who comes through them sees their link first, so saving an ID is worth it for them too. A Spotlight is optional.

- - + + diff --git a/public/guides.html b/public/guides.html index 79b46f1..6061354 100644 --- a/public/guides.html +++ b/public/guides.html @@ -14,7 +14,7 @@ - +
@@ -24,8 +24,8 @@

Short guides to the Seed Bed, checked against how the site really works.

- - + + diff --git a/public/index.html b/public/index.html index 15daa7b..6db4286 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ - +
@@ -48,6 +48,17 @@

About Spotlights

+
+ +
+
Start with one
+

Hand the network a program you already use.

+

Plant it once. Every member who saves an ID helps it grow, and at 10 saves it goes to review for the Crypto Team Build Network builder with every saved ID carried along.

+ Plant a program, free +
+
@@ -60,9 +71,9 @@

Programs in the Seed Bed are planted by members. They are outside programs: read each one's own terms before you join. A packet is the planter's description, not a recommendation.

- - + + - + diff --git a/public/ledger.html b/public/ledger.html index 753f660..f43a3b8 100644 --- a/public/ledger.html +++ b/public/ledger.html @@ -14,7 +14,7 @@ - +
@@ -27,9 +27,9 @@
WhenBuyerPacketPaidSplitDelivery
Loading...
- - + + - + diff --git a/public/member.html b/public/member.html index d358bdd..ee36133 100644 --- a/public/member.html +++ b/public/member.html @@ -14,7 +14,7 @@ - +
@@ -28,9 +28,9 @@
- - + + - + diff --git a/public/my.html b/public/my.html index 15015d4..25dce67 100644 --- a/public/my.html +++ b/public/my.html @@ -14,7 +14,7 @@ - +
@@ -73,10 +73,10 @@
- - + + - - + + diff --git a/public/packet.html b/public/packet.html index ccf7647..ee48e15 100644 --- a/public/packet.html +++ b/public/packet.html @@ -14,7 +14,7 @@ - +
@@ -55,9 +55,9 @@
- - + + - + diff --git a/public/privacy.html b/public/privacy.html index 26d463e..d5bc7aa 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -14,7 +14,7 @@ - +
@@ -37,8 +37,8 @@

Remove a saved ID or your packet any time on My packets. To erase your network account, open network support.

- - + + diff --git a/public/promote.html b/public/promote.html index 193bb52..37ad325 100644 --- a/public/promote.html +++ b/public/promote.html @@ -14,7 +14,7 @@ - +
@@ -30,9 +30,9 @@

- - + + - + diff --git a/public/spotlight.html b/public/spotlight.html index 75bcb8f..8c41af8 100644 --- a/public/spotlight.html +++ b/public/spotlight.html @@ -14,7 +14,7 @@ - +
@@ -45,11 +45,11 @@
- - + + - - - + + + diff --git a/public/terms.html b/public/terms.html index 38b5bd9..c8d24df 100644 --- a/public/terms.html +++ b/public/terms.html @@ -14,7 +14,7 @@ - +
@@ -43,8 +43,8 @@

Network support: instantadpay.com/support.

- - + + diff --git a/public/transplanted.html b/public/transplanted.html index 98fca3f..2a7016e 100644 --- a/public/transplanted.html +++ b/public/transplanted.html @@ -14,7 +14,7 @@ - +
@@ -26,9 +26,9 @@

Loading...

- - + + - + diff --git a/server.js b/server.js index 07d5b5c..f367dca 100644 --- a/server.js +++ b/server.js @@ -52,7 +52,8 @@ const TEST_SWITCH = C.staging && !/(^|\.)yourprogrambuilder\.com$/i.test(C.site) // ---- http helpers ---- const MIME = { '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': 'text/javascript', '.png': 'image/png', '.jpg': 'image/jpeg', '.webp': 'image/webp', - '.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml' }; + '.gif': 'image/gif', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.json': 'application/json', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml', + '.mp4': 'video/mp4', '.webm': 'video/webm' }; const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://linkspin.app https://polhunter.com; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; " + "img-src 'self' data: blob: https:; connect-src 'self' https://linkspin.app https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org " + "https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com; " @@ -67,6 +68,19 @@ function sendFile(res, file, extra, code) { res.end(data); }); } +// video needs byte ranges (Safari will not play it without them) +function sendMedia(req, res, file) { + fs.stat(file, (err, st) => { + if (err || !st.isFile()) { res.writeHead(404, headers({ 'Content-Type': 'text/plain' })); return res.end('Not found'); } + const base = { 'Content-Type': MIME[path.extname(file).toLowerCase()], 'Accept-Ranges': 'bytes', 'Cache-Control': 'public, max-age=86400' }; + const m = /^bytes=(\d*)-(\d*)$/.exec(req.headers.range || ''); + if (!m || (!m[1] && !m[2])) { res.writeHead(200, headers(Object.assign(base, { 'Content-Length': st.size }))); return fs.createReadStream(file).pipe(res); } + let a = m[1] ? +m[1] : Math.max(0, st.size - +m[2]), b = m[1] && m[2] ? Math.min(+m[2], st.size - 1) : st.size - 1; + if (a > b || a >= st.size) { res.writeHead(416, headers({ 'Content-Range': 'bytes */' + st.size })); return res.end(); } + res.writeHead(206, headers(Object.assign(base, { 'Content-Range': 'bytes ' + a + '-' + b + '/' + st.size, 'Content-Length': b - a + 1 }))); + fs.createReadStream(file, { start: a, end: b }).pipe(res); + }); +} function readRaw(req, max) { return new Promise((resolve, reject) => { const ch = []; let n = 0; req.on('data', c => { n += c.length; if (n > max * 8) { req.destroy(); return; } if (n <= max) ch.push(c); }); @@ -268,7 +282,7 @@ const server = http.createServer(async (req, res) => { if (p === '/robots.txt') { res.writeHead(200, headers({ 'Content-Type': 'text/plain; charset=utf-8' })); return res.end(C.staging ? 'User-agent: *\nDisallow: /\n' : 'User-agent: *\nAllow: /\nDisallow: /my\nDisallow: /admin\nDisallow: /api/\nDisallow: /go/\nDisallow: /sso/\n\nSitemap: https://' + C.site + '/sitemap.xml\n'); } if (p.startsWith('/assets/') || p.startsWith('/art/') || p === '/favicon.ico') { const f = path.normalize(path.join(PUB, p === '/favicon.ico' ? '/art/icon-192.png' : p)); if (!f.startsWith(PUB + path.sep)) { res.writeHead(400); return res.end(); } - return sendFile(res, f); + return /\.(mp4|webm)$/i.test(f) ? sendMedia(req, res, f) : sendFile(res, f); } // click relay: /go/?v=&p=&r= -> the sponsor-first referral link (LinkSpin tracked when on) const gm = /^\/go\/(\d{1,9})$/.exec(p);