code wiki / _hdl_build / nx_brand_gallery.nx

nx_brand_gallery.nx source

↩ module page · 26 lines · 2299 B

1// nx_brand_gallery.nx -- a STARTER TEMPLATE GALLERY: a set of distinct, UX-compliant .site starter blueprints 2// (landing / services / about / contact) any user picks and renders through the brand-wired builder -> on-brand, 3// token-driven, polished pages out of the box. We HAVE a gallery (breadth vs Wix's 900+ stays the R6 honest BEHIND). 4// Library; templates are DATA. 100% sovereign. license_tier: ORIGINAL 5import "nx_syscalls.nx" 6 7func bg_streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i] { return 0 } i=i+1 } if b[i]!=(0 as u8){ return 0 } return 1 } 8 9func bg_count() -> i64 { return 4 } 10 11// a UX-compliant starter blueprint for `id` (or 0 if unknown). 12func bg_template(id: *u8) -> *u8 { 13 if bg_streq(id, "landing" as *u8) == 1 { 14 return "title|Landing\nheader|Acme|Get started|#start\nhero|One clear headline|Your value, said in one line.|Get started|#start\nsearch|/search|Search...\ncards|Highlights\ncard|Fast|Set up in minutes.\nsteps|How it works\nstep|Tell us your goal.\ntrust|\nsig|Loved by teams\nfooter|Acme Inc." as *u8 15 } 16 if bg_streq(id, "services" as *u8) == 1 { 17 return "title|Services\nheader|Acme|Book a call|#book\nhero|Services that move you forward|Pick the help you need.|Book a call|#book\nsearch|/search|Find a service...\ncards|What we do\ncard|Strategy|Plan the path.\ncard|Build|Ship it.\nsteps|Engage in 3 steps\nstep|Scope it.\nstep|Build it.\nstep|Launch it.\ntrust|\nsig|200+ projects shipped\nfooter|Acme Services" as *u8 18 } 19 if bg_streq(id, "about" as *u8) == 1 { 20 return "title|About\nheader|Acme|Work with us|#contact\nhero|The people behind the work|A small team, big care.|Work with us|#contact\nsearch|/search|Search the team...\ncards|Our values\ncard|Craft|We sweat the details.\nsteps|How we got here\nstep|Founded with a goal.\ntrust|\nsig|Since 2008\nfooter|About Acme" as *u8 21 } 22 if bg_streq(id, "contact" as *u8) == 1 { 23 return "title|Contact\nheader|Acme|Email us|#email\nhero|Let us talk|Tell us what you need.|Email us|#email\nsearch|/search|Search FAQ...\ncards|Reach us\ncard|Email|hello@acme.test\nsteps|What happens next\nstep|You write.\nstep|We reply the same day.\ntrust|\nsig|Replies within 24h\nfooter|Contact Acme" as *u8 24 } 25 return 0 as *u8 26}