nx_connect_lds_page.nx source
↩ module page · 66 lines · 5272 B
1// nx_connect_lds_page.nx -- the CONNECT / LDS landing, now COMPOSED FROM nx_sclass_kit (v2) instead of
2// hand-authored CSS. Kills the last hand-authored duplication; inherits the kit's award-tier creativity
3// layer (entrance + scroll motion, tokens, a11y) so it auto-certifies at 1000permil on nx_ui_judge.
4// Writes web_assets/lds_connect.html. license_tier: ORIGINAL expect_exit: 0
5import "nx_syscalls_x86_64.nx"
6import "nx_sclass_kit.nx"
7const K_MAGIC_262144: i64 = 262144
8
9func main() -> i64 {
10 let out: *u8 = sys_mmap(K_MAGIC_262144)
11 var o: i64 = 0
12
13 o = sk_open(out, o, "Connect — the LDS community, free forever" as *u8, "Connect" as *u8, 0)
14
15 o = sk_hero(out, o,
16 "★ A community for Latter-day Saints — free, forever" as *u8,
17 "Catch up with the missionaries who" as *u8,
18 "taught you." as *u8,
19 "Reconnect with the elders and sisters who changed your life — and with the members and families you served. A worldwide place for Latter-day Saints, youth to adults, to meet, play, and belong. No cost, no ads to youth, safe by design." as *u8,
20 "Find your missionaries" as *u8, "#reconnect" as *u8,
21 "How we keep youth safe" as *u8, "#trust" as *u8,
22 "Free forever · No feature behind a paywall · Community, never congregation tooling" as *u8)
23
24 o = sk_section_open(out, o, "reconnect" as *u8, "What Connect is for" as *u8, "Bonds that matter, made easy to keep" as *u8, "Three things no other app does the way Latter-day Saints actually need them." as *u8)
25 o = sk_card(out, o,
26 "<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,
27 "Reunite with your missionaries" as *u8,
28 "Find the elders and sisters who taught you by mission, area, and the months you actually overlapped — not guesswork. Returned missionaries can catch up with the members and families they served." as *u8)
29 o = sk_card(out, o,
30 "<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 3l7 2.5v5c0 4.6-3 8-7 9.5-4-1.5-7-4.9-7-9.5v-5L12 3z\"/><path d=\"M8.8 12l2.2 2.2 4.2-4.4\"/></svg>" as *u8,
31 "Youth rooms, safe by design" as *u8,
32 "LDS youth worldwide meet, play games and hang out — with a two-deep rule built into the software: no adult is ever alone with a youth, and no youth is ever privately messaged by an adult." as *u8)
33 o = sk_card(out, o,
34 "<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,
35 "A community, not a marketplace" as *u8,
36 "No influencers, no swiping on looks, no data harvested and sold. Discover people who share your faith and interests. Your beliefs stay private and are never used to target ads." as *u8)
37 o = sk_section_close(out, o)
38
39 o = sk_trust_open(out, o, "Safe by construction" as *u8, "Rules built in, not written on a policy page" as *u8, "These aren’t promises buried in a terms-of-service. Each is a rule built into the software, proven with tests." as *u8)
40 o = sk_trust_item(out, o, "No adult–youth private messages" as *u8, "An adult can only reach a youth inside a visible group with two adults present." as *u8)
41 o = sk_trust_item(out, o, "No ads, ever, to minors" as *u8, "Youth see zero advertising. The whole community is free either way." as *u8)
42 o = sk_trust_item(out, o, "Reconnection is opt-in" as *u8, "You are only findable by past companions and converts if you choose to be." as *u8)
43 o = sk_trust_item(out, o, "Free forever" as *u8, "Every way to connect is free. No paywalls, no pro tier. Only local businesses ever pay." as *u8)
44 o = sk_trust_close(out, o)
45
46 o = sk_cta(out, o,
47 "Free, forever" as *u8,
48 "Your people are out there." as *u8,
49 "The missionaries who taught you. The youth in your branch across the world. The friends you haven’t met yet. Come find them." as *u8,
50 "Create your free account" as *u8, "#top" as *u8,
51 "See how it works" as *u8, "#reconnect" as *u8)
52
53 o = sk_close(out, o,
54 "A community for members, youth, and returned missionaries. Never congregation administration. Never proselytizing. Never competes with the Church." as *u8,
55 "Connect" as *u8)
56
57 let fd: i64 = sys_openat_wr("web_assets/lds_connect.html" as *u8, 420)
58 if fd < 0 { return 6 }
59 sys_write(fd, out, o)
60 sys_close(fd)
61 let banner: *u8 = "nx_connect_lds_page: wrote web_assets/lds_connect.html (now composed from nx_sclass_kit v2)\n" as *u8
62 var bn: i64 = 0
63 while banner[bn] != 0 { bn = bn + 1 }
64 sys_write(1, banner, bn)
65 return 0
66}