-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
599 lines (581 loc) · 23.3 KB
/
index.html
File metadata and controls
599 lines (581 loc) · 23.3 KB
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
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Tlux w/ Vite</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/toolbar/prism-toolbar.min.css"
/>
<style>
.copy-to-clipboard-button {
background-color: #ebc137 !important;
padding: 8px 20px !important;
margin: 30px 10px !important;
color: #000 !important;
}
pre {
border-radius: 0px 6px 6px 6px !important;
margin: 0 !important;
overflow: auto;
white-space: pre;
display: flex;
}
.pre-label {
border-radius: 6px 6px 0px 0px !important;
width: 70px;
text-align: center;
height: 25px;
padding-top: 5px;
font-size: 12px;
}
.token.constant,
.token.deleted,
.token.property,
.token.symbol,
.token.tag,
.token.attr-name,
.token.deleted,
.token.namespace,
.token.tag {
color: #7197ff;
}
.token.attr-value,
.token.char,
.token.regex,
.token.string,
.token.variable {
color: #d1599b;
}
</style>
<script type="module" src="./main.js"></script>
<script type="module">
import Navbar from './js/tlux.navBar-min.js';
const navbar = new Navbar();
</script>
</head>
<body>
<header
class="nav text-light"
data-toggle="end"
bg-color="primary"
backdrop="opacity"
>
<div class="brand">
<div>TLUX FRAMEWORK</div>
</div>
<button class="toggle">
<span class="toggle-icon"></span>
</button>
<div class="menu">
<ul>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
<li><span>Select</span></li>
</ul>
</div>
</header>
<div class="tl-container py-4 px-3 mx-auto">
<div class="card">
<h1>Hello, Tlux and Vite!</h1>
<button class="btn primary rounded mt-1">Primary button</button>
</div>
<h1 class="tl-display-5 text-up0percase fw-normal pt-4">Typografy</h1>
<h6>
Typography includes various sizes of headers (h1-h6) and displays. The
displays are big and bold, designed to stand out on the web page.
</h6>
<div class="tl-grid col-1 col-md-2 pt-4">
<div>
<h1>H1</h1>
<h2>H2</h2>
<h3>H3</h3>
<h4>H4</h4>
<h5>H5</h5>
<h6>H6</h6>
<p>P</p>
</div>
<div>
<p class="tl-display-1">Display 1</p>
<p class="tl-display-2">Display 2</p>
<p class="tl-display-3">Display 3</p>
</div>
</div>
<div class="py-4">
<a href="#" class="tl-display-5 text-uppercase text-decoration-none"
>Layout</a
>
<h6>
Tlux's interesting feature is its grid system focused on CSS grid
without adding extra classes to individual cells. Grids behave
differently on desktop and mobile platforms. Example implementation is
provided.
</h6>
<h3 class="pt-4">Desktop</h3>
<h6>
To implement the desktop grid in Tlux, you must use the class
"tl-grid" followed by "col-" to define the columns. If nothing
additional is added, the grid will be desktop by default.
</h6>
<h6>
To create a gap, use "gap-{size}" class, but for smallest screens the
grid changes to "block" & gap class won't work. Use "block-gap-{size}"
instead, created to specifically cover this case.
</h6>
<div class="tl-grid col pt-3">
<div>
<div
class="tl-grid block-gap-3 col-1 col-sm-2 col-md-3 col-lg-6 text-center"
>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<div class="tl-grid block-gap-3 col-1 col-sm-2 col-md-3 col-lg-6 text-center">
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
</div>
</script>
</code>
</pre>
</div>
</div>
<h3 class="pt-4">Mobile</h3>
<h6>
If you are looking for a fully responsive website for the mobile
version, use the "mobile" class after "tl-grid" to ensure that the
grid is always grid. Also, the "gap-{size}" class is the only class
needed to modify the gaps in the grid.
</h6>
<div class="tl-grid col pt-3">
<div>
<div
class="tl-grid mobile col-1 col-xsm-2 col-md-3 col-lg-6 text-center"
>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
<div class="card">.col</div>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<div class="tl-grid mobile col-1 col-xsm-2 col-md-3 col-lg-6 text-center">
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
<div>.col</div>
</div>
</script>
</code>
</pre>
</div>
</div>
<h2 class="pt-4">Section</h2>
<h6>
Sections in HTML are grouping elements that help organize the content
of a web page. They can be used to divide content into blocks with
uniform style for better readability and maintenance.
</h6>
<div class="tl-grid col pt-3">
<div>
<div class="tl-grid col pt-3">
<div>
<section class="section">
<h1>Section Small</h1>
<p class="h6">
Lorem ipsum dolor sit amet consectetur, adipisicing elit.
Ipsa illum omnis ex consequuntur enim dolor quos, harum
blanditiis sed soluta temporibus eos iure et quibusdam,
voluptate dicta rerum? Cupiditate, esse?
</p>
</section>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<section class="section">
<h1>Section Small</h1>
<p class="h6">Lorem ipsum dolor</p>
</section>
</script>
</code>
</pre>
</div>
</div>
<div class="tl-grid col pt-3">
<div>
<section class="section md">
<h1>Section Medium</h1>
<p class="h6">
Lorem ipsum dolor sit amet consectetur, adipisicing elit.
Ipsa illum omnis ex consequuntur enim dolor quos, harum
blanditiis sed soluta temporibus eos iure et quibusdam,
voluptate dicta rerum? Cupiditate, esse?
</p>
</section>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<section class="section md">
<h1>Section Medium</h1>
<p class="h6">Lorem ipsum dolor</p>
</section>
</script>
</code>
</pre>
</div>
</div>
<div class="tl-grid col pt-3">
<div>
<section class="section lg">
<h1>Section Large</h1>
<p class="h6">
Lorem ipsum dolor sit amet consectetur, adipisicing elit.
Ipsa illum omnis ex consequuntur enim dolor quos, harum
blanditiis sed soluta temporibus eos iure et quibusdam,
voluptate dicta rerum? Cupiditate, esse?
</p>
</section>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<section class="section lg">
<h1>Section Large</h1>
<p class="h6">Lorem ipsum dolor</p>
</section>
</script>
</code>
</pre>
</div>
</div>
</div>
</div>
</div>
<div class="pb-4">
<div class="tl-grid col-md-3">
<div class="span-md-2">
<div class="card">
<h1>Lorem ipsum dolor sit amet.</h1>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Perferendis, aperiam iure. Molestias perferendis quibusdam
consequuntur magni, odit eveniet commodi molestiae sunt
laboriosam deleniti ea unde? Nobis labore accusamus adipisci
natus!
</p>
</div>
<div class="card">
<h1>Lorem ipsum dolor sit amet.</h1>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
Perferendis, aperiam iure. Molestias perferendis quibusdam
consequuntur magni, odit eveniet commodi molestiae sunt
laboriosam deleniti ea unde? Nobis labore accusamus adipisci
natus!
</p>
</div>
</div>
<div class="card d-flex flex-column justify-content-center">
<span
class="fs-3 fw-semibold lh-base font-monospace text-center text-decoration-underline text-uppercase text-nowrap text-muted pb-4"
>
Forms</span
>
<form>
<input
type="text"
disabled
class="tl-form-outlined tl-focus-secondary"
placeholder="Outline"
/>
<input
type="text"
class="tl-form-filled tl-focus-accent"
placeholder="Filled"
/>
<input
type="text"
class="tl-form-standard tl-focus-negative"
placeholder="Standart"
/>
<div class="tl-grid col-1 col-md-2 pt-3">
<button class="btn primary rounded m-0">Send</button>
<button class="btn dark">Reset</button>
</div>
</form>
</div>
</div>
</div>
<div class="pb-4">
<a href="#" class="tl-display-5 text-uppercase text-decoration-none"
>Buttons</a
>
<p>
Buttons are essential elements in a website's user interface, allowing
users to perform actions with ease. TLux offers a wide selection of
customizable button styles to meet the design and functionality needs
of your project.
</p>
<div class="tl-grid gap-3 pt-3 pb-4">
<div>
<h3>Clasic</h3>
<div class="tl-grid col">
<div class="btn-container">
<a class="btn">Anchor</a>
<button class="btn">Button</button>
<input class="btn" type="submit" value="Submit input" />
<input class="btn" type="reset" value="Reset input" />
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<a class="btn">Anchor</a>
<button class="btn">Button</button>
<input class="btn" type="submit" value="Submit input"/>
<input class="btn" type="reset" value="Reset input">
</script>
</code>
</pre>
</div>
</div>
</div>
<div>
<h3>Colors</h3>
<div class="tl-grid col">
<div>
<div class="btn-container">
<button class="btn primary">Primary</button>
<button class="btn accent">Link</button>
</div>
<div class="btn-container">
<button class="btn info">Info</button>
<button class="btn positive">Success</button>
<button class="btn warning">Warning</button>
<button class="btn negative">Danger</button>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<div class="btn-container">
<button class="btn primary">Primary</button>
<button class="btn accent">Link</button>
</div>
<div class="btn-container">
<button class="btn info">Info</button>
<button class="btn positive">Success</button>
<button class="btn warning">Warning</button>
<button class="btn negative">Danger</button>
</div>
</script>
</code>
</pre>
</div>
</div>
</div>
<div>
<h3>Outline</h3>
<div class="tl-grid col">
<div>
<div class="btn-container">
<button class="btn outline">Outline</button>
<button class="btn positive outline">Outline</button>
<button class="btn warning outline">Outline</button>
<button class="btn negative outline">Outline</button>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<button class="btn outline">Outline</button>
<button class="btn positive outline">Outline</button>
<button class="btn warning outline">Outline</button>
<button class="btn negative outline">Outline</button>
</script>
</code>
</pre>
</div>
</div>
</div>
<div>
<h3>Unline</h3>
<div class="tl-grid col">
<div>
<div class="btn-container">
<button class="btn unline">Unline</button>
<button class="btn positive unline">Unline</button>
<button class="btn warning unline">Unline</button>
<button class="btn negative unline">Unline</button>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<button class="btn unline">Unline</button>
<button class="btn positive unline">Unline</button>
<button class="btn warning unline">Unline</button>
<button class="btn negative unline">Unline</button>
</script>
</code>
</pre>
</div>
</div>
</div>
<h3>Disabled</h3>
<div class="tl-grid col">
<div class="btn-container">
<button class="btn" disabled>Disabled</button>
<button class="btn primary" disabled>Disabled</button>
<button class="btn secondary outline" disabled>Disabled</button>
<button class="btn accent unline" disabled>Disabled</button>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<button class="btn" disabled>Disabled</button>
<button class="btn primary" disabled>Disabled</button>
<button class="btn secondary outline" disabled>Disabled</button>
<button class="btn accent unline" disabled>Disabled</button>
</script>
</code>
</pre>
</div>
</div>
<h3>Sizes</h3>
<div class="tl-grid col">
<div class="btn-container">
<button class="btn sm">Small</button>
<button class="btn">Normal</button>
<button class="btn md">Medium</button>
<button class="btn lg">Large</button>
</div>
<div>
<pre class="w-100">
<code class="language-html" >
<script type="text/plane">
<button class="btn sm">Small</button>
<button class="btn">Normal</button>
<button class="btn md">Medium</button>
<button class="btn lg">Large</button>
</script>
</code>
</pre>
</div>
</div>
<h3>Resonsive extended</h3>
<div class="tl-grid col col-md-2">
<div>
<div class="btn-container col w-100 m0 is-fullwidth">
<button class="btn sm full-w">Small</button>
<button class="btn full-w">Normal</button>
<button class="btn md full-w">Medium</button>
<button class="btn lg full-w">Large</button>
</div>
</div>
<div>
<pre>
<code class="language-html">
<script type="text/plane">
<button class="btn sm full-w">Small</button>
<button class="btn full-w">Normal</button>
<button class="btn md full-w">Medium</button>
<button class="btn lg full-w">Large</button>
</script>
</code>
</pre>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/prism.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/normalize-whitespace/prism-normalize-whitespace.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/toolbar/prism-toolbar.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
<script>
Prism.plugins.NormalizeWhitespace.setDefaults({
"remove-trailing": true,
"remove-indent": true,
"left-trim": true,
"right-trim": true,
/*'break-lines': 80,
'indent': 2,
'remove-initial-line-feed': false,
'tabs-to-spaces': 4,
'spaces-to-tabs': 4*/
});
(function () {
if (typeof Prism === "undefined" || typeof document === "undefined") {
return;
}
/**
* Agrega un botón personalizado como hermano del elemento de la barra de herramientas.
*
* @param {HTMLElement} element El elemento del bloque de código.
* @param {Function} onClick El evento que se llamará cuando se haga clic en el botón.
*/
function addCodeButton(element, onClick) {
// Obtener el nombre del lenguaje de programación a partir de la clase 'language-*'
var languageName = element.classList.value.replace("language-", "");
var button = document.createElement("div");
button.textContent = languageName;
button.classList.add("pre-label");
button.style.backgroundColor = getComputedStyle(
element.parentNode
).backgroundColor; // Obtener el color de fondo del elemento <pre>
button.style.color = getComputedStyle(element.parentNode).color;
button.addEventListener("click", function () {
onClick(element);
});
// Agregar el botón como hermano del elemento de la barra de herramientas
element.parentNode.insertAdjacentElement("beforebegin", button);
}
// Ejemplo de uso
Prism.hooks.add("complete", function (env) {
addCodeButton(env.element, function (element) {
eval(element.textContent);
});
});
})();
</script>
</body>
</html>