-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
173 lines (159 loc) · 5.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en" id="belovedpet">
<head>
<meta charset="UTF-8" />
<title>XO-FORM - Literal Web Forms</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="color-scheme" content="dark light" />
<meta name="theme-color" content="#ffffff" />
<meta
name="description"
content="Self-contained, web-component based, data-bound, multi-page complex Web Forms as pure JavaScript Object Literals."
/>
<meta
name="keywords"
content="forms, webforms, webcomponents, es6, databinding, wizards"
/>
<link href="css/main.css" rel="stylesheet" />
<link rel="shortcut icon" href="img/icon-512p.png" />
<link rel="apple-touch-icon" href="img/icon-512p.png" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://www.xo-js.dev/" />
<meta property="og:title" content="XO-FORM - Literal Web Forms" />
<meta
property="og:description"
content="Self-contained, web-component based, data-bound, multi-page complex Web Forms as pure JavaScript Object Literals."
/>
<meta
property="og:image"
content="https://www.xo-js.dev/img/banner.png"
/>
<script defer type="module" src="dist/index.js"></script>
</head>
<body>
<header>
<xw-theme></xw-theme>
<a
id="forkongithub"
target="_blank"
href="https://github.com/mvneerven/xo-form"
>Fork me on GitHub</a
>
</header>
<main>
<xo-docs></xo-docs>
<section class="c1">
<div>
<h1>
XO-FORM <sup id="xo-version"></sup>
<a
title="GitHub"
target="_blank"
href="https://github.com/mvneerven/xo-form"
>
<svg class="icon" xmlns="http://www.w3.org/2000/svg">
<use id="use" href="data/svg/icons.svg#git" />
</svg>
</a>
<a
title="NPM"
target="_blank"
href="https://www.npmjs.com/package/xo-form"
>
<svg class="icon" xmlns="http://www.w3.org/2000/svg">
<use id="use" href="data/svg/icons.svg#npm" />
</svg>
</a>
</h1>
<small class="slogan">Literal Self Contained Web Forms</small>
<p>
A
<a
title="Set of features that provide a standard component model for the Web allowing for encapsulation and interoperability of individual HTML elements - Wikipedia."
target="_blank"
href="https://developer.mozilla.org/en-US/docs/Web/Web_Components"
>Web Component</a
>
that renders
<a
title="Form elements can be bound to model state, with a powerful rules engine in between."
>Data-Bound</a
> &
<a title="Changes in a model are immediately reflected in bound form UI and vice versa.">
Reactive
</a>,
<a
title="Wizards with navigational controls are a matter of defining multiple pages in a schema."
>Multi-Page</a
>,
<a
title="Grouping, array-based repeats of form blocks, inline validation, complex nested layouts, state-based conditional logic, and much more..."
>Complex</a
>
Web Forms from pure
<a
title="Object notation with comma-separated name-value pairs wrapped in curly braces, encapsulating data in a tidy package."
target="_blank"
href="https://www.javascripttutorial.net/es6/object-literal-extensions/"
>JavaScript Object Literals</a
>.
</p>
</div>
</section>
<section class="c1" id="schema">
<div>
<h2>Schema</h2>
<xw-example-list title="Select example"></xw-example-list>
<xw-schemaeditor
form="frm"
src="data/forms/examples/to-do.js"
></xw-schemaeditor>
</div>
</section>
<section class="c1">
<div>
<h2>Markup</h2>
<p>
<code
title="Custom tag"
style="
display: block;
padding: 0.6rem 1rem;
background-color: var(--code-bg-color);
border-radius: 1rem;
margin: 0;
"
><span style="color: var(--code-tag-color)"><xo-form</span>
<span style="color: var(--code-attr-color)">src</span>=<span
style="color: var(--code-attr-val-color)"
title="JS Object Literal Schema Source"
>"/forms/my-form.js"</span
><span style="color: var(--code-tag-color)"
>></xo-form></span
></code
>
</p>
</div>
</section>
<section class="c1" id="form">
<div>
<h2>Result</h2>
<xo-form id="frm" theme="material"></xo-form>
</div>
</section>
<section class="c1" id="state">
<xw-modelview></xw-modelview>
</section>
</main>
<footer>
<div>
<p>Web Forms are commodities, so why not treat them as such?</p>
<p>© 2022 - built with 💗 by Neerventure</p>
</div>
</footer>
</body>
</html>