code wiki / _hdl_build / nx_kit2.nx
nx_kit2.nx
buildroot/runtime/_hdl_build/nx_kit2.nx
about
nx_kit2.nx -- ALTERNATE S-class design systems so archetypes stop looking alike. Two COMPLETE, distinct
visual languages (own stylesheet + own layout grammar + own components), NOT the nx_sclass_kit reskinned:
ke_* = "The Dispatch" -- an editorial / newspaper design (warm paper, double-rule masthead, serif display,
drop-cap two-column lead, ruled article list). Used for BLOG/magazine.
kg_* = "Exposure" -- a dark, full-bleed gallery (near-black, thin huge type, edge-to-edge tile grid with
per-tile generative gradients + hover captions). Used for GALLERY + PORTFOLIO.
Both ship ADA by construction (skip-link, lang, <main id=main>, viewport, AAA contrast, reduced-motion) and
zero JS / zero third-party CSS. Pure emit functions (no syscalls -> composable by any emitter). license_tier: ORIGINAL
dependencies 0 imports · 1 importers
imports: none
imported by: nx_site_archetype.nx
structs
| none |
consts
| none |
functions
| 10 | func k2_puts(buf: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){buf[o]=s[i]; o=o+1; i=i+1} return o } |
| 11 | func k2_catn(buf: *u8, off: i64, v: i64) -> i64 |
| 22 | func ke_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 39 | func ke_lead(buf: *u8, off: i64, kick: *u8, headline: *u8, deck: *u8, byline: *u8, body: *u8) -> i64 |
| 48 | func ke_more_open(buf: *u8, off: i64, label: *u8) -> i64 |
| 53 | func ke_item(buf: *u8, off: i64, headline: *u8, dek: *u8, meta: *u8) -> i64 |
| 59 | func ke_more_close(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "</div></div></section>" as *u8) } |
| 60 | func ke_sub(buf: *u8, off: i64, h2: *u8, p: *u8, label: *u8, href: *u8) -> i64 |
| 67 | func ke_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |
| 75 | func kg_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 90 | func kg_head(buf: *u8, off: i64, kick: *u8, big: *u8, sub: *u8) -> i64 |
| 96 | func kg_grid_open(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "<section class=\"gr\">" as *u8) } |
| 98 | func kg_tile(buf: *u8, off: i64, idx: i64, cap: *u8, sub: *u8) -> i64 |
| 108 | func kg_grid_close(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "</section>" as *u8) } |
| 109 | func kg_cta(buf: *u8, off: i64, h2: *u8, p: *u8, label: *u8, href: *u8) -> i64 |
| 116 | func kg_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |
| 124 | func ks_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 139 | func ks_promo(buf: *u8, off: i64, h2: *u8, p: *u8) -> i64 |
| 145 | func ks_grid_open(buf: *u8, off: i64, h2: *u8) -> i64 |
| 150 | func ks_prod(buf: *u8, off: i64, idx: i64, name: *u8, desc: *u8, price: *u8) -> i64 |
| 161 | func ks_grid_close(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "</section>" as *u8) } |
| 162 | func ks_trust(buf: *u8, off: i64, a: *u8, b: *u8, c: *u8) -> i64 |
| 169 | func ks_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |
| 177 | func kf_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 193 | func kf_av(buf: *u8, off: i64, idx: i64) -> i64 |
| 201 | func kf_composer(buf: *u8, off: i64, placeholder: *u8) -> i64 |
| 209 | func kf_post(buf: *u8, off: i64, idx: i64, author: *u8, meta: *u8, text: *u8) -> i64 |
| 218 | func kf_aside_open(buf: *u8, off: i64, about: *u8) -> i64 |
| 224 | func kf_follow(buf: *u8, off: i64, idx: i64, name: *u8) -> i64 |
| 231 | func kf_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |
| 239 | func km_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 252 | func km_billboard(buf: *u8, off: i64, kick: *u8, title: *u8, meta: *u8, sub: *u8, play: *u8) -> i64 |
| 261 | func km_shelf_open(buf: *u8, off: i64, label: *u8) -> i64 |
| 266 | func km_poster(buf: *u8, off: i64, idx: i64, name: *u8, sub: *u8) -> i64 |
| 276 | func km_shelf_close(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "</div></section>" as *u8) } |
| 277 | func km_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |
| 285 | func kd_open(buf: *u8, off: i64, title: *u8, brand: *u8) -> i64 |
| 299 | func kd_greet(buf: *u8, off: i64, h1: *u8, sub: *u8) -> i64 |
| 305 | func kd_deck_open(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "<section class=\"deck\">" as *u8) } |
| 306 | func kd_tile(buf: *u8, off: i64, idx: i64, name: *u8, blurb: *u8, href: *u8) -> i64 |
| 323 | func kd_deck_close(buf: *u8, off: i64) -> i64 { return k2_puts(buf, off, "</section>" as *u8) } |
| 324 | func kd_strip(buf: *u8, off: i64, a: *u8, b: *u8, c: *u8) -> i64 |
| 331 | func kd_close(buf: *u8, off: i64, brand: *u8, note: *u8) -> i64 |