code wiki / _hdl_build / nx_meet_about.nx
nx_meet_about.nx source
↩ module page · 116 lines · 6624 B
1// nx_meet_about.nx -- R5 (+P1 nav/clean-URLs): emit the sovereign ZERO-JS ABOUT / PROOF page into
2// web_assets/site_<slug>/about.html with the shared header nav. Mission + a "how we keep it real" verification
3// preview + community testimonials from a HAND-EDITABLE web_assets/meet_<slug>.about (quote|text|author), escaped.
4// Brand from meet_<slug>.meet. license_tier: ORIGINAL
5// run: /tmp/nx_meet_about.sov.elf <slug> out: web_assets/site_<slug>/about.html
6import "nx_syscalls.nx"
7import "nx_meet_lib.nx"
8import "nx_web_builder.nx"
9import "nx_brand_tokens.nx"
10const K_MAGIC_1024: i64 = 1024
11const K_MAGIC_4096: i64 = 4096
12
13func about_default() -> *u8 {
14 return "quote|Skipped 200 AI-spam applications and met three real candidates in a week. This is how hiring should feel.|Maria L., hiring manager\nquote|No ghost jobs, no recruiters who vanish -- I met a local employer who actually hired me.|James T., software engineer\nquote|Finally a place where being a real, verified person is the whole point.|Priya S., RN\n" as *u8
15}
16
17func main(argc: i64, argv: *i64) -> i64 {
18 let slug: *u8 = sys_mmap(64)
19 if argc >= 2 { meet_slug_safe(argv[1] as *u8, slug, 64) } else { meet_slug_safe("demo" as *u8, slug, 64) }
20
21 let cpath: *u8 = sys_mmap(256)
22 var o: i64 = mcat(cpath, 0, "web_assets/meet_" as *u8); o = mcat(cpath, o, slug); o = mcat(cpath, o, ".meet" as *u8)
23 let clp: *i64 = sys_mmap(16) as *i64; clp[0] = 0
24 var cdata: *u8 = sys_read_file(cpath, clp)
25 var cn: i64 = clp[0]
26 if (cdata as i64) == 0 { cn = 0 }
27 let brand: *u8 = sys_mmap(512)
28 meet_get_or(cdata, cn, "brand" as *u8, brand, 512, "Community Meet" as *u8)
29 let region: *u8 = sys_mmap(256)
30 meet_get_or(cdata, cn, "region" as *u8, region, 256, "the Dallas metro" as *u8)
31 let zip: *u8 = sys_mmap(32)
32 meet_get_or(cdata, cn, "zip" as *u8, zip, 32, "75071" as *u8)
33 let ebrand: *u8 = sys_mmap(K_MAGIC_1024); mesc(ebrand, 0, brand)
34 let eregion: *u8 = sys_mmap(512); mesc(eregion, 0, region)
35 let ezip: *u8 = sys_mmap(64); mesc(ezip, 0, zip)
36
37 let apath: *u8 = sys_mmap(256)
38 o = mcat(apath, 0, "web_assets/meet_" as *u8); o = mcat(apath, o, slug); o = mcat(apath, o, ".about" as *u8)
39 let alp: *i64 = sys_mmap(16) as *i64; alp[0] = 0
40 var adata: *u8 = sys_read_file(apath, alp)
41 var an: i64 = alp[0]
42 if (adata as i64) == 0 { an = 0 }
43 if an <= 0 {
44 let ad: *u8 = about_default()
45 let afd: i64 = sys_openat_wr(apath, 0x1a4)
46 if afd >= 0 { sys_write(afd, ad, mlen(ad)); sys_close(afd) }
47 adata = ad; an = mlen(ad)
48 }
49
50 let sdir: *u8 = sys_mmap(256)
51 o = mcat(sdir, 0, "web_assets/site_" as *u8); o = mcat(sdir, o, slug); meet_mkdir(sdir)
52 let opath: *u8 = sys_mmap(256)
53 o = mcat(opath, 0, sdir); o = mcat(opath, o, "/about.html" as *u8)
54 let foot: *u8 = sys_mmap(K_MAGIC_1024)
55 var ff: i64 = mcat(foot, 0, ebrand); ff = mcat(foot, ff, " -- " as *u8); ff = mcat(foot, ff, eregion)
56 ff = mcat(foot, ff, " (" as *u8); ff = mcat(foot, ff, ezip); ff = mcat(foot, ff, ") -- a Nishi sovereign community" as *u8)
57 let title: *u8 = sys_mmap(K_MAGIC_1024)
58 var tt: i64 = mcat(title, 0, ebrand); tt = mcat(title, tt, " -- About" as *u8)
59 let brandtok: *u8 = bt_default_brand()
60
61 let ofd: i64 = sys_openat_wr(opath, 0x1a4)
62 if ofd < 0 { mputs("nx_meet_about: FAIL open output\n" as *u8); sys_exit(1); return 1 }
63
64 wb_doc_open_branded(ofd, title, brandtok, bt_len(brandtok))
65 meet_nav_css(ofd)
66 meet_header_nav(ofd, brand, 4)
67 wb_hero(ofd, "Why we exist" as *u8, "In a world of AI-spammed applications and ghost jobs, we built the opposite: a curated, verified community where quality meets quality." as *u8, "Apply / Join" as *u8, "apply.html" as *u8)
68
69 wb_w(ofd, "<section class=\"wrap\"><h2>Our mission</h2><p>Hiring and job-hunting have been broken by automation -- thousands of AI-written resumes, fake postings, and recruiters who vanish. We go the other way. " as *u8)
70 wb_w(ofd, "Membership is curated and every member is verified, so when you meet someone here, they are real and so is the opportunity.</p>" as *u8)
71 wb_w(ofd, "<p>We start local -- McKinney and the Dallas-Fort Worth metro -- because community and proximity are the strongest trust signals there are, then we expand out.</p></section>\n" as *u8)
72
73 wb_cards_open(ofd, "How we keep it real" as *u8)
74 wb_card(ofd, "We verify identity" as *u8, "Every member is a real, checked person -- no anonymous spam, no throwaway accounts." as *u8)
75 wb_card(ofd, "We screen for fakes" as *u8, "AI-generated resumes and ghost job postings are detected and removed before you ever see them." as *u8)
76 wb_card(ofd, "We curate for quality" as *u8, "Membership is invite-grade. Quality meets quality -- both sides, every time." as *u8)
77 wb_cards_close(ofd)
78
79 wb_w(ofd, "<section class=\"wrap\"><h2>From the community</h2><div class=\"cards\">\n" as *u8)
80 let etext: *u8 = sys_mmap(K_MAGIC_4096)
81 let eauth: *u8 = sys_mmap(K_MAGIC_1024)
82 let rawb: *u8 = sys_mmap(K_MAGIC_4096)
83 var qn: i64 = 0
84 var i: i64 = 0
85 while i < an {
86 var le: i64 = i
87 while le < an { if adata[le] == (10 as u8) { break } le = le + 1 }
88 var p0: i64 = 0 - 1
89 var k: i64 = i
90 while k < le { if adata[k] == (124 as u8) { if p0 < 0 { p0 = k } } k = k + 1 }
91 if p0 >= 0 {
92 if meet_seq(adata, i, p0, "quote" as *u8, 5) == 1 {
93 mfield(adata, i, le, 1, rawb, K_MAGIC_4096); mesc(etext, 0, rawb)
94 mfield(adata, i, le, 2, rawb, K_MAGIC_4096); mesc(eauth, 0, rawb)
95 wb_w(ofd, "<div class=\"card\"><p>“" as *u8); wb_w(ofd, etext); wb_w(ofd, "”</p><p><b>" as *u8); wb_w(ofd, eauth); wb_w(ofd, "</b></p></div>\n" as *u8)
96 qn = qn + 1
97 }
98 }
99 i = le + 1
100 }
101 wb_w(ofd, "</div></section>\n" as *u8)
102
103 let trust: *i64 = sys_mmap(64) as *i64
104 trust[0] = "Verified humans only" as *u8 as i64
105 trust[1] = "Real jobs, real people, no AI slop" as *u8 as i64
106 trust[2] = "Community-first, locally rooted" as *u8 as i64
107 wb_trust(ofd, trust, 3)
108 wb_cta(ofd, "Ready to meet real people about real work?" as *u8, "Membership is curated -- request your invite." as *u8, "Apply / Join" as *u8, "apply.html" as *u8)
109 wb_footer(ofd, foot)
110 wb_doc_close(ofd)
111 sys_close(ofd)
112
113 mputs("nx_meet_about: slug=" as *u8); mputs(slug); mputs(" -> " as *u8); mputs(opath); mputs(" testimonials=" as *u8); mnum(qn); mputs(" (nav, 0 JS, escaped)\n" as *u8)
114 sys_exit(0)
115 return 0
116}