Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .design-sync/scripts/gen-css.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// definitions into the styles.css closure — otherwise designs built with the
// DS fall back to serif because the vars are referenced but never defined.
// Regenerate whenever src/app/globals.css changes:
// node .ds-sync/gen-css.mjs
// node .design-sync/scripts/gen-css.mjs
import { readFileSync, writeFileSync } from "node:fs";

const globals = readFileSync("src/app/globals.css", "utf8");
Expand Down
2 changes: 1 addition & 1 deletion .design-sync/scripts/gen-dtsprops.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// One-off: compose accurate, self-contained <Name>Props bodies for cfg.dtsPropsFor.
// Synth-entry mode can't extract the inline prop types, so each body must inline
// every referenced type (the emitted .d.ts only imports React). Run from repo
// root: node .ds-sync/gen-dtsprops.mjs
// root: node .design-sync/scripts/gen-dtsprops.mjs
import { readFileSync, writeFileSync } from "node:fs";

// Shared shapes, fully inlined (no type aliases survive in the emitted .d.ts).
Expand Down
6 changes: 3 additions & 3 deletions .design-sync/scripts/gen-fixtures.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// One-off: build .design-sync/previews/_fixtures.ts with real Design/Wing data
// and compact webp data-URI images (so preview cards render actual artwork
// without depending on site-relative /images/ paths that don't exist in the
// design tool). Run from the repo root: node .ds-sync/gen-fixtures.mjs
// design tool). Run from the repo root: node .design-sync/scripts/gen-fixtures.mjs
import sharp from "../../node_modules/sharp/lib/index.js";
import { readFileSync, writeFileSync } from "node:fs";
import { join } from "node:path";
Expand Down Expand Up @@ -38,9 +38,9 @@ for (const slug of PICKS) {

const wings = catalog.wings;

const header = `// GENERATED by .ds-sync/gen-fixtures.mjs — real catalog data + inlined webp
const header = `// GENERATED by .design-sync/scripts/gen-fixtures.mjs — real catalog data + inlined webp
// data-URI artwork, so preview cards render without site-relative image paths.
// Regenerate with: node .ds-sync/gen-fixtures.mjs
// Regenerate with: node .design-sync/scripts/gen-fixtures.mjs
import type { Design, Wing } from "@/lib/types";

`;
Expand Down
Binary file removed docs/screenshots/gallery-wing.png
Binary file not shown.
Binary file removed docs/screenshots/gallery.png
Binary file not shown.
185 changes: 92 additions & 93 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"react-dom": "^19.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.6",
"@types/node": "^22",
"@types/react": "^19",
"@types/react-dom": "^19",
Expand Down
10 changes: 0 additions & 10 deletions scripts/screenshots.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ mkdirSync(OUT, { recursive: true });
const browser = await chromium.launch();
const page = await browser.newPage({ viewport: { width: 1440, height: 900 }, deviceScaleFactor: 2 });

// Gallery — hero shot (header + first rows of masonry)
await page.goto(`${BASE}/`, { waitUntil: "networkidle" });
await page.waitForTimeout(1200); // let rise animations settle
await page.screenshot({ path: `${OUT}/gallery.png` });

// Gallery — wing filtered
await page.getByRole("button", { name: "Bless Your Heart" }).click();
await page.waitForTimeout(900);
await page.screenshot({ path: `${OUT}/gallery-wing.png` });

// Exhibit page — placard + audio button
await page.goto(`${BASE}/exhibit/medusa/`, { waitUntil: "networkidle" });
await page.waitForTimeout(800);
Expand Down
24 changes: 0 additions & 24 deletions src/components/exhibit/Placard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,30 +86,6 @@
margin: 0;
}

.audioPrompt {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
color: var(--brown-muted);
font-family: var(--font-caps), serif;
font-size: 0.7rem;
letter-spacing: 0.18em;
}

.stopBadge {
display: inline-block;
width: 26px;
height: 26px;
border-radius: 50%;
border: 1.5px solid var(--brown-muted);
text-align: center;
line-height: 24px;
font-size: 0.78rem;
font-family: var(--font-display), serif;
color: var(--ink);
}

.audioText {
font-family: var(--font-body), serif;
font-style: italic;
Expand Down
4 changes: 0 additions & 4 deletions src/data/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import catalogJson from "./catalog.generated.json";

const catalog = catalogJson as unknown as Catalog;

export function getCatalog(): Catalog {
return catalog;
}

export function getDesigns(): Design[] {
return catalog.designs;
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/copy.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/** Museum-voice string constants. One place to edit the institution's tone. */
export const COPY = {
department: "Department of Applied Mythology",
siteTitle: "THE CROSSROAD ARCHIVE",
siteTitleLines: ["THE CROSSROAD", "ARCHIVE"] as const,
subtitle: "A permanent exhibit of Crossroad Threads · Admission is the joke itself",
footer: "Crossroad Threads · The gift shop is the museum",
allWings: "All Wings",
audioGuidePrompt: "Press play on your handset",
returnToGallery: "Return to Gallery",
notFoundTitle: "This exhibit has been deaccessioned",
notFoundBody:
Expand Down
Loading