-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1166 lines (1145 loc) · 56.4 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
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" class="scale-content smooth-scroll">
<head>
<link
rel="preload"
href="https://jens-wittmann.de/voltaire.woff2"
as="font"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="styleguide/css/style.css" />
<link rel="stylesheet" href="styleguide/css/print.css" media="print" />
<meta charset="utf-8" />
<title>
CurlyFramework for accessibility & sustainability, not only for
MODX.
</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta
name="description"
content="Framework for accessibility & sustainability, not only for MODX. Based on Tachyons, powered by Alpine.js and flavoured with lessons learned."
/>
<meta property="og:image" content="favicon.svg" />
</head>
<body x-data class="curlyframework page dg cols-12 g3 f2 violet-5 p4 p6-m">
<!-- skiplinks -->
<ul class="skiplinks">
<li><a href="#info">info</a></li>
<li><a href="#tips">tips</a></li>
<li><a href="#samples">samples</a></li>
<li><a href="#installation">installation</a></li>
<li><a href="#contact">contact</a></li>
</ul>
<main class="dc">
<section id="info" class="dc">
<span class="start-1 end-4 end-2-m relative">
<img
src="favicon.svg"
width="50"
height="50"
alt="CurlyFramework Logo"
class="db w-100 h-inherit"
/>
<span class="cooking"></span>
<style>
.cooking {
position: absolute;
top: 0;
left: 15%;
display: block;
width: 10%;
background-color: rgba(0, 0, 0, 0.3);
border-radius: 50%;
filter: blur(5px);
transform: translateY(0) scaleX(1);
opacity: 0;
aspect-ratio: 1/2;
animation: cooking 3s infinite;
}
@keyframes cooking {
0% {
transform: translateY(0) scaleX(1);
opacity: 0;
}
25% {
opacity: 1;
}
50% {
transform: translateY(-1rem) scaleX(2);
}
90% {
opacity: 0;
}
100% {
transform: translateY(-2rem) scaleX(1);
}
}
</style>
</span>
<h1 class="dc">
<span
class="start-4 end-last end-6-m f1 f4-m lh-title tr tl-m m0"
>CurlyFramework</span
>
<span
class="start-1 start-4-m end-last db f3 f5-m lh-title mt3 mb4"
>
Tiny Framework for accessibility and sustainability, not
only for
<a href="https://modx.com" target="_blank" class="bb">
MODX</a
>. Based on
<a
href="https://github.com/jenswittmann/tachyons"
target="_blank"
class="bb"
>Tachyons</a
>, powered by
<a href="http://alpinejs.dev" target="_blank" class="bb"
>Alpine.js</a
>
and flavoured with lessons learned over the years.
</span>
</h1>
<div class="start-1 end-3">
<a href="#tips" class="f3 nowrap ph3 pv1 ba br-100">
Docs <span aria-hidden="true">⇣</span>
</a>
</div>
<div class="start-6 start-9-m end-11">
<a
href="https://github.com/jenswittmann/CurlyFramework"
rel="noreferrer"
target="_blank"
class="f3 nowrap ph3 pv1 ba br-100"
>
Github <span aria-hidden="true">⇢</span>
</a>
</div>
</section>
<section class="dc">
<div id="tips" class="col-full mt6"></div>
<h2 class="start-1 end-10 end-5-m f2 f4-m lh-title m0">
Better accessibility and sustainability in web development?
</h2>
<div class="start-1 start-6-m end-last f1 f2-m">
<p class="m0">
It doesn't have to be a complete overhaul, small steps
can help you get there. I recommend Michelle Barker's
talk "<a
href="https://css-irl.info/video-building-a-greener-web/"
rel="noreferrer"
target="_blank"
class="bb"
>Building a greener web</a
>" at "All Day Hey! 2023". Here are some tips:
</p>
<ul style="list-style-type: '⇢ '">
<li>Use WebP and native lazyload (images, embeds).</li>
<li>
Use fewer fonts and try to use variable fonts
(.woff2).
</li>
<li>Load embeds only on user interaction.</li>
<li>Test keyboard navigation.</li>
<li>
Find a community to test and discuss accessibility
and sustainability with real people.
</li>
</ul>
</div>
</section>
<section class="dc">
<div id="samples" class="col-full mt6"></div>
<h2 class="start-1 start-4-m end-last f5">Samples</h2>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">Modal</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p4 bg-violet-10 br4 aspect-ratio-16x9"
>
<div
x-data="{
open: false
}"
class="dc"
>
<button
@click="open = true"
:aria-expanded="open"
aria-controls="popup"
class="btn pointer p0 bg-transparent bn bb"
>
<span class="bb"
>open
<span aria-hidden="true">⇢</span></span
>
</button>
<div
x-cloak
x-transition
x-show="open"
@click="open = false"
class="fixed top-0 left-0 right-0 bottom-0 bg-blur"
></div>
<div
x-cloak
x-transition
x-trap.inert.noscroll="open"
x-show="open"
@keyup.escape.window="open = false"
id="popup"
aria-modal="true"
role="dialog"
class="fixed top-0 right-0 bottom-0 z-max w-80 w-third-m white p3 p5-m bg-violet-5"
>
<p>
The script also takes care of the focus so
that it stays in the modal. Here is a
<a
href="https://jens-wittmann.de"
rel="noreferrer"
target="_blank"
>example link</a
>
to the test. You can also close it with the
Escape key.
</p>
<button
@click="open = false"
class="btn pointer p0 bg-transparent bn bb"
>
<span class="bb"
>close
<span aria-hidden="true">×</span></span
>
</button>
</div>
</div>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">
Modal <sup class="f1">[popover]</sup>
</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p4 bg-violet-10 br4 aspect-ratio-16x9"
>
<div
x-data="{
open: false
}"
class="dc"
>
<button
popovertarget="popup2"
class="btn pointer p0 bg-transparent bn bb"
>
<span class="bb"
>open
<span aria-hidden="true">⇢</span></span
>
</button>
<div
x-trap.inert.noscroll="open"
@toggle="open = $event.newState == 'open'"
id="popup2"
aria-modal="true"
class="w-100 h-100 bg-transparent bn"
popover
>
<button
tabindex="-1"
popovertarget="popup2"
popovertargetaction="hide"
class="fixed top-0 left-0 right-0 bottom-0 bg-transparent bg-blur"
></button>
<div
class="fixed top-0 right-0 bottom-0 z-max w-80 w-third-m white p3 p5-m bg-violet-5"
>
<p>
The script also takes care of the focus
so that it stays in the modal. Here is a
<a
href="https://jens-wittmann.de"
rel="noreferrer"
target="_blank"
>example link</a
>
to the test. You can also close it with
the Escape key.
</p>
<button
popovertarget="popup2"
popovertargetaction="hide"
class="btn pointer p0 bg-transparent bn bb"
>
<span class="bb"
>close
<span aria-hidden="true"
>×</span
></span
>
</button>
</div>
</div>
</div>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">Accordion</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p4 bg-violet-10 br4 aspect-ratio-16x9"
>
<template x-for="i in 3">
<div
x-data="{
open: false
}"
x-id="['accordion']"
:class="{
'br4 br--top': i == 1,
'br4 br--bottom': i == 3
}"
class="w-100 w-50-m mb1 ba"
>
<button
@click="open = !open"
:aria-expanded="open"
:aria-controls="$id('accordion')"
class="pointer flex justify-between w-100 p2 bg-transparent bn"
>
<span
>Accordion <span x-text="i"></span
></span>
<span
:class="{
'rotate-180': open
}"
aria-hidden="true"
class="transition-small"
>⇣</span
>
</button>
<p
x-cloak
x-collapse
x-show="open"
:id="$id('accordion')"
class="p2 m0 bt"
>
Simple Answer for the Accordion.
</p>
</div>
</template>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">
Accordion
<sup class="f1"><details></sup>
</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p4 bg-violet-10 br4 aspect-ratio-16x9"
>
<template x-for="i in 3">
<details
x-data="{
open: false
}"
@toggle="open = $el.open"
:class="{
'br4 br--top': i == 1,
'br4 br--bottom': i == 3
}"
class="w-100 w-50-m mb1 ba"
>
<summary
class="pointer flex justify-between w-100 p2 bg-transparent bn"
>
<span
>Accordion <span x-text="i"></span
></span>
<span
:class="{
'rotate-180': open
}"
aria-hidden="true"
class="transition-small"
>⇣</span
>
</summary>
<p x-collapse x-show="open" class="p2 m0 bt">
Simple Answer for the Accordion.
</p>
</details>
</template>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">Slider</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center ph1 pv3 p6-m bg-violet-10 br4"
>
<div
x-data="{
index: 1,
slides: [
'This',
'is',
'pure',
'Alpine.js',
'no dependencies'
],
prev() {
this.index--;
if (this.index < 0) {
this.index = 0;
}
this.goto(this.index);
},
next() {
this.index++;
if (this.index > this.slides.length) {
this.index = this.slides.length;
}
this.goto(this.index);
},
goto(i = this.index) {
this.$refs.slider.scrollLeft = this.$refs.slider.offsetWidth * i;
}
}"
class="flex flex-column w-90 w-70-m"
>
<div>
<button
@click="prev()"
:disabled="index == 0"
:class="{
'o-50': index == 0
}"
class="p2 bg-transparent ba br-100 transition-small"
>
<span
aria-hidden="true"
class="dib rotate-180"
>⇢</span
>
previous
</button>
</div>
<ul
x-ref="slider"
class="scrollsnap scrollsnap--x list overflow-auto flex w-100 ph0 pv3 m0"
>
<template x-for="(text, i) in slides">
<li
x-data="{
'visible': false
}"
x-intersect.half="visible = true; index = i"
x-intersect:leave.half="visible = false"
:aria-hidden="!visible"
class="scrollsnap__item flex-auto-1-0 w-100"
>
<div
x-text="text"
class="flex justify-center items-center white m1 mb2 bg-violet-5 br3 aspect-ratio-16x9"
></div>
</li>
</template>
</ul>
<div class="flex justify-between">
<ul
aria-label="slider legend"
class="list flex g2 w-60 p0"
style="height: 1rem"
>
<template
x-for="(text, i) in slides.length"
>
<li class="dc">
<button
@click="goto(i)"
:class="{
'w-40': index == i,
'w-10': index != i
}"
class="db h-100 p0 bg-violet-7 br3 bn transition-small"
>
<span class="clip"
>Slide
<span x-text="i"></span
></span>
</button>
</li>
</template>
</ul>
<button
@click="next()"
:disabled="index == slides.length - 1"
:class="{
'o-50': index == slides.length - 1
}"
class="p2 bg-transparent ba br-100 transition-small"
>
next
<span aria-hidden="true">⇢</span>
</button>
</div>
</div>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">Filter</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p3 pv4 p4-m pv6-m bg-violet-10 br4"
>
<section
x-data="{
filter: false,
items: [
{
name: 'Tachyons',
categories: [
'css'
]
},
{
name: 'Alpine.js',
categories: [
'js'
]
},
{
name: 'Curly<wbr/>Framework',
categories: [
'css',
'js'
]
},
{
name: 'MODX CMF',
categories: [
'php'
]
},
{
name: 'JoliTypo',
categories: [
'php'
]
},
{
name: 'Gitify',
categories: [
'php'
]
},
{
name: 'Grid',
categories: [
'css'
]
},
{
name: 'A11y',
categories: [
'css'
]
}
]
}"
class="w-90"
>
<header
class="flex justify-between items-baseline g1 mb2"
>
<span
aria-atomic="true"
aria-live="polite"
role="status"
class="dib white ph3 bg-violet-5 br-100"
>
<span class="clip">Results: </span>
<span
x-text="items.filter((item) => { return item.categories.includes(filter) || !filter }).length"
></span>
</span>
<span>
<span class="dn db-m">Filter:</span>
<template
x-for="(item, i) in ['css', 'php', 'js']"
>
<button
@click="filter == item ? filter = false : filter = item"
x-text="item"
:aria-pressed="filter == item"
:class="{
'br2 br--left': i == 0,
'br2 br--right': i == 2,
'white bg-violet-5': filter == item,
'bg-transparent': filter != item
}"
class="pointer ttu p2 ba"
></button>
</template>
</span>
</header>
<ul class="dg cols-2 cols-4-m g2 list p0 m0">
<template x-for="(item, i) in items">
<li
:class="{
'o-20 rotate-180': !item.categories.includes(filter) && filter
}"
class="bg-white ba br2 aspect-ratio-square transition-medium"
>
<span
x-html="item.name"
class="flex justify-center items-center h-100 f1 hyphens-auto tc p1 p3-m"
></span>
</li>
</template>
</ul>
</section>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">Richtext</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p3 pv4 p4-m pv5-m bg-violet-10 br4"
>
<div class="richtext">
<h4>This is a H4 headline.</h4>
<p>
A <strong>paragraph</strong> after a
<a href="#!">headline</a> is here.
</p>
<p>Another paragraph after a paragraph is here.</p>
<h5>This is a H5 headline.</h5>
<p>A paragraph after a headline is here.</p>
<p>Another paragraph after a paragraph is here.</p>
<h4>This is a H4 headline.</h4>
<p>A paragraph after a headline is here.</p>
<p>Another paragraph after a paragraph is here.</p>
</div>
</div>
</article>
<article class="dc">
<div class="start-1 end-last end-4-m">
<h3 class="sticky top-0 f4 lh-title m0">
Form <sup class="f1">accessible upload</sup>
</h3>
</div>
<div
class="start-1 start-4-m end-last flex flex-column justify-center items-center p3 pv4 p4-m pv5-m bg-violet-10 br4"
>
<form
x-data="{
is_uploading: false,
is_uploaderror: false,
is_disabled: false,
data: false,
progress: 0,
resetData() {
this.is_uploading = false;
this.is_uploaderror = false;
this.data = false;
this.progress = 0;
this.$refs.photoupload.value = '';
this.$refs.photourl.value = '';
},
async upload() {
let field = this.$refs.photoupload,
file = field.files[0],
formData = new FormData(),
xhr = new XMLHttpRequest();
if (!file) {
return;
}
this.is_uploading = true;
formData.append('file', file, file.name);
xhr.upload.addEventListener('progress', (el) => {
this.progress = Math.round(el.loaded / el.total * 100);
});
xhr.open('GET', 'demo/upload.json', true);
// LIVE: xhr.open('POST', 'demo/upload.json', true);
xhr.onload = (e) => {
let res = JSON.parse(xhr.response);
this.data = {
url: res.url,
name: res.name
};
this.progress = false;
this.is_uploading = false;
if (!this.data.url) {
this.resetData();
this.is_uploaderror = true;
} else {
this.is_uploaderror = false;
}
};
xhr.send(formData);
},
async send() {
let formData = new FormData($el),
xhr = new XMLHttpRequest();
this.is_disabled = true;
xhr.open('POST', $el.getAttribute('action'), true);
xhr.onload = (e) => {
var parser = new DOMParser(),
response = parser.parseFromString(xhr.response, 'text/html'),
messageQueryselector = '.form__message',
messageEl = $el.querySelector(messageQueryselector),
responseMessage = response.querySelector(messageQueryselector);
document.documentElement.classList.add('smooth-scroll');
messageEl.innerHTML = responseMessage.innerHTML;
messageEl.setAttribute('tabindex', 0);
this.$focus.focus(messageEl);
this.is_disabled = false;
};
xhr.send(formData);
}
}"
@submit.prevent="send()"
id="form"
action="#form"
method="post"
class="form w-100 w-70-m"
>
<div
aria-atomic="true"
aria-live="polite"
role="status"
class="form__message"
>
<p class="b white p2 bg-violet-5 br2">Error</p>
<p class="b p2 bg-white br2">Success</p>
</div>
<div class="form__item">
<label for="surname" class="form__label">
Name
<span aria-hidden="true">*</span>
<span class="clip">(Pflichtfeld)</span>
</label>
<div class="form__field form__field--input">
<input
type="text"
name="surname"
id="surname"
required
/>
</div>
</div>
<div class="form__item">
<label for="email" class="form__label"
>Email
<span aria-hidden="true">*</span>
<span class="clip">(Pflichtfeld)</span>
</label>
<div class="form__field form__field--input">
<input
type="email"
name="email"
id="email"
required
/>
</div>
</div>
<div class="form__item">
<label for="message" class="form__label"
>Message
</label>
<div class="form__field form__field--textarea">
<textarea
name="message"
id="message"
class="form__field form__field--textarea"
></textarea>
</div>
</div>
<div class="form__item">
<label for="photoupload" class="form__label"
>Photo
<sup class="white ph3 bg-violet-5 br-100"
>try it!</sup
>
<span
x-text="
if (is_uploading && !data.url) {
return 'uploading …';
}
if (is_uploaderror) {
return 'upload error.';
}
if (data.url) {
return 'upload successful.';
}
"
aria-atomic="true"
aria-live="polite"
role="status"
></span>
</label>
<div x-show="progress">
<div
class="overflow-hidden w-100 mv3 bg-gray-11 br2"
>
<div
x-text="progress + '%'"
:style="'width: ' + progress + '%; height: 100%'"
class="flex justify-center items-center white bg-violet-5"
></div>
</div>
</div>
<div
x-show="!is_uploading && !data.url"
class="form__field form__field--upload"
>
<input
x-ref="photoupload"
x-show="!data.url"
@change="upload()"
type="file"
name="photoupload"
id="photoupload"
class="form__field form__field--upload"
/>
</div>
<input
x-ref="photourl"
:value="data.url"
type="hidden"
name="photourl"
id="photourl"
/>
<div x-show="data.url">
<img
:src="data.url"
alt="Photo Preview"
class="db w-50 h-inherit br2"
/>
<div>
<button
@click="resetData()"
type="button"
class="btn pointer p0 bg-transparent bn bb"
>
<span class="bb"
>delete
<span aria-hidden="true"
>×</span
></span
>
</button>
</div>
</div>
</div>
<div class="form__item">
<div class="form__field form__field--checkbox">
<input
type="checkbox"
name="accept_gdpr"
id="accept_gdpr"
value="Ja"
required
/>
<label
for="accept_gdpr"
class="form__label"
>
<span>
I agree to the use of my data.
<span aria-hidden="true">*</span>
<span class="clip"
>(Pflichtfeld)</span
>
</span>
</label>
</div>
</div>
<button
@click="document.documentElement.classList.remove('smooth-scroll')"
x-text="is_disabled ? 'Sending …' : 'Submit'"
:disabled="is_uploading || is_disabled"
type="submit"
class="pointer db p2 mt4 ml-auto mr-auto bg-transparent ba br-100"
></button>
</form>
</div>
</article>
</section>
<section id="samples" class="dc">
<div class="col-full mt6"></div>
<h2 class="start-1 start-4-m end-last f5">Features</h2>
<div class="col-full subgrid">
<article
class="sticky top-0 col-full col-4-m white p4 bg-violet-10 ba br4 aspect-ratio-9x16 aspect-ratio-square-m"
>
<div class="violet-5">
<h3 class="f1 i m0">Fluid Scale</h3>
<p>
All elements can be scaled using the
<a
href="https://github.com/jenswittmann/CurlyFramework/blob/5dccbe6ab4a80a21290b8dc3b3c0e01382994c56/dev/css/_styling.scss#L7-L13"
rel="noreferrer"
target="_blank"
class="bb"
>.scale-content</a
>
in the HTML node. Along with the CSS grid and
responsive font classes, this is a great basis
for the design presets from Figma, Adobe XD and
zeplin.io.
</p>
</div>
</article>
<article
class="sticky top-0 col-full col-4-m white p4 mt6 bg-violet-10 ba br4 aspect-ratio-9x16 aspect-ratio-square-m"
>
<div class="violet-5">
<h3 class="f1 i m0">Security & Caching</h3>
<p>
The
<a
href="https://github.com/jenswittmann/CurlyFramework/blob/6.0.0/.htaccess"
rel="noreferrer"
target="_blank"
class="bb"
>.htaccess</a
>
file has been greatly enhanced with compression,
caching and header settings such as content
security policy or XSS protection.
</p>
</div>
</article>
<article
class="sticky top-0 col-full col-4-m white p4 mt7 bg-violet-10 ba br4 aspect-ratio-9x16 aspect-ratio-square-m"
>
<div class="violet-5">
<h3 class="f1 i m0">MODX</h3>
<p>
Together with modmore's
<a
href="https://modmore.com/contentblocks/"
rel="noreferrer"
target="_blank"
class="bb"
>ContentBlocks</a
>
you can create a flexible website builder with
100% code control. The
<a
href="https://github.com/jenswittmann/CurlyFramework/blob/6.0.0/dev/css/modx.scss"
rel="noreferrer"
target="_blank"
class="bb"
>modx.css</a
>
file brings a minimalist layout to the MODX
Manager backend.
</p>
<p>
Interested in MODX? Have a look at
<a
href="https://github.com/jenswittmann/JoliTypo"
rel="noreferrer"
target="_blank"
class="bb"
>JoliTypo</a
>
and
<a
href="https://github.com/jenswittmann/MODX-Gitify-Preset"
rel="noreferrer"
target="_blank"
class="bb"
>Gitify-Preset</a
>.
</p>
</div>
</article>
</div>
</section>
<section class="dc">