Skip to content

armgit / bygga

Public Imported from GitHub
0

IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.

TypeScript

Launch copy: no over-claims, numbers from the catalog

Youssefb697b8542afe
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index c451463..78dd45a 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -22,21 +22,21 @@ const display = Noto_Sans_Display({
display: "swap",
});
-const description = "Type the product name from the box. Bygga shows every assembly step in 3D, with the exact parts, screws and tools, and reads each one out loud.";
+const description = "Type the product name from the box. Bygga shows every assembly step in 3D, with the parts, screws and tools for each one, and reads it out loud.";
export const metadata: Metadata = {
metadataBase: new URL(SITE_URL),
- title: "Bygga: IKEA assembly, step by step",
+ title: "Bygga: step-by-step assembly for IKEA furniture",
description,
applicationName: "Bygga",
appleWebApp: { capable: true, title: "Bygga", statusBarStyle: "default" },
- openGraph: { type: "website", siteName: "Bygga", title: "Bygga: IKEA assembly, step by step", description, url: "/" },
- twitter: { card: "summary_large_image", title: "Bygga: IKEA assembly, step by step", description },
+ openGraph: { type: "website", siteName: "Bygga", title: "Bygga: step-by-step assembly for IKEA furniture", description, url: "/" },
+ twitter: { card: "summary_large_image", title: "Bygga: step-by-step assembly for IKEA furniture", description },
alternates: { canonical: "/" },
};
export const viewport: Viewport = {
- themeColor: "#f7f6f2",
+ themeColor: "#f5f4f0",
width: "device-width",
initialScale: 1,
};
diff --git a/src/app/manifest.ts b/src/app/manifest.ts
index 182285f..7d34796 100644
--- a/src/app/manifest.ts
+++ b/src/app/manifest.ts
@@ -3,9 +3,9 @@ import type { MetadataRoute } from "next";
/** Add to home screen: opens straight into the search, full screen, in the page's own colours. */
export default function manifest(): MetadataRoute.Manifest {
return {
- name: "Bygga: IKEA assembly, step by step",
+ name: "Bygga: step-by-step assembly for IKEA furniture",
short_name: "Bygga",
- description: "Every IKEA assembly step in 3D, read out loud.",
+ description: "IKEA furniture assembly in 3D, step by step, read out loud.",
start_url: "/",
display: "standalone",
background_color: "#f5f4f0",
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 319dc09..b023dda 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -43,7 +43,7 @@ export default function Home() {
<br />
step by step.
</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>
+ <p className="lead">Type the name from the box. Each step plays in 3D and is read out loud, with the parts, screws and tools it needs.</p>
<HeroSearch />
<div className="quick">
<span>Try</span>
@@ -134,7 +134,7 @@ export default function Home() {
<div className="sec-head">
<h2 className="sec-title">Popular builds</h2>
<Link href="/browse" className="sec-link">
- All {PRODUCT_COUNT} guides <IArrowRight size={15} />
+ All {PRODUCT_COUNT.toLocaleString("en-US")} products <IArrowRight size={15} />
</Link>
</div>
<Catalog limit={9} />
diff --git a/src/components/guide/DonePanel.tsx b/src/components/guide/DonePanel.tsx
index 0205e51..48a8fee 100644
--- a/src/components/guide/DonePanel.tsx
+++ b/src/components/guide/DonePanel.tsx
@@ -37,7 +37,7 @@ export default function DonePanel({ plan, slug, finish, onReview }: { plan: Plan
You built {s.name}.
</motion.h2>
<motion.p className="sub center" initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ delay: 0.4 }}>
- {faster ? `${s.minutes - spent!} minutes faster than most people.` : spent ? "Built at your own pace. That's the right pace." : "Every step done. Nice work."}
+ {faster ? `${s.minutes - spent!} ${s.minutes - spent! === 1 ? "minute" : "minutes"} under the typical time.` : spent ? "Built at your own pace. That's the right pace." : "Every step done. Nice work."}
</motion.p>
<motion.dl className="stats" initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }} transition={{ delay: 0.5 }}>
<div>
diff --git a/src/components/guide/shareCard.ts b/src/components/guide/shareCard.ts
index 8989268..e99778d 100644
--- a/src/components/guide/shareCard.ts
+++ b/src/components/guide/shareCard.ts
@@ -132,7 +132,7 @@ export async function buildCard(plan: Plan, key: string, stat: string): Promise<
ctx.font = `500 26px ${body}`;
const host = location.host.replace(/^www\./, "");
ctx.textAlign = "right";
- ctx.fillText(`Every IKEA step in 3D, ${host}`, W - 110, 1280);
+ ctx.fillText(`Step by step in 3D, ${host}`, W - 110, 1280);
ctx.textAlign = "left";
return await new Promise<Blob | null>((r) => c.toBlob(r, "image/png"));
diff --git a/src/components/workshop/Workshop.tsx b/src/components/workshop/Workshop.tsx
index 5ba31c0..d792c23 100644
--- a/src/components/workshop/Workshop.tsx
+++ b/src/components/workshop/Workshop.tsx
@@ -14,6 +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 { fmtMin } from "../guide/CoverPanel";
import { IArrowRight, IBed, IBox, ICheck, IClock, IClose, ILibrary, IPeople, IWall } from "../art/Icons";
interface Row {
@@ -320,11 +321,15 @@ function BuiltCard({ r, onRemove }: { r: Row; onRemove: () => void }) {
/* ---------- empty ---------- */
+// times come from the catalog, so they can't drift from the guides
const STARTERS = [
- { slug: "lack-side-table", name: "LACK", note: "15 min, a good first build" },
- { slug: "kallax-2x2", name: "KALLAX", note: "Cube shelf, 45 min" },
- { slug: "malm-3-drawers", name: "MALM", note: "Chest of drawers, 2 h" },
-];
+ { slug: "lack-side-table", note: (s: ProductSpec) => `${fmtMin(s.minutes)}, a good first build` },
+ { slug: "kallax-2x2", note: (s: ProductSpec) => `${s.category}, ${fmtMin(s.minutes)}` },
+ { slug: "malm-3-drawers", note: (s: ProductSpec) => `${s.category}, ${fmtMin(s.minutes)}` },
+].flatMap(({ slug, note }) => {
+ const s = catalogSpec(slug);
+ return s ? [{ slug, name: s.name, note: note(s) }] : [];
+});
function EmptyFloor({ note }: { note: string }) {
return (