-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
923 lines (917 loc) · 36.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
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
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="dist/css/graupl.css">
</head>
<body>
<main class="container pb-10">
<h1 class="gradient from-tertiary-600 to-primary-600 w-max-content bg-clip-text text-transparent">Hello Graupl!</h1>
<p>Graupl is a modular CSS framework with the goal of making it easy to theme a site.</p>
<p>This source code can be found in <a href="https://github.com/Graupl/graupl">GitHub</a>.</p>
<p>Graupl supports light and dark modes out-of-the-box.</p>
<button id="dark-mode-toggle" class="button mt-5 w-half">Toggle dark mode</button>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Buttons</h2>
<p>There are 4 colours of buttons supported by default, with plans to have a "graupl-theme" plugin that adds more.
</p>
<div class="columns count-4">
<button class="button">Default Button</button>
<button class="button primary">Primary Button</button>
<button class="button secondary">Secondary Button</button>
<button class="button tertiary">Tertiary Button</button>
<button class="button link">Link Button</button>
<a class="button" href="#">Anchor Button</a>
<button class="button" disabled>Default Button</button>
<button class="button primary" disabled>Primary Button</button>
<button class="button secondary" disabled>Secondary Button</button>
<button class="button tertiary" disabled>Tertiary Button</button>
<button class="button link" disabled>Link Button</button>
<a class="button" href="#" disabled>Anchor Button</a>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Form elements</h2>
<p>Graupl provides default styling for all form elements.</p>
<form class="full-width rg-4">
<div class="input-group">
<label for="input">Input</label>
<input type="text" placeholder="Input" id="input">
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
</div>
<div class="input-group inline"><label for="input-readonly">Readonly Input</label>
<input type="text" placeholder="Readonly Input" id="input-readonly" value="Readonly Input" readonly>
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
</div>
<div class="input-group"><label for="input-disabled">Disabled Input</label>
<input type="text" placeholder="Disabled Input" id="input-disabled" disabled>
<small class="help-text">This is some help text to assist with knowing what the field is about.</small>
</div>
<div class="input-group inline"><label for="textarea">Textarea</label>
<textarea class="textarea" placeholder="Textarea" id="textarea"></textarea>
</div>
<div class="input-group"><label for="textarea-readonly">Readonly Textarea</label>
<textarea class="textarea" placeholder="Readonly Textarea" id="textarea-readonly"
readonly>Readonly Textarea</textarea>
</div>
<div class="input-group"><label for="textarea-disabled">Disabled Textarea</label>
<textarea class="textarea" placeholder="Disabled Textarea" id="textarea-disabled" disabled></textarea>
</div>
<div class="input-group inline"><label for="select">Select</label>
<select id="select">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<optgroup label="Group 1">
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</optgroup>
</select>
</div>
<div class="input-group"><label for="select-disabled">Disabled Select</label>
<select id="select-disabled" disabled>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<optgroup label="Group 1">
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</optgroup>
</select>
</div>
<div class="input-group"><label for="multi-select">Multi-select</label>
<select id="multi-select" multiple>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<optgroup label="Group 1">
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</optgroup>
</select>
</div>
<div class="input-group inline"><label for="multi-select-disabled">Disabled Multi-select</label>
<select id="multi-select-disabled" multiple disabled>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<optgroup label="Group 1">
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</optgroup>
</select>
</div>
<fieldset>
<legend>Checkboxes</legend>
<label for="checkbox">
<input type="checkbox" id="checkbox"> Checkbox</label>
<label for="checkbox-checked">
<input type="checkbox" id="checkbox-checked" checked> Checked Checkbox</label>
<label for="checkbox-disabled">
<input type="checkbox" id="checkbox-disabled" disabled> Disabled Checkbox</label>
</fieldset>
<fieldset>
<legend>Radio Buttons</legend>
<label for="radio"><input type="radio" id="radio" name="radio"> Radio</label>
<label for="radio-checked"><input type="radio" id="radio-checked" name="radio" checked> Checked Radio</label>
<label for="radio-disabled"><input type="radio" id="radio-disabled" name="radio" disabled> Disabled
Radio</label>
</fieldset>
<fieldset disabled>
<legend>Disabled Fieldset</legend>
<label for="disabled-fieldset-checkbox">
<input type="checkbox" id="disabled-fieldset-checkbox"> Checkbox</label>
</fieldset>
<div class="input-group"><label for="range">Range</label>
<input type="range" class="range" id="range">
</div>
</form>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Navigation</h2>
<div class="py-7">
<nav class="navigation" data-graupl-menu-type="DisclosureMenu"
data-graupl-menu-options="{'optionalKeySupport': true}">
<a class="navigation-branding" href="#">Graupl</a>
<button class="navigation-toggle ml-auto mr-0" aria-label="Toggle navigation"></button>
<ul class="menu">
<li class="menu-item"><a class="menu-link" href="#">Home</a></li>
<li class="menu-item submenu-item">
<button class="menu-link button link submenu-toggle">About</button>
<ul class="submenu">
<li class="menu-item"><a class="menu-link" href="#">About Us</a></li>
<li class="menu-item"><a class="menu-link" href="#">Our Team</a></li>
<li class="menu-item"><a class="menu-link" href="#">Our Mission</a></li>
</ul>
</li>
<li class="menu-item"><a class="menu-link" href="#">Blog</a></li>
<li class="menu-item"><a class="menu-link" href="#">Portfolio</a></li>
<li class="menu-item"><a class="menu-link button tertiary" href="#">Contact</a></li>
</ul>
</nav>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Tables</h2>
<p>Graupl provides some default styling for tables as well as some other useful features to customize them.</p>
<table class="bordered striped-rows hoverable">
<caption>
Front-end web developer course 2021
</caption>
<thead>
<tr>
<th scope="col">Person</th>
<th scope="col">Most interest in</th>
<th scope="col">Age</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Chris</th>
<td>HTML tables</td>
<td>22</td>
</tr>
<tr>
<th scope="row">Dennis</th>
<td>Web accessibility</td>
<td>45</td>
</tr>
<tr>
<th scope="row">Sarah</th>
<td>JavaScript frameworks</td>
<td>29</td>
</tr>
<tr>
<th scope="row">Karen</th>
<td>Web performance</td>
<td>36</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2">Average age</th>
<td>33</td>
</tr>
</tfoot>
</table>
<table class="primary collapsed striped-columns hoverable">
<caption>
Front-end web developer course 2021
</caption>
<thead>
<tr>
<th scope="col">Person</th>
<th scope="col">Most interest in</th>
<th scope="col">Age</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Chris</th>
<td>HTML tables</td>
<td>22</td>
</tr>
<tr>
<th scope="row">Dennis</th>
<td>Web accessibility</td>
<td>45</td>
</tr>
<tr>
<th scope="row">Sarah</th>
<td>JavaScript frameworks</td>
<td>29</td>
</tr>
<tr>
<th scope="row">Karen</th>
<td>Web performance</td>
<td>36</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2">Average age</th>
<td>33</td>
</tr>
</tfoot>
</table>
<table class="secondary bordered striped-columns hoverable">
<caption>
Front-end web developer course 2021
</caption>
<thead>
<tr>
<th scope="col">Person</th>
<th scope="col">Most interest in</th>
<th scope="col">Age</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Chris</th>
<td>HTML tables</td>
<td>22</td>
</tr>
<tr>
<th scope="row">Dennis</th>
<td>Web accessibility</td>
<td>45</td>
</tr>
<tr>
<th scope="row">Sarah</th>
<td>JavaScript frameworks</td>
<td>29</td>
</tr>
<tr>
<th scope="row">Karen</th>
<td>Web performance</td>
<td>36</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2">Average age</th>
<td>33</td>
</tr>
</tfoot>
</table>
<table class="tertiary striped-columns hoverable">
<caption>
Front-end web developer course 2021
</caption>
<thead>
<tr>
<th scope="col">Person</th>
<th scope="col">Most interest in</th>
<th scope="col">Age</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Chris</th>
<td>HTML tables</td>
<td>22</td>
</tr>
<tr>
<th scope="row">Dennis</th>
<td>Web accessibility</td>
<td>45</td>
</tr>
<tr>
<th scope="row">Sarah</th>
<td>JavaScript frameworks</td>
<td>29</td>
</tr>
<tr>
<th scope="row">Karen</th>
<td>Web performance</td>
<td>36</td>
</tr>
</tbody>
<tfoot>
<tr>
<th scope="row" colspan="2">Average age</th>
<td>33</td>
</tr>
</tfoot>
</table>
<div class="responsive-table">
<table class="striped-columns">
<caption>
A "responsive" table element. Resize the window to see the effect.
</caption>
<thead class="primary">
<tr>
<th scope="col">Column 1</th>
<th scope="col">Column 2</th>
<th scope="col">Column 3</th>
<th scope="col">Column 4</th>
<th scope="col">Column 5</th>
<th scope="col">Column 6</th>
<th scope="col">Column 7</th>
<th scope="col">Column 8</th>
<th scope="col">Column 9</th>
<th scope="col">Column 10</th>
<th scope="col">Column 11</th>
<th scope="col">Column 12</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
<td>Row 1, Column 3</td>
<td>Row 1, Column 4</td>
<td>Row 1, Column 5</td>
<td>Row 1, Column 6</td>
<td>Row 1, Column 7</td>
<td>Row 1, Column 8</td>
<td>Row 1, Column 9</td>
<td>Row 1, Column 10</td>
<td>Row 1, Column 11</td>
<td>Row 1, Column 12</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
<td>Row 2, Column 3</td>
<td>Row 2, Column 4</td>
<td>Row 2, Column 5</td>
<td>Row 2, Column 6</td>
<td>Row 2, Column 7</td>
<td>Row 2, Column 8</td>
<td>Row 2, Column 9</td>
<td>Row 2, Column 10</td>
<td>Row 2, Column 11</td>
<td>Row 2, Column 12</td>
</tr>
<tr>
<td class="tertiary">Row 3, Column 1</td>
<td>Row 3, Column 2</td>
<td class="tertiary highlight">Row 3, Column 3</td>
<td>Row 3, Column 4</td>
<td class="tertiary">Row 3, Column 5</td>
<td>Row 3, Column 6</td>
<td class="tertiary">Row 3, Column 7</td>
<td>Row 3, Column 8</td>
<td class="tertiary">Row 3, Column 9</td>
<td>Row 3, Column 10</td>
<td class="tertiary">Row 3, Column 11</td>
<td>Row 3, Column 12</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Columns</h2>
<div class="columns count-6 py-5">
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
<div class="bg-primary-700 text-primary-100 py-7 px-5"></div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Flex columns</h2>
<div class="flex-columns py-5">
<div class="col-6 col-md-8 col-xl-9 py-7 bg-primary-700 text-primary-100 px-5">
<div class="flex-columns">
<div class="col-6 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
<div class="col-6 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
</div>
</div>
<div class="col-6 col-md-4 col-xl-3 py-7 bg-primary-700 text-primary-100 px-5"></div>
<div class="col-12 py-7 bg-primary-700 text-primary-100 px-5">
<div class="flex-columns">
<div class="col-6 col-md-9 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
<div class="col-6 col-md-3 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
</div>
</div>
<div class="col-8 py-7 bg-primary-700 text-primary-100 px-5">
<div class="flex-columns">
<div class="col-3 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
<div class="col-9 py-7 bg-tertiary-700 text-primary-100 px-5"></div>
</div>
</div>
<div class="col-4 py-7 bg-primary-700 text-primary-100 px-5"></div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Cards</h2>
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.top</span> class
will have the image placed on the top while cards using the <span
class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.bottom</span> class will have the image
placed on the bottom.</p>
<div class="columns">
<div class="card">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=1" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=2" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=3" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card bottom">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=4" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card bottom">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=5" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card bottom">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=6" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Horizontal Cards</h2>
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.right</span> class
will have the image placed on the right while cards using the <span
class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.left</span> class will have the image
placed on the left.</p>
<div class="columns count-2">
<div class="card horizontal">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=1" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal right">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=2" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=3" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal right">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=4" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=5" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal right">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=6" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Inverse Cards</h2>
<p>Cards using the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.inverse</span>
class will have the image placed on the right if it is a horizontal card and on the bottom if it is a vertical
card.</p>
<p>This is mainly to provide a shortcut for horizontal cards that you'd like to use the <span
class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.bottom .right</span> classes on when the
card is forced to be vertical.</p>
<div class="columns count-2">
<div class="card horizontal inverse">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=1" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
<div class="card horizontal inverse">
<div class="card-image">
<img src="https://picsum.photos/1000/400?random=2" alt="Card image">
</div>
<div class="card-content">
<div class="card-header">
<h3 class="card-title">Title</h3>
</div>
<div class="card-body">
<p>This is some text that describes the card.</p>
</div>
<div class="card-footer">
<a class="button primary stretched" href="#">Card Action</a>
</div>
</div>
</div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Alerts</h2>
<div class="display-grid g-5">
<div class="alert">
<div class="alert-header">
<h3 class="alert-title">Alert</h3>
</div>
<div class="alert-body">
<p>This is some text that describes the alert.</p>
</div>
<div class="alert-footer">
<a href="#">Action</a>
</div>
<button class="alert-dismisser">x</button>
</div>
<div class="alert primary">
<div class="alert-header">
<h3 class="alert-title">Primary Alert</h3>
</div>
<div class="alert-body">
<p>This is some text that describes the alert.</p>
</div>
<div class="alert-footer">
<a href="#">Primary Action</a>
</div>
<button class="alert-dismisser primary">x</button>
</div>
<div class="alert secondary">
<div class="alert-header">
<h3 class="alert-title">Secondary Alert</h3>
</div>
<div class="alert-body">
<p>This is some text that describes the alert.</p>
</div>
<div class="alert-footer">
<a href="#">Secondary Action</a>
</div>
<button class="alert-dismisser secondary">x</button>
</div>
<div class="alert tertiary">
<div class="alert-header">
<h3 class="alert-title">Tertiary Alert</h3>
</div>
<div class="alert-body">
<p>This is some text that describes the alert.</p>
</div>
<div class="alert-footer">
<a href="#">Tertiary Action</a>
</div>
<button class="alert-dismisser tertiary">x</button>
</div>
</div>
</div>
<div class="py-10 full-width container">
<h2>Accordions</h2>
<div class="accordion">
<div class="accordion-item show">
<div class="accordion-item-header">
<h3 class="accordion-item-title">
<button aria-expanded="true" class="accordion-item-toggle">Accordion 1</button>
</h3>
</div>
<div class="accordion-item-content">
<div class="accordion-item-body">
<p>This is the body of the accordion that can expand/collapse based on the state.</p>
</div>
<div class="accordion-item-footer">
<p>This is the footer.</p>
</div>
</div>
</div>
<div class="accordion-item hide">
<div class="accordion-item-header">
<h3 class="accordion-item-title">
<button aria-expanded="false" class="accordion-item-toggle">Accordion 2</button>
</h3>
</div>
<div class="accordion-item-content">
<div class="accordion-item-body">
<p>This is the body of the accordion that can expand/collapse based on the state.</p>
<p>This one has some extra text in it to make it longer.</p>
</div>
<div class="accordion-item-footer">
<p>This is the footer.</p>
<p>There is more info in the footer too.</p>
</div>
</div>
</div>
<div class="accordion-item hide">
<div class="accordion-item-header">
<h3 class="accordion-item-title">
<button aria-expanded="false" class="accordion-item-toggle">Accordion 3</button>
</h3>
</div>
<div class="accordion-item-content">
<div class="accordion-item-body">
<p>This is the body of the accordion that can expand/collapse based on the state.</p>
<p>This one is even longer than the second one. Why? Because it needs to be. That's why.</p>
<p>It's also a bit more verbose than the other two.</p>
<p>But that's okay. It's just an example.</p>
</div>
<div class="accordion-item-footer">
<p>This is the footer.</p>
</div>
</div>
</div>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Carousels</h2>
<section class="carousel">
<div class="carousel-control-container">
<button class=" carousel-control autoplay"></button>
<button class="carousel-control previous"></button>
<button class="carousel-control next"></button>
</div>
<div class="carousel-tab-container">
<button class="carousel-tab" aria-label="Carousel item 1"></button>
<button class="carousel-tab" aria-label="Carousel item 2"></button>
<button class="carousel-tab" aria-label="Carousel item 3"></button>
<button class="carousel-tab" aria-label="Carousel item 4"></button>
<button class="carousel-tab" aria-label="Carousel item 5"></button>
</div>
<div class="carousel-item-container">
<div class="carousel-item">
<div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=1" alt="A placeholder carousel image" /></div>
</div>
<div class="carousel-item">
<div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=2" alt="A placeholder carousel image" /></div>
</div>
<div class="carousel-item">
<div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=3" alt="A placeholder carousel image" /></div>
</div>
<div class="carousel-item">
<div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=4" alt="A placeholder carousel image" /></div>
</div>
<div class="carousel-item">
<div class="ratio sixteen-by-nine"><img class="force-ratio" src="https://picsum.photos/1400/600?random=5" alt="A placeholder carousel image" /></div>
</div>
</div>
</section>
</div>
<div class="full-width container py-10 my-10 align-content-center">
<h2>Lists</h2>
<p>Lists are inspired by Bootstrap's list groups.</p>
<h3>Unordered list</h3>
<ul class="list">
<li class="list-item">
<a href="#">List item 1</a>
</li>
<li class="list-item">
List item 2
</li>
<li class="list-item">
<a href="#" class="stretched">List item 3</a>
</li>
</ul>
<h3>Ordered list</h3>
<p>You can add the list markers back in using utility classes (in this case <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.list-style-decimal</span> and <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.list-style-inside</span>).</p>
<ol class="list list-style-decimal list-style-inside">
<li class="list-item">
<a href="#">List item 1</a>
</li>
<li class="list-item">
List item 2
</li>
<li class="list-item">
<a href="#" class="stretched">List item 3</a>
</li>
</ol>
<h3>Inline lists</h3>
<p>We can achieve an inline list by utilizing the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.columns</span> class.</p>
<ul class="list columns">
<li class="list-item">
<a href="#">List item 1</a>
</li>
<li class="list-item">
List item 2
</li>
<li class="list-item">
<a href="#" class="stretched">List item 3</a>
</li>
<li class="list-item">
<a href="#">List item 4</a>
</li>
<li class="list-item">
List item 5
</li>
<li class="list-item">
<a href="#" class="stretched">List item 6</a>
</li>
</ul>
<p class="pt-5">We can also use the <span class="display-inline-block text-tertiary-800 bg-secondary-100 px-1">.display-flex</span> utility class.</p>
<ul class="list display-flex">
<li class="list-item">
<a href="#">List item 1</a>
</li>
<li class="list-item">
List item 2
</li>
<li class="list-item">
<a href="#" class="stretched">List item 3</a>
</li>
<li class="list-item">
<a href="#">List item 4</a>
</li>
<li class="list-item">
List item 5
</li>
<li class="list-item">
<a href="#" class="stretched">List item 6</a>
</li>
</ul>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/accessible-menu/dist/disclosure-menu.iife.js"></script>
<script type="module" src="src/js/alert/index.js"></script>
<script type="module" src="src/js/accordion/index.js"></script>
<script type="module" src="src/js/carousel/index.js"></script>
<script type="module" src="src/js/navigation/index.js"></script>
<script>
const preferredTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
const setTheme = window.localStorage.getItem('theme') || preferredTheme;
const themeToggle = document.getElementById('dark-mode-toggle');
document.documentElement.classList.add(`${setTheme}-mode`);
themeToggle.innerHTML = setTheme === 'dark' ? 'Toggle light mode' : 'Toggle dark mode';
themeToggle.addEventListener('click', () => {
const currentTheme = document.documentElement.classList.contains('dark-mode') ? 'dark' : 'light';
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
document.documentElement.classList.remove(`${currentTheme}-mode`);
document.documentElement.classList.add(`${newTheme}-mode`);
window.localStorage.setItem('theme', newTheme);
themeToggle.innerHTML = newTheme === 'dark' ? 'Toggle light mode' : 'Toggle dark mode';
});
</script>
</body>
</html>