Files
5xyourteam/tools/pages.mjs
T

243 lines
30 KiB
JavaScript

// Writes public/*.html from one place (one source of copy and legal facts, the trust-pack legal.py idea). Run after editing:
// node tools/pages.mjs
// Copy rules: no em dashes, no income promises, never an earnings cap, "A position buys a draft spot and coaching tools, not
// income. Nothing is promised.", wallets = "SafePal or any other crypto wallet" (never recommend MetaMask), one-time, never a
// subscription, coaches get the right to sponsor and help and never contact data.
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const PUB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'public');
const SITE = 'https://5xyourteam.com';
const V = { css: 3, js: 3, chat: 1 }; // chat: the site assistant widget (2026-11-15)
const F = { co: 'TrustClickz', addr: '615 Green Valley Drive, Moody, AL 35004', updated: 'November 15, 2026', usd: 10, picks: 5, rounds: 5, returnDays: 3, maxOpen: 10 };
const FONTS = 'https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Inter:wght@400;600;700&display=swap';
const NOTE = 'A position buys a draft spot and coaching tools, not income. Nothing is promised.';
function head(o) {
const t = o.title, d = o.desc, url = SITE + o.path;
return `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>${t}</title>
<meta name="description" content="${d}">
${o.noindex ? '<meta name="robots" content="noindex">' : `<link rel="canonical" href="${url}">`}
<meta property="og:type" content="website">
<meta property="og:site_name" content="5xYourTeam">
<meta property="og:title" content="${t}">
<meta property="og:description" content="${d}">
<meta property="og:url" content="${url}">
<meta property="og:image" content="${SITE}/art/og-share.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="${SITE}/art/og-share.png">
<meta name="theme-color" content="#07102a">
<link rel="icon" type="image/png" href="/art/icon-192.png"><link rel="apple-touch-icon" href="/art/icon-192.png">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="${FONTS}">
<link rel="stylesheet" href="/assets/fx.css?v=${V.css}">
</head>
<body${o.data ? ' data-page="' + o.data + '"' : ''}>
`;
}
const tail = scripts => ['common.js'].concat(scripts).map(s => '<script src="/assets/' + s + '?v=' + V.js + '"></script>').join('\n') + '\n<script src="/assets/chat.js?v=' + V.chat + '" defer></script>' + '\n</body>\n</html>\n';
const page = (file, o, body, scripts) => fs.writeFileSync(path.join(PUB, file), head(o) + body + tail(scripts));
const STATUS = '<p id="status" class="note" hidden></p>';
// ---------------------------------------------------------------- the draft board (front page)
page('index.html', { path: '/', title: '5xYourTeam | The weekly draft for people who need a sponsor',
desc: `Every Monday the coaches draft people who joined the network without a sponsor. A $${F.usd} one-time position: ${F.picks} picks right away and a draft spot every week. Draft order is earned.` }, `<main class="wrap">
<section class="hero">
<div class="copy"><p class="kicker" id="heroKick">THE DRAFT</p><h1 id="heroTitle">Draft your team every Monday.</h1>
<p class="lead">Draft order is earned: the coaches who got the most of last week's picks started pick first. Help your picks get going and you move up next Monday.</p>
<p class="clock" id="heroClock" hidden></p></div>
<div class="potbox"><span class="lab">Best Coach pot this week</span><b class="big" id="potWei">0 POL</b><span class="muted small">10% of every position sold this week</span><div class="kv" id="potRank"></div></div>
</section>
${STATUS}
<section style="display:flex;flex-direction:column;gap:12px">
<div class="sh"><h2>This week's pool</h2><p id="poolNote">People waiting for a sponsor. Usernames only, never contact details.</p></div>
<div class="pool" id="pool"></div>
<div class="row"><button type="button" class="btn-line" id="poolMore" hidden>Show all players</button></div>
</section>
<section class="split">
<div class="panel wide"><h3 id="trackTitle" style="font-size:24px">DRAFT TRACKER</h3><div class="tbl"><table><thead><tr><th>PICK</th><th>COACH</th><th>DRAFTED</th><th>CARD</th></tr></thead><tbody id="track"></tbody></table></div></div>
<div class="panel side"><h3 style="font-size:24px">Best Coach standings</h3><div class="board" id="best"></div><span class="small" id="potRule"></span>
<h3 style="margin-top:10px">Last week</h3><div class="board" id="lastBest"></div></div>
</section>
<section class="split">
<div class="panel side"><h3 style="font-size:24px">Rookie of the Week</h3><div id="rookie" style="max-width:240px"></div></div>
<div class="panel wide"><h3 style="font-size:24px">How The Draft works</h3>
<div class="how">
<div class="s"><b>1</b><h3>Get a position</h3><p class="muted small">$${F.usd} one-time in POL with SafePal or any other crypto wallet, never a subscription. It comes with ${F.picks} picks right away.</p></div>
<div class="s"><b>2</b><h3>Draft every Monday</h3><p class="muted small">${F.rounds} rounds from that week's pool. Away? You are auto-picked from your queue, or the best available player.</p></div>
<div class="s"><b>3</b><h3>Coach them up</h3><p class="muted small">Help them link a wallet and switch on payouts, through site messages. Picks that do not start go back to the pool after ${F.returnDays} days.</p></div>
</div>
<p class="small">You get the right to sponsor and help your picks, never their email or any contact details: you coach through site messages, and they get the network's normal "you have a new sponsor" email. Nobody locked on a network contract is ever in the pool, and nobody is adopted more than twice.</p>
<div class="row"><a class="btn-gold" href="/join">Get a position</a><a class="btn-line" href="/cards">See the trading cards</a><a class="btn-ghost" href="/ledger">Live ledger</a></div>
<p class="small">${NOTE}</p></div>
</section>
</main>
<!-- PolHunter mission (every rebuilt network site gets one, Marty 2026-11-14): the 3 How The Draft steps -->
<script src="https://polhunter.com/embed.js" data-slots="3" data-selector=".how .s" async></script>
`, ['board.js']);
// ---------------------------------------------------------------- my team
page('team.html', { path: '/team', title: 'My Team | 5xYourTeam', desc: 'Coach your picks: scouting stats, the getting-started steps, one-tap messages and who to help first.', noindex: true }, `<main class="wrap">
<section id="signin" class="panel" hidden><p class="kicker">MY TEAM</p><h1 style="font-size:44px">Sign in to coach your team</h1><p class="muted">Sign in with your network account, or with your wallet. Your picks, cards and messages are here.</p><div id="signinBox"></div></section>
${STATUS}
<div id="dash" hidden style="display:flex;flex-direction:column;gap:28px">
<div class="sh"><div><p class="kicker">MY TEAM</p><h1 style="font-size:44px" id="hello"></h1></div><div class="row"><span id="myPage" hidden class="small">My coach page: <a id="myPageLink" href="#"></a></span><a class="btn-ghost" href="/promote">Promo kit</a><a class="btn-ghost" href="/builder">My builder links</a><button type="button" class="btn-ghost" id="signout" hidden>Sign out</button></div></div>
<section id="myCoach" class="ccard" hidden>
<div class="l"><span class="kicker">YOUR COACH</span><b id="mcName"></b><span class="muted small" id="mcTier"></span></div>
<div class="r"><h3>Getting started</h3><div id="mcSteps"></div><h3>Messages</h3><div class="thread" id="mcThread"></div>
<textarea id="mcText" maxlength="600" placeholder="Write to your coach" aria-label="Message to your coach"></textarea><div class="row"><button type="button" class="btn" id="mcSend">Send</button></div>
<h3>Your coach's builder links</h3><div class="row" id="mcBuilder"></div></div>
</section>
<section id="noCoach" class="panel" hidden><h3>You do not coach a team yet</h3><p class="muted">A $${F.usd} one-time position gives you ${F.picks} picks right away and a draft spot every Monday.</p><div class="row"><a class="btn-gold" href="/join">Get a position</a></div></section>
<div id="coachTools" hidden style="display:flex;flex-direction:column;gap:28px">
<section class="stats" id="stats"></section>
<p class="note" id="credits" hidden>You have <b id="creditsN"></b> to use now. Pick them from the pool on the <a href="/">Draft Board</a>.</p>
<section class="focus" id="focus" hidden>
<div class="who"><span class="k" id="fKick"></span><b class="n" id="fName"></b><span class="muted small" id="fWhen"></span><div id="fStats" style="display:flex;flex-direction:column;gap:4px;font-size:14px;margin-top:6px"></div>
<span class="small" style="margin-top:auto">No contact details here, by design: you coach through site messages.</span></div>
<div class="act"><h3>Getting started</h3><div id="fSteps"></div>
<h3 style="font-size:18px">One-tap messages</h3><div class="taps" id="fTaps"></div>
<textarea id="fText" maxlength="600" placeholder="Write a message. It goes to their member area." aria-label="Message to your pick"></textarea>
<div class="row"><button type="button" class="btn-gold" id="fSend">Send message</button><button type="button" class="btn-ghost" id="fRelease">Release to the pool</button></div>
<div class="thread" id="fThread"></div></div>
</section>
<section style="display:flex;flex-direction:column;gap:12px"><h2>The rest of my team</h2><div class="team" id="team"></div></section>
<section class="split"><div class="panel wide"><h3 style="font-size:24px">Who to help first</h3><div class="help" id="help"></div></div>
<div class="panel side"><h3 style="font-size:24px">My draft queue</h3><div id="queue"></div><div id="pastWrap" hidden><h3>Back in the pool</h3><div class="row" id="past"></div></div></div></section>
</div>
</div>
</main>
`, ['wallet.js', 'team.js']);
// ---------------------------------------------------------------- cards
page('cards.html', { path: '/cards', title: 'Card Collection | 5xYourTeam', desc: 'Trading cards that level up as your picks do: Rookie, Starter, Pro, All-Star, Hall of Fame.' }, `<main class="wrap">
<section class="sh"><div><p class="kicker">CARD COLLECTION</p><h1 style="font-size:44px">Trading cards: they level up as your picks do</h1></div><p>Public cards show milestones, never earnings.</p></section>
<section id="mine" hidden style="display:flex;flex-direction:column;gap:12px"><h2 id="mineTitle"></h2><div class="cards" id="mineCards"></div></section>
<section style="display:flex;flex-direction:column;gap:12px"><h2>The five tiers</h2><div class="cards" id="tiers"></div>
<p class="small">Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Tap a card to flip it for the stats on the back.</p></section>
</main>
`, ['cards.js']);
// ---------------------------------------------------------------- get a position
page('join.html', { path: '/join', title: 'Get a Position | 5xYourTeam', desc: `A $${F.usd} one-time position: ${F.picks} picks right away and a draft spot every Monday. Paid in POL, split on-chain in the same transaction.` }, `<main class="wrap">
<section class="hero"><div class="copy"><p class="kicker">GET A POSITION</p><h1><span id="jPrice">$${F.usd}</span> once. <span id="jPicks">${F.picks}</span> picks today. A draft spot every Monday.</h1>
<p class="lead">One payment in POL with SafePal or any other crypto wallet. It never renews and is never a subscription.</p></div>
<div class="potbox"><span class="lab">What you get</span><ul class="muted small" style="margin:0;padding-left:18px"><li>${F.picks} instant picks from this week's pool</li><li>A spot in every Monday draft, ${F.rounds} rounds</li><li>Coaching tools: scouting stats, the steps, site messages, who to help first</li><li>A coach page and trading cards for your team</li><li>Up to ${F.maxOpen} open picks at a time</li></ul></div></section>
<section id="jSign" class="panel" hidden><h3>Sign in first</h3><p class="muted small">The position goes to the wallet you are signed in with.</p><div id="jSignBox"></div></section>
<section class="panel dark"><h3 style="font-size:24px">Buy</h3><label class="small" for="jQty">How many positions</label><select id="jQty"></select><p class="muted" id="jPol"></p>
<div class="row"><button type="button" class="btn-gold" id="jBuy" disabled>Pay with my wallet</button></div>${STATUS}
<p class="small">Anything you send above the exact price comes back to you in the same transaction. Payments are final once confirmed.</p></section>
<section class="panel"><h3 style="font-size:24px">Where your $${F.usd} goes, in the same transaction</h3><div class="splitbar" id="splitbar"></div>
<p class="small">Your sponsor gets 25% and levels 2 to 5 of your network sponsor line get 5% each. Only people who hold a position can receive a share: anyone in your line who does not is passed over and the share goes up to the next person who does. 10% goes to the weekly Best Coach pot and 45% to 5xYourTeam. The contract keeps nothing. Check it on the <a href="/contract">contract page</a> and every payment on the <a href="/ledger">ledger</a>.</p>
<p class="small">${NOTE}</p></section>
</main>
`, ['wallet.js', 'join.js']);
// ---------------------------------------------------------------- coach page
page('coach.html', { path: '/', title: 'Coach | 5xYourTeam', desc: 'A 5xYourTeam coach and their team, as trading cards.' }, `<main class="wrap">
<section class="ccard"><div class="l"><span class="kicker">COACH</span><b id="cName"></b><span class="muted small" id="cSince"></span><div id="cStats" style="display:flex;flex-direction:column;gap:4px;font-size:14px"></div></div>
<div class="r"><h3>The team</h3><p class="small" style="color:#4a587e">Milestones only. Every Monday this coach drafts people who joined the network without a sponsor and helps them get started.</p><div class="row"><a class="btn-gold" id="cJoin" href="https://instantadpay.com/">Join the network free</a><a class="btn" href="/join">Coach a team of your own</a></div></div></section>
<section class="cards" id="cTeam"></section>
</main>
`, ['coach.js']);
// ---------------------------------------------------------------- ledger, contract
page('ledger.html', { path: '/ledger', title: 'Live Ledger | 5xYourTeam', desc: 'Every 5xYourTeam position and every share it paid, in the same transaction, with links to verify on Polygonscan.' }, `<main class="wrap">
<section><p class="kicker">LIVE LEDGER</p><h1 style="font-size:44px">Every position, every share, on-chain</h1></section>
<section class="stats" id="totals"></section>
<section class="panel"><div class="tbl"><table id="rows"><thead><tr><th>WHEN</th><th>POSITION</th><th>PAID IN THE SAME TRANSACTION</th><th></th></tr></thead><tbody></tbody></table></div></section>
<section class="panel"><h3 style="font-size:24px">Best Coach payouts</h3><div class="tbl"><table id="payouts"><thead><tr><th>WEEK</th><th>COACH</th><th>POL</th><th></th></tr></thead><tbody></tbody></table></div></section>
</main>
`, ['ledger.js']);
page('contract.html', { path: '/contract', title: 'The Contract | 5xYourTeam', desc: 'DraftPosition on Polygon: who owns it, the fixed split, the Best Coach pot wallet, what it holds.' }, `<main class="wrap">
<section><p class="kicker">CONTRACT</p><h1 style="font-size:44px">Check the contract yourself</h1><p class="muted">Read live from Polygon. No owner withdraw, no proxy, the split fixed in the code.</p></section>
<section class="panel"><div class="tbl"><table id="facts"></table></div></section>
</main>
`, ['contract.js']);
// ---------------------------------------------------------------- promote, builder, admin, draft day
page('promote.html', { path: '/promote', title: 'Promo Kit | 5xYourTeam', desc: 'Links, creatives and copy for 5xYourTeam, with your username in every link.', data: 'promote' }, `<main class="wrap">
<section><p class="kicker">PROMO KIT</p><h1 style="font-size:44px">Share The Draft</h1></section>
<form id="whoForm" class="row dark"><input id="whoIn" placeholder="your network username" aria-label="Your network username" style="max-width:320px"><button class="btn-gold" type="submit">Use my username</button></form>
${STATUS}
<div id="kit" style="display:flex;flex-direction:column;gap:16px"></div>
</main>
`, ['kitpage.js', 'misc.js']);
page('builder.html', { path: '/builder', title: 'My Builder Links | 5xYourTeam', desc: 'Your referral IDs in the CryptoTeamBuild downline builder: your picks see your links.', noindex: true, data: 'builder' }, `<main class="wrap">
<section><p class="kicker">MY BUILDER LINKS</p><h1 style="font-size:44px">The CryptoTeamBuild downline builder</h1><p class="muted">Save your referral ID for the programs you are in. Your picks see your link for each one on their My Team page.</p></section>
<section id="bSign" class="panel" hidden><div id="bSignBox"></div></section>
${STATUS}
<section class="panel" id="bList"></section>
</main>
`, ['wallet.js', 'misc.js']);
page('admin.html', { path: '/admin', title: 'Admin | 5xYourTeam', desc: 'Admin.', noindex: true, data: 'admin' }, `<main class="wrap">
<form id="tokForm" class="row dark"><input id="tok" type="password" placeholder="admin token" aria-label="Admin token" style="max-width:320px"><button class="btn-gold" type="submit">Open</button><button class="btn-ghost" type="button" id="tickBtn">Run a tick now</button></form>
<section class="panel"><h3>Status</h3><pre id="statusOut" class="kit-pre"></pre></section>
<section class="panel"><h3>Best Coach pot (last week)</h3><pre id="potOut" class="kit-pre"></pre></section>
<section class="panel"><h3>Old-link map (JSON {"oldrefs": {"old": "network username"}})</h3><input type="file" id="oldFile" accept="application/json"><pre id="oldOut" class="kit-pre"></pre></section>
</main>
`, ['misc.js']);
fs.writeFileSync(path.join(PUB, 'draftday.html'), `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="robots" content="noindex"><title>Draft Day | 5xYourTeam</title>
<link rel="stylesheet" href="${FONTS}"><style>
*{box-sizing:border-box}body{margin:0;width:1080px;height:1080px;overflow:hidden;background:#0b1530}
@font-face{font-family:Champiun;src:url(/assets/champiun.woff) format('woff');font-weight:700}
.dd{position:relative;width:1080px;height:1080px;background:radial-gradient(ellipse at 50% 0,#1b2c5e 0,#0b1530 62%);color:#fff;font-family:Inter,system-ui,sans-serif;padding:52px 64px 56px;display:flex;flex-direction:column;gap:26px;border:14px solid #ffc93c;overflow:hidden}
.dd>img{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.dd .spot{mix-blend-mode:screen;opacity:.6}.dd .conf{opacity:.5}
.dd>:not(img){position:relative;z-index:1}
.top{display:flex;justify-content:space-between;align-items:center}.wm{font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:44px;letter-spacing:1px}.wm b{color:#ffc93c}
.wk{font-family:Oswald,sans-serif;font-size:22px;background:#ff4d4d;padding:6px 14px;letter-spacing:3px}
h1{margin:0;font-family:Oswald,Impact,sans-serif;font-weight:700;font-size:108px;line-height:.95;text-shadow:0 6px 24px rgba(0,0,0,.55)}h1 span{color:#ffc93c}
.rows{display:flex;flex-direction:column;gap:12px;font-size:30px;background:rgba(7,16,42,.86);padding:16px 24px;border-left:6px solid #ffc93c}.dd-r{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #2a3a6e;padding-bottom:8px}.dd-r:last-child{border-bottom:0;padding-bottom:0}
.dd-r .s{font-family:Champiun,Oswald,sans-serif;font-weight:700;color:#ffc93c;font-size:34px;letter-spacing:1px;min-width:90px}
.ft{margin-top:auto;height:216px;background:url(/art/dd/scoreboard.png) center/100% 100% no-repeat;padding:34px 48px;display:flex;justify-content:space-between;align-items:center;filter:drop-shadow(0 10px 24px rgba(0,0,0,.6))}
.ft div{display:flex;flex-direction:column;gap:10px;font-family:Oswald,sans-serif;font-size:32px;letter-spacing:.5px}.ft .p{color:#ffc93c}.url{font-family:Oswald,sans-serif;font-size:26px;color:#b8c4e0;align-self:flex-end}
</style></head><body data-page="draftday"><div class="dd"><img class="spot" src="/art/dd/spotlight.jpg" alt=""><img class="conf" src="/art/dd/confetti.png" alt=""><div class="top"><span class="wm">5X<b>YOUR</b>TEAM</span><span class="wk" id="ddWeek"></span></div>
<h1>DRAFT DAY<br><span>RESULTS</span></h1><div class="rows" id="ddRows"></div>
<div class="ft"><div><span id="ddStats"></span><span class="p" id="ddPot"></span></div><span class="url">5xyourteam.com</span></div></div>
<script src="/assets/common.js?v=${V.js}"></script><script src="/assets/misc.js?v=${V.js}"></script></body></html>
`);
// ---------------------------------------------------------------- legal
const CONTACT = ['Contact', `<p>${F.co}, ${F.addr}. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>. Last updated ${F.updated}.</p>`];
function legal(file, p, title, lead, cards) {
page(file, { path: p, title: title + ' | 5xYourTeam', desc: lead, data: 'legal' }, `<main class="wrap legal">
<section><p class="kicker">5XYOURTEAM</p><h1 style="font-size:44px">${title}</h1><p class="muted">${lead}</p></section>
${cards.map(c => ` <section class="card"><h2>${c[0]}</h2>${c[1]}</section>`).join('\n')}
</main>
`, ['misc.js']);
}
legal('terms.html', '/terms', 'Terms and Conditions', 'The rules for using 5xYourTeam, in plain English.', [
['Who we are', `<p>5xYourTeam (5xyourteam.com) is run by ${F.co}, ${F.addr}. It is part of the network: one network account works across InstantAdPay, LinkSpin, Downline Banners, Viral Banner Blitz, ViralAdBlitz, 5xYourTeam, Stack POL and Earners Corner. By using 5xYourTeam you agree to these terms.</p>`],
['What 5xYourTeam is', `<p>5xYourTeam runs The Draft. People who join the network without a sponsor wait in the network holding tank. Every Monday the coaches on 5xYourTeam draft them, in rounds. A drafted person (a pick) is adopted by their coach under the holding-tank rules, and their coach becomes their network sponsor while the pick is open.</p>`],
['What a position is', `<p>A position is a single, one-time purchase of $${F.usd}. It gives you ${F.picks} instant picks from the current pool, a spot in every weekly draft, the coaching tools, a coach page and trading cards. You can buy more than one; each adds ${F.picks} instant picks. Nothing renews and nothing is ever billed again. There are no subscriptions.</p><p>Positions are paid in POL on Polygon at the live Chainlink POL/USD price the contract reads when you buy. Anything you send above the price comes back to you in the same transaction.</p><p>What you buy is a seat in the draft and the tools to coach. It is not income, an investment or a share of anything.</p>`],
['The draft', `<p>The draft order is earned: coaches with more of last week's picks started (payouts switched on, or a first purchase) pick first; ties go to more picks started overall, then the earlier position. A coach in the draft room has a clock for each pick; a coach who is away is picked for automatically, from their own queue or the best available player. A coach may hold up to ${F.maxOpen} open picks.</p><p>A pick that has not started within ${F.returnDays} days goes back to the pool, unless that person has now been adopted twice, in which case they stay with their coach. A started pick stays on the team. A coach cannot release a pick in its first 48 hours. The pool never includes anyone locked to a sponsor on a network contract, anyone the network already knows a sponsor for, anyone adopted twice, spam or throwaway sign-ups, or anyone in their first 24 hours.</p>`],
['Coaching rules', `<p>Coaches get the right to sponsor and help their picks. They never get a pick's email, phone number or any other contact details, and no list of picks is ever sold or exported. Coaching happens through 5xYourTeam site messages; the pick also receives the network's normal email telling them who their new sponsor is. Be helpful and honest: no spam, no pressure, no income claims, nothing illegal. We may remove a coach who breaks these rules.</p>`],
['How a payment is split', `<p>The DraftPosition contract splits each position in the same transaction it is paid: 25% to your sponsor, 5% to each of levels 2 to 5 of your network sponsor line, 10% to the weekly Best Coach prize pot wallet, and 45% to 5xYourTeam.</p><p>Only someone who holds a position can receive a level share. Someone in the line who does not is passed over, and the share goes up to the next person who does: the first such person gets the 25% share, the next four get 5% each, looking up to 20 places up the line. A share nobody qualifies for goes to 5xYourTeam.</p><p>Your sponsor line comes from the network hub. On your first position the site signs it and the contract records it link by link. A link already recorded is never changed. The split is fixed in the contract code and there is no owner withdraw.</p>`],
['The Best Coach pot', `<p>10% of every position goes to a separate prize wallet fixed in the contract. Each week the pot is shared among the coaches whose picks started the most that week, as announced on the draft board. Every payout from the pot is listed on the <a href="/ledger">ledger</a> with its transaction. Prizes depend on the pot that week and are not promised.</p>`],
['Nothing is promised', `<p>We do not promise or guarantee any income, payout, prize or result. A level share is paid only when someone in your line chooses to buy a position. Read the <a href="/disclaimer">Earnings Disclaimer</a>.</p>`],
['No refunds', `<p>Payments are made on the blockchain and are final once confirmed. We cannot reverse, cancel or refund them. Check the amount before you confirm in your wallet.</p>`],
['Crypto risk', `<ul><li>The price of POL moves. The dollar value of a payment can be higher or lower later than when it was paid.</li><li>You are responsible for your wallet and its recovery phrase. Nobody, including us, can recover a lost wallet or reverse a payment sent from it.</li><li>Each transaction costs a small network fee (gas) in POL, paid to the network, not to us.</li><li>Use SafePal or any other crypto wallet you trust, and never share your recovery phrase with anyone. We will never ask for it.</li></ul>`],
['The service', `<p>The site is provided as it is. We work to keep it running but cannot promise it will always be available or free of errors. The smart contract runs on Polygon on its own; its rules are public on the <a href="/contract">contract page</a>. We may change features, draft settings, the price of future positions or these terms; changes apply from the date they are posted here. As far as the law allows, our total responsibility to you is limited to what you paid for the purchase in question. These terms are governed by the laws of the State of Alabama, USA.</p>`],
CONTACT]);
legal('disclaimer.html', '/disclaimer', 'Earnings Disclaimer', NOTE, [
['What you are buying', `<p>A 5xYourTeam position is a seat in the weekly draft and the tools to coach the people you draft. It is not an investment, a business opportunity, a share of profits or a promise of any payment.</p>`],
['Level shares and prizes are not promised', `<p>The contract pays a level share only when someone in your line chooses to buy a position. Nobody is required to buy one, and we do not know or promise whether anyone ever will. Many coaches receive nothing, and many receive less than they spend. The Best Coach pot depends on what is sold that week. Your results depend on other people's free choices.</p>`],
['No examples are promises', `<p>Any number on this site, in the ledger or in a Telegram post shows what really happened in one transaction. It is not a typical result and not a forecast.</p>`],
['Prices and taxes', `<p>Positions are priced in US dollars and paid in POL, whose price moves. You are responsible for any taxes on what you receive where you live.</p>`],
['Who to ask', `<p>${F.co}, ${F.addr}. <a href="https://instantadpay.com/support" target="_blank" rel="noopener">Network support</a>.</p>`]]);
legal('privacy.html', '/privacy', 'Privacy Policy', 'What 5xYourTeam keeps about you, why, and for how long.', [
['Who we are', `<p>5xYourTeam is run by ${F.co}, ${F.addr}.</p>`],
['What we keep', `<ul><li>Your wallet address and network username.</li><li>Your network record from the network hub: your hub id and your sponsor line. 5xYourTeam does not store your email. When you sign in through InstantAdPay or LinkSpin, your email is used once to find your network record and is not kept.</li><li>Your positions, which are public on the Polygon blockchain.</li><li>The draft: who drafted whom and when, each pick's milestones (wallet linked, payouts on, first purchase), and the scouting facts shown on draft cards where the network tracks them (last seen, the site you joined through, game plays and earnings).</li><li>Site messages between a coach and their pick.</li><li>Your saved builder referral IDs.</li></ul>`],
['What coaches see about a pick', `<p>A username, the scouting facts above and their milestones. Never an email, phone number or any other contact details, and no list is ever exported or sold. Anyone can see trading cards, which show milestones only, never earnings.</p>`],
['Cookies', `<p>A sign-in cookie (7 days), a cookie that remembers whose page you came from (30 days), and short-lived cookies for signing in through the network. No advertising or tracking cookies of our own.</p>`],
['Who else sees data', `<ul><li>The Polygon blockchain: every position and payment is public there.</li><li>The network hub, which keeps one record per person across the network sites.</li><li>The network holding tank (InstantAdPay and LinkSpin), which records each adoption and sends the normal new-sponsor email.</li><li>Our Telegram payments topic: each position is posted with the buyer's username (or a shortened wallet) and the amounts paid, and the Draft Day results with usernames.</li><li>Services the pages load: Google Fonts and WalletConnect (Reown) when you connect a wallet.</li></ul><p>We do not sell personal data.</p>`],
['Your choices', `<p>You can ask us to remove your account and messages here. Records on the blockchain cannot be removed by anyone.</p>`],
CONTACT]);
console.log('pages written');