export async function buildPage(ctx) {
const structure = await mapInformationArchitecture({
brand: ctx.brand,
goals: ["trust", "inquiry", "clarity"],
});
const journey = composeVisitorFlow(structure, {
entry: "landing",
decision: "need",
paths: {
see: "works",
buy: "service",
},
exit: "contact",
});
const ui = renderSections(journey.nodes.map((node) => ({
id: node.id,
tone: node.priority > 0.7 ? "accent" : "quiet",
motion: node.id === "hero" ? "enter" : "hold",
})));
return {
meta: {
title: `${ctx.brand} · Website`,
description: journey.summary,
},
body: ui,
next: scheduleLaunch({ review: true, care: true }),
};
}
export async function buildPage(ctx) {
const structure = await mapInformationArchitecture({
brand: ctx.brand,
goals: ["trust", "inquiry", "clarity"],
});
const journey = composeVisitorFlow(structure, {
entry: "landing",
decision: "need",
paths: {
see: "works",
buy: "service",
},
exit: "contact",
});
const ui = renderSections(journey.nodes.map((node) => ({
id: node.id,
tone: node.priority > 0.7 ? "accent" : "quiet",
motion: node.id === "hero" ? "enter" : "hold",
})));
return {
meta: {
title: `${ctx.brand} · Website`,
description: journey.summary,
},
body: ui,
next: scheduleLaunch({ review: true, care: true }),
};
}