code wiki / _hdl_build / nx_kit_market.nx

nx_kit_market.nx

buildroot/runtime/_hdl_build/nx_kit_market.nx

11299 B129 linesdepth 3pulls 3 transitivereach 4 importersview sourcekind librarytopic kit
docsdependenciesstructsconstsfunctions

about

nx_kit_market.nx -- the MARKET design family: a real storefront grammar for commerce briefs (shop, store, boutique, catalog, merch). Fourth first-class family after marketing, Counsel and Journal. What a commerce page actually needs and the marketing grammar never had: a UTILITY BAR (search + cart) above the masthead, CATEGORY CHIPS for browsing, a PRODUCT GRID whose cards carry a visual, a name, a short line, a REAL PRICE and an add-to-cart action, and a SHIPPING/RETURNS/SECURE trust row -- the row that decides whether a stranger buys. What it must NOT have: the SaaS gradient hero, the 3-up feature card grid, the pricing-TIER band (tiers are for SaaS plans, not for beans). ★ Product visuals are GENERATED, never stock: each card gets a deterministic two-stop gradient panel derived from the seed + card index, so a catalog looks like a catalog before a single photograph exists (and the gen-img pipeline can replace the panel later without touching this grammar). Token-driven from the generated palette, both themes, reduced-motion, doc tier included from the start (the round-9 two-languages lesson, applied up front). Pure emit. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_uigen_l1.nx nx_kit_shell.nx nx_kit_market.nx nx_uigen_site.nx

imports: nx_uigen_l1.nxnx_kit_shell.nx

imported by: nx_uigen_site.nx

structs

none

consts

none

functions

18func km_styles(buf: *u8, off: i64, hue: i64) -> i64
57func km_util(buf: *u8, off: i64, ship: *u8) -> i64
63func km_chips_open(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "<nav class=\"km-chips\" aria-label=\"Categories\"><div class=\"wrap\">" as *u8) }
64func km_chip(buf: *u8, off: i64, label: *u8) -> i64
69func km_chips_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></nav>" as *u8) }
70func km_promo(buf: *u8, off: i64, headline: *u8, sub: *u8) -> i64
77func km_shop_open(buf: *u8, off: i64, h2: *u8, sub: *u8) -> i64
86func km_item(buf: *u8, off: i64, hue: i64, idx: i64, name: *u8, desc: *u8, price: *u8) -> i64
112func km_shop_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) }
113func km_trust(buf: *u8, off: i64, a1: *u8, b1: *u8, a2: *u8, b2: *u8, a3: *u8, b3: *u8) -> i64
123func km_doc_styles(buf: *u8, off: i64) -> i64
called by 1: us_shell_doc