Repository navigation
Expand file tree
/
Copy pathshowcase.html
More file actions
568 lines (524 loc) · 34.1 KB
/
Copy pathshowcase.html
File metadata and controls
568 lines (524 loc) · 34.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
document.documentElement.classList.add('js');
// Honor prefers-reduced-motion on the hero <video>: pause it ASAP
// and detach autoplay/loop so the poster image stays in place
// instead of forcing the user to watch a 5-second motion loop.
(function () {
if (!(window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches)) return;
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('video[autoplay]').forEach(function (v) {
try { v.pause(); } catch (e) {}
v.removeAttribute('autoplay');
v.removeAttribute('loop');
try { v.currentTime = 0; } catch (e) {}
});
});
})();
</script>
<meta name="description" content="B2B engineering, architecture, and AI-assisted development work from a working senior software and infrastructure engineer with 25 years of experience.">
<title>Learn with O.J. - For Companies and Referrers</title>
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://learnwithoj.com/showcase">
<meta property="og:title" content="Learn with O.J. - For Companies and Referrers">
<meta property="og:description" content="B2B engineering, architecture, and AI-assisted development work from a working senior software and infrastructure engineer with 25 years of experience.">
<meta property="og:image" content="https://learnwithoj.com/assets/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Learn with O.J. - For Companies and Referrers">
<meta name="twitter:description" content="B2B engineering, architecture, and AI-assisted development work from a working senior software and infrastructure engineer with 25 years of experience.">
<meta name="twitter:image" content="https://learnwithoj.com/assets/og-image.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" as="style" crossorigin href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap">
<link rel="stylesheet" crossorigin href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" media="print" onload="this.media='all'">
<noscript><link rel="stylesheet" crossorigin href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap"></noscript>
<link rel="stylesheet" href="styles.css?v=28">
<!-- Analytics -->
<script data-goatcounter="https://learnwithoj.goatcounter.com/count"
async src="https://gc.zgo.at/count.js"></script>
</head>
<body class="showcase-page">
<header class="header">
<div class="container">
<a href="/" class="logo">Learn with O.J.</a>
<nav class="nav-links">
<a href="/resources.html" class="nav-link">Resources</a>
<a href="https://book.learnwithoj.com" class="btn-header">Quick chat (15 min)</a>
</nav>
</div>
</header>
<main>
<section id="hero" class="showcase-hero">
<div class="container">
<div class="showcase-hero-content">
<div class="showcase-hero-portrait">
<video class="showcase-hero-video" autoplay muted loop playsinline preload="metadata" poster="assets/oj-headshot.jpg" aria-label="O.J., senior software and infrastructure engineer">
<source src="assets/oj-headshot-hero.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<p class="showcase-hero-eyebrow">For companies and referrers</p>
<h1 class="showcase-hero-title">Glad we met.</h1>
<p class="showcase-hero-subtitle">I'm O.J. and I'm a working senior software and infrastructure engineer taking on B2B contracts at $325/hr in cash. Senior engineering, architecture, and AI-assisted development. Below is everything you need to refer me, hire me, or send a question my way.</p>
<div class="showcase-hero-cta">
<a class="btn-primary" href="https://book.learnwithoj.com">Quick chat (15 min)</a>
<a class="btn-secondary" href="mailto:oj@learnwithoj.com">Email me</a>
</div>
<a class="showcase-hero-jump" href="#refer">Or send a referral <span class="showcase-hero-jump-arrow" aria-hidden="true">↓</span></a>
</div>
</div>
</section>
<section id="services" class="section section-alt">
<div class="container container-wide">
<h2>What I do for companies</h2>
<div class="services-grid">
<article class="feature-card service-card">
<div class="feature-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"/>
<polyline points="8 6 2 12 8 18"/>
</svg>
</div>
<h3>Senior software engineering</h3>
<p class="service-summary">Production engineering work alongside your existing team.</p>
<ul class="service-list">
<li>Go, Python, JavaScript</li>
<li>Refactoring legacy systems toward maintainability</li>
<li>Code review at staff and principal level</li>
<li>Turning vibecoded MVPs into production-ready software</li>
</ul>
</article>
<article class="feature-card service-card">
<div class="feature-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="6" rx="1.5"/>
<rect x="3" y="14" width="18" height="6" rx="1.5"/>
<circle cx="7" cy="7" r="0.6" fill="currentColor" stroke="none"/>
<circle cx="7" cy="17" r="0.6" fill="currentColor" stroke="none"/>
</svg>
</div>
<h3>Infrastructure and SRE</h3>
<p class="service-summary">Cloud infrastructure and reliability work, end to end.</p>
<ul class="service-list">
<li>Kubernetes and AWS, including managed K8s migrations</li>
<li>Observability built around SLOs and error budgets</li>
<li>CI/CD pipelines and deployment automation in GitHub Actions</li>
<li>On-call design, incident response, postmortem culture</li>
<li>Cost optimization</li>
</ul>
</article>
<article class="feature-card service-card">
<div class="feature-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.937A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.582a.5.5 0 0 1 0 .963L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/>
<path d="M20 3v4"/>
<path d="M22 5h-4"/>
<path d="M4 17v2"/>
<path d="M5 18H3"/>
</svg>
</div>
<h3>AI-assisted development</h3>
<p class="service-summary">Training engineering teams to use AI tools effectively in their actual codebase.</p>
<ul class="service-list">
<li>Building agentic workflows that ship to production, not demos</li>
<li>Code review and evals for AI-generated code</li>
<li>Closing the gap between AI prototypes and reliable software</li>
</ul>
</article>
<article class="feature-card service-card">
<div class="feature-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="9"/>
<polygon points="16.5 7.5 13.5 13.5 7.5 16.5 10.5 10.5"/>
</svg>
</div>
<h3>Fractional engineering leadership</h3>
<p class="service-summary">Technical strategy at the CTO and VP-Engineering level for small companies.</p>
<ul class="service-list">
<li>Build versus buy decisions</li>
<li>Hiring and team scaffolding</li>
<li>Bridging dev, infra, and product without political theater</li>
</ul>
</article>
</div>
</div>
</section>
<section id="how" class="section">
<div class="container">
<h2>How engagements work</h2>
<ul class="steps engagement-steps">
<li class="step">
<div class="step-number">1</div>
<div class="step-content">
<h3>Direct billing at $325/hr in cash.</h3>
<p>No agency markup, no equity-only deals. Invoiced through Learn with O.J. LLC.</p>
</div>
</li>
<li class="step">
<div class="step-number">2</div>
<div class="step-content">
<h3>Independent contractor.</h3>
<p>1099 in the US. Your team retains full control of priorities and IP.</p>
</div>
</li>
<li class="step">
<div class="step-number">3</div>
<div class="step-content">
<h3>Trust-but-verify start.</h3>
<p>Most engagements begin with a small, well-defined project before scaling up. The first 10 to 20 hours prove the fit before either side commits to more.</p>
</div>
</li>
<li class="step">
<div class="step-number">4</div>
<div class="step-content">
<h3>Alongside your existing team, not over them.</h3>
<p>No throw-it-over-the-wall consulting. Pair programming, code review, async writeups, and showing up to your existing meetings on your existing tools.</p>
</div>
</li>
<li class="step">
<div class="step-number">5</div>
<div class="step-content">
<h3>Specialists when needed.</h3>
<p>A vetted network for cybersecurity, ML, and other domains outside the software and infrastructure scope. Brought in transparently, billed directly to you.</p>
</div>
</li>
</ul>
</div>
</section>
<section id="proof" class="section section-alt">
<div class="container">
<h2>Recent work</h2>
<ul class="proof-list">
<li class="proof-item">
<h3>Fractional CTO engagement, currently active.</h3>
<p>Technical strategy, hiring, architecture review for a small B2B SaaS company.</p>
</li>
<li class="proof-item">
<h3>AI-assisted development training.</h3>
<p>Closed Q1 2026 after a single discovery call with the company's CTO. Multi-session training program for their distributed engineering team.</p>
</li>
<li class="proof-item">
<h3>25 discovery conversations completed in the first quarter.</h3>
<p>Across founders, operators, and engineering leaders. Pipeline of additional B2B engagements building from those.</p>
</li>
<li class="proof-item">
<h3>LinkedIn content engine compounding.</h3>
<p>A career story posted in mid-April reached 119,000+ impressions, 64,000+ members, and generated hundreds of inbound DMs. Inbound is converting.</p>
</li>
</ul>
</div>
</section>
<section id="voices" class="section section-alt">
<div class="container container-full">
<h2>What people I've worked with say</h2>
<div class="testimonials-carousel">
<button class="carousel-arrow carousel-arrow-left" aria-label="Previous testimonial">‹</button>
<div class="testimonials-track">
<div class="testimonial-card">
<img src="testimonials/mohammad-abuhaija-avatar.jpeg" alt="Mohammad Abuhaija" class="testimonial-avatar">
<blockquote class="testimonial-quote">"Olivia is a bright engineer with strong technical skills and sound leadership abilities. Her contributions were critical to launching key products on time and she consistently stepped up to help junior engineers get up to speed and deliver. She took ownership of critical delivery initiatives and made the people around her better by offering support and guidance to other team members. She's a valuable professional and the kind of engineer you want on your team."</blockquote>
<div class="testimonial-author">
<p class="testimonial-name">Mohammad Abuhaija</p>
<p class="testimonial-title">Director, Site Reliability Engineering & Enterprise DevOps</p>
<p class="testimonial-company">American Express</p>
<img class="testimonial-company-logo" src="assets/logos/american-express.svg" alt="" loading="lazy">
</div>
</div>
<div class="testimonial-card">
<img src="testimonials/mike-forrest-avatar.jpeg" alt="Mike Forrest" class="testimonial-avatar">
<blockquote class="testimonial-quote">"Olivia 'OJ' Wilcox took my idea for ALMA my friend, an app to help seniors and veterans get through the challenges of aging, and with detailed and insightful knowledge, created a plan then initiated development of my thoughts. She is easy and wonderful to work with, creative, and provides a product with detailed, understanding documentation. I highly recommend her."</blockquote>
<div class="testimonial-author">
<p class="testimonial-name">Mike Forrest</p>
<p class="testimonial-title">Founder</p>
<p class="testimonial-company">ALMA my friend</p>
<img class="testimonial-company-logo" src="assets/logos/alma-my-friend.png" alt="" loading="lazy">
</div>
</div>
<div class="testimonial-card">
<img src="testimonials/tom-schaeffer-avatar.jpeg" alt="Tom Schaeffer" class="testimonial-avatar">
<blockquote class="testimonial-quote">"I hired Olivia early in her career and saw right away that she had the drive and technical ability to grow into something special. She showed early on that she had the technical chops and a deep understanding of our business goals, helping develop a broader business strategy. She helped us build products in a competitive space and brought energy to the team, making everyone better. We've stayed in touch ever since, and I'm not surprised at all that she's building her own thing now!"</blockquote>
<div class="testimonial-author">
<p class="testimonial-name">Tom Schaeffer</p>
<p class="testimonial-title">Founder, Executive Ghostwriter</p>
<p class="testimonial-company">Tom Schaeffer & Co.</p>
<img class="testimonial-company-logo" src="assets/logos/tom-schaeffer.svg" alt="" loading="lazy">
</div>
</div>
<div class="testimonial-card">
<img src="testimonials/sylke-lopez-avatar.jpeg" alt="Sylke Lopez" class="testimonial-avatar">
<blockquote class="testimonial-quote">"Working with Olivia on the Women's Code and Coffee Python workshops was a standout experience. Back in 2018, Olivia was already leading hands-on sessions on machine learning chatbots, years before AI became mainstream. She explains concepts in multiple ways, creating a supportive and confidence-building learning environment. Olivia is endlessly patient, welcoming, and generous with her time, and her volunteer work made a real impact on everyone who showed up to learn."</blockquote>
<div class="testimonial-author">
<p class="testimonial-name">Sylke Lopez</p>
<p class="testimonial-title">Senior Designer</p>
<p class="testimonial-company">Microsoft</p>
<img class="testimonial-company-logo" src="assets/logos/microsoft.svg" alt="" loading="lazy">
</div>
</div>
</div>
<button class="carousel-arrow carousel-arrow-right" aria-label="Next testimonial">›</button>
</div>
</div>
</section>
<section id="trust" class="section">
<div class="container">
<div class="trust-frame">
<h2>How I show up when it matters</h2>
<div class="trust-story">
<p>A few years ago my boss walked past my desk and said "there's a problem" without stopping. I grabbed my laptop and followed.</p>
<p>The CEO's highest-visibility system was down in production. The room was full of senior infrastructure engineers and big bosses, with one developer eyes-down on his laptop trying to find it.</p>
<p>I started asking questions. Specific first, the code, the deployment, the config. When everything checked out I pulled back. What changed in the environment? What changed in the world? The room joined in. Daylight saving time came up. The dev checked. That was it.</p>
<p>I don't remember exactly who landed on it and it doesn't matter. We found it together and that's how it's supposed to work.</p>
</div>
<p class="trust-punchline">The engineer who gets called into the crisis isn't always the one with the deepest domain knowledge. It's the one people trust to ask the right questions and keep the room moving.</p>
<p class="trust-transition">Alex Maher was one of the bosses in that room. A few years later he hired me. A few years after that he hired me again at a different company.</p>
<figure class="trust-quote">
<blockquote class="maher-quote">
<p>I had the pleasure of working with Olivia across two companies. Having the opportunity to rehire someone says a lot about the trust and confidence you have in their character and contributions, and Olivia fully earned that confidence. She is one of the most collaborative and positive team members I've worked with.</p>
</blockquote>
<figcaption class="maher-attribution">
<span class="maher-name">Alexander Maher</span><span class="maher-divider" aria-hidden="true">·</span><span class="maher-role">Senior Director of Product, DataSnipper</span>
</figcaption>
</figure>
</div>
</div>
</section>
<section id="refer" class="section section-alt">
<div class="container">
<h2>Send someone my way</h2>
<p class="refer-intro">If you know a company that fits, here's intro language you can copy and forward. Edit it however you want.</p>
<div class="refer-template">
<div class="refer-template-chrome" aria-hidden="true">
<span class="refer-template-dot"></span>
<span class="refer-template-dot"></span>
<span class="refer-template-dot"></span>
</div>
<pre class="refer-template-body" id="refer-template-text">Subject: Quick intro: O.J. Wilcox (Learn with O.J.)
Hey <span class="refer-placeholder">[Name]</span>,
Wanted to introduce you to O.J. Wilcox, founder of Learn
with O.J. (learnwithoj.com).
She's a working senior software and infrastructure engineer
with 25 years of experience across startup and Fortune 100
environments. She does fractional engineering leadership,
architecture and infrastructure consulting, and AI-assisted
development training for engineering teams. Currently taking
on B2B contracts at $325/hr in cash, direct billing.
I met her recently and was impressed by her depth and how she
operates. Worth a 15-minute conversation if you have an
engineering or AI need on your radar.
She's at oj@learnwithoj.com or learnwithoj.com.
<span class="refer-placeholder">[Your name]</span></pre>
</div>
<div class="refer-actions">
<button type="button" class="btn-copy" data-copy-target="refer-template-text">
<svg class="btn-copy-icon btn-copy-icon-default" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="6.5" y="6" width="10.5" height="11.5" rx="1.5"/>
<path d="M13.5 6V4.5A1.5 1.5 0 0 0 12 3H5.5A1.5 1.5 0 0 0 4 4.5V13a1.5 1.5 0 0 0 1.5 1.5H7"/>
</svg>
<svg class="btn-copy-icon btn-copy-icon-success" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4 10.5l4 4 8.5-8.5"/>
</svg>
<svg class="btn-copy-icon btn-copy-icon-error" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="10" cy="10" r="8"/>
<line x1="10" y1="6.5" x2="10" y2="11"/>
<circle cx="10" cy="13.75" r="0.5" fill="currentColor" stroke="none"/>
</svg>
<span class="btn-copy-label btn-copy-label-default">Copy intro template</span>
<span class="btn-copy-label btn-copy-label-success">Off it goes ✓</span>
<span class="btn-copy-label btn-copy-label-error">Couldn't copy, select it manually</span>
</button>
</div>
<noscript>
<p class="refer-noscript">Select the text above and copy it. The button needs JavaScript.</p>
</noscript>
<div class="refer-status sr-only" role="status" aria-live="polite"></div>
<ul class="refer-contact">
<li class="refer-contact-item">
<span class="refer-contact-label">Email</span>
<a href="mailto:oj@learnwithoj.com" class="refer-contact-link">oj@learnwithoj.com</a>
</li>
<li class="refer-contact-item">
<span class="refer-contact-label">LinkedIn</span>
<a href="https://www.linkedin.com/in/learnwithoj/" target="_blank" rel="noopener noreferrer" class="refer-contact-link">linkedin.com/in/learnwithoj</a>
</li>
</ul>
</div>
</section>
<section id="footer-pointer" class="section">
<div class="container">
<p class="footer-pointer-text">Looking for 1:1 career strategy or resume review for software and infrastructure engineers? <a href="/">Visit learnwithoj.com <span class="footer-pointer-arrow" aria-hidden="true">→</span></a></p>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<div class="footer-content">
<p class="footer-brand">Learn with O.J. LLC <span class="footer-sep" aria-hidden="true">·</span> West Palm Beach, Florida</p>
<ul class="footer-links">
<li><a href="mailto:oj@learnwithoj.com">oj@learnwithoj.com</a></li>
<li><a href="https://www.linkedin.com/in/learnwithoj/" target="_blank" rel="noopener noreferrer">LinkedIn</a></li>
<li><a href="/agents/policy/">AI policy</a></li>
<li><a href="/agents/">For agents</a></li>
</ul>
<div class="footer-onepercent">
<a class="footer-onepercent-mark" href="https://www.onepercentfortheplanet.org/" target="_blank" rel="noopener noreferrer">
<img src="assets/logos/1ftp-primary-horizontal-fullcolor.png" alt="1% for the Planet" width="188" height="80" loading="lazy" decoding="async">
</a>
<p class="footer-onepercent-text">Learn with O.J. LLC is a member of 1% for the Planet. We have committed to give back 1% of our annual sales to vetted and approved impact partners. Our first certification will take place after our current fiscal year ends.</p>
</div>
<p class="footer-dns">And remember, it's always DNS.</p>
</div>
</div>
</footer>
<script>
(function () {
var button = document.querySelector('.btn-copy[data-copy-target]');
if (!button) return;
var target = document.getElementById(button.getAttribute('data-copy-target'));
var status = document.querySelector('.refer-status');
if (!target) return;
var resetTimer = null;
var SUCCESS_CLASS = 'is-success';
var ERROR_CLASS = 'is-error';
var HOLD_MS = 2000;
var ERROR_HOLD_MS = 4000;
function legacyCopy(text) {
var ta = document.createElement('textarea');
ta.value = text;
ta.setAttribute('readonly', '');
ta.style.position = 'absolute';
ta.style.left = '-9999px';
ta.style.top = '0';
document.body.appendChild(ta);
var prevSelection = document.activeElement;
ta.select();
var ok = false;
try { ok = document.execCommand('copy'); } catch (e) { ok = false; }
document.body.removeChild(ta);
if (prevSelection && typeof prevSelection.focus === 'function') {
prevSelection.focus();
}
return ok;
}
function copyText(text) {
if (navigator.clipboard && window.isSecureContext) {
return navigator.clipboard.writeText(text).then(
function () { return true; },
function () { return legacyCopy(text); }
);
}
return Promise.resolve(legacyCopy(text));
}
function normalizeTemplate(text) {
// Defensive: strip any leading whitespace from each line before
// copying. The <pre> source is currently flush-left, but this
// guards against a future HTML reformatter introducing
// accidental indentation that would otherwise paste into the
// recipient's email client as awkward leading spaces.
return text.split('\n').map(function (line) {
return line.replace(/^[ \t]+/, '');
}).join('\n');
}
function announce(message) {
if (!status) return;
// Re-set so screen readers re-announce on repeated events.
status.textContent = '';
window.setTimeout(function () {
status.textContent = message;
}, 30);
}
function flashState(stateClass, holdMs, message) {
button.classList.remove(SUCCESS_CLASS);
button.classList.remove(ERROR_CLASS);
// Force reflow so the keyframe animation re-fires on rapid repeats.
void button.offsetWidth;
button.classList.add(stateClass);
announce(message);
window.clearTimeout(resetTimer);
resetTimer = window.setTimeout(function () {
button.classList.remove(stateClass);
}, holdMs);
}
button.addEventListener('click', function () {
Promise.resolve(copyText(normalizeTemplate(target.textContent))).then(function (ok) {
if (ok) {
flashState(SUCCESS_CLASS, HOLD_MS, 'Intro template copied to clipboard');
} else {
flashState(ERROR_CLASS, ERROR_HOLD_MS, 'Copy failed. Select the template text and copy it manually.');
}
});
});
})();
// Testimonials carousel: same horizontal-scroll pattern as the homepage,
// with arrows that only appear when the track overflows.
(function () {
var track = document.querySelector('.testimonials-track');
var leftArrow = document.querySelector('.carousel-arrow-left');
var rightArrow = document.querySelector('.carousel-arrow-right');
if (!track || !leftArrow || !rightArrow) return;
function getScrollAmount() {
var card = track.querySelector('.testimonial-card');
if (!card) return 340;
var gap = parseFloat(getComputedStyle(track).gap) || 20;
return card.offsetWidth + gap;
}
function updateArrows() {
var scrollable = track.scrollWidth > track.clientWidth + 1;
track.classList.toggle('can-scroll', scrollable);
if (!scrollable) {
leftArrow.classList.remove('visible');
rightArrow.classList.remove('visible');
return;
}
leftArrow.classList.toggle('visible', track.scrollLeft > 1);
rightArrow.classList.toggle('visible', track.scrollLeft + track.clientWidth < track.scrollWidth - 1);
}
function smoothScroll(distance) {
var start = track.scrollLeft;
var target = Math.max(0, Math.min(start + distance, track.scrollWidth - track.clientWidth));
// Honor prefers-reduced-motion: jump to the target without the
// 300ms RAF easing.
if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
track.scrollLeft = target;
updateArrows();
return;
}
var duration = 300;
var startTime = null;
function step(timestamp) {
if (!startTime) startTime = timestamp;
var progress = Math.min((timestamp - startTime) / duration, 1);
var ease = progress < 0.5
? 2 * progress * progress
: 1 - Math.pow(-2 * progress + 2, 2) / 2;
track.scrollLeft = start + (target - start) * ease;
if (progress < 1) {
requestAnimationFrame(step);
} else {
updateArrows();
}
}
requestAnimationFrame(step);
}
leftArrow.addEventListener('click', function () { smoothScroll(-getScrollAmount()); });
rightArrow.addEventListener('click', function () { smoothScroll(getScrollAmount()); });
track.addEventListener('scroll', updateArrows);
window.addEventListener('resize', updateArrows);
updateArrows();
})();
</script>
</body>
</html>