diff --git a/chatbot.js b/chatbot.js index 9aea3be..0c4160d 100644 --- a/chatbot.js +++ b/chatbot.js @@ -249,7 +249,7 @@ const CANNED = [ a: 'InstantAdPay has light and dark themes (added 2026-11-02). In the member area use the Light, Dark or Auto control in the header, or the Appearance card on your Profile. Dark is the original look, Light is a bright green-grey workspace with the same layout, and Auto follows your device setting and switches with it. Your choice is saved on your account, so it follows you to any device once you sign in, and it applies to the public pages and your wall too. Nothing changes until you pick one. Both themes pass the accessibility contrast standard for text.' }, { id: 'promo-tools', title: 'Promo tools', q: ['What is in Promo tools?', 'Where are the email swipes and banners?'], tags: ['promo tools', 'social posts', 'swipes', 'banners', 'objections'], re: /(promo tools?|social posts?|email swipes?|banner kit|download banners?|promo banners?|text a friend|objection|share buttons?)/i, - a: 'Promo tools (Members > Promo tools) has pill menus for each kit: Social posts (X, Facebook, LinkedIn, Telegram or WhatsApp, with post and share buttons), Text a friend (SMS-sized messages with Text it, WhatsApp, Telegram and Copy), Email swipes (short, standard, long, follow-up), Banners (every standard ad size plus square, story and Telegram sizes, download or copy URL), your Banner wall link, an Objection handling bank with the truth plus a ready-to-send reply, and a Games tab with a kit for every network game plus the EnjoyBestGames arcade (enjoybestgames.com, hundreds of free games; only the featured Polygon games pay, and your ?r= link cookies visitors as your referral for 30 days). Everything is personalized with your invite link.' }, + a: 'Promo tools (Members > Promo tools) has pill menus for each kit: Social posts (X, Facebook, LinkedIn, Telegram or WhatsApp, with post and share buttons), Text a friend (SMS-sized messages with Text it, WhatsApp, Telegram and Copy), Email swipes (short, standard, long, follow-up), Banners (every standard ad size plus 600x300 wide cards and 250x250 small squares, square, story and Telegram sizes, download or copy URL), your Banner wall link, an Objection handling bank with the truth plus a ready-to-send reply, and a Games tab with a kit for every network game plus the EnjoyBestGames arcade (enjoybestgames.com, hundreds of free games; only the featured Polygon games pay, and your ?r= link cookies visitors as your referral for 30 days). Everything is personalized with your invite link.' }, { id: 'trust-drain', title: 'Trust Wallet "drain your wallet" warning', q: ['Trust Wallet says this transaction will drain my wallet', 'My wallet blocked the purchase'], tags: ['trust wallet', 'drain', 'wallet warning', 'walletconnect'], re: /(drain (my|your) wallet|stop and go back|trust wallet.*(warn|block|red)|wallet (warning|blocked))/i, a: 'That red "this transaction will drain your wallet" screen is the wallet\'s own safety rule, not a problem with the purchase: Trust Wallet blocks any transaction that spends most of the POL in the wallet. Ways through: buy a smaller package first, add some POL so the purchase is well under half the balance, or connect a different wallet (SafePal and most other wallets have no such block). Extra POL always stays yours. If the next try says WalletConnect disconnected, open Wallet, tap Disconnect, then Connect again.' }, @@ -389,7 +389,7 @@ ${WEEKEND ? (() => { try { return WEEKEND.fact() || ''; } catch (e) { return ''; - Free to join with email only (6-digit code sign-in, no passwords). Wallet appears only at purchase or payout activation. Every new member gets a small welcome batch of ad credits — unlocked by the WELCOME TOUR on first sign-in: they visit their upline's line-banner sites (up to 3, 10 seconds each — the same 3 levels the contract pays), then claim the credits. Members with no upline banners get the credits instantly. - SPONSOR ATTRIBUTION: last touch. The invite link opened most recently sets the sponsor (30-day cookie), shown on the join page and again at the code step ("Joining under @name"). It locks when the account is created; the contract binds the buyer to that sponsor at their first purchase. Wrong sponsor before joining: open the right link. Already joined wrong: admin can move the account before the first purchase. - YOUR LINKS (top of Members > Promo tools): the plain invite link plus five angle links (?v=instant paid-in-seconds, ?v=adspend you-buy-ads-anyway, ?v=free costs-nothing-to-try, ?v=ledger no-back-office, ?v=two two-buyers-open-level-two, ?v=wide width-unlocks-depth with the Build Wide video; ?v=play opens the games angle), each with a who-it-is-for note, Copy and Share. Same credit either way; only the first page differs. Link stats on the Overview's coaching card show views/joins/buyers per angle. -- PROMO TOOLS (Members > Promo tools, pill menu): Social posts for X/Facebook/LinkedIn/Telegram-WhatsApp with post/share buttons; Text a friend (5 SMS-sized messages with Text it / WhatsApp / Telegram / Copy); Email swipes (short, standard, long, follow-up); Banners in every standard ad size plus 1080x1080, 1080x1920 and 1280x720 (download or copy URL); the member's Banner wall link; an Objection handling bank (truth + ready-to-send reply); a Videos tab with five hook videos, one per angle (Paid before the page reloads, You were buying traffic anyway, Watch first spend never, No back office, Two buyers open level two), each with a caption and the matched angle link, and at Circuit the Video Maker renders them with the member's own end card and QR; a Toolkit tab showing the badge ladder and the AI Copy Engine. Every piece carries the member's invite link; angle links add ?v=instant|adspend|free|ledger. Members who want copy in their own voice can use mybrandedvoice.com. The Games tab (2026-10-31) also carries the EnjoyBestGames arcade kit: enjoybestgames.com is an engagement site with hundreds of free HTML5 games; the featured row Games that pay Polygon is the network's own games and the only ones that pay; the member link enjoybestgames.com/?r=username sets a 30-day cookie so every featured game and the site strip credit that member on InstantAdPay; share image, 4 posts and the 11 banner sizes are in the kit. The Network sites tab (2026-11-14) shows the Downline Banners and Viral Banner Blitz promo kits, read live from each site: the member's links (their InstantAdPay username is their sponsor link there too, even if they never visited), creatives in 7 sizes per angle, 5 lines, 3 headlines, an email and 2 posts; the same kits are on downlinebanners.com/promote and viralbannerblitz.com/promote. Viral Banner Blitz: a shared loop of 125x125 banners, one free post credit a day for InstantAdPay/LinkSpin members, verified visitors move the loop, a banner that cycles earns network ad views (advertising, not cash), weekly leaderboards with a POL prize pot. +- PROMO TOOLS (Members > Promo tools, pill menu): Social posts for X/Facebook/LinkedIn/Telegram-WhatsApp with post/share buttons; Text a friend (5 SMS-sized messages with Text it / WhatsApp / Telegram / Copy); Email swipes (short, standard, long, follow-up); Banners in every standard ad size plus 600x300, 250x250, 1080x1080, 1080x1920 and 1280x720 (download or copy URL); the member's Banner wall link; an Objection handling bank (truth + ready-to-send reply); a Videos tab with five hook videos, one per angle (Paid before the page reloads, You were buying traffic anyway, Watch first spend never, No back office, Two buyers open level two), each with a caption and the matched angle link, and at Circuit the Video Maker renders them with the member's own end card and QR; a Toolkit tab showing the badge ladder and the AI Copy Engine. Every piece carries the member's invite link; angle links add ?v=instant|adspend|free|ledger. Members who want copy in their own voice can use mybrandedvoice.com. The Games tab (2026-10-31) also carries the EnjoyBestGames arcade kit: enjoybestgames.com is an engagement site with hundreds of free HTML5 games; the featured row Games that pay Polygon is the network's own games and the only ones that pay; the member link enjoybestgames.com/?r=username sets a 30-day cookie so every featured game and the site strip credit that member on InstantAdPay; share image, 4 posts and the 11 banner sizes are in the kit. The Network sites tab (2026-11-14) shows the Downline Banners and Viral Banner Blitz promo kits, read live from each site: the member's links (their InstantAdPay username is their sponsor link there too, even if they never visited), creatives in 9 or more sizes per angle (including 600x300 and 250x250), 5 lines, 3 headlines, an email and 2 posts; the same kits are on downlinebanners.com/promote and viralbannerblitz.com/promote. Viral Banner Blitz: a shared loop of 125x125 banners, one free post credit a day for InstantAdPay/LinkSpin members, verified visitors move the loop, a banner that cycles earns network ad views (advertising, not cash), weekly leaderboards with a POL prize pot. - INVITE PAGES: a member's link instantadpay.com/join/ opens a lead-capture page (email first, wallet later); add ?v=instant|adspend|free|ledger|two|wide|play for an angle-matched headline (?v=wide: 'Width unlocks depth.', opens on the Build Wide video, vertical on phones). New free members get a short getting-started email series over the first week (unsubscribe link in every email; the admin edits the sequence in /admin > Settings). - WALLET DRAIN WARNING: Trust Wallet hard-blocks any purchase that spends most of the wallet's POL ("this transaction will drain your wallet", only "Stop and go back"). It is a balance-proportion heuristic, not a contract issue (there are no token approvals; a buy is one native-POL payable call). Advice: smaller package first, or add POL so the buy is well under half the balance, or use SafePal or another wallet without the hard block. The dashboard warns Trust Wallet users before sending when a buy would use more than ~55% of the balance; other wallets are not prompted. After a blocked attempt the WalletConnect session may be dead: Wallet tab > Disconnect > Connect again. - WALL OWNERSHIP LADDER: the public wall has 3 positions. Position 1 = the member's line banner. Positions 2 and 3 show upline banners (then house ads) UNTIL the member earns them: 2 qualifying buyers ($20+) unlock position 2, 5 unlock position 3; a fully qualified member's wall is 100% their own links/offers (set in Profile > Your wall: label, https link, optional banner image). Empty unlocked slots fall back to upline banners, then house ads. diff --git a/public/assets/my.js b/public/assets/my.js index 1bdc3b3..70021c1 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -2999,7 +2999,9 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str { file: 'iap-wired-wednesday-1200x630.jpg', size: '1200×630 · Wired Wednesday · social card, link previews, Daily News' }, { file: 'iap-wired-wednesday-1080x1080.jpg', size: '1080×1080 · Wired Wednesday · Instagram, Facebook, Telegram' }, { file: 'iap-wired-wednesday-728x90.png', size: '728×90 · Wired Wednesday · leaderboard' }, - { file: 'iap-wired-wednesday-300x250.png', size: '300×250 · Wired Wednesday · rectangle' } ] }, + { file: 'iap-wired-wednesday-300x250.png', size: '300×250 · Wired Wednesday · rectangle' }, + { file: 'iap-wired-wednesday-wide.png', size: '600×300 · Wired Wednesday · traffic exchanges, splash pages' }, + { file: 'iap-wired-wednesday-small.png', size: '250×250 · Wired Wednesday · small square' } ] }, { title: 'Five Dollar Friday · share with your /friday link', friday: true, items: [ { file: 'iap-five-dollar-friday-october-1200x630.jpg', size: '1200×630 · Five Dollar Friday · October porch, bright' }, { file: 'iap-five-dollar-friday-october-1080x1080.jpg', size: '1080×1080 · Five Dollar Friday · October porch, square' }, @@ -3007,7 +3009,13 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str { file: 'iap-five-dollar-friday-dark-1200x630.jpg', size: '1200×630 · Five Dollar Friday · dark studio' }, { file: 'iap-five-dollar-friday-v2-1080x1080.jpg', size: '1080×1080 · Five Dollar Friday · square for Instagram and feeds' } ] }, { title: '600×300 · traffic exchanges and splash pages', items: [ - { file: 'iap-advertise-earn-600x300.png', size: '600×300 · advertise and earn · traffic exchanges, splash pages, safelist mailers' } ] }, + { file: 'iap-advertise-earn-600x300.png', size: '600×300 · advertise and earn · traffic exchanges, splash pages, safelist mailers' }, + { file: 'iap-core-wide.png', size: '600×300 · advertise and earn · Join free' }, + { file: 'iap-ledger-wide.png', size: '600×300 · advertising that pays you on-chain · See the ledger' } ] }, + { title: '250×250 · small squares', items: [ + { file: 'iap-core-small.png', size: '250×250 · advertise and earn · Join free' }, + { file: 'iap-earn-small.png', size: '250×250 · advertise and earn · globe art' }, + { file: 'iap-ledger-small.png', size: '250×250 · advertising that pays you on-chain · See the ledger' } ] }, { title: '1200×630 · social posts, link previews, Daily News covers', items: [ { file: 'iap-hero-1200x630.png', size: '1200×630 · hero · advertise and earn' }, { file: 'iap-advertise-earn-1200x630.jpg', size: '1200×630 · advertise and earn instantly, locked in code' }, @@ -3024,7 +3032,9 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str { file: 'iap-five-dollar-friday-1200x630.jpg', size: '1200×630 · social card, Daily News, feed posts' }, { file: 'iap-five-dollar-friday-1080x1080.jpg', size: '1080×1080 · Instagram, Facebook, Telegram' }, { file: 'iap-five-dollar-friday-728x90.png', size: '728×90 · leaderboard' }, - { file: 'iap-five-dollar-friday-300x250.png', size: '300×250 · rectangle' } ] }, + { file: 'iap-five-dollar-friday-300x250.png', size: '300×250 · rectangle' }, + { file: 'iap-five-dollar-friday-wide.png', size: '600×300 · traffic exchanges, splash pages' }, + { file: 'iap-five-dollar-friday-small.png', size: '250×250 · small square' } ] }, { title: '1080×1080 and 1080×1920 · Instagram, Facebook, stories, reels', items: [ { file: 'iap-1080x1080.png', size: '1080×1080 · square' }, { file: 'iap-1080x1920.png', size: '1080×1920 · story / reel' } ] }, diff --git a/public/banners/iap-core-small.png b/public/banners/iap-core-small.png new file mode 100644 index 0000000..cf68b48 Binary files /dev/null and b/public/banners/iap-core-small.png differ diff --git a/public/banners/iap-core-wide.png b/public/banners/iap-core-wide.png new file mode 100644 index 0000000..96dd309 Binary files /dev/null and b/public/banners/iap-core-wide.png differ diff --git a/public/banners/iap-earn-small.png b/public/banners/iap-earn-small.png new file mode 100644 index 0000000..55d5e73 Binary files /dev/null and b/public/banners/iap-earn-small.png differ diff --git a/public/banners/iap-five-dollar-friday-small.png b/public/banners/iap-five-dollar-friday-small.png new file mode 100644 index 0000000..15336b7 Binary files /dev/null and b/public/banners/iap-five-dollar-friday-small.png differ diff --git a/public/banners/iap-five-dollar-friday-wide.png b/public/banners/iap-five-dollar-friday-wide.png new file mode 100644 index 0000000..0984443 Binary files /dev/null and b/public/banners/iap-five-dollar-friday-wide.png differ diff --git a/public/banners/iap-ledger-small.png b/public/banners/iap-ledger-small.png new file mode 100644 index 0000000..329d3a5 Binary files /dev/null and b/public/banners/iap-ledger-small.png differ diff --git a/public/banners/iap-ledger-wide.png b/public/banners/iap-ledger-wide.png new file mode 100644 index 0000000..7e58f1d Binary files /dev/null and b/public/banners/iap-ledger-wide.png differ diff --git a/public/banners/iap-wired-wednesday-small.png b/public/banners/iap-wired-wednesday-small.png new file mode 100644 index 0000000..c2e7164 Binary files /dev/null and b/public/banners/iap-wired-wednesday-small.png differ diff --git a/public/banners/iap-wired-wednesday-wide.png b/public/banners/iap-wired-wednesday-wide.png new file mode 100644 index 0000000..8057e9d Binary files /dev/null and b/public/banners/iap-wired-wednesday-wide.png differ diff --git a/public/my.html b/public/my.html index 9631326..0b2ca55 100644 --- a/public/my.html +++ b/public/my.html @@ -1313,7 +1313,7 @@ - + diff --git a/tools/gen-card-banners.cjs b/tools/gen-card-banners.cjs new file mode 100644 index 0000000..59f758e --- /dev/null +++ b/tools/gen-card-banners.cjs @@ -0,0 +1,104 @@ +// Renders the 600x300 ("wide") and 250x250 ("small") promo kit cards (member request, Marty 2026-11-18) for each display +// design the kit already has: the core "Advertise & earn" card, the advertise-and-earn globe art (small only: its 600x300 +// already exists), the ledger card, Wired Wednesday and Five Dollar Friday. +// Run from the site dir with the qa-tester playwright: node tools/gen-card-banners.cjs +// Output: public/banners/iap--.png (exact pixel sizes, DSF 1). Neutral names: no size tokens. +const path = require('path'); +const fs = require('fs'); +const { chromium } = require('D:/Projects/MarketingAgent/qa-tester/node_modules/playwright'); + +const PUB = path.join(__dirname, '..', 'public'); +const OUT = path.join(PUB, 'banners'); +const uri = (f, t) => 'data:image/' + t + ';base64,' + fs.readFileSync(path.join(PUB, f)).toString('base64'); +const LOGO = uri('logo.png', 'png'), ICON = uri('logo-icon.png', 'png'); +const GLOBE = uri('banners/iap-advertise-earn-600x300.png', 'png'); // the licensed globe art, right half of the existing wide card + +const FONT = ''; +const CSS = `*{box-sizing:border-box;margin:0}html,body{width:var(--w);height:var(--h);overflow:hidden} +body{font-family:"Sora","Segoe UI",system-ui,sans-serif;color:#eef7f3;position:relative; + background:radial-gradient(120% 90% at 8% 0%,#16352c 0%,#0b1512 58%,#07100d 100%)} +.lines{position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(67,232,195,.06) 0 1px,transparent 1px 26px)} +.glow{position:absolute;right:-20%;top:-25%;width:75%;height:80%;border-radius:50%;background:radial-gradient(circle,rgba(67,232,195,.16),transparent 62%)} +.wrap{position:absolute;inset:0;display:flex;flex-direction:column} +h1{font-weight:800;letter-spacing:-.02em;line-height:1.04}h1 em{font-style:normal;color:#43e8c3} +p{color:#a9c4ba;line-height:1.35} +.cta{display:inline-block;background:#43e8c3;color:#03211a;font-weight:800;border-radius:999px;white-space:nowrap} +.cta.amber{background:#ffb02e;color:#2a1700} +.url{font-weight:700;color:#8ba69c;white-space:nowrap} +.tag{display:inline-block;border:1px solid rgba(67,232,195,.45);color:#43e8c3;border-radius:999px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap} +.disc{display:grid;place-items:center;border-radius:50%;background:linear-gradient(160deg,#43e8c3,#1fb894);color:#03211a;font-weight:800} +.circuit{position:absolute;inset:0;opacity:.5} +img.logo{display:block;mix-blend-mode:lighten}`; + +const CIRCUIT = (w, h) => ``; +const BOLT = s => ``; + +const D = { + core: { + wide: () => `
+ +

Advertise & earn.

Paid on-chain, instantly. Every payout sits on a public ledger.

+
Join free →instantadpay.com
+ `, + small: () => `
+ +

Advertise
& earn.

Paid on-chain, instantly.

+ Join free →
` + }, + earn: { + small: () => `
+
+
+ +

Advertise
& earn.

+

Paid on-chain, instantly.

Join free →
` + }, + ledger: { + wide: () => `
${CIRCUIT(600, 300)}
+ +

Advertising that
pays you on-chain.

Every ad package splits to real wallets, on a public ledger.

+
See the ledger →instantadpay.com
`, + small: () => `
${CIRCUIT(250, 250)}
+ +

Advertising that pays you on-chain.

+ See the ledger →
` + }, + 'wired-wednesday': { + wide: () => `
${CIRCUIT(600, 300)}
+
${BOLT(64)}

Wired Wednesday

+

+25% credits on any $20+ ad pack, wired in the second it settles. Every Wednesday.

+
Join freeinstantadpay.com
`, + small: () => `
${CIRCUIT(250, 250)}
+
${BOLT(50)}
+

Wired Wednesday

+25% credits on $20+ packs

+ Join free
` + }, + 'five-dollar-friday': { + wide: () => `
+
$5

Five Dollar Friday

+

+20% credits on any $5+ ad pack, every Friday. Every pack pays its line on chain.

+
Join freeinstantadpay.com
`, + small: () => `
+
$5
+

Five Dollar Friday

+20% credits on $5+ packs

+ Join free
` + } +}; +const SIZE = { wide: [600, 300], small: [250, 250] }; + +(async () => { + const browser = await chromium.launch(); + for (const [design, shapes] of Object.entries(D)) for (const [shape, body] of Object.entries(shapes)) { + const [w, h] = SIZE[shape]; + const page = await browser.newPage({ viewport: { width: w, height: h }, deviceScaleFactor: 1 }); + await page.setContent(`${FONT}${body()}`, { waitUntil: 'networkidle' }); + await page.evaluate(async () => { await document.fonts.ready; await document.fonts.load('800 20px Sora'); await document.fonts.load('400 20px Sora'); }); + await page.waitForFunction(() => [...document.images].every(i => i.complete && i.naturalWidth > 0)); + await page.waitForTimeout(300); + const file = path.join(OUT, `iap-${design}-${shape}.png`); + await page.screenshot({ path: file, clip: { x: 0, y: 0, width: w, height: h } }); + console.log('wrote', file); + await page.close(); + } + await browser.close(); +})();