Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
666fa2e
S339: Home in five beats, four doors that open in place
claude Nov 21, 2026
cdecd2f
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
a92575b
S339: darker sage and copper ink on the open door panel
claude Nov 21, 2026
369edae
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
3c6e32d
S339: Home round 2, riveted plates, house arrows and icons, three-up …
claude Nov 21, 2026
5b318d1
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
47bd382
S339: seated value icons, inline rivet bullets, copper to sage menu bar
claude Nov 21, 2026
76fbfc8
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
b960db4
S339: shop system sitewide, no section numbers, one closer, leaner fo…
claude Nov 21, 2026
39d1798
S339: a share card for every page, in the site's own type
claude Nov 21, 2026
ccae156
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
9ca0076
S339: Services, Work and Pricing fold into tabs, rails and plates
claude Nov 21, 2026
cd5dbb4
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
107c06b
S339: case study, town and service templates fold
claude Nov 21, 2026
8d3d983
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
f7ac5f6
S339: About, Chere', Process and FAQ fold; contact closer dedupes
claude Nov 21, 2026
9034cd0
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
fa4aee3
S339: in-text links inside folds are underlined
claude Nov 21, 2026
c5abe01
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
ed66be7
S339: footer lists fold on phones, the Wall loses its numbers
claude Nov 21, 2026
83b6bcd
S339: Home values in one line each, phone panel drops its kicker
claude Nov 21, 2026
8c3559b
S339: the live sites one tap away, and the card motion back
claude Nov 21, 2026
b9e0575
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
b1084bd
S339: Why Winters Code, no competitor knocks, a spec sheet, video and…
claude Nov 21, 2026
ca89bf2
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
b87c014
S339: a solid top bar and text bar
claude Nov 21, 2026
9392e94
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
15d45c9
S339: share cards load on the preview
claude Nov 21, 2026
cda5754
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
289914a
S339: a live-sites reel in the Websites door
claude Nov 21, 2026
4ebab39
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
4b0b597
S339: the phone text bar sits right on Android
claude Nov 21, 2026
dc99083
S339: asset versions for the reel files
claude Nov 21, 2026
388fd0a
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
b503710
S339: an automation reel in the Automation door
claude Nov 21, 2026
a3ca716
S339: asset versions for the automation reel
claude Nov 21, 2026
02fc0a0
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
8875459
S339: the phone menu panel drops the safe-area insets too
claude Nov 21, 2026
5cc7677
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
97fd0d3
S339: the serif stays; the sans preview switch goes
claude Nov 21, 2026
1a8fec3
S339: the reels recut, with poster openings and the spend view
claude Nov 21, 2026
7c8265e
S339: asset versions for the recut reels
claude Nov 21, 2026
ba87470
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
fa322be
S339: both door reels filmed on a phone
claude Nov 21, 2026
bd6b273
S339: asset versions for the phone cuts
claude Nov 21, 2026
a107fb4
chore: recapture the build golden for the S339 home
claude Nov 21, 2026
c4a2f32
S339: the other four menus close the sites reel; the deck leads autom…
claude Nov 22, 2026
89920f7
S339: asset versions for the final door cuts
claude Nov 22, 2026
355fe8e
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
6d8e737
S339: page pass, legal pages fold, the wide reel opens on all nine sites
claude Nov 22, 2026
b2a3632
S339: asset versions for the nine-site reel
claude Nov 22, 2026
d0583de
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
8f388fb
Merge main into S339: Chere' join Android lane and its share card (S384)
claude Nov 22, 2026
b9070dd
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
0f709b8
S339: every page says each thing once; the latest Chere' cut on Home
claude Nov 22, 2026
64488ce
S339: asset versions for the Chere' poster set
claude Nov 22, 2026
9334435
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
9d27082
Merge main into S339: Chere' join Android starts with a text (S384 #56)
claude Nov 22, 2026
92e169f
S339: Chere' join, iPhone and Android side by side with the text step…
claude Nov 22, 2026
862be88
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
337acc7
S339: Chere' join links only what works; Chere', FAQ and Services say…
claude Nov 22, 2026
4b91d5e
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
9d170ac
S339: review fixes before production
claude Nov 22, 2026
61cc29c
S339: a door or tab that closes pauses its video
claude Nov 22, 2026
de78bb3
chore: recapture the build golden for the S339 home
claude Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 113 additions & 55 deletions .goldens/manifest.tsv

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ export default defineConfig({
// file path, so the PostCSS route is the one that breaks now.
vite: {
plugins: [tailwindcss({ optimize: false })],
// S339: a preview build sets WC_OG_ORIGIN to its own host so share cards
// load from the preview; production leaves it unset (BaseLayout).
define: { __WC_OG_ORIGIN__: JSON.stringify(process.env.WC_OG_ORIGIN || '') },
// Raise the inline-asset threshold from the Vite default of 4096
// bytes to 65536 bytes (64KB). Lighthouse mobile run flagged ~1,580ms of
// render-blocking CSS from four per-component chunks at 2-9KB each
Expand Down
Binary file added public/og/about.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/audit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/changelog.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/chere-join.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/chere-privacy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/chere-support.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/chere.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/contact.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/credits.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/faq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/insights-coos-county-website-audit.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/insights.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/logo-design.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/pricing.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/privacy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/process.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-ai-automation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-app-development.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-custom-software.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-seo-performance.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-web-design.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services-web-development.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/services.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/terms.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/wall.jpg
Binary file added public/og/web-design-bandon.jpg
Binary file added public/og/web-design-coos-bay.jpg
Binary file added public/og/web-design-coquille.jpg
Binary file added public/og/web-design-for-contractors.jpg
Binary file added public/og/web-design-for-real-estate.jpg
Binary file added public/og/web-design-for-restaurants.jpg
Binary file added public/og/web-design-gold-beach.jpg
Binary file added public/og/web-design-myrtle-point.jpg
Binary file added public/og/web-design-north-bend.jpg
Binary file added public/og/web-design-port-orford.jpg
Binary file added public/og/web-design-reedsport.jpg
Binary file added public/og/website-redesign.jpg
Binary file added public/og/work-bandon-by-the-dunes.jpg
Binary file added public/og/work-baseline-marketing.jpg
Binary file added public/og/work-grand-management.jpg
Binary file added public/og/work-professors-golf.jpg
Binary file added public/og/work-seabreeze.jpg
Binary file added public/og/work-sogn-contracting.jpg
Binary file added public/og/work-stainslayer-ai.jpg
Binary file added public/og/work-us-survey-supply.jpg
Binary file added public/og/work.jpg
Binary file added public/work/auto-reel-poster-720.webp
Binary file added public/work/auto-reel.mp4
Binary file not shown.
Binary file added public/work/auto-reel.webm
Binary file not shown.
Binary file added public/work/chere-master-poster-1280.avif
Binary file not shown.
Binary file added public/work/chere-master-poster-480.avif
Binary file not shown.
Binary file added public/work/chere-master-poster-480.webp
Binary file added public/work/chere-master-poster-720.avif
Binary file not shown.
Binary file added public/work/chere-master-poster-720.webp
Binary file added public/work/sites-reel-poster-720.webp
Binary file added public/work/sites-reel.mp4
Binary file not shown.
Binary file added public/work/sites-reel.webm
Binary file not shown.
2 changes: 2 additions & 0 deletions scripts/astro-build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const KEEP = [
'HTTPS_PROXY', 'HTTP_PROXY', 'NO_PROXY', 'https_proxy', 'http_proxy', 'no_proxy',
// src/layouts/BaseLayout.astro reads CF_PAGES_BRANCH to noindex Pages previews
'CF_PAGES', 'CF_PAGES_BRANCH', 'CF_PAGES_COMMIT_SHA', 'CF_PAGES_URL',
// A public host name, not a secret: the preview build's share-card origin.
'WC_OG_ORIGIN',
]

// Fixed values only: a constant cannot make two builders differ.
Expand Down
125 changes: 125 additions & 0 deletions scripts/cards/og-cards.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
// Share cards, one per page. S339 round 3 (Preston 2026-11-21: "share cards
// need updated to be as good"). The old single card was set in a stand-in
// serif because the renderer never had the site's fonts.
//
// What it does: reads every page in dist/client after a build, takes the
// page's H1, sets it in the site's own Fraunces, Plex and JetBrains Mono on a
// riveted plate with the seal and the annealed copper, and writes
// public/og/<slug>.jpg at 1200x630 plus src/lib/og-cards.json, the list
// BaseLayout reads to point og:image at the page's own card.
//
// Run after `npm run build`, then build again so the cards ship:
// PLAYWRIGHT=/path/to/playwright CHROMIUM=/path/to/chrome node scripts/cards/og-cards.mjs
// Playwright is not a dependency of this repo; any install works.
import { readFileSync, writeFileSync, readdirSync, statSync, mkdirSync } from 'node:fs';
import { join, relative, resolve } from 'node:path';
import { createRequire } from 'node:module';
import { pathToFileURL } from 'node:url';

const root = resolve(new URL('../..', import.meta.url).pathname);
const dist = join(root, 'dist/client');
const require = createRequire(import.meta.url);
const { chromium } = require(process.env.PLAYWRIGHT || 'playwright');

// Pages whose copper phrase reads better chosen by hand than by the rule.
const COPPER = {
'/': 'software.',
'/about': 'Preston Winters.',
'/chere': 'back office.',
'/process': 'a live site you own.',
'/audit': 'doing right',
'/wall': 'live.',
'/services/app-development': 'Both app stores.',
'/services/ai-automation': 'not the buzzword kind.',
'/faq': 'answered.',
'/work/grand-management': '13 business days.',
};
const SKIP = new Set(['/404', '/lamp', '/media']);

const walk = (dir) => readdirSync(dir).flatMap((f) => {
const p = join(dir, f);
return statSync(p).isDirectory() ? walk(p) : p.endsWith('.html') ? [p] : [];
});
const decode = (s) => s.replace(/&#39;|&apos;/g, "'").replace(/&quot;/g, '"').replace(/&amp;/g, '&').replace(/&nbsp;/g, ' ').replace(/&lt;/g, '<').replace(/&gt;/g, '>');
const esc = (s) => s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');

const pages = [];
for (const file of walk(dist)) {
const rel = '/' + relative(dist, file).replace(/\.html$/, '').replace(/(^|\/)index$/, '');
const path = rel === '/' || rel === '' ? '/' : rel.replace(/\/$/, '');
if (SKIP.has(path) || path.startsWith('/api')) continue;
const html = readFileSync(file, 'utf8');
if (/name="robots" content="[^"]*noindex/.test(html)) continue;
const m = html.match(/<h1[^>]*>([\s\S]*?)<\/h1>/);
if (!m) continue;
const h1 = decode(m[1].replace(/<[^>]+>/g, ' ')).replace(/\s+/g, ' ').trim();
pages.push({ path, slug: path === '/' ? 'home' : path.slice(1).replace(/\//g, '-'), h1 });
}

// The copper phrase: a hand pick, else the second sentence, else the last word.
function split(path, h1) {
let cu = COPPER[path];
if (!cu) {
const sentences = h1.match(/[^.!?]+[.!?]/g);
const words = h1.split(' ');
cu = sentences && sentences.length > 1 ? sentences[sentences.length - 1].trim() : words.slice(words.length > 2 ? -2 : -1).join(' ');
}
const i = h1.lastIndexOf(cu);
return i < 0 ? [h1, ''] : [h1.slice(0, i), h1.slice(i)];
}

const font = (f) => pathToFileURL(join(root, 'public/_fonts', f)).href;
const seal = pathToFileURL(join(root, 'public/wc-seal-512.webp')).href;
const css = `
@font-face{font-family:F;src:url(${font('fraunces-normal-400-700.woff2')});font-weight:400 700}
@font-face{font-family:F;font-style:italic;src:url(${font('fraunces-italic-400-700.woff2')});font-weight:400 700}
@font-face{font-family:P;src:url(${font('plex-sans-400.woff2')});font-weight:400}
@font-face{font-family:P;src:url(${font('plex-sans-600.woff2')});font-weight:600}
@font-face{font-family:M;src:url(${font('jetbrains-mono-500.woff2')});font-weight:500}
*{box-sizing:border-box;margin:0}
html,body{width:1200px;height:630px;background:#0a0d0c;overflow:hidden}
body{position:relative;font-family:P;color:#eef1ec;
background:radial-gradient(60% 70% at 8% 0%,rgba(240,160,110,.20),transparent 70%),radial-gradient(55% 65% at 100% 100%,rgba(77,216,168,.14),transparent 70%),#0a0d0c}
.plate{position:absolute;inset:28px;border-radius:30px;border:1px solid rgba(221,228,230,.12);
background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,0) 40%);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.rv{position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#f6c39c,#c47b45 55%,#8a5430);box-shadow:0 0 0 4px rgba(211,130,60,.12)}
.tl{top:50px;left:50px}.tr{top:50px;right:50px}.bl{bottom:50px;left:50px}.br{bottom:50px;right:50px}
.mast{position:absolute;top:76px;left:92px;display:flex;align-items:center;gap:18px}
.mast img{width:76px;height:76px}
.name{font-family:F;font-weight:600;font-size:32px;letter-spacing:-.01em}
.loc{font-family:M;font-size:15px;letter-spacing:.2em;text-transform:uppercase;color:#d3823c;margin-top:4px}
h1 span.t{display:block}
h1{position:absolute;left:92px;right:92px;top:170px;bottom:150px;display:flex;align-items:center;font-family:F;font-weight:500;letter-spacing:-.025em;line-height:1.02;text-wrap:balance}
.cu{font-style:italic;background:linear-gradient(100deg,#f7b98d 0%,#e3935a 38%,#b8703f 72%,#8f5a35 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.06em}
.foot{position:absolute;left:92px;right:92px;bottom:76px;display:flex;align-items:center;justify-content:space-between}
.tag{font-family:F;font-style:italic;font-size:30px;color:#5fe8b5}
.url{font-family:M;font-size:18px;letter-spacing:.16em;color:#aab7ba}
.lamp{display:inline-block;width:10px;height:10px;border-radius:50%;background:#5fe8b5;box-shadow:0 0 0 4px rgba(77,216,168,.18),0 0 14px rgba(95,232,181,.7);margin-right:14px;vertical-align:2px}
`;
const sizeFor = (t) => (t.length <= 28 ? 112 : t.length <= 44 ? 96 : t.length <= 60 ? 80 : 68);

const browser = await chromium.launch(process.env.CHROMIUM ? { executablePath: process.env.CHROMIUM } : {});
const page = await browser.newPage({ viewport: { width: 1200, height: 630 }, deviceScaleFactor: 1 });
mkdirSync(join(root, 'public/og'), { recursive: true });
const tmp = join(root, 'dist', '.og-card.html');
const done = [];
for (const p of pages) {
const [lead, cu] = split(p.path, p.h1);
const body = `<!doctype html><html><head><meta charset="utf-8"><style>${css}</style></head><body>
<div class="plate"></div><span class="rv tl"></span><span class="rv tr"></span><span class="rv bl"></span><span class="rv br"></span>
<div class="mast"><img src="${seal}" alt=""><div><div class="name">Winters Code</div><div class="loc">Bandon, Oregon</div></div></div>
<h1 style="font-size:${sizeFor(p.h1)}px"><span class="t">${esc(lead)}<span class="cu">${esc(cu)}</span></span></h1>
<div class="foot"><div class="tag"><span class="lamp"></span>Help is just a text away.</div><div class="url">WINTERSCODE.COM</div></div>
</body></html>`;
// A file page, so the fonts and the seal load from disk (setContent runs
// on about:blank, which may not read file: URLs).
writeFileSync(tmp, body);
await page.goto(pathToFileURL(tmp).href, { waitUntil: 'load' });
await page.evaluate(() => document.fonts.ready);
await page.screenshot({ path: join(root, 'public/og', `${p.slug}.jpg`), type: 'jpeg', quality: 88 });
done.push(p.path);
}
await browser.close();
try { (await import('node:fs')).unlinkSync(tmp); } catch {}
writeFileSync(join(root, 'src/lib/og-cards.json'), JSON.stringify(done.sort(), null, 2) + '\n');
console.log(`og-cards: ${done.length} cards written to public/og`);
11 changes: 11 additions & 0 deletions src/asset-versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"/work/auto-reel-poster-720.webp": "e4048802",
"/work/auto-reel.mp4": "eed6b1b6",
"/work/auto-reel.webm": "adf471c9",
"/work/baseline-card-480.webp": "7b8da2ed",
"/work/baseline-card-720.webp": "6359ac8d",
"/work/baseline-card.webp": "cc6ee1db",
Expand All @@ -11,7 +14,12 @@
"/work/bbtd-card.webp": "5d168df7",
"/work/chere-demo.mp4": "1a46e21e",
"/work/chere-demo.webm": "718e5461",
"/work/chere-master-poster-1280.avif": "58f0d995",
"/work/chere-master-poster-1280.webp": "9b0b5aee",
"/work/chere-master-poster-480.avif": "3f1cd9e7",
"/work/chere-master-poster-480.webp": "098023c2",
"/work/chere-master-poster-720.avif": "6f705d14",
"/work/chere-master-poster-720.webp": "93af517a",
"/work/chere-master.mp4": "0161a17c",
"/work/chere-master.webm": "5072413b",
"/work/chere-poster-1280.avif": "67b92545",
Expand Down Expand Up @@ -50,6 +58,9 @@
"/work/seabreeze-card-480.webp": "16b3649d",
"/work/seabreeze-card-720.webp": "3675f4a9",
"/work/seabreeze-card.webp": "76ca3212",
"/work/sites-reel-poster-720.webp": "285bb8ae",
"/work/sites-reel.mp4": "f61a7abf",
"/work/sites-reel.webm": "dc9de42f",
"/work/sogn-card-480.webp": "788b9e36",
"/work/sogn-card-720.webp": "4ad061ba",
"/work/sogn-card.png": "aade0e9d",
Expand Down
78 changes: 78 additions & 0 deletions src/components/home/HomeClose.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
/**
* HomeClose. S339 home consolidation, beat 05: the tagline as the last word.
*
* "Help is just a text away." set as large as the H1, then the one filled
* control on the page's final screen (Text), Call as the quiet second, and the
* reply line. The Tangle's locked close ("I'm down the road. I pick up the
* phone.") lands here now that the Tangle is off Home.
*
* Keeps id="contact" from the shared closer, so header links to #contact
* still land; data-textbar-hide sits on the keys row, so the phone thumb bar
* steps aside only while these keys are on screen.
*/
import { smsHref, telHref, phoneDisplay } from '../../lib/text-cta';
import Arrow from '../ui/Arrow.astro';

const sms = smsHref('/');
---

<section class="hc" id="contact" aria-labelledby="hc-h2">
<div class="hc-glow" aria-hidden="true"></div>
<div class="hc-inner">
<p class="wc-eyebrow"><span class="wc-dot" aria-hidden="true"></span>Reach out</p>
<h2 class="hc-h2" id="hc-h2">Help is just a <span class="hc-cu">text away.</span></h2>
<p class="hc-sub">I'm down the road. I pick up the phone.</p>

<div class="hc-actions" data-textbar-hide>
<a class="wc-btn wc-btn--primary hc-btn" href={sms}>
<span class="hc-btn-stack">
<span class="hc-btn-label">Text Preston</span>
<span class="hc-btn-num">{phoneDisplay}</span>
</span>
<Arrow size={22} />
</a>
<a class="wc-btn wc-btn--ghost hc-call" href={telHref}>
<span class="hc-btn-stack">
<span class="hc-btn-label">Call</span>
<span class="hc-btn-num">{phoneDisplay}</span>
</span>
</a>
</div>

<p class="hc-reply">I answer my texts within a few hours during business days.</p>
</div>
</section>

<style>
.hc {
position: relative; overflow: hidden; isolation: isolate;
padding: clamp(72px, 11vw, 160px) var(--home-gut) clamp(72px, 10vw, 140px);
}
.hc-glow {
position: absolute; z-index: -1; inset: 0; pointer-events: none;
background:
radial-gradient(50% 60% at 85% 20%, rgba(240, 160, 110, 0.11), transparent 70%),
radial-gradient(45% 55% at 10% 95%, rgba(77, 216, 168, 0.07), transparent 72%);
}
.hc-inner { max-width: var(--home-max); margin: 0 auto; }
.hc-h2 {
margin: 0; max-width: 14ch;
font-family: var(--wc-display); font-weight: 500;
font-size: clamp(44px, 8.6vw, 112px); line-height: 0.98; letter-spacing: -0.025em;
color: #eef1ec; text-wrap: balance;
}
.hc-cu {
background: var(--wc-annealed); -webkit-background-clip: text; background-clip: text; color: transparent;
font-style: italic; padding-right: 0.06em;
}
.hc-sub { margin: clamp(20px, 3vw, 30px) 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--color-ash-300); }

.hc-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; max-width: 460px; margin-top: clamp(28px, 4vw, 44px); }
.hc-btn, .hc-call { min-height: 72px; }
.hc-btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.hc-btn-label { font-size: 18px; font-weight: 600; }
.hc-btn-num { font-family: var(--font-mono); font-size: 12.5px; font-weight: 400; opacity: 0.78; }
.hc-reply { margin: 22px 0 0; font-size: 15px; color: var(--color-ash-500); }

</style>
Loading