2553a6b7ac
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 4m48s
Replaced raw HTML heredoc returns with native el_ function calls across all 21 component files. styles.el intentionally excluded.
59 lines
2.1 KiB
EmacsLisp
59 lines
2.1 KiB
EmacsLisp
// components/footer.el - Site footer.
|
|
|
|
extern fn el_footer(attrs: String, children: String) -> String
|
|
extern fn el_div(attrs: String, children: String) -> String
|
|
extern fn el_a(href: String, attrs: String, children: String) -> String
|
|
extern fn el_p(attrs: String, children: String) -> String
|
|
extern fn el_nav(attrs: String, children: String) -> String
|
|
extern fn el_img(src: String, alt: String, attrs: String) -> String
|
|
|
|
fn footer() -> String {
|
|
let brand_img: String = el_img(
|
|
"/assets/brand/neuron-wordmark-on-light.png",
|
|
"Neuron",
|
|
"srcset=\"/assets/brand/neuron-wordmark-on-light@2x.png 2x\" height=\"24\" style=\"display:block;margin-bottom:0.35rem;\""
|
|
)
|
|
let brand_tagline: String = el_p("class=\"footer-brand-tagline\"", "Built Different.")
|
|
let brand_link: String = el_a(
|
|
"/",
|
|
"class=\"footer-brand\" aria-label=\"Neuron home\" style=\"display:flex;flex-direction:column;align-items:center;\"",
|
|
brand_img + brand_tagline
|
|
)
|
|
|
|
let footer_center: String = el_div(
|
|
"class=\"footer-center\"",
|
|
el_div("class=\"navy-line\"", "")
|
|
)
|
|
|
|
let footer_nav_links: String =
|
|
el_a("/legal/terms", "", "Terms") +
|
|
el_a("/legal/enterprise-terms", "", "Enterprise Agreement") +
|
|
el_a("mailto:legal@neurontechnologies.ai", "", "Contact")
|
|
let footer_nav: String = el_nav(
|
|
"class=\"footer-nav\" aria-label=\"Footer navigation\"",
|
|
footer_nav_links
|
|
)
|
|
let footer_right: String = el_div(
|
|
"class=\"footer-right\"",
|
|
el_p("class=\"footer-domain\"", "neurontechnologies.ai") + footer_nav
|
|
)
|
|
|
|
let footer_inner: String = el_div(
|
|
"class=\"footer-inner\"",
|
|
brand_link + footer_center + footer_right
|
|
)
|
|
|
|
let footer_bottom: String = el_div(
|
|
"class=\"footer-bottom\"",
|
|
el_p("class=\"footer-copy\"", "© 2026 Neuron, LLC. All rights reserved.") +
|
|
el_p("class=\"footer-tagline-bottom\"", "Your memory. Your AI.")
|
|
)
|
|
|
|
let container: String = el_div(
|
|
"class=\"container\"",
|
|
footer_inner + footer_bottom
|
|
)
|
|
|
|
el_footer("id=\"footer\" aria-label=\"Footer\"", container)
|
|
}
|