code wiki / _hdl_build / nx_cms_pagebuilder.nx
nx_cms_pagebuilder.nx
buildroot/runtime/_hdl_build/nx_cms_pagebuilder.nx
about
nx_cms_pagebuilder.nx -- CMS PAGE BUILDER (sovereign section/column grid layout). The Elementor/Divi
class, made Nishi-native: a page is sections of columns over a 12-unit grid, validated deterministically
(a row's columns must sum to the grid, each within bounds), with mobile-first RESPONSIVE stacking (below
the breakpoint every column goes full-width) and incremental column packing that cannot overflow a row.
Pure integer logic -- no Elementor license/bloat, no cloud, layout is reproducible from its data. The
grid + breakpoint are the data-driven seam (rule 11). license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_cms_pagebuilder_gate.nx
structs
| none |
consts
| 9 | const NX_PB_GRID: i64 = 12 // columns per row (Bootstrap-style 12-grid) |
| 10 | const NX_PB_BREAKPOINT_MD: i64 = 768 // px: below this, columns stack full-width (mobile-first) |
functions
| 13 | func pb_row_valid(widths: *i64, n: i64) -> i64 called by 1: main |
| 30 | func pb_responsive_width(width: i64, viewport_px: i64) -> i64 called by 1: main |
| 36 | func pb_fits(used: i64, add: i64) -> i64 called by 1: main |
| 43 | func pb_remaining(used: i64) -> i64 { return NX_PB_GRID - used } called by 1: main |