-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
348 lines (338 loc) · 15.5 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-site-verification" content="a7n_cTyTmbns8JfCUF8u-meb0amydz586-i7sNzIB64" />
<meta name="keywords" content="Javascript,vuejs, dativejs, state management, framework,frontend, frontend framework, JavaScript framework,javascript library">
<link rel="shortcut icon" href="public/favicon.ico" type="image/x-icon" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5442324990787763"
crossorigin="anonymous"></script>
<!-- Primary Meta Tags -->
<title>DativeJs — A micro UI JavaScript framework</title>
<meta name="title" content="DativeJs — A micro UI JavaScript framework">
<meta name="description" content="DativeJs is a Javascript framework for building website and webapps just like the big guy VueJs">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://dativejs.js.org/">
<meta property="og:title" content="DativeJs — A micro UI JavaScript framework">
<meta property="og:description" content="DativeJs is a Javascript framework for building website and webapps just like the big guy VueJs">
<meta property="og:image" content="https://dativejs.js.org/public/logo.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://dativejs.js.org/">
<meta property="twitter:title" content="DativeJs — A micro UI JavaScript framework">
<meta property="twitter:description" content="DativeJs is a Javascript framework for building website and webapps just like the big guy VueJs">
<meta property="twitter:image" content="https://dativejs.js.org/public/logo.png">
<link rel="stylesheet" href="css/vs.css">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/tailwind.min.css">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G79E3Y7DJE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G79E3Y7DJE');
</script>
</head>
<style>
.monospace{
font-family: monospace;
}
.show{
transition: 2s;
display: block;
}
.hide{
display: none;
}
pre{
border-radius: 5px;
}
.log{
color: #ff3e00;
}
.text-dative{
color: #ff3e00;
}
</style>
<body>
<div id="app" class="relative">
<nav class="bg-white fixed shadow w-full py-3" style="z-index: 1000">
<div class="max-w-6xl mx-auto px-4">
<div class="flex justify-between">
<div class="flex space-x-7">
<div>
<p class="flex items-center py-4 px-2 md:mx-5">
<img src="public/logo.svg" alt="Logo" class="absolute top--5 left-0 h-20 w-20">
<span class="absolute left-16 font-bold text-gray-500 text-lg monospace">Dative</span>
</p>
<ul class="absolute hidden md:block right-10 top-5 md:flex md:space-x-4 mx-5 text-gray-500 z-auto">
<li><a href="#">Home</a></li><br />
<li><a href="https://github.com/dativeJs/dativejs">GitHub</a></li><br />
<li><a href="/v2/docs.html">Docs</a></li><br />
</ul>
<span class="absolute top-3 right-10 text-4xl md:hidden" onclick="navopen()">☰</span>
</div>
</div>
</div>
</div>
</nav><br /><br /><br />
<div class="shadow-2xl bg-white border-black fixed w-2/4 right-0 top-12 md:hidden" id="nav" style="z-index: 1000;height: 0px;overflow: hidden">
<ul class="mx-5 text-gray-500 z-auto">
<li><a href="#">Home</a></li><br />
<li><a href="https://github.com/dativeJs/dativejs">GitHub</a></li><br />
<li><a href="/v2/docs.html">Docs</a></li><br />
</ul>
</div>
<div class="container mx-auto px-4 py-5 md:grid">
<h1 class="text-7xl font-bold text-center text-gray-600 monospace md:z-10 md:border-white">Dative</h1><br />
<img src="public/logo-alt.svg" class="md:block lg:block hidden absolute z-0 -top-48 -left-60" alt="" />
<p class="text-center text-2xl md:z-10">A Micro UI JavaScript framework</p><br />
<img class="absolute left-36 md:left-2/4 md:top-56" src="https://img.shields.io/npm/v/dativejs" alt="(npm) Version" />
<div class="features mx-auto py-5 relative top-10">
<div class="shadow-xl bg-red-500 hover:bg-red-800 rounded py-5 text-white mx-5">
<h1 class="mx-5 text-4xl font-bold text-white">Reactive</h1><br />
<p class="mx-5">Dativejs brings JavaScript to itself</p><br />
</div><br />
<div class="shadow-xl bg-blue-500 rounded hover:bg-blue-800 py-5 text-white mx-5">
<h1 class="mx-5 text-4xl font-bold text-white">No Virtual Dom</h1><br />
<p class="mx-5">Dativejs renders the code your write directly to the Browser</p><br />
</div><br />
<div class="shadow-xl hover:bg-yellow-600 bg-yellow-800 rounded py-5 text-white mx-5">
<h1 class="mx-5 text-4xl font-bold text-white">Simple and minimalistic</h1><br />
<p class="mx-5">Easy to learn no much load of knowledge to be carried</p><br />
</div><br />
</div><br /><br />
<div class="mx-5">
<div class="text-gray-700 text-xl"><p class="">DativeJs is a new approach to building user interfaces.It does all its work on the Browser. It has no Virtual Dom.All the code is been rendered directly to the browser</p></div>
</div><br />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5442324990787763"
crossorigin="anonymous"></script>
<!-- new ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5442324990787763"
data-ad-slot="1918194121"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="mx-0 bg-gray-700 text-white py-5">
<div class="mx-5">
<h1 class="text-xl">Cdn</h1><br />
<h3 class="text-xl">Use <a href="https://jsdelivr.com/package/npm/dativejs" class="text-blue-500">Jsdelivr</a></h3><br />
<pre class="html"><code><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dative.js"></script>
<!--Production-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dative.min.js"></script></code></pre><br />
<h3 class="text-xl">Use <a href="https://unpkg.com/browse/[email protected]" class="text-blue-500">Unpkg</a></h3><br />
<pre class="html"><code><script src="https://unpkg.com/[email protected]/dist/dative.js"></script>
<!--Production-->
<script src="https://unpkg.com/[email protected]/dist/dative.min.js"></script></code></pre><br />
<h3 class="text-xl">Esmodule</h3><br />
<pre class="js"><code>import Dative from 'https://unpkg.com/[email protected]/dist/dative.es.min.js';
var app = new Dative({
el: "#app",
template(){
return `
<h1>Hello world</h1>
`
}
})
app.render();</code></pre><br />
<h3 class="text-xl">Npm</h3><br />
<pre class="bash"><code>npm install dativejs</code></pre><br />
<p class="text-lg">Also run</p><br />
<pre class="bash"><code>npm install
# to install all dependencies</code></pre><br />
<p class="text-lg">Esmodule</p><br />
<pre class="js"><code>import Dative from 'dativejs';
var app = new Dative({
el: "#app",
template(){
return `
<h1>Hello world</h1>
`
}
})
app.render();</code></pre><br />
<p class="text-lg">CommonJs</p><br />
<pre class="js"><code>var Dative = require('dativejs');
var app = new Dative({
el: "#app",
template(){
return `
<h1>Hello world</h1>
`
}
})
app.render();</code></pre><br />
<h4 class="text-xl">Dative has some inbuilt directives to help your project more fast</h4><br />
<pre class="javascript"><code>var app = new Dative({
el: "#root",
data:()=>({
html: "<p>Hello DativeJs</p>"
}),
template: function(){
return `
<h1 dv-html='html'></h1>
`
}
});
app.render()</code></pre><br />
<h4 class="text-xl">Output</h4><br />
<pre class="html"><code><h1><p>Hello DativeJs</p></h1></code></pre><br />
<h4 class="text-lg">List of all the inbuilt directives</h4>
<pre class="html"><code>dv-text <!-- it's used to insert text content from the data into the textContent of an element in the template -->
dv-html <!-- this directive is used to insert html content from the data into the innerHTML of an element in the template -->
dv-on <!-- it's used to handle event -->
dv-on:<event> <!-- it's also used to handle event -->
dv-bind:<attribute> <!-- it's used to bind attributes from the data to the element
example dv-bind:src="img"-->
<!-- :<attribute> short form for dv-bind:<attribute> -->
:<attribute> <!-- it's also used to bind attributes from the data to the element but it's the short form for the dv-bind:<attribute>
example :src="img"-->
dv-if <!-- it conditionally render the template based on the truthy-ness of the given expression value -->
dv-show <!-- this directive toggle’s the element's display CSS property based on the truthy-ness of the given expression value. -->
dv-ref <!-- this directive is used to reference an element -->
:style <!-- it's used to pass an object or an array to dynamically update styles. You can use either camelCase or kebab-case (use quotes with kebab-case) for the CSS property names. -->
:class <!-- it's used to pass an object or an array to dynamically update classes -->
</code></pre><br />
<h4 class="text-xl">Build Ui With DativeJs</h4><br />
<pre class="javascript"><code>import Dative from 'dativejs';
var app = new Dative({
el: '#root',
template: `
<h1>Hello world</h1>
<p>Welcome {{ user }} </p>
`,
data(){
return {
user: "Tobithedev"
}
}
})
app.render()</code></pre><br />
</div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5442324990787763"
crossorigin="anonymous"></script>
<!-- new ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5442324990787763"
data-ad-slot="1918194121"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<!-- Messenger Chat Plugin Code -->
<div id="fb-root"></div>
<!-- Your Chat Plugin code -->
<div id="fb-customer-chat" class="fb-customerchat">
</div>
<script>
var chatbox = document.getElementById('fb-customer-chat');
chatbox.setAttribute("page_id", "135899951985960");
chatbox.setAttribute("attribution", "biz_inbox");
</script>
<!-- Your SDK code -->
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v12.0'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div class="mx-12 text-black py-5">
<h2 class="text-2xl font-bold">Contributors</h2><br />
<p class="text-gray-600 text-xl">Dative is free and open source software, made possible by the work of volunteers. <a href="https://github.com/dativeJs/dativejs" class="log underline">Join Us</a></p><br />
<div class="space-x-4">
<a href="https://github.com/tobithedev"><img class="relative z-30 inline object-cover w-12 h-12 border-4 border-yellow-600 rounded-full shadow-xl" src="https://avatars.githubusercontent.com/u/61181645?v=4" /></a>
<div class="relative z-30 inline w-12 h-12 border-4 py-5 px-5 border-black rounded-full shadow-xl animate-bounce">Your Photo</div>
</div>
</div>
<div class="mx-5">
<h2 class="text-2xl mx-5 font-bold">Tiny Size</h2>
<div class="bg-white rounded-lg w-75 block p-2">
<span class="mx-5">@angular/core gzip(89.4KB)</span>
<div class="w-full h-2 bg-gray-200 rounded-full mt-3">
<div class="h-full text-white bg-pink-600 rounded-full" style="width: 89%">
</div>
</div><br />
<span class="mx-5">react gzip(42.2KB)</span>
<div class="w-full h-2 bg-gray-200 rounded-full mt-3">
<div class="h-full text-white bg-pink-600 rounded-full" style="width: 42%">
</div>
</div><br />
<span class="mx-5">vue gzip(24.44KB)</span>
<div class="w-full h-2 bg-gray-200 rounded-full mt-3">
<div class="h-full text-white bg-pink-600 rounded-full" style="width: 24.44%">
</div>
</div><br />
<span class="mx-5">preact gzip(4KB)</span>
<div class="w-full h-2 bg-gray-200 rounded-full mt-3">
<div class="h-full text-white bg-blue-600 rounded-full" style="width: 4%">
</div>
</div><br />
<span class="mx-5">dative gzip(2.99KB)</span>
<div class="w-full h-2 bg-gray-200 rounded-full mt-3">
<div class="h-full text-white bg-green-600 rounded-full" style="width: 2.99%">
</div>
</div><br />
</div>
<hr />
</div>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5442324990787763"
crossorigin="anonymous"></script>
<!-- new ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5442324990787763"
data-ad-slot="1918194121"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div class="mx-0 bg-white text-dative py-5 relative">
<div class="mx-5">
<h1 class="text-3xl font-bold"><img src="public/logo.svg" class="absolute w-20" style="top: -10px;left: 0;" alt="logo" /><b class="mx-10">Dative</b></h1><br />
<ul class="mx-5">
<li><a href="/v2/migration.html">Migrating from v1 to v2</a></li><br />
<li><a href="/v2/docs.html">Documentation</a></li>
</ul><br />
<hr /><br />
<div class="mx-5">
<a href="https://github.com/dativeJs/dativejs"><img src="assets/img/github.svg" alt="GitHub" /></a><br />
<a href="https://madewithdativejs.js.org"><img src="assets/img/showcase.svg" alt="showcase"></a><br />
<a href="https://www.patreon.com/Tobithedev360"><img src="assets/img/donate.svg" alt="Donate"></a><br />
<a href="https://npmjs.com/package/dativejs"><img alt="npm downloads" src="https://img.shields.io/npm/dt/dativejs?style=plastic"></a><br />
<a href="https://npmjs.com/package/dativejs"><img src="https://img.shields.io/bundlephobia/minzip/dativejs" alt="gziped size"></a><br />
<a href="https://www.jsdelivr.com/package/npm/dativejs"><img src="https://img.shields.io/jsdelivr/npm/hw/dativejs" alt="jsdelivr"></a>
</div><br />
<hr />
<br />
<h3 class="text-gray-500 mx-5">Copyright © 2021-<date></date> Tobithedev - Dativejs</h3>
</div>
</div>
</div>
</body>
<script src="src/highlight.min.js"></script>
<script src="main.js"></script>
<script>
hljs.initHighlightingOnLoad();
$('date').innerHTML = new Date().getFullYear()
</script>
</html>