Site-owner partner page at /partners: kit content, the explainer video, ?name and ?promo personalisation, company placement CTA

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-12 13:32:03 -05:00
parent fb709ddde9
commit 2a96403ffd
4 changed files with 156 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
// Site-owner partner page: ?name=First greets the owner, ?promo=CODE rides along into the
// company placement link and the example builder link. Display only; placement and credits
// come from the join route and the promo code.
(function () {
const q = new URLSearchParams(location.search);
const name = String(q.get('name') || '').replace(/[^A-Za-zÀ-ɏ' -]/g, '').trim().slice(0, 30);
const promo = String(q.get('promo') || '').toUpperCase().replace(/[^A-Z0-9_-]/g, '').slice(0, 24);
const hello = document.getElementById('pkHello');
if (hello && name) { hello.textContent = name + ', this page is for you. Your spot directly under the company at the top is reserved; activate with the $20 package to claim it.'; hello.style.display = 'block'; }
const cta = document.getElementById('pkCta');
if (cta) {
const p = new URLSearchParams(); if (name) p.set('name', name); if (promo) p.set('promo', promo);
cta.href = '/join/company' + (p.toString() ? '?' + p.toString() : '');
if (name) cta.textContent = 'Claim my spot, ' + name;
}
const ex = document.getElementById('pkExample');
if (ex && promo) ex.textContent = 'https://instantadpay.com/join/yourname?promo=' + promo;
const sub = document.getElementById('pkCtaSub');
if (sub && promo) sub.textContent = 'Free account by email. No password, no wallet today. The link below places you directly under the company and applies your code ' + promo + ' as well.';
})();