IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.
TypeScript
Design pass: clearer last section, new footer, calmer shadows, one icon set
Youssef36ee4c959171
diff --git a/package-lock.json b/package-lock.jsonindex d0f711f..ebd685d 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,6 +9,7 @@"version": "0.1.0","dependencies": {"@vercel/analytics": "^1.6.1",+ "lucide-react": "1.54.0","motion": "^14.4.0","next": "16.4.2","react": "19.3.0",@@ -1363,7 +1364,7 @@"version": "19.3.0","resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz","integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==",- "dev": true,+ "devOptional": true,"license": "MIT","peer": true,"dependencies": {@@ -2611,7 +2612,7 @@"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz","integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "dev": true,+ "devOptional": true,"license": "MIT"},"node_modules/damerau-levenshtein": {@@ -4589,6 +4590,21 @@"yallist": "^3.0.2"}},+ "node_modules/lucide-react": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-1.54.0.tgz",+ "integrity": "sha512-kVmnVCBoLztTGe3S76xu8utwxijRLOinknNq9e8btZ0R2fm6WCgxY+weaLiA50odo/yi+apm/4B2A/LsFZhTrw==",+ "license": "ISC",+ "peerDependencies": {+ "@types/react": "*",+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"+ },+ "peerDependenciesMeta": {+ "@types/react": {+ "optional": true+ }+ }+ },"node_modules/math-intrinsics": {"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",diff --git a/package.json b/package.jsonindex 1832f56..4f8e45a 100644--- a/package.json+++ b/package.json@@ -15,6 +15,7 @@},"dependencies": {"@vercel/analytics": "^1.6.1",+ "lucide-react": "1.54.0","motion": "^14.4.0","next": "16.4.2","react": "19.3.0",diff --git a/src/app/browse/page.tsx b/src/app/browse/page.tsxindex fa9accf..603e479 100644--- a/src/app/browse/page.tsx+++ b/src/app/browse/page.tsx@@ -14,7 +14,9 @@ export default function Page() {<main className="browse"><header className="page-head"><h1>All guides</h1>- <p className="lead">{PRODUCT_COUNT} IKEA products in {PRODUCTS.length} sizes, drawn and ready to build. Filter by name or by the article number on the box. Not listed? Search for it by name on the home page.</p>+ <p className="lead">+ {PRODUCT_COUNT.toLocaleString("en-US")} IKEA products in {PRODUCTS.length.toLocaleString("en-US")} sizes, drawn and ready to build.+ </p></header><Catalog search /></main>diff --git a/src/app/globals.css b/src/app/globals.cssindex c021248..a04b54b 100644--- a/src/app/globals.css+++ b/src/app/globals.css@@ -20,7 +20,7 @@--r-sm: 10px;--ring: 0 0 0 1px var(--line);--shadow-1: 0 0 0 1px var(--line), 0 1px 2px rgba(18, 18, 18, 0.03);- --shadow-2: 0 0 0 1px rgba(18, 18, 18, 0.04), 0 2px 6px rgba(18, 18, 18, 0.05), 0 24px 56px -12px rgba(18, 18, 18, 0.16);+ --shadow-2: 0 0 0 1px rgba(18, 18, 18, 0.06), 0 1px 2px rgba(18, 18, 18, 0.03), 0 12px 28px -18px rgba(18, 18, 18, 0.12);--ease: cubic-bezier(0.22, 1, 0.36, 1);--spring: cubic-bezier(0.34, 1.56, 0.64, 1);--font: var(--font-noto), "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;@@ -61,8 +61,71 @@ a {}:focus-visible {- outline: 3px solid var(--blue);- outline-offset: 2px;+ outline: 2px solid var(--ink);+ outline-offset: 3px;+}++/*+ * Words that are part of a picture or a control aren't text to copy: illustration labels,+ * step numbers drawn on the stage, decorative overlays (all aria-hidden) and buttons.+ * Dragging across a drawing or double tapping "Done, next step" no longer paints a selection,+ * and drawings can't be dragged off as ghost images.+ */+svg text,+svg tspan,+[aria-hidden="true"],+button,+[role="tab"],+[role="button"],+.btn,+.chip,+.gh,+.tg-pill,+.nav-link,+.resume,+.cmp-cta,+.cmp-hw,+.empty-go,+.no-select {+ -webkit-user-select: none;+ user-select: none;+}+img,+svg {+ -webkit-user-drag: none;+}+img[aria-hidden="true"],+svg[aria-hidden="true"] {+ -webkit-touch-callout: none;+}+html {+ -webkit-tap-highlight-color: transparent;+}++/* outbound arrow: on hover the arrow leaves up and to the right while its twin slides in behind it */+.arrow-out {+ display: inline-grid;+ flex: none;+ overflow: hidden;+ vertical-align: middle;+}+.arrow-out svg {+ grid-area: 1 / 1;+ transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);+}+.arrow-out svg + svg {+ transform: translate(-110%, 110%);+}+a:hover .arrow-out svg:first-child {+ transform: translate(110%, -110%);+}+a:hover .arrow-out svg + svg {+ transform: none;+}++/* tool and warning drawings keep one line weight at every size */+.line-art * {+ vector-effect: non-scaling-stroke;}::selection {@@ -192,7 +255,7 @@ a {border-radius: 50%;overflow: hidden;background: #fff;- box-shadow: 0 0 0 1.6px var(--ink), 0 10px 30px rgba(20, 20, 20, 0.12);+ box-shadow: 0 0 0 1.6px var(--ink), 0 6px 16px -10px rgba(20, 20, 20, 0.12);pointer-events: none;transform-origin: 70% 30%;}diff --git a/src/app/guide.css b/src/app/guide.cssindex 0751db8..08042d9 100644--- a/src/app/guide.css+++ b/src/app/guide.css@@ -871,23 +871,14 @@}.voice-offer {display: grid;- grid-template-columns: auto minmax(0, 1fr) auto auto;+ grid-template-columns: minmax(0, 1fr) auto auto;align-items: center;- gap: 12px;+ gap: 10px;margin: 0 0 22px;- padding: 12px 8px 12px 12px;+ padding: 12px 8px 12px 18px;border-radius: 18px;background: var(--sunk);}-.voice-offer-ico {- display: grid;- place-items: center;- width: 40px;- height: 40px;- border-radius: 999px;- background: var(--paper);- box-shadow: var(--ring);-}.voice-offer-text {display: grid;gap: 2px;@@ -897,18 +888,20 @@font-weight: 500;font-size: 15.5px;}-.voice-offer-text span {+.voice-offer-text > span {color: var(--ink-2);font-size: 14px;line-height: 1.4;}.btn.voice-offer-go {+ gap: 7px;height: 38px;- padding: 0 16px;+ padding: 0 16px 0 13px;background: var(--ink);color: #fff;font-size: 14.5px;font-weight: 500;+ white-space: nowrap;}.voice-offer-x {display: grid;@@ -1086,9 +1079,10 @@.tcard {perspective: 900px;}+/* both faces share one grid cell, so a card is as tall as its longer face and nothing spills */.tcard-inner {position: relative;- display: block;+ display: grid;width: 100%;min-height: 168px;padding: 0;@@ -1107,8 +1101,9 @@transform: rotateY(180deg);}.tface {- position: absolute;- inset: 0;+ position: relative;+ grid-area: 1 / 1;+ min-width: 0;display: flex;flex-direction: column;border-radius: 18px;@@ -1135,6 +1130,11 @@box-shadow: none;justify-content: center;gap: 6px;+ padding: 16px 34px 16px 16px;+}+.tcard.small .tface.back {+ justify-content: flex-end;+ padding: 12px 12px 13px;}.tart {display: grid;@@ -1189,19 +1189,30 @@.tback-title {font-weight: 800;font-size: 15.5px;+ line-height: 1.25;}.tback-text {font-size: 13.5px;line-height: 1.4;color: rgba(255, 255, 255, 0.82);+ overflow-wrap: anywhere;+}+.tcard.small .tback-text {+ font-size: 13px;+ line-height: 1.35;+ font-weight: 500;+ color: #fff;}.tback-flip {- display: inline-flex;- align-items: center;- gap: 5px;- margin-top: 6px;- font-size: 12px;- font-weight: 600;+ position: absolute;+ top: 10px;+ right: 10px;+ display: grid;+ place-items: center;+ width: 24px;+ height: 24px;+ border-radius: 50%;+ background: rgba(255, 255, 255, 0.12);color: var(--accent);}@@ -1683,7 +1694,7 @@ input[type="range"] {background: #fff;box-shadow:0 0 0 1px var(--line),- 0 10px 22px -12px rgba(18, 18, 18, 0.35);+ 0 6px 14px -10px rgba(18, 18, 18, 0.18);overflow: hidden;transform: rotate(-4deg);transition: transform 0.5s var(--spring);@@ -2375,7 +2386,7 @@ input[type="range"] {transform: translateY(-3px);box-shadow:0 0 0 1.5px var(--ink),- 0 10px 24px -10px rgba(18, 18, 18, 0.25);+ 0 8px 18px -14px rgba(18, 18, 18, 0.16);}.kind-thumb {width: 100%;@@ -2413,7 +2424,7 @@ input[type="range"] {border-radius: 24px 24px 0 0;box-shadow:0 -1px 0 var(--line),- 0 -8px 24px rgba(18, 18, 18, 0.05);+ 0 -6px 18px rgba(18, 18, 18, 0.035);}.guide .topbar {gap: 8px;@@ -2559,18 +2570,12 @@ input[type="range"] {/* the voice invite stays one short row on phones so the step text is still in view */@media (max-width: 900px) {.voice-offer {- gap: 8px;+ gap: 6px;margin: 0 0 16px;- padding: 6px 6px 6px 12px;+ padding: 6px 4px 6px 16px;border-radius: 999px;}- .voice-offer-ico {- width: 30px;- height: 30px;- box-shadow: none;- background: transparent;- }- .voice-offer-text span {+ .voice-offer-text > span {display: none;}.voice-offer-text b {@@ -2581,7 +2586,7 @@ input[type="range"] {}.btn.voice-offer-go {height: 34px;- padding: 0 14px;+ padding: 0 14px 0 11px;font-size: 14px;}/* 16px stops iOS zooming into the field */@@ -2591,6 +2596,13 @@ input[type="range"] {}}+/* the smallest phones keep the question and let the button say the rest */+@media (max-width: 400px) {+ .vo-more {+ display: none;+ }+}+@media (max-width: 420px) {.stepper {gap: 12px;@@ -2603,12 +2615,6 @@ input[type="range"] {.voice-btn span {display: none;}- .voice-offer {- grid-template-columns: minmax(0, 1fr) auto auto;- }- .voice-offer-ico {- display: none;- }.tgrid {gap: 8px;}diff --git a/src/app/home.css b/src/app/home.cssindex 733a38b..d006267 100644--- a/src/app/home.css+++ b/src/app/home.css@@ -103,37 +103,57 @@font-weight: 600;font-variant-numeric: tabular-nums;}+/* GitHub: a two-part pill, the star fills in and turns on hover */.gh {display: inline-flex;- align-items: center;- gap: 7px;- height: 32px;- padding: 0 11px;- border-radius: 8px;- box-shadow: inset 0 0 0 1px var(--line-2);+ align-items: stretch;+ height: 36px;+ border-radius: 999px;+ background: #fff;+ box-shadow: 0 0 0 1px var(--line-2);color: var(--ink);- font-size: 13.5px;- font-weight: 500;+ font-size: 14px;+ font-weight: 600;text-decoration: none;white-space: nowrap;+ overflow: hidden;transition:- background 0.2s,- box-shadow 0.2s;+ box-shadow 0.2s,+ transform 0.2s var(--ease);}.gh:hover {- background: #fff;- box-shadow: inset 0 0 0 1px var(--ink-3);+ box-shadow: 0 0 0 1px var(--ink-3);+}+.gh:active {+ transform: scale(0.97);}-.gh-stars {+.gh-main {display: inline-flex;align-items: center;- gap: 4px;- margin-left: 2px;- padding-left: 9px;- border-left: 1px solid var(--line-2);- color: var(--ink-2);+ gap: 7px;+ padding: 0 12px 0 11px;+}+.gh-count {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ padding: 0 13px 0 10px;+ background: var(--sunk);+ box-shadow: inset 1px 0 0 var(--line-2);font-variant-numeric: tabular-nums;}+.gh-star {+ fill: var(--accent);+ stroke: var(--ink);+ stroke-width: 1.9;+ stroke-linejoin: round;+ transition:+ fill 0.2s,+ transform 0.5s var(--spring);+}+.gh:hover .gh-star {+ transform: rotate(72deg) scale(1.15);+}.lead {font-size: clamp(17px, 1.4vw, 19.5px);@@ -220,6 +240,65 @@max-width: 28em;}+/* the credit above the headline: flat, a hairline, the mark held still in its badge */+.tg-pill {+ display: inline-flex;+ align-items: center;+ gap: 9px;+ height: 34px;+ margin: 0 0 24px;+ padding: 0 12px 0 3px;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.55);+ box-shadow: inset 0 0 0 1px var(--line-2);+ color: var(--ink-2);+ font-size: 13.5px;+ font-weight: 500;+ letter-spacing: -0.005em;+ text-decoration: none;+ transition:+ background-color 0.3s var(--ease),+ box-shadow 0.3s var(--ease),+ color 0.3s var(--ease),+ transform 0.15s var(--ease);+}+.tg-pill:hover {+ background: #fff;+ box-shadow: inset 0 0 0 1px #cbc7bd;+ color: var(--ink);+}+.tg-pill:active {+ transform: scale(0.98);+}+.tg-badge {+ display: grid;+ place-items: center;+ width: 28px;+ height: 28px;+ border-radius: 50%;+ background: #fff;+ box-shadow: inset 0 0 0 1px var(--line);+}+.tg-badge svg {+ display: block;+}+.tg-text b {+ color: var(--ink);+ font-weight: 600;+}+.tg-go {+ color: var(--ink-3);+ transition: color 0.3s var(--ease);+}+.tg-pill:hover .tg-go {+ color: var(--ink);+}+.tg-word {+ display: block;+ color: var(--ink);+ overflow: visible;+}+.search {position: relative;max-width: 560px;@@ -234,13 +313,13 @@border-radius: 999px;box-shadow:0 0 0 1px var(--line-2),- 0 10px 30px -16px rgba(18, 18, 18, 0.22);+ 0 6px 16px -14px rgba(18, 18, 18, 0.14);transition: box-shadow 0.25s var(--ease);}.search-box:focus-within {box-shadow:0 0 0 2px var(--ink),- 0 16px 40px -16px rgba(18, 18, 18, 0.25);+ 0 6px 16px -14px rgba(18, 18, 18, 0.14);}.search-ico {flex: 0 0 auto;@@ -401,7 +480,7 @@display: inline-flex;align-items: center;gap: 12px;- margin-top: 14px;+ margin-top: 36px;padding: 8px 16px 8px 8px;border-radius: 999px;background: #fff;@@ -748,14 +827,16 @@.cat-search {display: flex;align-items: center;- gap: 8px;- height: 40px;- padding: 0 14px;- border-radius: 10px;+ gap: 10px;+ order: -1;+ flex: 1 1 100%;+ max-width: 560px;+ height: 52px;+ padding: 0 8px 0 16px;+ border-radius: 16px;background: #fff;- box-shadow: 0 0 0 1px var(--line-2);+ box-shadow: var(--shadow-1);color: var(--ink-3);- min-width: 260px;transition: box-shadow 0.2s;}.cat-search:focus-within {@@ -765,14 +846,33 @@border: 0;outline: none;background: none;- font-size: 15px;+ font-size: 16px;flex: 1;min-width: 0;+ height: 100%;color: var(--ink);}+.cat-search input::-webkit-search-cancel-button {+ display: none;+}.cat-search input::placeholder {color: var(--ink-3);}+.cat-clear {+ display: grid;+ place-items: center;+ flex: none;+ width: 34px;+ height: 34px;+ border: 0;+ border-radius: 10px;+ background: var(--sunk);+ color: var(--ink-2);+ cursor: pointer;+}+.cat-clear:hover {+ color: var(--ink);+}.pgrid {display: grid;grid-template-columns: repeat(3, minmax(0, 1fr));@@ -793,7 +893,7 @@.pcard:hover {box-shadow:0 0 0 1px var(--line-2),- 0 18px 40px -18px rgba(18, 18, 18, 0.22);+ 0 10px 22px -18px rgba(18, 18, 18, 0.16);}.pcard-art {display: block;@@ -870,10 +970,28 @@display: block;}.empty {+ display: grid;+ justify-items: center;+ gap: 14px;color: var(--ink-2);text-align: center;padding: 40px 0;}+.empty p {+ margin: 0;+}+.empty-go {+ display: inline-flex;+ align-items: center;+ gap: 8px;+ height: 44px;+ padding: 0 18px 0 20px;+ border-radius: 999px;+ background: var(--ink);+ color: #fff;+ font-weight: 600;+ text-decoration: none;+}.cat-more {display: flex;flex-direction: column;@@ -914,497 +1032,527 @@.cmp-head {max-width: 40em;}-.cmp-eyebrow {- margin: 0 0 10px;- font-size: 13px;- font-weight: 700;- letter-spacing: 0.08em;- text-transform: uppercase;- color: var(--ink-3);-}.cmp-sub {margin: 12px 0 0;color: var(--ink-2);font-size: 17px;line-height: 1.5;letter-spacing: -0.016em;+ text-wrap: pretty;}-.cmp-stage {+.cmp-pair {+ display: grid;+ gap: 14px;+ margin: 36px 0 0;+}+.cmp-card {position: relative;- width: 100%;- margin-top: 36px;+ margin: 0;border-radius: 28px;overflow: hidden;background: #fff;box-shadow: var(--shadow-1);- cursor: ew-resize;- user-select: none;- -webkit-user-select: none;- touch-action: pan-y;- -webkit-tap-highlight-color: transparent;}-.cmp-layer {- position: absolute;- inset: 0;+.cmp-card.paper {+ background: #f1ece0;+ box-shadow: 0 0 0 1px #e2dbcb;+}+.cmp-art {+ position: relative;+ width: 100%;}-.cmp-layer > svg {+.cmp-art > svg {display: block;width: 100%;height: 100%;}-.cmp-paper {- will-change: clip-path;-}.cmp-tag {position: absolute;- top: 18px;+ z-index: 2;+ bottom: 18px;+ left: 18px;padding: 6px 12px;border-radius: 999px;font-size: 13px;font-weight: 700;- letter-spacing: 0.02em;+ letter-spacing: 0.01em;white-space: nowrap;}.cmp-tag.paper {- left: 18px;background: rgba(255, 253, 247, 0.85);color: #5d5a53;box-shadow: inset 0 0 0 1px #d9d2c2;}.cmp-tag.bygga {- right: 18px;background: var(--ink);color: #fff;}.cmp-num {position: absolute;font-family: var(--display);- font-size: clamp(56px, 7.6vw, 96px);+ font-size: clamp(44px, 5.4vw, 76px);font-weight: 800;line-height: 0.9;letter-spacing: -0.05em;- pointer-events: none;}.cmp-hw {position: absolute;display: flex;flex-direction: column;align-items: center;- gap: 4px;- padding: 10px 12px 6px;- border-radius: 16px;+ gap: 2px;+ padding: 8px 10px 4px;+ border-radius: 14px;background: #fff;box-shadow: inset 0 0 0 1.8px var(--ink);- pointer-events: none;}.cmp-hw b {- font-size: 15px;+ font-size: 14px;font-weight: 800;}-.cmp-lead path {- fill: none;-}-.cmp-lead.bygga path {- stroke: var(--ink);- stroke-width: 1.6;-}-.cmp-lead.bygga circle {- fill: var(--ink);-}-.cmp-lead.paper path {- stroke: #9a9486;- stroke-width: 1.1;- stroke-dasharray: 4 4;-}-.cmp-lead.paper circle {- fill: #9a9486;+.cmp-hw .cmp-pin {+ position: absolute;+ top: -10px;+ right: -12px;+ translate: none;}-.cmp-chip {+/* a pin's hit area is a little bigger than the pin */+.cmp-spot {position: absolute;- display: inline-flex;- align-items: center;- gap: 7px;+ width: 40px;+ height: 40px;translate: -50% -50%;- padding: 7px 13px 7px 8px;- border-radius: 999px;- font-size: 14px;- font-weight: 600;- white-space: nowrap;- pointer-events: none;-}-.cmp-chip.bygga {- background: var(--ink);- color: #fff;- box-shadow: 0 8px 20px -10px rgba(18, 18, 18, 0.45);-}-.cmp-chip.bygga svg {- flex: none;- width: 20px;- height: 20px;- padding: 3.5px;- border-radius: 50%;- background: var(--accent);- color: var(--ink);-}-.cmp-chip.paper {- background: #fffdf7;- color: #5d5a53;- box-shadow: inset 0 0 0 1px #d4ccbb;- font-weight: 500;+ display: grid;+ place-items: center;}-.cmp-chip.paper i {+.cmp-pin {display: grid;place-items: center;- width: 20px;- height: 20px;+ width: 28px;+ height: 28px;border-radius: 50%;- background: #ebe5d7;- font-style: normal;+ font-size: 14px;font-weight: 800;- font-size: 12px;+ font-variant-numeric: tabular-nums;+ line-height: 1;+ transition:+ transform 0.3s var(--spring),+ box-shadow 0.3s var(--ease);}-.cmp-voice {- position: absolute;- display: flex;- align-items: center;- gap: 12px;- translate: -50% -50%;- width: max-content;- max-width: calc(100% - 28px);- padding: 7px 18px 7px 7px;- border-radius: 999px;+.cmp-pin.paper {+ background: #fffdf7;+ color: #5d5a53;+ box-shadow: inset 0 0 0 1.5px #a59d8c;+}+.cmp-pin.bygga {background: var(--ink);color: #fff;- box-shadow: 0 14px 30px -14px rgba(18, 18, 18, 0.6);+ box-shadow: 0 0 0 3px #fff;}-.cmp-play {- display: grid;- place-items: center;- flex: none;- width: 38px;- height: 38px;- border: 0;- border-radius: 50%;+.cmp-pin.lit {+ transform: scale(1.22);+}+.cmp-pin.paper.lit {+ box-shadow:+ inset 0 0 0 1.5px #5d5a53,+ 0 0 0 5px rgba(93, 90, 83, 0.14);+}+.cmp-pin.bygga.lit {background: var(--accent);color: var(--ink);- cursor: pointer;- transition: transform 0.2s var(--ease);+ box-shadow:+ 0 0 0 3px #fff,+ 0 0 0 5px var(--ink);}-.cmp-play:hover {- transform: scale(1.06);+/* Bygga's divider settles onto the dowels, the paper one stays put */+.sc-bygga .sc-drop {+ animation: settle 3.2s var(--ease) infinite;}-.cmp-play:active {- transform: scale(0.94);+@keyframes settle {+ 0%,+ 100% {+ transform: translateY(-10px);+ }+ 50% {+ transform: translateY(0);+ }}-.cmp-play svg {- margin-left: 2px;+.cmp-qa {+ display: grid;+ grid-template-columns: repeat(3, minmax(0, 1fr));+ gap: 0;+ margin: 28px 0 0;+ padding: 0;+ list-style: none;+ border-top: 1px solid var(--line-2);}-.cmp-line {- min-width: 0;- overflow: hidden;- white-space: nowrap;- text-overflow: ellipsis;- font-size: 15px;- font-weight: 500;+.cmp-qa li {+ position: relative;+ display: grid;+ grid-template-columns: auto minmax(0, 1fr);+ gap: 4px 12px;+ align-content: start;+ padding: 22px 28px 4px;+ transition: background 0.25s;}-.cmp-say {- flex: none;- padding-left: 12px;- border-left: 1px solid rgba(255, 255, 255, 0.22);- font-size: 13px;- color: rgba(255, 255, 255, 0.66);+.cmp-qa li:first-child {+ padding-left: 0;}-.cmp-handle {- position: absolute;- top: 0;- bottom: 0;- width: 48px;- padding: 0;- translate: -50% 0;- border: 0;- background: none;- cursor: ew-resize;- touch-action: none;+.cmp-qa li:last-child {+ padding-right: 0;}-.cmp-handle::before {- content: "";- position: absolute;- top: 0;- bottom: 0;- left: 50%;- width: 2px;- translate: -1px 0;- background: var(--ink);+.cmp-qa li + li {+ border-left: 1px solid var(--line-2);}-.cmp-knob {- position: absolute;- top: 50%;- left: 50%;+.cmp-qa-n {+ grid-row: span 2;display: grid;place-items: center;- width: 46px;- height: 46px;- translate: -50% -50%;+ width: 26px;+ height: 26px;border-radius: 50%;- background: #fff;- color: var(--ink);- box-shadow:- inset 0 0 0 2px var(--ink),- 0 10px 24px -10px rgba(18, 18, 18, 0.5);- transition:- transform 0.2s var(--ease),- background 0.2s;-}-.cmp-handle:hover .cmp-knob,-.cmp-stage:active .cmp-knob {- transform: scale(1.08);- background: var(--accent);-}-.cmp-hint {- position: absolute;- top: calc(50% + 34px);- left: 50%;- translate: -50% 0;- padding: 5px 10px;- border-radius: 999px;background: var(--ink);color: #fff;- font-size: 12.5px;- font-weight: 600;- white-space: nowrap;- pointer-events: none;+ font-size: 13px;+ font-weight: 800;transition:- opacity 0.3s,- translate 0.3s var(--ease);+ background 0.25s,+ color 0.25s;}-.cmp-hint.gone {- opacity: 0;- translate: -50% -6px;+.cmp-qa li.lit .cmp-qa-n {+ background: var(--accent);+ color: var(--ink);}-.cmp-handle:focus-visible {- outline: none;+.cmp-q {+ margin: 2px 0 0;+ color: var(--ink-3);+ font-size: 14.5px;+ font-style: italic;}-.cmp-handle:focus-visible .cmp-knob {- box-shadow:- inset 0 0 0 2px var(--ink),- 0 0 0 4px var(--accent);+.cmp-a {+ margin: 0;+ color: var(--ink);+ font-size: 17px;+ font-weight: 500;+ line-height: 1.35;+ letter-spacing: -0.015em;+ text-wrap: balance;}-.cmp-switch {- position: relative;- display: grid;- grid-template-columns: 1fr 1fr;- margin: 14px auto 0;- max-width: 340px;- padding: 4px;+.cmp-foot {+ display: flex;+ flex-wrap: wrap;+ align-items: center;+ justify-content: space-between;+ gap: 16px 32px;+ margin: 40px 0 0;+ padding: 14px 14px 14px 26px;border-radius: 999px;background: #fff;box-shadow: var(--shadow-1);}-.cmp-switch button {- position: relative;- z-index: 1;- height: 40px;- border: 0;- border-radius: 999px;- background: none;- font: inherit;- font-size: 14.5px;- font-weight: 600;- color: var(--ink-2);- transition: color 0.3s;- -webkit-tap-highlight-color: transparent;-}-.cmp-switch button.on {- color: #fff;-}-.cmp-switch-bg {- position: absolute;- top: 4px;- bottom: 4px;- left: 4px;- width: calc(50% - 4px);- border-radius: 999px;- background: var(--ink);-}.cmp-facts {- display: grid;- grid-template-columns: repeat(3, minmax(0, 1fr));- gap: 16px 28px;- margin: 28px 0 0;+ display: flex;+ flex-wrap: wrap;+ gap: 10px 28px;+ margin: 0;padding: 0;list-style: none;}.cmp-facts li {- display: flex;- gap: 14px;- align-items: flex-start;+ display: inline-flex;+ align-items: center;+ gap: 9px;+ font-size: 15px;+ font-weight: 500;+ color: var(--ink-2);+ white-space: nowrap;}-.cmp-facts li > svg {+.cmp-facts li svg {flex: none;- width: 40px;- height: 40px;- padding: 10px;- border-radius: 12px;- background: #fff;- box-shadow: var(--shadow-1);-}-.cmp-facts li > span {- display: grid;- gap: 2px;+ color: var(--ink);}-.cmp-facts b {- font-size: 16px;+.cmp-cta {+ display: inline-flex;+ align-items: center;+ gap: 10px;+ flex: none;+ height: 48px;+ padding: 0 20px 0 22px;+ border-radius: 999px;+ background: var(--ink);+ color: #fff;font-weight: 600;+ font-size: 15.5px;+ text-decoration: none;+ transition: transform 0.2s var(--ease);}-.cmp-facts li > span > span {- font-size: 14.5px;- line-height: 1.45;- color: var(--ink-2);+.cmp-cta svg {+ transition: transform 0.25s var(--ease);+}+.cmp-cta:hover svg {+ transform: translateX(3px);+}+.cmp-cta:active {+ transform: scale(0.97);+}+@media (max-width: 900px) {+ .cmp-qa {+ grid-template-columns: 1fr;+ border-top: 0;+ gap: 18px;+ }+ .cmp-qa li,+ .cmp-qa li:first-child,+ .cmp-qa li:last-child {+ padding: 0;+ }+ .cmp-qa li + li {+ border-left: 0;+ }+ .cmp-foot {+ flex-direction: column;+ align-items: stretch;+ padding: 20px;+ border-radius: 24px;+ }+ .cmp-facts {+ flex-direction: column;+ gap: 12px;+ }+ .cmp-cta {+ justify-content: center;+ }}@media (max-width: 700px) {.compare {padding-top: 72px;}- .cmp-stage {+ .cmp-pair {+ grid-template-columns: 1fr !important;margin-top: 24px;+ gap: 10px;+ }+ .cmp-card {border-radius: 22px;}.cmp-tag {- top: 12px;- font-size: 12px;- }- .cmp-tag.paper {+ bottom: 12px;left: 12px;+ font-size: 12px;}- .cmp-tag.bygga {- right: 12px;- }- .cmp-chip {+ .cmp-pin {+ width: 24px;+ height: 24px;font-size: 12.5px;- padding: 6px 10px 6px 6px;- gap: 5px;- }- .cmp-voice {- gap: 10px;- padding-right: 14px;- }- .cmp-line {- font-size: 14px;- }- .cmp-say {- display: none;}.cmp-hw {- padding: 7px 9px 4px;- }- .cmp-facts {- grid-template-columns: 1fr;- }-}-/* phones and tablets: one side at a time, switched below the drawing */-@media (max-width: 900px) {- .cmp-stage {- max-width: 600px;- margin-inline: auto;- cursor: default;- }- .cmp-handle {- pointer-events: none;+ padding: 6px 8px 3px;+ border-radius: 12px;}- .cmp-knob {- display: none;+ .cmp-hw b {+ font-size: 12.5px;}}/* ================= footer ================= */.site-foot {- margin-top: 96px;- padding-bottom: 40px;+ margin-top: 112px;+ padding-bottom: 36px;}-.foot-ruler {- position: relative;- height: 28px;- background:- repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10%) top left / 100% 10px no-repeat,- repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 2%) top left / 100% 5px no-repeat;- border-top: 1px solid var(--line-2);+.foot-card {+ display: grid;+ grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);+ grid-template-areas:+ "brand cols"+ "credit credit";+ gap: 44px 48px;+ padding: 44px 48px 0;+ border-radius: 32px;+ background: #fff;+ box-shadow: var(--shadow-1);+ overflow: hidden;}-.foot-ruler::after {- content: "";- position: absolute;- right: 0;- top: 0;- width: 1px;- height: 10px;- background: var(--ink-3);+.foot-brand {+ grid-area: brand;+ display: grid;+ justify-items: start;+ align-content: start;+ gap: 18px;}-.foot-ruler span {- position: absolute;- top: 14px;- font-size: 11px;- line-height: 1;- color: var(--ink-3);- white-space: nowrap;- transform: translateX(-50%);- font-variant-numeric: tabular-nums;+.foot-brand .wordmark {+ font-size: 23px;}-.foot-ruler span:first-child {- transform: none;+.foot-brand p {+ margin: 0;+ max-width: 25em;+ color: var(--ink-2);+ font-size: 16px;+ line-height: 1.5;+ text-wrap: pretty;}-.foot-ruler span:last-child {- transform: translateX(-100%);+.foot-cols {+ grid-area: cols;+ justify-self: end;+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));+ gap: 24px 40px;+ width: min(100%, 380px);}-.foot-main {- display: flex;- flex-wrap: wrap;+.foot-cols > div {+ display: grid;+ align-content: start;+ justify-items: start;+ gap: 11px;+}+.foot-cols h2 {+ margin: 0 0 3px;+ font-size: 13px;+ font-weight: 500;+ letter-spacing: 0;+ color: var(--ink-3);+}+.foot-cols a {+ display: inline-flex;align-items: center;- justify-content: space-between;- gap: 20px 40px;- padding: 40px 0 36px;+ gap: 4px;+ color: var(--ink);+ font-size: 15.5px;+ font-weight: 500;+ text-decoration: underline;+ text-decoration-color: transparent;+ text-decoration-thickness: 1.5px;+ text-underline-offset: 5px;+ transition: text-decoration-color 0.2s;}-.foot-nav {+.foot-cols a:hover {+ text-decoration-color: var(--ink);+}+.foot-cols a .arrow-out {+ color: var(--ink-3);+ transition: color 0.3s var(--ease);+}+.foot-cols a:hover .arrow-out {+ color: var(--ink);+}+/* the credit: the two of us stand on the card's bottom edge, holding up the names */+.foot-credit {+ grid-area: credit;display: flex;- flex-wrap: wrap;- gap: 8px 28px;+ align-items: flex-end;+ gap: 28px;+ margin: 0 -48px;+ padding: 30px 48px 0;+ border-top: 1px solid var(--line);+ background: linear-gradient(180deg, #fff, #faf9f6);}-.foot-nav a {- font-weight: 500;- font-size: 14.5px;+.foot-crew {+ display: block;+ flex: none;+ margin-bottom: -1px;+}+.foot-credit p {+ display: grid;+ gap: 2px;+ margin: 0;+ padding-bottom: 34px;+}+.foot-credit b {+ font-family: var(--display);+ font-size: clamp(22px, 2.2vw, 28px);+ font-weight: 800;+ letter-spacing: -0.03em;+ line-height: 1.1;+}+.foot-credit span {color: var(--ink-2);- text-decoration: none;- transition: color 0.2s;+ font-size: 15.5px;}-.foot-nav a:hover {- color: var(--ink);+.crew-a,+.crew-b,+.crew-board {+ transform-box: view-box;+}+.foot-credit:hover .crew-a,+.foot-credit:hover .crew-board {+ animation: crew-hop 0.6s var(--ease);+}+.foot-credit:hover .crew-b {+ animation: crew-hop-b 0.6s var(--ease) 0.08s;+}+@keyframes crew-hop {+ 40% {+ transform: translateY(-5px);+ }+}+@keyframes crew-hop-b {+ 40% {+ transform: translate(66px, -5px);+ }+ 0%,+ 100% {+ transform: translate(66px, 0);+ }}.foot-base {display: flex;flex-wrap: wrap;- align-items: baseline;+ align-items: center;justify-content: space-between;- gap: 8px 30px;+ gap: 14px 32px;+ padding: 22px 8px 0;}.foot-base p {margin: 0;+ max-width: 46em;font-size: 12.5px;+ line-height: 1.5;color: var(--ink-3);}.foot-powered {+ display: inline-flex;+ align-items: center;+ gap: 8px;font-size: 12.5px;color: var(--ink-3);text-decoration: none;white-space: nowrap;}-.foot-powered span {- color: var(--ink-2);- font-weight: 500;- transition: color 0.2s;-}-.foot-powered:hover span {- color: var(--ink);- text-decoration: underline;- text-underline-offset: 3px;+@media (max-width: 760px) {+ .foot-card {+ grid-template-columns: 1fr;+ grid-template-areas:+ "brand"+ "cols"+ "credit";+ gap: 30px;+ padding: 30px 24px 0;+ border-radius: 26px;+ }+ .foot-cols {+ justify-self: start;+ }+ .foot-credit {+ gap: 16px;+ margin: 0 -24px;+ padding: 22px 20px 0;+ }+ .foot-crew {+ width: auto;+ height: 88px;+ }+ .foot-credit p {+ padding-bottom: 22px;+ }+ .foot-credit b {+ font-size: 19px;+ }+ .foot-credit span {+ font-size: 14px;+ }+ .foot-base {+ padding: 18px 4px 0;+ }}/* ================= browse ================= */@@ -1699,7 +1847,7 @@.built:hover {box-shadow:0 0 0 1px var(--line-2),- 0 16px 36px -18px rgba(18, 18, 18, 0.22);+ 0 10px 22px -18px rgba(18, 18, 18, 0.16);}.built-link {display: flex;@@ -1886,7 +2034,7 @@.starter:hover {box-shadow:0 0 0 1px var(--line-2),- 0 14px 30px -16px rgba(18, 18, 18, 0.22);+ 0 10px 22px -18px rgba(18, 18, 18, 0.16);}.starter:hover svg {color: var(--ink);@@ -1986,6 +2134,12 @@.gh-label {display: none;}+ .gh-main {+ padding: 0 10px;+ }+ .foot-brand .wordmark {+ display: inline;+ }.hero h1 {font-size: 48px;}@@ -2065,19 +2219,10 @@font-size: 12px;}.cat-search {- width: 100%;- min-width: 0;+ max-width: none;}.site-foot {- margin-top: 64px;- }- .foot-main {- flex-direction: column;- align-items: flex-start;- padding: 32px 0 28px;- }- .foot-nav {- gap: 8px 22px;+ margin-top: 72px;}.ws-head {flex-direction: column;@@ -2136,3 +2281,18 @@gap: 10px;margin-top: 12px;}++/* phones: the five examples fit one row under the search */+@media (max-width: 420px) {+ .quick {+ flex-wrap: nowrap;+ gap: 5px;+ }+ .quick > span {+ display: none;+ }+ .quick .chip {+ padding: 0 10px;+ font-size: 13.5px;+ }+}diff --git a/src/app/page.tsx b/src/app/page.tsxindex dc7b655..319dc09 100644--- a/src/app/page.tsx+++ b/src/app/page.tsx@@ -9,7 +9,8 @@ import Compare from "@/components/home/Compare";import { Figure } from "@/components/art/Figure";import { ToolArt } from "@/components/art/Tools";import { HwArt } from "@/components/art/Hardware";-import { IArrowRight, IScan } from "@/components/art/Icons";+import { IArrowOut, IArrowRight, IScan } from "@/components/art/Icons";+import { TogetherMark } from "@/components/art/Together";import { PRODUCT_COUNT } from "@/lib/search";import { SCAN_ENABLED } from "@/lib/site";@@ -28,6 +29,15 @@ export default function Home() {<section className="hero"><div className="hero-copy">+ <a className="tg-pill" href="https://www.together.ai" target="_blank" rel="noreferrer">+ <span className="tg-badge">+ <TogetherMark size={16} />+ </span>+ <span className="tg-text">+ Powered by <b>Together AI</b>+ </span>+ <IArrowOut size={14} className="tg-go" />+ </a><h1>IKEA assembly,<br />@@ -35,7 +45,6 @@ export default function Home() {</h1><p className="lead">Type the name from the box. Each step plays in 3D and is read out loud, with the exact parts, screws and tools.</p><HeroSearch />- <Resume /><div className="quick"><span>Try</span>{QUICK.map((q) => (@@ -44,6 +53,7 @@ export default function Home() {</Link>))}</div>+ <Resume />{SCAN_ENABLED && (<Link href="/scan" className="scan-link"><IScan size={17} />diff --git a/src/app/scan.css b/src/app/scan.cssindex ce63470..11f7efb 100644--- a/src/app/scan.css+++ b/src/app/scan.css@@ -412,7 +412,7 @@background: #fff;box-shadow:0 0 0 1px var(--line-2),- 0 8px 22px -12px rgba(18, 18, 18, 0.3);+ 0 6px 14px -10px rgba(18, 18, 18, 0.16);transition: filter 0.4s;}.sw-page img {diff --git a/src/components/SiteFooter.tsx b/src/components/SiteFooter.tsxindex 62391e4..00ac7b2 100644--- a/src/components/SiteFooter.tsx+++ b/src/components/SiteFooter.tsx@@ -1,34 +1,51 @@import Link from "next/link";import Logo from "./Logo";+import { Crew } from "./art/Figure";+import { IArrowOut } from "./art/Icons";+import { TogetherWordmark } from "./art/Together";import { GITHUB_URL, SCAN_ENABLED } from "@/lib/site";-const MARKS = [0, 50, 100];-export default function SiteFooter() {return (<footer className="site-foot">- <div className="foot-ruler" aria-hidden="true">- {MARKS.map((m) => (- <span key={m} style={{ left: `${m}%` }}>- {m === 100 ? "100 cm" : m}- </span>- ))}- </div>- <div className="foot-main">- <Logo size={22} />- <nav className="foot-nav" aria-label="Footer">- <Link href="/browse">All guides</Link>- <Link href="/builds">Workshop</Link>- {SCAN_ENABLED && <Link href="/scan">Scan a manual</Link>}- <a href={GITHUB_URL} target="_blank" rel="noreferrer">- GitHub- </a>+ <div className="foot-card">+ <div className="foot-brand">+ <Logo size={30} />+ <p>Assembly guides you can turn around, hear out loud and follow with your hands full. Free and open source.</p>+ </div>++ <nav className="foot-cols" aria-label="Footer">+ <div>+ <h2>Build</h2>+ <Link href="/browse">All guides</Link>+ <Link href="/builds">Workshop</Link>+ {SCAN_ENABLED && <Link href="/scan">Scan a manual</Link>}+ </div>+ <div>+ <h2>Project</h2>+ <a href={GITHUB_URL} target="_blank" rel="noreferrer">+ Source code <IArrowOut size={14} />+ </a>+ <a href="https://www.together.ai" target="_blank" rel="noreferrer">+ Together AI <IArrowOut size={14} />+ </a>+ </div></nav>++ <div className="foot-credit">+ <Crew names="Hassan & Youssef" size={128} className="foot-crew" />+ <p>+ <b>Built by Hassan and Youssef.</b>+ <span>A two-person job, just like the manual says.</span>+ </p>+ </div></div>+<div className="foot-base">- <p>Not affiliated with IKEA. Product names are trademarks of Inter IKEA Systems B.V.</p>+ <p>Bygga is an independent, unofficial project. It is not affiliated with, sponsored or endorsed by Inter IKEA Systems B.V. or any IKEA company. IKEA and IKEA product names are trademarks of their owners.</p><a className="foot-powered" href="https://www.together.ai" target="_blank" rel="noreferrer">- Powered by <span>Together AI</span>+ <span>Powered by</span>+ <TogetherWordmark height={19} className="tg-word" /></a></div></footer>diff --git a/src/components/SiteHeader.tsx b/src/components/SiteHeader.tsxindex 102d935..59ead0a 100644--- a/src/components/SiteHeader.tsx+++ b/src/components/SiteHeader.tsx@@ -1,7 +1,7 @@import { Suspense } from "react";import Logo from "./Logo";import NavLinks from "./NavLinks";-import { IGithub, IStar } from "./art/Icons";+import { IGithub } from "./art/Icons";import { getStars } from "@/lib/github";import { GITHUB_URL } from "@/lib/site";@@ -26,13 +26,17 @@ async function GithubStars() {function GithubLink({ stars }: { stars: number | null }) {return (- <a className="gh" href={GITHUB_URL} target="_blank" rel="noreferrer" aria-label={stars === null ? "Bygga on GitHub" : `Bygga on GitHub, ${stars} stars`}>- <IGithub size={16} />- <span className="gh-label">GitHub</span>+ <a className="gh" href={GITHUB_URL} target="_blank" rel="noreferrer" aria-label={stars === null ? "Star Bygga on GitHub" : `Star Bygga on GitHub, ${stars} ${stars === 1 ? "star" : "stars"} so far`}>+ <span className="gh-main">+ <IGithub size={17} />+ <span className="gh-label">Star</span>+ </span>{stars !== null && (- <span className="gh-stars">- <IStar size={13} strokeWidth={2} />- {fmtStars(stars)}+ <span className="gh-count">+ <svg viewBox="0 0 24 24" width={15} height={15} className="gh-star" aria-hidden="true">+ <path d="M12 3.6l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.2-4.1 5.8-.8z" />+ </svg>+ <span className="gh-n">{fmtStars(stars)}</span></span>)}</a>diff --git a/src/components/art/Figure.tsx b/src/components/art/Figure.tsxindex 6e54a40..be16ba0 100644--- a/src/components/art/Figure.tsx+++ b/src/components/art/Figure.tsx@@ -1,4 +1,4 @@-export type Pose = "stand" | "cheer" | "think" | "point" | "wave" | "read" | "lift";+export type Pose = "stand" | "cheer" | "think" | "point" | "wave" | "read" | "lift" | "hold";type Pt = [number, number];type Limb = [Pt, Pt, Pt];@@ -14,6 +14,7 @@ const ARMS: Record<Pose, [Limb, Limb]> = {wave: [[[22.5, 33], [18.5, 45], [19.5, 56]], [[37.5, 32], [46, 27], [47, 13]]],read: [[[22.5, 33], [20, 44], [26.5, 46]], [[37.5, 33], [40, 44], [33.5, 46]]],lift: [[[22.5, 32], [14, 27], [13.5, 15]], [[37.5, 32], [46, 27], [46.5, 15]]],+ hold: [[[22.5, 33], [16.5, 41], [19.5, 47]], [[37.5, 33], [43.5, 41], [40.5, 47]]],};const LEGS: [Limb, Limb] = [[[26.4, 60], [25.6, 75], [25.2, 89]],@@ -134,3 +135,32 @@ export function TwoPeople({ size = 64, className }: { size?: number; className?:</svg>);}++/** The two of us, holding up a board with our names on it, the way the manual draws a two-person job. */+export function Crew({ names, size = 120, className }: { names: string; size?: number; className?: string }) {+ const hands: Pt[] = [+ [19.5, 47],+ [40.5, 47],+ [85.5, 47],+ [106.5, 47],+ ];+ return (+ <svg viewBox="0 -2 126 98" width={(size * 126) / 98} height={size} className={className} aria-hidden="true" overflow="visible">+ <g className="crew-a">+ <Body pose="hold" />+ </g>+ <g className="crew-b" transform="translate(66 0)">+ <Body pose="hold" />+ </g>+ <g className="crew-board">+ <rect x={11} y={46} width={104} height={21} rx={2.5} fill="var(--accent)" stroke={INK} strokeWidth={2.2} />+ <text x={63} y={60.2} textAnchor="middle" fontSize={10} fontWeight={800} letterSpacing={-0.2} fill={INK} fontFamily="var(--display)">+ {names}+ </text>+ {hands.map(([x, y], i) => (+ <circle key={i} cx={x} cy={y} r={3.3} fill="#fff" stroke={INK} strokeWidth={1.8} />+ ))}+ </g>+ </svg>+ );+}diff --git a/src/components/art/Icons.tsx b/src/components/art/Icons.tsxindex 248a28e..8a98ec9 100644--- a/src/components/art/Icons.tsx+++ b/src/components/art/Icons.tsx@@ -1,51 +1,138 @@import type { WarnId } from "@/lib/types";+import {+ ArrowLeft,+ BedDouble,+ BrickWall,+ ArrowRight,+ ArrowUpRight,+ Camera,+ Check,+ ChevronDown,+ ChevronRight,+ CircleAlert,+ CircleHelp,+ Clock,+ Ellipsis,+ ExternalLink,+ Eye,+ FileText,+ Flag,+ Hammer,+ House,+ Image,+ KeyRound,+ LayoutGrid,+ Library,+ ListFilter,+ Lock,+ Mic,+ Package,+ Pause,+ Play,+ Plus,+ Printer,+ RotateCcw,+ RotateCw,+ Ruler,+ ScanText,+ Search,+ SendHorizontal,+ Share,+ Sparkle,+ Star,+ Sun,+ Trash2,+ Upload,+ User,+ Users,+ Volume1,+ Volume2,+ VolumeX,+ WandSparkles,+ Wrench,+ X,+ Zap,+ type LucideIcon,+} from "lucide-react";type P = { size?: number; className?: string; strokeWidth?: number };-function I({ size = 22, className, strokeWidth = 2, children }: P & { children: React.ReactNode }) {+/**+ * Interface icons are Lucide, drawn with one line weight at every size: 1.75px,+ * or 2.25px where a caller asks for a bolder mark (a tick inside a filled dot).+ */+function icon(Glyph: LucideIcon) {+ return function Icon({ size = 22, className, strokeWidth }: P) {+ return <Glyph size={size} className={className} strokeWidth={strokeWidth && strokeWidth > 2.2 ? 2.25 : 1.75} absoluteStrokeWidth aria-hidden="true" />;+ };+}++export const IArrowRight = icon(ArrowRight);+export const IArrowLeft = icon(ArrowLeft);+export const ICheck = icon(Check);+export const IClose = icon(X);+export const ISearch = icon(Search);+export const ICamera = icon(Camera);+export const IMic = icon(Mic);+export const IGrid = icon(LayoutGrid);+export const IHelp = icon(CircleHelp);+export const IReplay = icon(RotateCcw);+export const IPause = icon(Pause);+export const IPlay = icon(Play);+export const IClock = icon(Clock);+export const IPeople = icon(Users);+export const IPerson = icon(User);+export const IRuler = icon(Ruler);+export const IBox = icon(Package);+export const ISparkle = icon(Sparkle);+export const IVolume = icon(Volume2);+export const IRotate = icon(RotateCw);+export const IHome = icon(House);+export const IChevron = icon(ChevronRight);+export const IChevronDown = icon(ChevronDown);+export const IExternal = icon(ExternalLink);+export const ISend = icon(SendHorizontal);+export const IEye = icon(Eye);+export const IWand = icon(WandSparkles);+export const ISun = icon(Sun);+export const IBolt = icon(Zap);+export const IMore = icon(Ellipsis);+export const IUpload = icon(Upload);+export const ITrash = icon(Trash2);+export const IWrench = icon(Wrench);+export const IHammer = icon(Hammer);+export const IFlag = icon(Flag);+export const ISound = icon(Volume1);+export const ISoundOff = icon(VolumeX);+export const ILibrary = icon(Library);+export const IShare = icon(Share);+export const IPrint = icon(Printer);+export const IAlert = icon(CircleAlert);+export const IPlus = icon(Plus);+export const IFilter = icon(ListFilter);+export const IArrowUpRight = icon(ArrowUpRight);+export const IStar = icon(Star);+export const IScan = icon(ScanText);+export const IKey = icon(KeyRound);+export const IImage = icon(Image);+export const IDoc = icon(FileText);+export const ILock = icon(Lock);+export const IBed = icon(BedDouble);++/** An outbound arrow that slides out and back in when its link is hovered. */+export function IArrowOut({ size = 14, className }: P) {return (- <svg viewBox="0 0 24 24" width={size} height={size} className={className} fill="none" stroke="currentColor" strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">- {children}- </svg>+ <span className={"arrow-out " + (className ?? "")} style={{ width: size, height: size }} aria-hidden="true">+ <ArrowUpRight size={size} strokeWidth={1.75} absoluteStrokeWidth aria-hidden="true" />+ <ArrowUpRight size={size} strokeWidth={1.75} absoluteStrokeWidth aria-hidden="true" />+ </span>);}+export const IWall = icon(BrickWall);-export const IArrowRight = (p: P) => <I {...p}><path d="M5 12h14M13 6l6 6-6 6" /></I>;-export const IArrowLeft = (p: P) => <I {...p}><path d="M19 12H5M11 6l-6 6 6 6" /></I>;-export const ICheck = (p: P) => <I {...p}><path d="M5 12.5l4.5 4.5L19 7.5" /></I>;-export const IClose = (p: P) => <I {...p}><path d="M6 6l12 12M18 6L6 18" /></I>;-export const ISearch = (p: P) => <I {...p}><circle cx="10.5" cy="10.5" r="6.5" /><path d="M15.5 15.5L20 20" /></I>;-export const ICamera = (p: P) => <I {...p}><path d="M4 8.5A1.5 1.5 0 0 1 5.5 7h2l1.6-2.2h5.8L16.5 7h2A1.5 1.5 0 0 1 20 8.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z" /><circle cx="12" cy="12.8" r="3.4" /></I>;-export const IMic = (p: P) => <I {...p}><rect x="9" y="3.5" width="6" height="11" rx="3" /><path d="M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5" /></I>;-export const IGrid = (p: P) => <I {...p}><rect x="4" y="4" width="6.5" height="6.5" rx="1.5" /><rect x="13.5" y="4" width="6.5" height="6.5" rx="1.5" /><rect x="4" y="13.5" width="6.5" height="6.5" rx="1.5" /><rect x="13.5" y="13.5" width="6.5" height="6.5" rx="1.5" /></I>;-export const IHelp = (p: P) => <I {...p}><circle cx="12" cy="12" r="8.5" /><path d="M9.6 9.4a2.5 2.5 0 1 1 3.4 2.3c-.7.3-1 .9-1 1.6v.4" /><circle cx="12" cy="16.8" r=".4" fill="currentColor" /></I>;-export const IReplay = (p: P) => <I {...p}><path d="M4.5 12a7.5 7.5 0 1 0 2.2-5.3" /><path d="M4.5 4.5v3.8h3.8" /></I>;-export const IPause = (p: P) => <I {...p}><path d="M9 6v12M15 6v12" /></I>;-export const IPlay = (p: P) => <I {...p}><path d="M8 5.5v13l10-6.5z" /></I>;-export const IClock = (p: P) => <I {...p}><circle cx="12" cy="12" r="8.5" /><path d="M12 7.5V12l3 2" /></I>;-export const IPeople = (p: P) => <I {...p}><circle cx="9" cy="8" r="3" /><path d="M3.5 19a5.5 5.5 0 0 1 11 0" /><circle cx="17" cy="9" r="2.4" /><path d="M15.5 14.2A4.5 4.5 0 0 1 21 18.5" /></I>;-export const IPerson = (p: P) => <I {...p}><circle cx="12" cy="8" r="3.2" /><path d="M6 19.5a6 6 0 0 1 12 0" /></I>;-export const IRuler = (p: P) => <I {...p}><path d="M3.5 15.5l12-12 5 5-12 12z" /><path d="M7 12l2 2M10 9l1.5 1.5M13 6l2 2" /></I>;-export const IBox = (p: P) => <I {...p}><path d="M12 3.5l8 4v9l-8 4-8-4v-9z" /><path d="M4 7.5l8 4 8-4M12 11.5v9" /></I>;-export const ISparkle = (p: P) => <I {...p}><path d="M12 3.5c.6 4.4 2.6 6.4 7 7-4.4.6-6.4 2.6-7 7-.6-4.4-2.6-6.4-7-7 4.4-.6 6.4-2.6 7-7z" /></I>;-export const IVolume = (p: P) => <I {...p}><path d="M5 9.5h3l4-3.5v12l-4-3.5H5z" /><path d="M16 9a4 4 0 0 1 0 6M18.5 6.5a7.5 7.5 0 0 1 0 11" /></I>;-export const IRotate = (p: P) => <I {...p}><path d="M19.5 12A7.5 7.5 0 1 1 17.3 6.7" /><path d="M19.5 4.5v3.8h-3.8" /></I>;-export const IHome = (p: P) => <I {...p}><path d="M4.5 10.5L12 4l7.5 6.5V19a1 1 0 0 1-1 1h-4v-5h-5v5h-4a1 1 0 0 1-1-1z" /></I>;-export const IChevron = (p: P) => <I {...p}><path d="M9 6l6 6-6 6" /></I>;-export const IChevronDown = (p: P) => <I {...p}><path d="M6 9l6 6 6-6" /></I>;-export const IExternal = (p: P) => <I {...p}><path d="M14 4.5h5.5V10M19.5 4.5L11 13M17 14v4.5a1 1 0 0 1-1 1H5.5a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1H10" /></I>;-export const ISend = (p: P) => <I {...p}><path d="M5 12h13M12 5.5l6.5 6.5-6.5 6.5" /></I>;-export const IEye = (p: P) => <I {...p}><path d="M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z" /><circle cx="12" cy="12" r="2.8" /></I>;-export const IWand = (p: P) => <I {...p}><path d="M4.5 19.5l10-10M13 6l5 5" /><path d="M18 3.5v3M16.5 5h3M6 4v2M5 5h2M19 15v2M18 16h2" /></I>;-export const ISun = (p: P) => <I {...p}><circle cx="12" cy="12" r="3.6" /><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6L7 7M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4" /></I>;-export const IBolt = (p: P) => <I {...p}><path d="M13 3L6 13.5h5L10 21l7.5-11H12z" /></I>;-export const IMore = (p: P) => <I {...p}><circle cx="6" cy="12" r="1" fill="currentColor" /><circle cx="12" cy="12" r="1" fill="currentColor" /><circle cx="18" cy="12" r="1" fill="currentColor" /></I>;-export const IUpload = (p: P) => <I {...p}><path d="M12 15.5V4.5M7.5 9L12 4.5 16.5 9" /><path d="M4.5 15v3.5a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V15" /></I>;-export const ITrash = (p: P) => <I {...p}><path d="M5 7h14M9.5 7V5h5v2M7 7l.8 12a1 1 0 0 0 1 1h6.4a1 1 0 0 0 1-1L17 7" /></I>;--/* Warning pictograms: chunkier, shown in step cards */+/* Warning pictograms, shown in step cards. Strokes are in screen pixels, like the tool drawings. */export function WarnIcon({ id, size = 36 }: { id: WarnId; size?: number }) {- const s = { stroke: "var(--ink)", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" } as const;+ const s = { stroke: "var(--ink)", strokeWidth: 1.75, strokeLinecap: "round", strokeLinejoin: "round", fill: "none" } as const;const body: Record<WarnId, React.ReactNode> = {two: (<g {...s}>@@ -116,7 +203,7 @@ export function WarnIcon({ id, size = 36 }: { id: WarnId; size?: number }) {),};return (- <svg viewBox="0 0 40 40" width={size} height={size} aria-hidden="true">+ <svg viewBox="0 0 40 40" width={size} height={size} className="line-art" aria-hidden="true">{body[id]}</svg>);@@ -125,27 +212,14 @@ export function WarnIcon({ id, size = 36 }: { id: WarnId; size?: number }) {export const WARN_TEXT: Record<WarnId, string> = {two: "Two people",loose: "Don't tighten fully yet",- hand: "Hand tight only",- wall: "Wall fixing",+ hand: "Tighten by hand only",+ wall: "Fix it to the wall",square: "Keep it square",floor: "Protect the surface",face: "Holes face inwards",tip: "Tip-over risk",};-export const IWrench = (p: P) => <I {...p}><path d="M14.7 6.3a4 4 0 0 0 5.2 5.2l-8.6 8.6a2.1 2.1 0 0 1-3-3l8.6-8.6a4 4 0 0 1-2.2-2.2z" /><path d="M14.7 6.3L17 4l3 3-2.3 2.3" /></I>;-export const IHammer = (p: P) => <I {...p}><path d="M13.5 9.5L5 18a1.8 1.8 0 0 0 2.5 2.5l8.5-8.5" /><path d="M10.5 6.5l3-3c1.6-.6 3.4-.4 5 .8l1.2 1.2-2 2 1.5 1.5-2.5 2.5-1.5-1.5-2 2-2.7-2.7" /></I>;-export const IFlag = (p: P) => <I {...p}><path d="M5.5 21V4.5" /><path d="M5.5 4.5h11l-2.5 4 2.5 4h-11" /></I>;-export const ISound = (p: P) => <I {...p}><path d="M5 9.5h3l4-3.5v12l-4-3.5H5z" /><path d="M16 9a4 4 0 0 1 0 6" /></I>;-export const ISoundOff = (p: P) => <I {...p}><path d="M5 9.5h3l4-3.5v12l-4-3.5H5z" /><path d="M16.5 9.5l5 5M21.5 9.5l-5 5" /></I>;-export const ILibrary = (p: P) => <I {...p}><rect x="4" y="4" width="4" height="16" rx="1" /><rect x="10" y="4" width="4" height="16" rx="1" /><path d="M16.2 5.2l3.8-1 3.2 14.8-3.8 1z" /></I>;-export const IShare = (p: P) => <I {...p}><path d="M12 15V4M7.5 8.5L12 4l4.5 4.5" /><path d="M5 13v6a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-6" /></I>;-export const IPrint = (p: P) => <I {...p}><path d="M7 9V4h10v5" /><rect x="4" y="9" width="16" height="8" rx="2" /><path d="M7 14h10v6H7z" /></I>;-export const IAlert = (p: P) => <I {...p}><circle cx="12" cy="12" r="8.5" /><path d="M12 7.5v5.5" /><circle cx="12" cy="16.4" r=".5" fill="currentColor" /></I>;-export const IPlus = (p: P) => <I {...p}><path d="M12 5v14M5 12h14" /></I>;-export const IFilter = (p: P) => <I {...p}><path d="M4 6h16M7 12h10M10 18h4" /></I>;-export const IArrowUpRight = (p: P) => <I {...p}><path d="M7 17L17 7M8 7h9v9" /></I>;-export function IGithub({ size = 22, className }: { size?: number; className?: string }) {return (<svg viewBox="0 0 24 24" width={size} height={size} className={className} fill="currentColor" aria-hidden="true">@@ -153,9 +227,3 @@ export function IGithub({ size = 22, className }: { size?: number; className?: s</svg>);}-export const IStar = (p: P) => <I {...p}><path d="M12 4.2l2.4 4.9 5.4.8-3.9 3.8.9 5.4-4.8-2.5-4.8 2.5.9-5.4-3.9-3.8 5.4-.8z" /></I>;-export const IScan = (p: P) => <I {...p}><path d="M4 8V5.5A1.5 1.5 0 0 1 5.5 4H8M16 4h2.5A1.5 1.5 0 0 1 20 5.5V8M20 16v2.5a1.5 1.5 0 0 1-1.5 1.5H16M8 20H5.5A1.5 1.5 0 0 1 4 18.5V16" /><path d="M8 9h8M8 12h8M8 15h5" /></I>;-export const IKey = (p: P) => <I {...p}><circle cx="8" cy="15" r="3.8" /><path d="M10.8 12.3L19 4.2M16 7.2l2.3 2.3M13.8 9.4l1.8 1.8" /></I>;-export const IImage = (p: P) => <I {...p}><rect x="4" y="4.5" width="16" height="15" rx="2" /><circle cx="9" cy="9.5" r="1.6" /><path d="M20 16l-4.5-4.5L7 20" /></I>;-export const IDoc = (p: P) => <I {...p}><path d="M6.5 3.5h7.5l4.5 4.5v11.5a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1z" /><path d="M13.5 3.5V8.5h5" /></I>;-export const ILock = (p: P) => <I {...p}><rect x="5" y="10.5" width="14" height="10" rx="2" /><path d="M8 10.5V8a4 4 0 0 1 8 0v2.5" /></I>;diff --git a/src/components/art/Together.tsx b/src/components/art/Together.tsxnew file mode 100644index 0000000..ca6d809--- /dev/null+++ b/src/components/art/Together.tsx@@ -0,0 +1,83 @@+/**+ * The together.ai wordmark, the same vector paths the product ships.+ * Letterforms take `color`; the pinwheel and the i-dot keep their brand colors.+ */+export function TogetherWordmark({ height = 16, color = "currentColor", className }: { height?: number; color?: string; className?: string }) {+ return (+ <svg viewBox="0 0 119 26" width={(119 / 26) * height} height={height} fill="none" className={className} role="img" aria-label="together.ai">+ <g>+ <path+ d="M26.0946 3.36759C24.2311 0.14917 20.1033 -0.95347 16.8756 0.904425C14.799 2.09984 13.6008 4.21357 13.5065 6.43765L20.2512 6.44623L20.2504 7.02289H13.5061C13.5496 8.07403 13.841 9.1215 14.405 10.0958C16.2685 13.3142 20.3963 14.4169 23.6244 12.5586C26.8525 10.7007 27.9584 6.58518 26.0946 3.36677V3.36759Z"+ fill="#EF2CC1"+ />+ <path+ d="M0.905194 3.36551C-0.958275 6.58393 0.147673 10.699 3.37534 12.5573C5.45196 13.7527 7.88726 13.7302 9.86632 12.6999L6.50175 6.87205L7.00308 6.58434L10.375 12.4073C11.2662 11.8441 12.0307 11.0689 12.5947 10.0946C14.4582 6.87614 13.3522 2.76106 10.1246 0.902757C6.89609 -0.955546 2.76866 0.147094 0.905194 3.36551Z"+ fill="#CAAEF5"+ />+ <path+ d="M13.4985 25.1174C17.2258 25.1174 20.2473 22.105 20.2473 18.3888C20.2473 15.998 19.0102 13.9067 17.1258 12.7129L13.7457 18.5322L13.2452 18.2433L16.6171 12.4203C15.6825 11.9323 14.6266 11.6602 13.4981 11.6602C9.77074 11.6602 6.74927 14.6726 6.74927 18.3888C6.74927 22.105 9.77074 25.1174 13.4981 25.1174H13.4985Z"+ fill="#FC4C02"+ />+ </g>+ <path d="M32 9.63382H33.2836V5.19141H35.0534V9.62984H37.0744V11.1863H35.0534V19.5178H33.2836V11.1903H32V9.63382Z" fill={color} />+ <path+ d="M41.9655 9.37891C44.7877 9.37891 47.1077 11.7156 47.1077 14.5776C47.1077 17.4397 44.7917 19.7764 41.9655 19.7764C39.1392 19.7764 36.8232 17.4397 36.8232 14.5776C36.8232 11.7156 39.1392 9.37891 41.9655 9.37891ZM41.9655 18.1324C43.8828 18.1324 45.3776 16.6157 45.3776 14.5776C45.3776 12.5395 43.8828 11.0229 41.9655 11.0229C40.0481 11.0229 38.5533 12.5395 38.5533 14.5776C38.5533 16.6157 40.0481 18.1324 41.9655 18.1324Z"+ fill={color}+ />+ <path+ d="M52.8952 25.0349C50.4517 25.0349 48.0679 23.3312 48.0679 20.5527H49.7939C49.9414 22.4276 51.2688 23.4148 52.8912 23.4148C54.7647 23.4148 56.1998 22.1091 56.1998 19.9198V17.814C55.5261 19.0361 54.0512 19.7725 52.7238 19.7725C49.9016 19.7725 47.749 17.4597 47.749 14.5737C47.749 11.6878 49.8976 9.375 52.7238 9.375C54.0512 9.375 55.5261 10.1114 56.1998 11.3335V9.62976H57.9697V19.9198C57.9697 22.8853 55.6935 25.0349 52.8912 25.0349H52.8952ZM52.9191 18.1324C54.8365 18.1324 56.3313 16.6158 56.3313 14.5777C56.3313 12.5396 54.8365 11.023 52.9191 11.023C51.0018 11.023 49.5069 12.5396 49.5069 14.5777C49.5069 16.6158 51.0018 18.1324 52.9191 18.1324Z"+ fill={color}+ />+ <path+ d="M67.5413 16.0904L68.9724 16.8905C67.9838 18.7415 66.2976 19.7725 64.3564 19.7725C61.574 19.7725 59.2979 17.4358 59.2979 14.5737C59.2979 11.7116 61.574 9.375 64.3564 9.375C67.1387 9.375 69.1837 11.3932 69.1837 14.932H61.0079C61.1754 16.8268 62.6303 18.1324 64.3603 18.1324C66.0904 18.1324 66.8477 17.396 67.5413 16.0904ZM61.1116 13.5228H67.3061C67.0949 12.1137 66.0425 10.9752 64.3564 10.9752C62.7977 10.9752 61.5341 12.0062 61.1116 13.5228Z"+ fill={color}+ />+ <path d="M69.375 9.63382H70.6586V5.19141H72.4284V9.62984H74.4494V11.1863H72.4284V19.5178H70.6586V11.1903H69.375V9.63382Z" fill={color} />+ <path+ d="M79.5038 10.9594C77.9452 10.9594 76.849 12.1576 76.849 14.116V19.5258H75.0791V5.19141H76.849V11.1664C77.5226 10.0916 78.6189 9.37906 80.0938 9.37906C82.3699 9.37906 83.5936 10.9992 83.5936 12.9139V19.5218H81.8238V13.3557C81.8238 11.8391 80.9588 10.9554 79.5078 10.9554L79.5038 10.9594Z"+ fill={color}+ />+ <path+ d="M93.1009 16.0904L94.5319 16.8905C93.5434 18.7415 91.8572 19.7725 89.9159 19.7725C87.1335 19.7725 84.8574 17.4358 84.8574 14.5737C84.8574 11.7116 87.1335 9.375 89.9159 9.375C92.6983 9.375 94.7432 11.3932 94.7432 14.932H86.5675C86.7349 16.8268 88.1899 18.1324 89.9199 18.1324C91.6499 18.1324 92.4073 17.396 93.1009 16.0904ZM86.6711 13.5228H92.8657C92.6544 12.1137 91.6021 10.9752 89.9159 10.9752C88.3573 10.9752 87.0937 12.0062 86.6711 13.5228Z"+ fill={color}+ />+ <path+ d="M101.456 11.5674C101.117 11.2729 100.615 11.1256 100.108 11.1256C98.6334 11.1256 97.7923 12.4074 97.7923 14.135V19.5208H96.0225V9.63285H97.7923V11.3167C98.2787 10.2419 99.2473 9.42188 100.531 9.42188C101.165 9.42188 101.731 9.63285 102.089 9.90751L101.456 11.5714V11.5674Z"+ fill={color}+ />+ <path+ d="M114.124 9.63359V19.5255H112.354V17.8218C111.681 19.0439 110.206 19.7803 108.878 19.7803C106.056 19.7803 103.904 17.4675 103.904 14.5815C103.904 11.6956 106.052 9.38281 108.878 9.38281C110.206 9.38281 111.681 10.1192 112.354 11.3413V9.63757H114.124V9.63359ZM109.066 18.1323C110.983 18.1323 112.478 16.6157 112.478 14.5776C112.478 12.5395 110.983 11.0228 109.066 11.0228C107.148 11.0228 105.654 12.5395 105.654 14.5776C105.654 16.6157 107.148 18.1323 109.066 18.1323Z"+ fill={color}+ />+ <path d="M117.895 9.63281V19.5247H116.125V9.63281H117.895Z" fill={color} />+ <path d="M115.83 6.17827C115.83 5.54535 116.376 5 117.01 5C117.644 5 118.19 5.54933 118.19 6.17827C118.19 6.80722 117.664 7.35655 117.01 7.35655C116.356 7.35655 115.83 6.8311 115.83 6.17827Z" fill={color} />+ <path d="M100.527 18.4712C100.527 17.8383 101.073 17.293 101.707 17.293C102.341 17.293 102.887 17.8423 102.887 18.4712C102.887 19.1002 102.361 19.6495 101.707 19.6495C101.054 19.6495 100.527 19.1241 100.527 18.4712Z" fill="#FC4C02" />+ </svg>+ );+}++/**+ * Just the pinwheel, for places too small for the whole wordmark. Two petals sit up top, so the+ * square frame is centred halfway between the petals' bounding box (y 12.6) and their weight+ * (y 10.6): optically centred in a round badge, not geometrically.+ */+export function TogetherMark({ size = 16, className }: { size?: number; className?: string }) {+ return (+ <svg viewBox="0 -1.93 27 27" width={size} height={size} fill="none" className={className} aria-hidden="true">+ <g>+ <path+ d="M26.0946 3.36759C24.2311 0.14917 20.1033 -0.95347 16.8756 0.904425C14.799 2.09984 13.6008 4.21357 13.5065 6.43765L20.2512 6.44623L20.2504 7.02289H13.5061C13.5496 8.07403 13.841 9.1215 14.405 10.0958C16.2685 13.3142 20.3963 14.4169 23.6244 12.5586C26.8525 10.7007 27.9584 6.58518 26.0946 3.36677V3.36759Z"+ fill="#EF2CC1"+ />+ <path+ d="M0.905194 3.36551C-0.958275 6.58393 0.147673 10.699 3.37534 12.5573C5.45196 13.7527 7.88726 13.7302 9.86632 12.6999L6.50175 6.87205L7.00308 6.58434L10.375 12.4073C11.2662 11.8441 12.0307 11.0689 12.5947 10.0946C14.4582 6.87614 13.3522 2.76106 10.1246 0.902757C6.89609 -0.955546 2.76866 0.147094 0.905194 3.36551Z"+ fill="#CAAEF5"+ />+ <path+ d="M13.4985 25.1174C17.2258 25.1174 20.2473 22.105 20.2473 18.3888C20.2473 15.998 19.0102 13.9067 17.1258 12.7129L13.7457 18.5322L13.2452 18.2433L16.6171 12.4203C15.6825 11.9323 14.6266 11.6602 13.4981 11.6602C9.77074 11.6602 6.74927 14.6726 6.74927 18.3888C6.74927 22.105 9.77074 25.1174 13.4981 25.1174H13.4985Z"+ fill="#FC4C02"+ />+ </g>+ </svg>+ );+}diff --git a/src/components/art/Tools.tsx b/src/components/art/Tools.tsxindex 2da9a38..9a06731 100644--- a/src/components/art/Tools.tsx+++ b/src/components/art/Tools.tsx@@ -1,14 +1,14 @@import type { ToolId } from "@/lib/types";-const S = { stroke: "var(--ink)", strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round" } as const;+const S = { stroke: "var(--ink)", strokeWidth: 1.8, strokeLinecap: "round", strokeLinejoin: "round" } as const;const W = "#fff";const G = "#ecebe6";const A = "var(--accent-soft)";-/** Hand drawn tool illustrations in the same line style as the 3D stage. viewBox 0 0 96 96. */+/** Hand drawn tool illustrations in the same line style as the 3D stage. viewBox 0 0 96 96; strokes are in screen pixels, so lines weigh the same at any size. */export function ToolArt({ id, size = 96, className }: { id: ToolId; size?: number; className?: string }) {return (- <svg viewBox="0 0 96 96" width={size} height={size} className={className} aria-hidden="true">+ <svg viewBox="0 0 96 96" width={size} height={size} className={"line-art " + (className ?? "")} aria-hidden="true">{ART[id]}</svg>);@@ -59,7 +59,7 @@ const ART: Record<ToolId, React.ReactNode> = {<path d="M24 30 v16" fill="none" strokeWidth={1.4} /><path d="M28 30 v16" fill="none" strokeWidth={1.4} /><rect x="66" y="30" width="10" height="16" rx="3" fill={G} />- <path d="M76 38 h14" fill="none" strokeWidth={2.6} />+ <path d="M76 38 h14" fill="none" strokeWidth={2} /><path d="M79 35.5 l2 5 M83 35.5 l2 5 M87 35.5 l2 5" fill="none" strokeWidth={1.1} /><rect x="40" y="50" width="6" height="8" rx="2" fill={A} /></g>@@ -112,15 +112,15 @@ const ART: Record<ToolId, React.ReactNode> = {),};-export const TOOL_INFO: Record<ToolId, { name: string; hint: string; alt?: string }> = {- allen: { name: "Allen key", hint: "The small L-shaped key", alt: "It comes in the box. Keep it with the hardware bag." },- screwdriver: { name: "Phillips screwdriver", hint: "Cross-shaped tip", alt: "A drill on its lowest setting works, but hand-tighten the last turn." },- flathead: { name: "Flat screwdriver", hint: "Straight tip", alt: "A coin can turn cam locks in a pinch." },- hammer: { name: "Hammer", hint: "For dowels and nails", alt: "For dowels, a rubber mallet or a firm push works. Nails need a hammer." },- drill: { name: "Drill", hint: "Only for the wall", alt: "Ask your landlord or a neighbour. Never skip anchoring tall furniture." },- level: { name: "Spirit level", hint: "Handy, not essential", alt: "A level app on your phone does the job." },- tape: { name: "Tape measure", hint: "To check it is square", alt: "A piece of string works: compare both diagonals." },- pencil: { name: "Pencil", hint: "For marking the wall", alt: "Any pen will do." },- wrench: { name: "Spanner", hint: "Comes in the box", alt: "Adjustable pliers work too." },- knife: { name: "Box cutter", hint: "To open the box", alt: "Scissors work. Cut the tape, not the panels." },+export const TOOL_INFO: Record<ToolId, { name: string; hint: string; alt?: string; short?: string }> = {+ allen: { name: "Allen key", hint: "The small L-shaped key", alt: "It comes in the box, usually in the bag with the screws.", short: "It's in the box, with the screws." },+ screwdriver: { name: "Phillips screwdriver", hint: "Cross-shaped tip", alt: "A drill on its lowest setting works. Do the last turn by hand so the screw doesn't strip.", short: "A drill on low. Finish by hand." },+ flathead: { name: "Flat screwdriver", hint: "Straight tip", alt: "A coin works for turning the round metal locks.", short: "A coin turns the round locks." },+ hammer: { name: "Hammer", hint: "For dowels and nails", alt: "Wooden dowels go in with a firm push or a rubber mallet. Nails for the back panel need a hammer.", short: "A firm push, or a rubber mallet." },+ drill: { name: "Drill", hint: "Only to fix it to the wall", alt: "Borrow one from a neighbour. You only need it to screw this to the wall so it can't tip over.", short: "Borrow one. It's only for fixing this to the wall." },+ level: { name: "Spirit level", hint: "Handy, not essential", alt: "A level app on your phone works just as well.", short: "A level app on your phone works." },+ tape: { name: "Tape measure", hint: "To check the corners are straight", alt: "A piece of string works. Measure corner to corner both ways: if they match, it's straight.", short: "String works: corner to corner, both ways." },+ pencil: { name: "Pencil", hint: "For marking the wall", alt: "Any pen will do.", short: "Any pen will do." },+ wrench: { name: "Spanner", hint: "Comes in the box", alt: "Adjustable pliers work too.", short: "Adjustable pliers work too." },+ knife: { name: "Box cutter", hint: "To open the box", alt: "Scissors work. Only cut through the tape, so the panels don't get scratched.", short: "Scissors work. Cut the tape only." },};diff --git a/src/components/guide/StepPanel.tsx b/src/components/guide/StepPanel.tsxindex 2265563..3f7d7e3 100644--- a/src/components/guide/StepPanel.tsx+++ b/src/components/guide/StepPanel.tsx@@ -51,14 +51,20 @@ export default function StepPanel({<div className="pane-scroll">{offer && (<div className="voice-offer">- <span className="voice-offer-ico">- <IMic size={20} />- </span><div className="voice-offer-text">- <b>{offer.again ? "Turn voice back on?" : "Hands full? Turn on voice"}</b>+ <b>+ {offer.again ? (+ "Turn voice back on?"+ ) : (+ <>+ Hands full?<span className="vo-more"> Turn on voice</span>+ </>+ )}+ </b><span>{offer.listen ? "Each step is read out loud. Say “next” to move on." : "Each step is read out loud. Tap done to move on."}</span></div><button className="btn voice-offer-go" onClick={offer.onStart}>+ <IMic size={17} />Turn on</button><button className="voice-offer-x" onClick={offer.onDismiss} aria-label="Not now">@@ -94,7 +100,7 @@ export default function StepPanel({{w === "two" ? <TwoPeople size={36} /> : <WarnIcon id={w} size={36} />}<div><b>{w === "two" ? "Grab a second person" : w === "tip" ? "This stops it tipping over" : "You'll need to drill"}</b>- <span>{w === "two" ? "It's heavy or awkward for one." : w === "tip" ? "Kids climb. Always fix it to the wall." : "Fixings for your wall are not in the box."}</span>+ <span>{w === "two" ? "It's heavy or awkward for one." : w === "tip" ? "Kids climb. Always fix it to the wall." : "The screws and plugs for your wall aren't in the box."}</span></div></div>))}diff --git a/src/components/guide/ToolsPanel.tsx b/src/components/guide/ToolsPanel.tsxindex 48ecdf7..b4520a4 100644--- a/src/components/guide/ToolsPanel.tsx+++ b/src/components/guide/ToolsPanel.tsx@@ -63,11 +63,12 @@ export default function ToolsPanel({ plan, onNext, onBack }: { plan: Plan; onNex<ICheck size={16} strokeWidth={3} /></motion.span></span>+ {/* small cards skip the title: the tool was just tapped, so the tip says enough */}<span className="tface back">- <span className="tback-title">No {info.name.toLowerCase()}?</span>- <span className="tback-text">{info.alt}</span>- <span className="tback-flip">- <IRotate size={14} /> Tap to flip back+ {!small && <span className="tback-title">No {info.name.toLowerCase()}?</span>}+ <span className="tback-text">{small ? (info.short ?? info.alt) : info.alt}</span>+ <span className="tback-flip" aria-hidden="true">+ <IRotate size={13} strokeWidth={2.4} /></span></span></button>diff --git a/src/components/home/Compare.tsx b/src/components/home/Compare.tsxindex f4ab8dc..d2b1fae 100644--- a/src/components/home/Compare.tsx+++ b/src/components/home/Compare.tsx@@ -1,18 +1,16 @@"use client";-import { useCallback, useEffect, useMemo, useRef, useState } from "react";-import { animate, motion, useMotionValue, useMotionValueEvent, useReducedMotion, useTransform, type MotionValue } from "motion/react";-import { catalogSpec } from "@/lib/catalog";-import { buildPlan } from "@/lib/plan";+import { useState } from "react";+import Link from "next/link";import { PRODUCT_COUNT } from "@/lib/search";-import { VOICE_DIR, clipId, stepLines } from "@/lib/voice/script";import { HwArt } from "../art/Hardware";-import { IBox, ICheck, IPlay, ISound } from "../art/Icons";+import { IArrowRight, IBox, ICheck, ISound } from "../art/Icons";/** One real step (KALLAX 2 × 2, step 2: stand the divider on the dowels),* drawn twice from the same geometry: as the booklet in the box prints it,- * and as Bygga shows it. A handle wipes between the two.+ * and as Bygga shows it. Numbered pins pair each question the paper leaves+ * open with the part of Bygga's drawing that answers it.*/const C = Math.cos(Math.PI / 6);@@ -55,228 +53,113 @@ const ZOOM = { cx: 790, cy: 168, r: 92 };const LETTER_A = P([96, 26, 30]);const LETTER_B = P([8, 200, 30]);-/* where things sit, in the drawing's own units, for the wide and the narrow frame */-const VB = { wide: { x: -110, y: 12, w: 1220, h: 588 }, narrow: { x: 214, y: -4, w: 700, h: 740 } };-type Spot = { wide: [number, number]; narrow: [number, number] };-const SPOTS = {- num: { wide: [-52, 66], narrow: [236, 50] },- hw: { wide: [-52, 186], narrow: [236, 152] },- // the voice bar sits on the Bygga side of the resting handle, so it can be tapped straight away- voice: { wide: [664, 556], narrow: [564, 690] },-} satisfies Record<string, Spot>;+/* each side's frame, in the drawing's own units: Bygga's is wider to fit the close-up */+type Box = { x: number; y: number; w: number; h: number };+const VB: Record<"paper" | "bygga", Box> = { paper: { x: 196, y: 16, w: 600, h: 524 }, bygga: { x: 206, y: 16, w: 712, h: 524 } };+const PAPER_NUM = { x: 216, y: 40 };+const PAPER_HW = { x: 216, y: 86 };-type Note = { text: string; dot: [number, number] | Spot; at: Spot; side: "paper" | "bygga"; wideOnly?: boolean };-const pick = (s: [number, number] | Spot, narrow: boolean): [number, number] => (Array.isArray(s) ? s : s[narrow ? "narrow" : "wide"]);-const NOTES: Note[] = [- { side: "paper", text: "Two of which piece?", dot: { wide: [32, 138], narrow: [328, 161] }, at: { wide: [168, 96], narrow: [500, 600] } },- { side: "paper", text: "Which way round?", dot: P([0, 200, 40]), at: { wide: [190, 300], narrow: [640, 660] } },- { side: "paper", text: "Tapped in how far?", dot: P([0, 44, 48]), at: { wide: [230, 470], narrow: [0, 0] }, wideOnly: true },- { side: "bygga", text: "Exact parts, counted", dot: { wide: [14, 216], narrow: [352, 214] }, at: { wide: [96, 310], narrow: [420, 540] } },- { side: "bygga", text: "Every dowel, up close", dot: { wide: [ZOOM.cx + ZOOM.r * 0.72, ZOOM.cy + ZOOM.r * 0.7], narrow: [ZOOM.cx - ZOOM.r * 0.2, ZOOM.cy + ZOOM.r * 0.98] }, at: { wide: [948, 322], narrow: [700, 600] } },- { side: "bygga", text: "Drag to turn it around", dot: P([150, 0, 80]), at: { wide: [860, 470], narrow: [0, 0] }, wideOnly: true },+/** The three questions, where they sit on each drawing, and Bygga's answer. */+const QA: { q: string; a: string; paper: [number, number]; bygga: [number, number] | null }[] = [+ { q: "Two of which piece?", a: "Every part is lettered and counted.", paper: [PAPER_HW.x + 92, PAPER_HW.y], bygga: null },+ { q: "Which way round?", a: "Drag the step to see any side.", paper: [548, 132], bygga: [548, 132] },+ { q: "Tapped in how far?", a: "A close-up shows how far it goes in.", paper: P([0, 30, 70]), bygga: [ZOOM.cx - ZOOM.r * 0.71, ZOOM.cy + ZOOM.r * 0.71] },];-function useNarrow() {- const [narrow, setNarrow] = useState(false);- useEffect(() => {- const mq = window.matchMedia("(max-width: 900px)");- const on = () => setNarrow(mq.matches);- on();- mq.addEventListener("change", on);- return () => mq.removeEventListener("change", on);- }, []);- return narrow;-}+const at = (vb: Box, [x, y]: [number, number]) => ({ left: `${((x - vb.x) / vb.w) * 100}%`, top: `${((y - vb.y) / vb.h) * 100}%` });export default function Compare() {- const narrow = useNarrow();- const vb = narrow ? VB.narrow : VB.wide;- const place = useCallback(([x, y]: [number, number]) => ({ left: `${((x - vb.x) / vb.w) * 100}%`, top: `${((y - vb.y) / vb.h) * 100}%` }), [vb]);- const pct = useCallback((x: number) => ((x - vb.x) / vb.w) * 100, [vb]);-- // how much of the paper manual is showing, in percent from the left- const pos = useMotionValue(94);- const clip = useTransform(pos, (p) => `inset(0 ${100 - p}% 0 0)`);- const left = useTransform(pos, (p) => `${p}%`);- const pill = useTransform(pos, [0, 100], ["100%", "0%"]);- // the dividing line only while both sides show- const edge = useTransform(pos, (p) => (p < 1.5 || p > 98.5 ? 0 : 1));- const [now, setNow] = useState(94);- useMotionValueEvent(pos, "change", (p) => setNow(Math.round(p)));-- const stage = useRef<HTMLDivElement>(null);- const still = useReducedMotion();- const touched = useRef(false);- const [used, setUsed] = useState(false);- const touch = () => {- touched.current = true;- setUsed(true);- };-- // phones get the whole of one side at a time; wider screens a handle in between- const rest = narrow ? 0 : 40;- const show = (side: "paper" | "bygga") => {- touched.current = true;- animate(pos, side === "paper" ? 100 : 0, { duration: 0.9, ease: [0.65, 0, 0.35, 1] });- };-- // the first time it scrolls into view, the Bygga side wipes in over the paper- useEffect(() => {- const el = stage.current;- if (!el) return;- if (still) {- pos.set(rest);- return;- }- const io = new IntersectionObserver(- ([e]) => {- if (!e.isIntersecting || touched.current) return;- io.disconnect();- animate(pos, rest, { duration: 1.5, delay: 0.6, ease: [0.65, 0, 0.35, 1] });- },- { threshold: 0.55 },- );- io.observe(el);- return () => io.disconnect();- }, [pos, still, rest]);-- const drag = useRef(false);- const toPointer = (clientX: number) => {- const r = stage.current!.getBoundingClientRect();- pos.stop();- pos.set(Math.min(100, Math.max(0, ((clientX - r.left) / r.width) * 100)));- };+ // a question and its answer light up together, from either side+ const [lit, setLit] = useState<number | null>(null);+ const hover = (i: number) => ({ onPointerEnter: () => setLit(i), onPointerLeave: () => setLit(null) });+ const pin = (side: "paper" | "bygga", i: number) => (+ <span className={"cmp-pin " + side + (lit === i ? " lit" : "")} aria-hidden="true">+ {i + 1}+ </span>+ );return (<section className="compare" aria-labelledby="compare-title"><div className="cmp-head">- <p className="cmp-eyebrow">Why Bygga</p><h2 className="sec-title" id="compare-title">The paper manual, explained</h2>- <p className="cmp-sub">The same steps as the booklet in the box, except you can turn them around, see every dowel up close and hear them read out loud.</p>+ <p className="cmp-sub">One step from the KALLAX booklet, next to the same step on Bygga.</p></div>- <div- ref={stage}- className="cmp-stage"- style={{ aspectRatio: `${vb.w} / ${vb.h}` }}- onPointerDown={(e) => {- if (narrow || (e.target as HTMLElement).closest("button")) return;- touch();- drag.current = true;- (e.currentTarget as HTMLElement).setPointerCapture(e.pointerId);- toPointer(e.clientX);- }}- onPointerMove={(e) => drag.current && toPointer(e.clientX)}- onPointerUp={() => (drag.current = false)}- onPointerCancel={() => (drag.current = false)}- >- {/* Bygga, underneath */}- <div className="cmp-layer cmp-bygga">- <svg viewBox={`${vb.x} ${vb.y} ${vb.w} ${vb.h}`} aria-hidden="true">- <Scene style="bygga" />- <Zoom />- {NOTES.filter((n) => n.side === "bygga" && (!narrow || !n.wideOnly)).map((n) => (- <Lead key={n.text} from={pick(n.dot, narrow)} to={n.at[narrow ? "narrow" : "wide"]} side="bygga" />- ))}- </svg>- <span className="cmp-tag bygga">Bygga</span>- <span className="cmp-num" style={place(SPOTS.num[narrow ? "narrow" : "wide"])}>- 2- </span>- <span className="cmp-hw" style={place(SPOTS.hw[narrow ? "narrow" : "wide"])}>- <HwArt kind="dowel" len={30} dia={8} fit={40} />- <b>2×</b>- </span>- {NOTES.filter((n) => n.side === "bygga" && (!narrow || !n.wideOnly)).map((n) => (- <Chip key={n.text} note={n} style={place(n.at[narrow ? "narrow" : "wide"])} x={pct(n.at[narrow ? "narrow" : "wide"][0])} pos={pos} />- ))}- <Voice style={place(SPOTS.voice[narrow ? "narrow" : "wide"])} />- </div>-- {/* the paper manual, on top, wiped away from the right */}- <motion.div className="cmp-layer cmp-paper" style={{ clipPath: clip }} aria-hidden="true">- <svg viewBox={`${vb.x} ${vb.y} ${vb.w} ${vb.h}`}>- <PaperPage vb={vb} narrow={narrow} />- <Scene style="paper" />- {NOTES.filter((n) => n.side === "paper" && (!narrow || !n.wideOnly)).map((n) => (- <Lead key={n.text} from={pick(n.dot, narrow)} to={n.at[narrow ? "narrow" : "wide"]} side="paper" />+ <div className="cmp-pair" style={{ gridTemplateColumns: `${VB.paper.w}fr ${VB.bygga.w}fr` }}>+ <figure className="cmp-card paper">+ <figcaption className="cmp-tag paper">In the box</figcaption>+ <div className="cmp-art" style={{ aspectRatio: `${VB.paper.w} / ${VB.paper.h}` }}>+ <svg viewBox={`${VB.paper.x} ${VB.paper.y} ${VB.paper.w} ${VB.paper.h}`} aria-hidden="true">+ <PaperPage vb={VB.paper} />+ <Scene style="paper" />+ </svg>+ {QA.map((n, i) => (+ <span key={i} className="cmp-spot" style={at(VB.paper, n.paper)} {...hover(i)}>+ {pin("paper", i)}+ </span>))}- </svg>- <span className="cmp-tag paper">The paper manual</span>- {NOTES.filter((n) => n.side === "paper" && (!narrow || !n.wideOnly)).map((n) => (- <Chip key={n.text} note={n} style={place(n.at[narrow ? "narrow" : "wide"])} x={pct(n.at[narrow ? "narrow" : "wide"][0])} pos={pos} />- ))}- </motion.div>+ </div>+ </figure>- <motion.button- className="cmp-handle"- style={{ left, opacity: narrow ? edge : 1 }}- role="slider"- aria-label="Compare the paper manual with Bygga"- aria-valuemin={0}- aria-valuemax={100}- aria-valuenow={now}- aria-valuetext={now > 60 ? "Mostly the paper manual" : now < 40 ? "Mostly Bygga" : "Half and half"}- onPointerDown={(e) => {- touch();- drag.current = true;- stage.current?.setPointerCapture(e.pointerId);- }}- onKeyDown={(e) => {- const step = e.shiftKey ? 20 : 6;- const to = e.key === "ArrowLeft" ? pos.get() - step : e.key === "ArrowRight" ? pos.get() + step : e.key === "Home" ? 0 : e.key === "End" ? 100 : null;- if (to === null) return;- e.preventDefault();- touch();- animate(pos, Math.min(100, Math.max(0, to)), { type: "spring", stiffness: 420, damping: 40 });- }}- >- <span className="cmp-knob">- <svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true">- <path d="M9 7l-5 5 5 5M15 7l5 5-5 5" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round" />+ <figure className="cmp-card bygga">+ <figcaption className="cmp-tag bygga">On Bygga</figcaption>+ <div className="cmp-art" style={{ aspectRatio: `${VB.bygga.w} / ${VB.bygga.h}` }}>+ <svg viewBox={`${VB.bygga.x} ${VB.bygga.y} ${VB.bygga.w} ${VB.bygga.h}`} aria-hidden="true">+ <Scene style="bygga" />+ <Zoom /></svg>- </span>- {!narrow && <span className={"cmp-hint" + (used ? " gone" : "")}>Drag to compare</span>}- </motion.button>+ <span className="cmp-num" style={at(VB.bygga, [226, 44])} aria-hidden="true">+ 2+ </span>+ <span className="cmp-hw" style={at(VB.bygga, [226, 136])} {...hover(0)}>+ <HwArt kind="dowel" len={30} dia={8} fit={36} />+ <b>2×</b>+ {pin("bygga", 0)}+ </span>+ {QA.map((n, i) =>+ n.bygga ? (+ <span key={i} className="cmp-spot" style={at(VB.bygga, n.bygga)} {...hover(i)}>+ {pin("bygga", i)}+ </span>+ ) : null,+ )}+ </div>+ </figure></div>- {narrow && (- <div className="cmp-switch" role="group" aria-label="Show">- <button className={now > 50 ? "on" : ""} onClick={() => show("paper")} aria-pressed={now > 50}>- The paper manual- </button>- <button className={now <= 50 ? "on" : ""} onClick={() => show("bygga")} aria-pressed={now <= 50}>- Bygga- </button>- <motion.i className="cmp-switch-bg" style={{ x: pill }} aria-hidden="true" />- </div>- )}+ <ol className="cmp-qa">+ {QA.map((n, i) => (+ <li key={i} className={lit === i ? "lit" : undefined} {...hover(i)}>+ <span className="cmp-qa-n" aria-hidden="true">+ {i + 1}+ </span>+ <p className="cmp-q">“{n.q}”</p>+ <p className="cmp-a">{n.a}</p>+ </li>+ ))}+ </ol>- <ul className="cmp-facts">- <li>- <IBox size={20} />- <span>- <b>{PRODUCT_COUNT} IKEA products</b>- <span>Every size drawn, searchable by the number on the box</span>- </span>- </li>- <li>- <ISound size={20} />- <span>- <b>Read out loud</b>- <span>Say “next” and keep both hands on the panel</span>- </span>- </li>- <li>- <ICheck size={20} />- <span>- <b>Free, no app</b>- <span>No account, nothing to install. Works offline once open</span>- </span>- </li>- </ul>+ <div className="cmp-foot">+ <ul className="cmp-facts">+ <li>+ <IBox size={18} />+ {PRODUCT_COUNT.toLocaleString("en-US")} IKEA products+ </li>+ <li>+ <ISound size={18} />+ Read out loud, hands free+ </li>+ <li>+ <ICheck size={18} />+ Free, no account+ </li>+ </ul>+ <Link href="/build/kallax-2x2" className="cmp-cta">+ Try it on KALLAX <IArrowRight size={18} />+ </Link>+ </div></section>);}@@ -386,10 +269,10 @@ function Zoom() {);}-/** The paper side's page: cream stock, a fold, the small boxed step number and a part number nobody can find. */-function PaperPage({ vb, narrow }: { vb: { x: number; y: number; w: number; h: number }; narrow: boolean }) {- const n = narrow ? { x: 236, y: 92 } : { x: -52, y: 72 };- const hw = narrow ? { x: 236, y: 138 } : { x: -52, y: 120 };+/** The paper side's page: cream stock, the small boxed step number and a part number nobody can find. */+function PaperPage({ vb }: { vb: Box }) {+ const n = PAPER_NUM;+ const hw = PAPER_HW;return (<g><rect x={vb.x - 2} y={vb.y - 2} width={vb.w + 4} height={vb.h + 4} fill="url(#cmp-paper)" />@@ -399,7 +282,6 @@ function PaperPage({ vb, narrow }: { vb: { x: number; y: number; w: number; h: n<stop offset="1" stopColor="#ece7da" /></linearGradient></defs>- {!narrow && <path d={`M${vb.x + vb.w - 2} ${vb.y} V${vb.y + vb.h}`} stroke="#ddd6c6" strokeWidth={8} />}<rect x={n.x} y={n.y} width={30} height={30} fill="none" stroke="#5d5a53" strokeWidth={1.2} /><text x={n.x + 15} y={n.y + 21} fontSize={17} textAnchor="middle" fill="#5d5a53" fontFamily="var(--font)">2@@ -414,95 +296,9 @@ function PaperPage({ vb, narrow }: { vb: { x: number; y: number; w: number; h: n101351</text></g>- <text x={vb.x + vb.w - (narrow ? 26 : 34)} y={vb.y + vb.h - 18} fontSize={12} textAnchor="end" fill="#8a857a" fontFamily="var(--font)">+ <text x={vb.x + vb.w - 26} y={vb.y + vb.h - 18} fontSize={12} textAnchor="end" fill="#8a857a" fontFamily="var(--font)">7</text></g>);}--/** A thin line from a note to the thing it is about. */-function Lead({ from, to, side }: { from: [number, number]; to: [number, number]; side: "paper" | "bygga" }) {- return (- <g className={"cmp-lead " + side}>- <path d={`M${from[0]} ${from[1]} L${to[0]} ${to[1]}`} />- <circle cx={from[0]} cy={from[1]} r={side === "paper" ? 2.5 : 3.5} />- </g>- );-}--/** A note on the drawing, faded out as the other side covers it. */-function Chip({ note, style, x, pos }: { note: Note; style: React.CSSProperties; x: number; pos: MotionValue<number> }) {- // paper notes show while the paper covers them, Bygga notes once it has moved past- const opacity = useTransform(pos, (p) => Math.min(1, Math.max(0, (note.side === "paper" ? p - x - 4 : x - p - 4) / 8)));- const scale = useTransform(opacity, [0, 1], [0.92, 1]);- return (- <motion.span className={"cmp-chip " + note.side} style={{ ...style, opacity, scale }}>- {note.side === "paper" ? <i>?</i> : <ICheck size={13} strokeWidth={3} />}- {note.text}- </motion.span>- );-}--/** The step read out loud, with the real clips the guide plays. */-function Voice({ style }: { style: React.CSSProperties }) {- const lines = useMemo(() => {- const spec = catalogSpec("kallax-2x2");- if (!spec) return [] as string[];- try {- return stepLines(buildPlan(spec), 1);- } catch {- return [] as string[];- }- }, []);- const [at, setAt] = useState<number | null>(null);- const el = useRef<HTMLAudioElement | null>(null);- const run = useRef(0);- useEffect(() => () => el.current?.pause(), []);-- const play = async () => {- if (at !== null) {- run.current++;- el.current?.pause();- setAt(null);- return;- }- const my = ++run.current;- el.current ??= new Audio();- for (let i = 0; i < lines.length; i++) {- if (run.current !== my) return;- setAt(i);- const a = el.current;- a.src = `${VOICE_DIR}/${clipId(lines[i])}.mp3`;- const ok = await new Promise<boolean>((res) => {- a.onended = () => res(true);- a.onerror = () => res(false);- a.play().catch(() => res(false));- });- if (!ok) break;- await new Promise((r) => setTimeout(r, 260));- }- if (run.current === my) setAt(null);- };-- const text = at !== null ? lines[at] : (lines[1] ?? "Stand the dividers on the dowels.");- return (- <div className="cmp-voice" style={style}>- <button className={"cmp-play" + (at !== null ? " on" : "")} onClick={play} aria-label={at !== null ? "Stop the voice" : "Hear this step read out loud"}>- {at !== null ? (- <span className="eq on" aria-hidden="true">- <i />- <i />- <i />- </span>- ) : (- <IPlay size={16} />- )}- </button>- <span className="cmp-line" aria-live="polite">- {text}- </span>- <span className="cmp-say">Say “next”</span>- </div>- );-}diff --git a/src/components/home/Sections.tsx b/src/components/home/Sections.tsxindex bb2b413..892dbd9 100644--- a/src/components/home/Sections.tsx+++ b/src/components/home/Sections.tsx@@ -3,14 +3,14 @@import { useEffect, useMemo, useState } from "react";import Link from "next/link";import { AnimatePresence, motion } from "motion/react";-import { POPULAR, articleNo, fold, loadArticles, searchText } from "@/lib/search";+import { POPULAR, articleNo, fold, loadArticles, searchText, slugify } from "@/lib/search";import { articleSlug } from "@/lib/ikea";import { PRODUCTS, type CatalogEntry } from "@/lib/catalog";import type { Kind } from "@/lib/products";import Drawing from "../Drawing";import { getUserKey } from "@/lib/userKey";import { Dots } from "../guide/ui";-import { IArrowRight, IClock, ISearch } from "../art/Icons";+import { IArrowRight, IClock, IClose, ISearch } from "../art/Icons";/** Tabs over the kinds of furniture. Kids and Outdoor cut across them, by keyword. */export const CATS: { id: string; label: string; kinds?: Kind[]; tag?: string }[] = [@@ -103,6 +103,17 @@ export function Catalog({ limit, search }: { limit?: number; search?: boolean })return (<div className="catalog"><div className="cat-bar">+ {search && (+ <label className="cat-search">+ <ISearch size={20} />+ <input type="search" value={q} onChange={(e) => setQ(e.target.value)} placeholder="Name or article number" aria-label="Filter by name or article number" enterKeyHint="search" autoComplete="off" spellCheck={false} />+ {q && (+ <button type="button" className="cat-clear" onClick={() => setQ("")} aria-label="Clear filter">+ <IClose size={16} />+ </button>+ )}+ </label>+ )}<div className="cat-tabs" role="tablist">{CATS.map((c) => (<button key={c.id} role="tab" aria-selected={cat === c.id} className={"cat-tab" + (cat === c.id ? " on" : "")} onClick={() => setCat(c.id)}>@@ -112,12 +123,6 @@ export function Catalog({ limit, search }: { limit?: number; search?: boolean })</button>))}</div>- {search && (- <label className="cat-search">- <ISearch size={18} />- <input value={q} onChange={(e) => setQ(e.target.value)} placeholder="Filter by name or article number" aria-label="Filter products" enterKeyHint="search" />- </label>- )}</div><motion.div layout className="pgrid"><AnimatePresence mode="popLayout">@@ -126,7 +131,22 @@ export function Catalog({ limit, search }: { limit?: number; search?: boolean })))}</AnimatePresence></motion.div>- {list.length === 0 && <p className="empty">{no && !articles ? "Looking up that article number" : no ? "We don't have a guide for that article number yet. Try the name on the box." : "Nothing matches. Try another name, or search for it on the home page."}</p>}+ {list.length === 0 && (+ <div className="empty">+ {no && !articles ? (+ <p>Looking up that article number</p>+ ) : no ? (+ <p>No guide for that article number yet. Try the name on the box.</p>+ ) : (+ <>+ <p>Nothing here matches “{q.trim()}”.</p>+ <Link href={`/build/${slugify(q)}?q=${encodeURIComponent(q.trim())}`} className="empty-go">+ Make a guide for {q.trim()} <IArrowRight size={16} />+ </Link>+ </>+ )}+ </div>+ )}{!limit && list.length > shown.length && (<div className="cat-more"><button type="button" className="cat-more-btn" onClick={() => setMore({ view, n: n + PAGE })}>diff --git a/src/components/workshop/Workshop.tsx b/src/components/workshop/Workshop.tsxindex 75e70af..5ba31c0 100644--- a/src/components/workshop/Workshop.tsx+++ b/src/components/workshop/Workshop.tsx@@ -14,7 +14,7 @@ import { peekShot, shot, type Shot } from "@/engine/thumbs";import Thumb from "../Thumb";import Drawing from "../Drawing";import { Figure, ScaleFigure } from "../art/Figure";-import { IArrowRight, IBox, ICheck, IClock, IClose, ILibrary, IPeople, WarnIcon } from "../art/Icons";+import { IArrowRight, IBed, IBox, ICheck, IClock, IClose, ILibrary, IPeople, IWall } from "../art/Icons";interface Row {p: Progress;@@ -372,20 +372,13 @@ function Empty() {/* ---------- badges ---------- */-const BED = (- <svg viewBox="0 0 24 24" width={20} height={20} fill="none" stroke="currentColor" strokeWidth={2} strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">- <path d="M3 18V7M3 13h18v5M21 18v-5a3 3 0 0 0-3-3h-7v3" />- <circle cx="7" cy="10.5" r="1.6" />- </svg>-);-const BADGES: { id: string; name: string; hint: string; icon: React.ReactNode }[] = [{ id: "first", name: "First build", hint: "Finish anything", icon: <ICheck size={19} strokeWidth={2.4} /> },{ id: "drawers", name: "Drawer whisperer", hint: "Build something with drawers", icon: <IBox size={19} /> },- { id: "anchor", name: "Anchored", hint: "Fix a build to the wall", icon: <WarnIcon id="wall" size={24} /> },- { id: "team", name: "Team player", hint: "Finish a two person build", icon: <IPeople size={19} /> },+ { id: "anchor", name: "Safe and sound", hint: "Fix a build to the wall", icon: <IWall size={19} /> },+ { id: "team", name: "Team player", hint: "Finish a two-person build", icon: <IPeople size={19} /> },{ id: "fast", name: "Quick hands", hint: "Beat the typical time", icon: <IClock size={19} /> },- { id: "bed", name: "Sweet dreams", hint: "Build a bed", icon: BED },+ { id: "bed", name: "Sweet dreams", hint: "Build a bed", icon: <IBed size={19} /> },{ id: "books", name: "Bookworm", hint: "Build a bookcase or shelf", icon: <ILibrary size={19} /> },{ id: "five", name: "Regular", hint: "Finish five builds", icon: <span className="bi">5</span> },];