/** * Home Section * Landing page with framework overview and feature highlights */ import * as dom from "../utils"; export function createHomeSection(): HTMLElement { return dom.article( { id: "home" }, dom.section( null, dom.h2(null, "VoltX.js: Declarative Reactivity for the Modern Web"), dom.p( null, "VoltX.js is a lightweight reactive framework that brings signal-based reactivity to HTML.", dom.small( null, "Build rich, interactive applications using declarative markup without writing JavaScript. No virtual DOM, no build step, no dependencies—just pure reactive primitives and HTML attributes.", ), ), ), dom.section( null, dom.h3(null, "Why VoltX.js?"), dom.dl( null, ...dom.kv([ ["< 15KB Gzipped", "Smaller than most icon libraries. Ships only what you need with zero dependencies."], [ "Declarative-First", "Build entire applications using only HTML attributes. JavaScript is optional for complex logic.", ], [ "Signal-Based Reactivity", "Fine-grained reactivity that updates only what changed. No virtual DOM diffing.", ], ["Zero Build Step", "Import from npm or CDN and start building. No webpack, no rollup, no configuration."], ["Progressive Enhancement", "Works with server-rendered HTML. Add reactivity incrementally where needed."], ["Standards-Based", "Built on standard DOM APIs. No proprietary JSX or template syntax."], ]), ), ), dom.section( null, dom.h3(null, "Quick Start"), dom.p(null, "Get started with VoltX.js in seconds:"), dom.pre( null, dom.code( null, `
Count:
Doubled: