code wiki / (root) / nx_sclass_kit.nx

nx_sclass_kit.nx

buildroot/runtime/nx_sclass_kit.nx

41705 B396 linesdepth 0pulls 0 transitivereach 31 importersview sourcekind librarytopic sclass
docsdependenciesstructsconstsfunctions

about

nx_sclass_kit.nx -- reusable S-CLASS page component kit (the "gorgeous by construction" library). Pure emit functions (NO syscalls -> any emitter composes it without a syscall-layer clash). Every page built through this kit passes nx_brand_apply_enforced BY CONSTRUCTION: it ships the canonical --nx- design-token SSOT, a base reset, responsive grid, reduced-motion, :focus-visible, a skip-link, and semantic <header>/<main id=main>/<footer> landmarks. This closes the "fragmented adoption" gap at the ROOT: emitters stop hand-rolling crude CSS and compose ONE tokenized shell + components. Factored out of the proven nx_connect_lds_page (uxcx 7/7, design 9/9, canonical). license_tier: ORIGINAL (no main -- a library, like nx_uxcx_grade)

dependencies 0 imports · 9 importers

nx_sclass_kit.nx nx_connect_lds_page.nx nx_connect_page.nx nx_connect_reconnect_page.nx nx_connect_youth_page.nx nx_dataeng_compare_page.nx nx_fin_stack_page.nx nx_site_archetype.nx nx_site_build.nx nx_uigen_l1.nx

imports: none

imported by: nx_connect_lds_page.nxnx_connect_page.nxnx_connect_reconnect_page.nxnx_connect_youth_page.nxnx_dataeng_compare_page.nxnx_fin_stack_page.nxnx_site_archetype.nxnx_site_build.nxnx_uigen_l1.nx

structs

none

consts

none

functions

11func he_puts(buf: *u8, off: i64, s: *u8) -> i64
20func sk_head(buf: *u8, off: i64, title: *u8, theme: i64) -> i64
43func sk_header_open(buf: *u8, off: i64, brand: *u8, brandhref: *u8) -> i64
53func sk_nav_item(buf: *u8, off: i64, label: *u8, href: *u8) -> i64
63func sk_header_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</nav></div></header><main id=\"main\">" as *u8) }
68func sk_open(buf: *u8, off: i64, title: *u8, brand: *u8, theme: i64) -> i64
78func sk_open_site(buf: *u8, off: i64, title: *u8, brand: *u8, theme: i64, brandhref: *u8) -> i64
85func sk_hero(buf: *u8, off: i64, eyebrow: *u8, title_pre: *u8, title_grad: *u8, lede: *u8, cta1: *u8, cta1href: *u8, cta2: *u8, cta2href: *u8, hint: *u8) -> i64
100func sk_section_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64
called by 14: mainmainmainmainmainsa_features+8 calls 1: he_puts
108func sk_card(buf: *u8, off: i64, icon_svg: *u8, title: *u8, body: *u8) -> i64
called by 13: mainmainmainmainmainsa_features+7 calls 1: he_puts
125func sk_section_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) }
called by 14: mainmainmainmainmainsa_features+8 calls 1: he_puts
140func sk_cta(buf: *u8, off: i64, tag: *u8, h2: *u8, p: *u8, b1: *u8, b1href: *u8, b2: *u8, b2href: *u8) -> i64
150func sk_close(buf: *u8, off: i64, scope: *u8, brand: *u8) -> i64
called by 17: mainmainmainmainmainsa_recipe_seq+11 calls 1: he_puts
160func sk_trust_open(buf: *u8, off: i64, tag: *u8, h2: *u8, sub: *u8) -> i64
167func sk_trust_item(buf: *u8, off: i64, title: *u8, body: *u8) -> i64
173func sk_trust_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</ul></div></section>" as *u8) }
186func sk_doc_styles(buf: *u8, off: i64) -> i64
called by 1: sk_doc_open calls 1: he_puts
200func sk_doc_open(buf: *u8, off: i64, title: *u8, brand: *u8, brandhref: *u8) -> i64
207func sk_doc_main(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "<div class=\"doc\">" as *u8) }
210func sk_doc_h1(buf: *u8, off: i64, h1: *u8, lede: *u8) -> i64
216func sk_h2(buf: *u8, off: i64, text: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<h2>" as *u8); o = he_puts(buf, o, text); return he_puts(buf, o, "</h2>" as *u8) }
217func sk_lede(buf: *u8, off: i64, text: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<p class=\"lede\">" as *u8); o = he_puts(buf, o, text); return he_puts(buf, o, "</p>" as *u8) }
218func sk_callout(buf: *u8, off: i64, html: *u8) -> i64 { var o: i64 = he_puts(buf, off, "<div class=\"callout\">" as *u8); o = he_puts(buf, o, html); return he_puts(buf, o, "</div>" as *u8) }
221func sk_score_open(buf: *u8, off: i64, big: *u8, unit: *u8) -> i64
226func sk_stat(buf: *u8, off: i64, num: *u8, label: *u8) -> i64
231func sk_score_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div>" as *u8) }
235func sk_dtable_open(buf: *u8, off: i64, h1: *u8, h2: *u8, h3: *u8) -> i64
241func sk_drow(buf: *u8, off: i64, axis: *u8, chipkind: *u8, chiplabel: *u8, note: *u8) -> i64
250func sk_trow(buf: *u8, off: i64, c1: *u8, c2: *u8, c3: *u8) -> i64
called by 1: main calls 1: he_puts
256func sk_dtable_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</tbody></table></div>" as *u8) }
259func sk_doc_close(buf: *u8, off: i64, foot_html: *u8, brand: *u8) -> i64
271func sk_form_open(buf: *u8, off: i64, action: *u8) -> i64
called by 1: us_page_contact calls 1: he_puts
275func sk_field(buf: *u8, off: i64, id: *u8, label: *u8, kind: *u8, ph: *u8) -> i64
called by 2: l2_formus_page_contact calls 1: he_puts
284func sk_field_area(buf: *u8, off: i64, id: *u8, label: *u8, ph: *u8) -> i64
called by 2: l2_formus_page_contact calls 1: he_puts
292func sk_form_submit(buf: *u8, off: i64, text: *u8) -> i64
called by 1: us_page_contact calls 1: he_puts
296func sk_form_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</form>" as *u8) }
called by 1: us_page_contact calls 1: he_puts
303func sk_mkt_styles(buf: *u8, off: i64) -> i64
313func sk_mband_open(buf: *u8, off: i64, klass: *u8, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64
322func sk_pricing_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64
called by 1: l3_sec_pricing calls 2: sk_mband_openhe_puts
326func sk_price_tier(buf: *u8, off: i64, plan: *u8, amount: *u8, period: *u8, feats_html: *u8, cta: *u8, href: *u8, featured: i64) -> i64
called by 1: l3_sec_pricing calls 1: he_puts
339func sk_pricing_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) }
called by 1: l3_sec_pricing calls 1: he_puts
341func sk_quote(buf: *u8, off: i64, id: *u8, tag: *u8, quote: *u8, name: *u8, role: *u8) -> i64
called by 1: l3_sec_quote calls 2: sk_mband_openhe_puts
351func sk_faq_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64
called by 1: l3_sec_faq calls 2: sk_mband_openhe_puts
355func sk_faq_item(buf: *u8, off: i64, q: *u8, a: *u8) -> i64
called by 1: l3_sec_faq calls 1: he_puts
361func sk_faq_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</div></div></section>" as *u8) }
called by 1: l3_sec_faq calls 1: he_puts
363func sk_steps_open(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, sub: *u8) -> i64
called by 1: l3_sec_steps calls 2: sk_mband_openhe_puts
367func sk_step(buf: *u8, off: i64, title: *u8, body: *u8) -> i64
calls 1: he_puts
373func sk_steps_close(buf: *u8, off: i64) -> i64 { return he_puts(buf, off, "</ol></div></section>" as *u8) }
called by 1: l3_sec_steps calls 1: he_puts
376func sk_split(buf: *u8, off: i64, id: *u8, tag: *u8, h2: *u8, lede: *u8, p1: *u8, p2: *u8, p3: *u8, flip: i64) -> i64
called by 1: l3_sec_split calls 1: he_puts