Stack POL Pro: the member's LinkSpin Video Spin on their page ('Watch @user's videos', up to three Social Tube posters, every tap opens the spin link); Video Spins no longer listed among the plain spin links; My Stack POL says which Video Spin shows or how to make a first video (Marty 2026-11-23)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-23 07:38:30 -06:00
parent 57d04c97dc
commit b97a4db7ec
4 changed files with 31 additions and 3 deletions
+12 -1
View File
@@ -92,6 +92,7 @@ footer.site b{display:block;color:var(--ink);font:700 14px var(--display);margin
.procta{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;border:1px solid var(--violet);border-radius:18px;padding:18px 20px;margin:30px 0;background:linear-gradient(135deg,rgba(130,71,229,.16),transparent)}
.procta div{flex:1 1 280px;min-width:0}.procta b{display:block;font:800 18px var(--display);margin-bottom:4px}.procta span{color:var(--muted)}
@media (max-width:640px){.prorow{grid-template-columns:1fr}.qr{margin:0 auto}}
.myvids{margin:28px 0}.vrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,220px));gap:14px}.vcard{position:relative;display:block;aspect-ratio:9/16;max-width:100%;border-radius:16px;overflow:hidden;background:var(--panel);border:1px solid var(--line);color:#fff;text-decoration:none}.vcard img{width:100%;height:100%;object-fit:cover;display:block}.vcard .vplay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;background:rgba(20,10,40,.72);display:grid;place-items:center}.vcard b{position:absolute;left:0;right:0;bottom:0;padding:26px 10px 10px;font:700 13px/1.3 var(--body);background:linear-gradient(transparent,rgba(10,5,25,.85))}
/* My Stack POL (2026-11-19) */
nav.top a.mylink{color:#160b02;background:var(--gold);border-radius:999px;padding:3px 12px;margin-left:2px}nav.top a.mylink:hover,nav.top a.mylink[aria-current]{color:#160b02;background:#ffd27a}
.myhero{padding:26px 0 4px}.myhead{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.soform{margin:0}
@@ -186,6 +187,16 @@ function memberLinks(who, st) {
const links = (st && st.pro && st.pro.links) || []; if (!links.length) return '';
return '<div class="mylinks"><p class="kick">@' + esc(who) + ' recommends</p><div class="ml">' + links.map(l => '<a class="chip" href="https://' + MEMBER_HOST + '/r/' + esc(l.code) + '" target="_blank" rel="sponsored noopener">' + esc(l.name || 'Open link') + ' &rarr;</a>').join('') + '</div></div>';
}
// Stack POL Pro (Marty 2026-11-23): the member's LinkSpin Video Spin. One short link that opens a different one of their Social Tube
// videos each visit (made on Video App Income); LinkSpin counts the plays. Up to three posters, every one opens the same spin link.
function memberVideos(who, st) {
const v = st && st.pro && st.pro.video; if (!v || !/^[A-Za-z0-9]{3,20}$/.test(v.code || '')) return '';
const url = 'https://' + MEMBER_HOST + '/r/' + v.code, ps = (v.posters || []).filter(p => /^https:\/\/socialtube\.club\//.test(p.poster || '')).slice(0, 3);
const a = inner => '<a class="vcard" href="' + url + '" target="_blank" rel="noopener">' + inner + '</a>';
const play = '<span class="vplay" aria-hidden="true"><svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></span>';
const cards = ps.length ? ps.map(p => a('<img src="' + esc(p.poster) + '" alt="' + esc(p.label || 'Video') + '" loading="lazy">' + play + (p.label ? '<b>' + esc(p.label) + '</b>' : ''))).join('') : a(play + '<b>' + esc(v.name || 'Watch a video') + '</b>');
return '<div class="myvids"><div class="sec-head"><h2>Watch @' + esc(who) + '\'s videos</h2><p>' + (v.count > 1 ? v.count + ' short videos. Each tap opens a different one.' : 'A short video, made on a phone.') + '</p></div><div class="vrow">' + cards + '</div></div>';
}
function tail(extra) {
const year = new Date().getFullYear();
return '<footer class="site"><div><b>Stack POL</b>Every POL payout across the network, stacked in one place and checkable on Polygon.</div>'
@@ -200,4 +211,4 @@ function tail(extra) {
// program cards (3 slots, which one rotates per hunter per day)
+ '</div>' + (extra || '') + SPOT_JS + '<script src="https://polhunter.com/embed.js" data-slots="3" data-selector=".card" async></script><script src="/assets/chat.js?v=hide1" defer></script><script src="/assets/netweekend.js?v=20261117" data-site="stackpol" defer></script></body></html>';
}
module.exports = { SITE, esc, head, tail, OG, V, ZONES, spot, personalize, memberLinks, proCta, MEMBER_HOST };
module.exports = { SITE, esc, head, tail, OG, V, ZONES, spot, personalize, memberLinks, memberVideos, proCta, MEMBER_HOST };