/
index.html
405 lines (390 loc) · 15.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
<!DOCTYPE html>
<html lang="de" 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 greater accessibility & sustainability
development.
</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="Personal framework for more accessibility and sustainability, not just for MODX."
/>
<meta property="og:image" content="favicon.svg" />
</head>
<body
x-data
@keyup.document="(e) => {
if (e.which === 9) {
document.documentElement.classList.add('focus-outline');
}
}"
class="curlyframework page 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>
<section id="info">
<img
src="favicon.svg"
aria-hidden="true"
alt=""
class="db w-25 w-10-m mb5"
/>
<h1 class="f4 f5-m m0">
<span class="db">CurlyFramework</span>
<span class="db f3 mv3 mv5-m">
Personal framework for more accessibility and
sustainability, not just for MODX.
</span>
</h1>
<p class="mv3 mv5-m">
<span class="clip">Installation: </span>
<span class="dib ph3 mb2 bg-gray-10 br4">
$ npm i curlyframework
</span>
&
<a
href="https://github.com/jenswittmann/CurlyFramework"
rel="noreferrer"
target="_blank"
class="dib ph3 bg-gray-10 br4"
>
Github</a
>
</p>
</section>
<section id="tips">
<h2 class="f3 pv3 mt7 mb5 bb bw2">
Better accessibility and sustainability in web development?
</h2>
<p class="w-60-m">
It doesn't need a complete relaunch, small steps can also
help to reach the goal. I recommend the talk by
<a
href="https://css-irl.info/video-building-a-greener-web/"
rel="noreferrer"
target="_blank"
class="bb"
>Michelle Barker "Building a greener web" at "All Day
Hey! 2023"</a
>.
</p>
<h3 class="f2 mt5 mb3">Tips</h3>
<ul>
<li>Use WebP and lazyload (images, embeds).</li>
<li>
Use less fonts and try to use variable fonts (.woff2).
</li>
<li>Only load embeds on user interaction.</li>
<li>Test keyboard navigation.</li>
<li>
Seek community to test and discuss accessibility and
sustainability with real people.
</li>
</ul>
</section>
<section id="samples">
<h2 class="f3 mt7 mb3">Samples</h2>
<article
x-data="{
open: false
}"
class="pv5 bt bw2"
>
<button
@click="open = true"
:aria-expanded="open"
aria-controls="popup"
class="btn white ph3 pv2 bg-violet-5 bn br4"
>
Open modal
</button>
<div
x-cloak
x-trap.inert.noscroll="open"
@keyup.escape.window="open = false"
:hidden="!open"
id="popup"
aria-modal="true"
role="dialog"
class="fixed top-0 left-0 right-0 bottom-0 z-max p4 bg-blur"
>
<div
class="flex justify-center items-center w-100 h-100"
>
<div
class="w-90 w-50-m p3 p5-m m3 m4-m bg-white br4 shadow-4"
>
<img
src="favicon.svg"
aria-hidden="true"
alt=""
class="db w-25 w-10-m mb5"
/>
<p>
The script also takes care of the focus so
that it remains so that it remains in the
open window. Here is a
<a
href="https://jens-wittmann.de"
rel="noreferrer"
target="_blank"
>Example link</a
>
to the test.
</p>
<button
@click="open = false"
class="btn white ph3 pv2 bg-violet-5 bn br4"
>
Close example
</button>
</div>
</div>
</div>
</article>
<article
x-data="{
open: false
}"
class="pv5 bt"
>
<button
@click="open = !open"
:aria-expanded="open"
aria-controls="accordion"
class="pointer b p0 bg-transparent bn"
>
<span
x-text="open ? '-' : '+'"
aria-hidden="true"
></span>
Accordion
</button>
<p x-cloak x-collapse x-show="open" id="accordion">
Simple Answer for the Accordion.
</p>
</article>
<article class="pv4 bt">
<p>
All elements scale if desired via the class
<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 proportionally. Together with the CSS
Grid and the classes for the responsive font a super
basis for design presets from Figma (Adobe XD) and
zeplin.io.
</p>
</article>
<article class="pv4 bt">
<p>
The
<a
href="https://github.com/jenswittmann/CurlyFramework/blob/6.0.0/.htaccess"
rel="noreferrer"
target="_blank"
class="bb"
>.htaccess</a
>
has been extended with caching and security settings.
Together with ContentBlocks from modmore, you can create
a flexible website builder with 100% code control. The file
<a
href="https://github.com/jenswittmann/CurlyFramework/blob/6.0.0/dev/css/modx.scss"
rel="noreferrer"
target="_blank"
class="bb"
>modx.css</a
>
brings a minimalistic layout for the MODX Manager
backend.
</p>
</article>
</section>
<section id="installation">
<h2 class="f3 pv3 mt7 mb5 bb bw2">Installation</h2>
<ul>
<li>
Get it via
<span class="dib f1 ph3 mb2 bg-gray-10 br4">
$ git clone git@github.com:jenswittmann/<wbr />CurlyFramework.git
</span>
or use
<span class="dib f1 ph3 mb2 bg-gray-10 br4">
$ npm i curlyframework
</span>
(as npm dependency).
</li>
<li>Link CSS/JS files in your markup.</li>
<li>
Overwrite CSS via custom properties and use inline JS
via AlpineJS.
</li>
</ul>
<h3 class="f2 mt5 mb3">Need more?</h3>
<ul>
<li>
Install dependency
<span class="dib f1 ph3 mb2 bg-gray-10 br4">
$ npm i
</span>
</li>
<li>
Use
<a
href="https://codekitapp.com/"
rel="noreferrer"
target="_blank"
class="bb"
>CodeKit</a
>
or
<a
href="https://esbuild.github.io/"
rel="noreferrer"
target="_blank"
class="bb"
>esbuild</a
>
(need custom config) to compile your assets.
</li>
<li>Play around, learn and share.</li>
</ul>
</section>
<section>
<h2 class="f3 pv3 mt7 mb5 bb bw2">
Thank you for the inspirations
</h2>
<ul>
<li>
<a
href="https://alpinejs.dev/"
rel="noreferrer"
target="_blank"
class="bb"
>alpine.js</a
>
</li>
<li>
<a
href="https://tachyons.io/"
rel="noreferrer"
target="_blank"
class="bb"
>tachyons.io</a
>
</li>
<li>
<a
href="https://www.barrierefreies-webdesign.de/"
rel="noreferrer"
target="_blank"
class="bb"
>barrierefreies-webdesign.de</a
>
</li>
<li>
<a
href="https://modx.com/"
rel="noreferrer"
target="_blank"
class="bb"
>modx.com</a
>
</li>
<li>
<a
href="https://modmore.com/contentblocks"
rel="noreferrer"
target="_blank"
class="bb"
>modmore.com/contentblocks</a
>
</li>
<li>
<a
href="https://github.com/modmore/Gitify/"
rel="noreferrer"
target="_blank"
class="bb"
>github.com/modmore/Gitify</a
>
</li>
<li>
<a
href="https://afarkas.github.io/lazysizes"
rel="noreferrer"
target="_blank"
class="bb"
>afarkas.github.io/lazysizes</a
>
</li>
<li>
<a
href="https://www.dzblesen.de/"
rel="noreferrer"
target="_blank"
class="bb"
>dzblesen.de</a
>
</li>
</ul>
</section>
</main>
<footer class="foot">
<h2 id="contact" class="f3 pv3 mt7 mb5 bb bw2">Contact</h2>
<p>
Questions and comments gladly via
<a
href="https://github.com/jenswittmann/CurlyFramework"
rel="noreferrer"
target="_blank"
class="bb"
>GitHub</a
>. Work together? Have a look at
<a
href="https://jens-wittmann.de/"
rel="noreferrer"
target="_blank"
class="bb"
>jens-wittmann.de</a
>.
</p>
<p class="mt7">
<a
href="https://jens-wittmann.de/#kontakt"
rel="noreferrer"
target="_blank"
class="bb"
>Imprint and privacy policy</a
>
</p>
</footer>
<script src="styleguide/js/script.js" defer></script>
</body>
</html>