Lumen & Gesso / website · lumengesso.com / app / components / careersTemplate.tsx
| 1 | import { CareersFormScript } from './CareersForm'; |
| 2 | |
| 3 | // ONE careers template on every site (the owner 2026-12-02). Same markup as every other site's |
| 4 | // /careers page (hosting-research tools/careers-template). __SITE__ and __ROLES__ are filled per site. |
| 5 | // The form posts to /api/request (careers-intake Worker route on every domain). |
| 6 | const CAREERS_TEMPLATE = "<style id=\"ct-style\">\nmain.ct-main{max-width:1180px!important;width:100%;margin:0 auto!important;padding:56px 20px 80px!important;box-sizing:border-box;display:block!important}\n.ct-main .ct-eyebrow{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.75;margin:0 0 10px}\n.ct-main h1{font-size:clamp(36px,6vw,60px);line-height:1.05;margin:0 0 16px}\n.ct-main h2{font-size:clamp(24px,3.4vw,34px);line-height:1.15;margin:0 0 10px}\n.ct-main p{font-size:18px;line-height:1.6;margin:0 0 14px}\n.ct-main .ct-lede{font-size:21px;max-width:820px}\n.ct-main section{margin:0 0 56px}\n.ct-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:28px 0 0}\n.ct-facts div{border:1px solid rgba(127,127,127,.35);border-radius:18px;padding:16px 18px;font-size:16px;line-height:1.4}\n.ct-facts b{display:block;font-size:17px;margin-bottom:2px}\n.ct-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}\n.ct-cards div{border:1px solid rgba(127,127,127,.35);border-radius:20px;padding:20px 22px}\n.ct-cards h3{font-size:19px;margin:0 0 6px}.ct-cards p{font-size:16px;margin:0;opacity:.88}\n.ct-join{border:2px solid currentColor;border-radius:24px;padding:28px;max-width:760px}\n.ct-join label{display:block;font-weight:700;font-size:19px;margin:0 0 10px}\n.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.ct-join input{width:100%;box-sizing:border-box;font:inherit;font-size:17px;padding:12px 16px;border-radius:14px;border:1.5px solid rgba(127,127,127,.5);background:transparent;color:inherit}\n.ct-join textarea{width:100%;min-height:150px;box-sizing:border-box;font:inherit;font-size:17px;padding:14px 16px;border-radius:16px;border:1.5px solid rgba(127,127,127,.5);background:transparent;color:inherit}\n.ct-join button{margin-top:14px;border:0;cursor:pointer;font:inherit;font-weight:700;font-size:17px;padding:14px 28px;border-radius:999px;background:currentColor}\n.ct-join button span{color:#fff;mix-blend-mode:difference}\n.ct-hp{position:absolute;left:-9999px}\n.ct-main .ct-small{font-size:15px;opacity:.75}\n@media (max-width:900px){.ct-facts{grid-template-columns:1fr 1fr}.ct-cards{grid-template-columns:1fr}}\n@media (max-width:520px){.ct-facts,.ct-row{grid-template-columns:1fr}.ct-join{padding:20px}}\n</style>\n<section><span class=\"ct-eyebrow\">Careers</span><h1>Join our team</h1>\n<p class=\"ct-lede\">We're looking for people to join our team at __SITE__. No résumé needed. Tell us what you'd like to do and how to reach you, and we'll get back to you.</p>\n<p class=\"ct-lede ct-roles\">__ROLES__</p>\n<div class=\"ct-facts\"><div><b>Part-time</b>Up to 39 hours a week, hours you choose with us</div><div><b>Guaranteed wage</b>Paid in U.S. dollars, on time, every time</div><div><b>Daily Bitcoin bonus</b>Paid out automatically, every day</div><div><b>Holistic health care</b>Through the holistic clinics we work with</div></div></section>\n<section><form id=\"cr-form\" class=\"ct-join\" novalidate>\n<div class=\"ct-row\"><div><label for=\"cr-name\">Name</label><input id=\"cr-name\" name=\"name\" required maxlength=\"120\" autocomplete=\"name\"></div>\n<div><label for=\"cr-email\">Email</label><input id=\"cr-email\" name=\"email\" type=\"email\" required maxlength=\"200\" autocomplete=\"email\"></div></div>\n<label for=\"cr-request\">Message</label>\n<textarea id=\"cr-request\" name=\"request\" required maxlength=\"4000\" rows=\"6\" placeholder=\"What work would you like to do with us?\"></textarea>\n<div class=\"ct-hp\" aria-hidden=\"true\"><label>Leave this empty <input name=\"website\" tabindex=\"-1\" autocomplete=\"off\"></label></div>\n<button type=\"submit\"><span>Join our team</span></button>\n<p id=\"cr-msg\" class=\"cr-msg\" role=\"status\" aria-live=\"polite\"></p>\n</form></section>\n<section><h2>Our pay promise</h2><div class=\"ct-cards\">\n<div><h3>Part-time roles</h3><p>All our roles are part-time, up to 39 hours a week. You choose your hours within that, and we plan schedules together.</p></div>\n<div><h3>A guaranteed base wage</h3><p>Every team member earns a guaranteed wage that meets or beats every wage law where they work, paid in U.S. dollars.</p></div>\n<div><h3>Daily Bitcoin bonuses</h3><p>On top of that wage, every team member gets a Bitcoin bonus every day, paid out automatically. It grows with how well they perform, and we fund it ourselves.</p></div>\n<div><h3>No tips, ever</h3><p>Our team does not ask for or accept tips. Customers thank great work with a free rating instead.</p></div>\n<div><h3>Fair ratings</h3><p>Every team member can see each rating that affects them and can dispute it. A real person reviews every dispute.</p></div>\n<div><h3>Holistic health care</h3><p>Team members get their health care through the holistic clinics we work with. Care outside those clinics is not covered.</p></div>\n</div></section>\n<section><h2>How bonuses are worked out</h2><p>Everyone gets a bonus every day, paid out automatically. Its size comes from what customers and teammates say about someone's work, and from their tier. There are three tiers.</p>\n<div class=\"pgflow\" aria-label=\"How daily Bitcoin bonuses are worked out\">\n<style>\n.pgflow{margin:18px 0 8px;display:grid;grid-template-columns:1.2fr auto 1fr auto 1fr auto 1.1fr;gap:10px;align-items:center;text-align:left}\n.pgflow .pc{display:grid;gap:10px}\n.pgflow .pb{border:1px solid rgba(127,127,127,.35);border-radius:18px;padding:14px 16px;display:grid;gap:3px;line-height:1.35}\n.pgflow .pb b{font-size:16px}.pgflow .pb span{font-size:14px;opacity:.8}.pgflow .pb em{font-style:normal;font-weight:700;font-size:13px;opacity:.9}\n.pgflow .pm{background:rgba(127,127,127,.12);border-color:transparent}\n.pgflow .pg{border:2px solid currentColor}\n.pgflow .po{font-size:26px;font-weight:800;text-align:center;opacity:.75}\n.pgflow .pw{grid-column:1/-1;border:2px dashed rgba(127,127,127,.4);border-radius:18px;padding:12px 16px;font-size:15px}\n.pgflow .pt{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}\n.pgflow .pt div{border:1px solid rgba(127,127,127,.35);border-radius:16px;padding:12px 14px;font-size:14px;line-height:1.35}\n@media (max-width:820px){.pgflow,.pgflow .pt{grid-template-columns:1fr}.pgflow .pa{display:inline-block;transform:rotate(90deg)}}\n</style>\n<div class=\"pc\"><div class=\"pb\"><b>Customer reviews</b><span>Free stars after each visit</span><em>60% of the score</em></div><div class=\"pb\"><b>Peer reviews</b><span>Teammates rate teamwork each week</span><em>40% of the score</em></div></div>\n<div class=\"po\" aria-hidden=\"true\"><span class=\"pa\">→</span></div>\n<div class=\"pb pm\"><b>Score</b><span>0 to 100, from recent ratings, updated daily</span></div>\n<div class=\"po\" aria-hidden=\"true\">×</div>\n<div class=\"pb pm\"><b>Tier</b><span>Explorer, Builder or Guide. Higher tier, bigger bonus</span></div>\n<div class=\"po\" aria-hidden=\"true\">=</div>\n<div class=\"pb pg\"><b>Daily Bitcoin bonus</b><span>Paid by us, automatically, every day. Shown in dollars</span></div>\n<div class=\"pt\"><div><b>Explorer</b><br>Everyone starts here, learning the work.</div><div><b>Builder</b><br>Growing, with steady high scores and teammates’ backing.</div><div><b>Guide</b><br>On the way to mastery, helping others grow.</div></div>\n<div class=\"pw\"><b>Plus a guaranteed wage</b>, at least the minimum wage where they work, through normal payroll. Reviews and tier never lower it.</div>\n</div>\n<p class=\"ct-small\">Bitcoin bonuses are pay and are taxed like pay. Bonuses are always shown in U.S. dollars first.</p></section>"; |
| 7 | |
| 8 | // "Join our team" band, directly above the home page footer. |
| 9 | export const HOME_BAND = "<!--ct-home--><section class=\"ct-home\" style=\"max-width:1180px;margin:48px auto;padding:0 20px;box-sizing:border-box\"><div style=\"border:2px solid currentColor;border-radius:24px;padding:28px 28px 24px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between\"><div style=\"max-width:720px\"><h2 style=\"margin:0 0 8px;font-size:clamp(24px,3.4vw,34px);line-height:1.15\">Join our team</h2><p style=\"margin:0;font-size:18px;line-height:1.55\">We're looking for people to join our team. Part-time roles, a guaranteed wage, a bonus paid out automatically every day, and holistic health care.</p></div><a href=\"/careers\" style=\"display:inline-block;padding:14px 28px;border-radius:999px;border:2px solid currentColor;font-weight:700;text-decoration:none;color:inherit;font-size:17px\">See careers</a></div></section><!--/ct-home-->"; |
| 10 | |
| 11 | const escapeHtml = (s: string) => String(s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); |
| 12 | |
| 13 | export function careersDescription(siteName: string) { |
| 14 | return `Join our team at ${siteName}. Part-time roles, a guaranteed wage, a Bitcoin bonus paid out automatically every day, and holistic health care.`; |
| 15 | } |
| 16 | |
| 17 | export function careersHtml(siteName: string, roles: string) { |
| 18 | return CAREERS_TEMPLATE.replace('__SITE__', escapeHtml(siteName)).replace('__ROLES__', escapeHtml(roles)); |
| 19 | } |
| 20 | |
| 21 | export function CareersMain({ siteName, roles }: { siteName: string; roles: string }) { |
| 22 | return ( |
| 23 | <> |
| 24 | <main id="main" className="ct-main" dangerouslySetInnerHTML={{ __html: careersHtml(siteName, roles) }} /> |
| 25 | <CareersFormScript /> |
| 26 | </> |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | export function JoinOurTeamBand() { |
| 31 | return <div style={{ display: 'contents' }} dangerouslySetInnerHTML={{ __html: HOME_BAND }} />; |
| 32 | } |