Purple Pop (cream page, purple pills, asterisk and dome decor, opt-in logo) and Citrus Split (grey split panel, halftone chevrons, icon contacts, logo in the measured slot) are rebuilt from the Canva PDFs on the engine with A4/Letter support, GST slots and zero audit errors. Adds static DM Sans, Jost and Poppins 800 as look-alikes for the commercial fonts. The picker now lists ten templates.
12 lines
548 B
TypeScript
12 lines
548 B
TypeScript
import type { ComponentType } from "react";
|
|
import type { TemplateProps } from "../contract";
|
|
import { NorthlineLayout } from "./Layout";
|
|
import type { NorthlineVariant } from "./variant";
|
|
|
|
/** The family component bound to one variant's tokens, as the TemplateDefinition's Layout. */
|
|
export function NorthlineLayoutFor(variant: NorthlineVariant): ComponentType<TemplateProps> {
|
|
const Layout = (props: TemplateProps) => <NorthlineLayout {...props} variant={variant} />;
|
|
Layout.displayName = `NorthlineLayout(${variant.id})`;
|
|
return Layout;
|
|
}
|