code wiki / (root) / nx_connect_reconnect_page.nx

nx_connect_reconnect_page.nx source

↩ module page · 75 lines · 6005 B

1// nx_connect_reconnect_page.nx -- the CONNECT reconnection surface, composed from nx_sclass_kit in a 2// DISTINCT theme (theme 1 = editorial/indigo-teal) to prove the kit re-themes via tokens with ZERO CSS 3// changes (the "components driven by tokens, re-theme without editing CSS" capability) + grows template 4// breadth (the honest subjective-BEHIND axis). Third S-class Connect page, zero hand-rolled CSS. 5// Writes web_assets/lds_reconnect.html. license_tier: ORIGINAL expect_exit: 0 6import "nx_syscalls_x86_64.nx" 7import "nx_sclass_kit.nx" 8const K_MAGIC_262144: i64 = 262144 9 10func main() -> i64 { 11 let out: *u8 = sys_mmap(K_MAGIC_262144) 12 var o: i64 = 0 13 14 o = sk_open(out, o, "Reconnect &mdash; find the missionaries who taught you" as *u8, "Connect" as *u8, 1) 15 16 o = sk_hero(out, o, 17 "&#9733; For returned missionaries &amp; the members and families they served" as *u8, 18 "Find the people you" as *u8, 19 "served with." as *u8, 20 "Reconnection matches you by mission, area, and the exact months you overlapped &mdash; not fuzzy guesswork. It surfaces the companions, converts and families you actually knew, and only ever when you both choose to be found." as *u8, 21 "Find your people" as *u8, "#join" as *u8, 22 "How it works" as *u8, "#how" as *u8, 23 "Consent-first &middot; Free forever &middot; A returned missionary + a youth they taught reconnect as community, never romance" as *u8) 24 25 o = sk_section_open(out, o, "how" as *u8, "How reconnection works" as *u8, "Precise, not a guess" as *u8, "Three signals decide who you see &mdash; all three must line up, so you get the people you truly served with." as *u8) 26 o = sk_card(out, o, 27 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 21s-6-5.3-6-10a6 6 0 1112 0c0 4.7-6 10-6 10z\"/><circle cx=\"12\" cy=\"11\" r=\"2\"/></svg>" as *u8, 28 "By mission &amp; area" as *u8, 29 "We match within the same mission and the specific areas you served or lived &mdash; so a person from a different area doesn't clutter your results." as *u8) 30 o = sk_card(out, o, 31 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"16\" rx=\"2.5\"/><path d=\"M3 9h18M8 2.5v4M16 2.5v4\"/></svg>" as *u8, 32 "By the months you overlapped" as *u8, 33 "Your time windows must actually intersect. A missionary who served your area a year after you moved on is not your teacher &mdash; and won't be shown as one." as *u8) 34 o = sk_card(out, o, 35 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"5\" y=\"10.5\" width=\"14\" height=\"9\" rx=\"2\"/><path d=\"M8 10.5V8a4 4 0 018 0v2.5\"/></svg>" as *u8, 36 "Only if you both opt in" as *u8, 37 "Reconnection is consent-first. You are findable by past companions and converts only if you choose to be &mdash; your privacy always wins." as *u8) 38 o = sk_section_close(out, o) 39 40 o = sk_section_open(out, o, "who" as *u8, "Who you'll find" as *u8, "The bonds worth keeping" as *u8, "The people a mission creates &mdash; and the ones who remember the day you knocked on their door." as *u8) 41 o = sk_card(out, o, 42 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"9\" cy=\"8\" r=\"3.1\"/><path d=\"M3.6 19c.5-3 3-4.6 5.4-4.6S13.9 16 14.4 19\"/><circle cx=\"17\" cy=\"9\" r=\"2.3\"/><path d=\"M15.6 14.7c1.9.2 3.5 1.6 4 4.3\"/></svg>" as *u8, 43 "Your companions" as *u8, 44 "The elders and sisters you served alongside &mdash; matched by the transfers you shared, so you find the right ones by name." as *u8) 45 o = sk_card(out, o, 46 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 20s-6.4-4.1-8.9-8C1.4 9 2.7 5.6 6 5.3c2-.2 3.3 1 4 2.2.7-1.2 2-2.4 4-2.2 3.3.3 4.6 3.7 2.9 6.6C18.4 15.9 12 20 12 20z\"/></svg>" as *u8, 47 "Converts &amp; families" as *u8, 48 "The people whose lives changed &mdash; and who still remember who taught them. A mutually-confirmed &ldquo;I remember you&rdquo; ranks above any inferred match." as *u8) 49 o = sk_card(out, o, 50 "<svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 11l8-6 8 6\"/><path d=\"M6 10v9h12v-9\"/></svg>" as *u8, 51 "Members you served" as *u8, 52 "The ward members who fed you, drove you, and became family &mdash; reconnect and catch up on the years since." as *u8) 53 o = sk_section_close(out, o) 54 55 o = sk_cta(out, o, 56 "Free, forever" as *u8, 57 "They remember you too." as *u8, 58 "Somewhere out there, the family you taught wonders what became of their missionary. Close the loop." as *u8, 59 "Create your free account" as *u8, "#top" as *u8, 60 "See who you'll find" as *u8, "#who" as *u8) 61 62 o = sk_close(out, o, 63 "A place to reconnect with the people you served. Never congregation administration. Never proselytizing. Consent-first and free forever." as *u8, 64 "Connect" as *u8) 65 66 let fd: i64 = sys_openat_wr("web_assets/lds_reconnect.html" as *u8, 420) 67 if fd < 0 { return 6 } 68 sys_write(fd, out, o) 69 sys_close(fd) 70 let banner: *u8 = "nx_connect_reconnect_page: wrote web_assets/lds_reconnect.html (kit theme 1, editorial)\n" as *u8 71 var bn: i64 = 0 72 while banner[bn] != 0 { bn = bn + 1 } 73 sys_write(1, banner, bn) 74 return 0 75}