-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
603 lines (603 loc) · 22.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>punkweb-ui</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200"
/>
<link rel="stylesheet" href="dist/css/punkweb-ui.min.css" />
</head>
<body>
<div class="pw-container">
<h1>PunkwebUI</h1>
<h2>Components</h2>
<details class="pw-details">
<summary>Avatar</summary>
<h4>Image</h4>
<div class="flex align-center gap-2">
<div class="pw-avatar">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
</div>
<h4>Fallback</h4>
<div class="flex align-center gap-2">
<div class="pw-avatar">
<div class="pw-avatar-fallback">PW</div>
</div>
</div>
<h4>Sizes</h4>
<div class="flex align-center gap-2">
<div class="pw-avatar xs">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
<div class="pw-avatar sm">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
<div class="pw-avatar md">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
<div class="pw-avatar lg">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
<div class="pw-avatar xl">
<img class="pw-avatar-image" src="/static/punkweb.png" />
</div>
</div>
</details>
<details class="pw-details">
<summary>Badge</summary>
<h4>Default</h4>
<div class="flex align-center gap-2">
<div class="pw-badge">Badge</div>
</div>
<h4>Colors</h4>
<div class="flex align-center gap-2">
<div class="pw-badge primary">Primary</div>
<div class="pw-badge red">Red</div>
<div class="pw-badge orange">Orange</div>
<div class="pw-badge yellow">Yellow</div>
<div class="pw-badge green">Green</div>
<div class="pw-badge blue">Blue</div>
<div class="pw-badge indigo">Indigo</div>
<div class="pw-badge violet">Violet</div>
</div>
<h4>Rounded</h4>
<div class="flex align-center gap-2">
<div class="pw-badge rounded">Badge</div>
</div>
<h4>Sizes</h4>
<div class="flex align-center gap-2">
<div class="pw-badge xs">Badge</div>
<div class="pw-badge sm">Badge</div>
<div class="pw-badge md">Badge</div>
<div class="pw-badge lg">Badge</div>
<div class="pw-badge xl">Badge</div>
</div>
</details>
<details class="pw-details">
<summary>Blockquote</summary>
<h4>Default</h4>
<blockquote class="pw-blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</blockquote>
<h4>Cite</h4>
<blockquote class="pw-blockquote">
<cite>Punkweb said:</cite>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</blockquote>
</details>
<details class="pw-details">
<summary>Breadcrumb</summary>
<h4>Default</h4>
<nav>
<ul class="pw-breadcrumb">
<li class="pw-breadcrumb-item">
<a href="#">Home</a>
</li>
<li class="pw-breadcrumb-item">
<a href="#">Members</a>
</li>
<li class="pw-breadcrumb-item active">Punkweb</li>
</ul>
</nav>
</details>
<details class="pw-details">
<summary>Button</summary>
<h4>Variants</h4>
<div class="flex flex-column gap-2">
<div class="flex align-center gap-2">
<button class="pw-button">Default</button>
<button class="pw-button outlined">Outlined</button>
<button class="pw-button ghost">Ghost</button>
<button class="pw-button raised">Raised</button>
</div>
<div class="flex align-center gap-2">
<button class="pw-button primary">Default</button>
<button class="pw-button outlined primary">Outlined</button>
<button class="pw-button ghost primary">Ghost</button>
<button class="pw-button raised primary">Raised</button>
</div>
</div>
<h4>Colors</h4>
<div class="grid grid-columns-4 gap-4">
<button class="pw-button raised primary">Primary</button>
<button class="pw-button raised red">Red</button>
<button class="pw-button raised orange">Orange</button>
<button class="pw-button raised yellow">Yellow</button>
<button class="pw-button raised green">Green</button>
<button class="pw-button raised blue">Blue</button>
<button class="pw-button raised indigo">Indigo</button>
<button class="pw-button raised violet">Violet</button>
</div>
<h4>Sizes</h4>
<div class="flex align-center gap-2">
<button class="pw-button raised xs">Button</button>
<button class="pw-button raised sm">Button</button>
<button class="pw-button raised md">Button</button>
<button class="pw-button raised lg">Button</button>
<button class="pw-button raised xl">Button</button>
</div>
<h4>Rounded</h4>
<div class="flex align-center gap-2">
<button class="pw-button raised rounded">Button</button>
</div>
</details>
<details class="pw-details">
<summary>Callout</summary>
<h4>Default</h4>
<div class="pw-callout">
<h4>Header</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla
rhoncus tempor neque, sed malesuada eros dapibus vel. Aliquam in
ligula vitae tortor porttitor laoreet iaculis finibus est.
</p>
</div>
<h4>Colors</h4>
<div class="grid grid-columns-4 gap-4">
<div class="pw-callout primary">
<h4>Primary</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout red">
<h4>Red</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout orange">
<h4>Orange</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout yellow">
<h4>Yellow</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout green">
<h4>Green</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout blue">
<h4>Blue</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout indigo">
<h4>Indigo</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
<div class="pw-callout violet">
<h4>Violet</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
</details>
<details class="pw-details">
<summary>Card</summary>
<h4>Default</h4>
<div class="pw-card">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<h4>Radius</h4>
<div class="grid grid-columns-3 gap-8 my-12">
<div class="pw-card radius-none">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card radius-xs">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card radius-sm">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card radius-md">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card radius-lg">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card radius-xl">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
</div>
<h4>Shadow</h4>
<div class="grid grid-columns-3 gap-8 my-12">
<div class="pw-card shadow-none">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card shadow-xs">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card shadow-sm">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card shadow-md">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card shadow-lg">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
<div class="pw-card shadow-xl">
<div class="pw-card-header">Header</div>
<div class="pw-card-content">
<p>Content</p>
</div>
</div>
</div>
</details>
<details class="pw-details">
<summary>Dialog</summary>
<h4>Default</h4>
<div class="pw-dialog">
<div class="pw-dialog-header">
<div>Confirm</div>
</div>
<div class="pw-dialog-body">
<p class="mt-0">Are you sure you want to delete this item?</p>
<div class="pw-dialog-actions">
<button class="pw-button outlined">Cancel</button>
<button class="pw-button raised red">Delete</button>
</div>
</div>
</div>
</details>
<details class="pw-details">
<summary>Form</summary>
<h4>Default</h4>
<form class="pw-form my-12" style="width: 320px">
<div class="pw-form-group">
<label class="pw-input-label" for="email">Email address</label>
<input
class="pw-input fluid"
id="email"
name="email"
type="email"
/>
<div class="hint">
We'll never share your email with anyone else.
</div>
</div>
<div class="pw-form-group">
<label class="pw-input-label" for="password">Password</label>
<input
class="pw-input fluid"
id="password"
name="password"
type="password"
/>
</div>
<div class="pw-form-group check">
<label class="pw-input-label">Remember me</label>
<input type="checkbox" name="remember" />
</div>
<div class="pw-form-actions">
<button class="pw-button raised primary fluid" type="submit">
Login
</button>
</div>
</form>
<h4>Inline</h4>
<form class="pw-form inline my-12">
<div class="pw-form-group">
<label class="pw-input-label" for="search">Search</label>
<input class="pw-input" id="search" name="search" type="email" />
</div>
<div class="pw-form-group">
<label class="pw-input-label" for="sort">Sort</label>
<select class="pw-input" id="sort" name="sort">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
<div class="pw-form-actions">
<button class="pw-button raised primary" type="submit">
Login
</button>
</div>
</form>
<h4>Columns</h4>
<form class="pw-form my-12" style="width: 768px">
<div class="pw-form-row">
<div class="flex-1">
<div class="pw-form-group">
<label class="pw-input-label" for="firstname">
First Name
</label>
<input
class="pw-input fluid"
id="firstname"
name="firstname"
type="text"
/>
</div>
</div>
<div class="flex-1">
<div class="pw-form-group">
<label class="pw-input-label" for="lastname">Last Name</label>
<input
class="pw-input fluid"
id="lastname"
name="lastname"
type="text"
/>
</div>
</div>
</div>
<div class="pw-form-group">
<label class="pw-input-label" for="address">Address</label>
<input
class="pw-input fluid"
id="address"
name="address"
type="text"
/>
</div>
<div class="pw-form-group">
<label class="pw-input-label" for="address2">Address 2</label>
<input
class="pw-input fluid"
id="address2"
name="address2"
type="text"
/>
</div>
<div class="pw-form-row">
<div class="flex-3">
<div class="pw-form-group">
<label class="pw-input-label" for="city">City</label>
<input
class="pw-input fluid"
id="city"
name="city"
type="text"
/>
</div>
</div>
<div class="flex-2">
<div class="pw-form-group">
<label class="pw-input-label" for="state">State</label>
<select class="pw-input fluid" id="state" name="state">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</div>
</div>
<div class="flex-1">
<div class="pw-form-group">
<label class="pw-input-label" for="zip">Zip</label>
<input class="pw-input fluid" id="zip" name="zip" type="text" />
</div>
</div>
</div>
<div class="pw-form-actions end">
<button class="pw-button" type="reset">Cancel</button>
<button class="pw-button raised primary" type="submit">Send</button>
</div>
</form>
</details>
<details class="pw-details">
<summary>Icon Button</summary>
<h4>Variants</h4>
<div class="flex align-center gap-2 mb-2">
<button class="pw-icon-button">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button outlined">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button ghost">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised">
<span class="material-symbols-outlined">favorite</span>
</button>
</div>
<div class="flex align-center gap-2">
<button class="pw-icon-button primary">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button outlined primary">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button ghost primary">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised primary">
<span class="material-symbols-outlined">favorite</span>
</button>
</div>
<h4>Colors</h4>
<div class="flex align-center gap-2">
<button class="pw-icon-button raised primary">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised red">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised orange">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised yellow">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised green">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised blue">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised indigo">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised violet">
<span class="material-symbols-outlined">favorite</span>
</button>
</div>
<h4>Sizes</h4>
<div class="flex align-center gap-2">
<button class="pw-icon-button raised xs">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised sm">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised md">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised lg">
<span class="material-symbols-outlined">favorite</span>
</button>
<button class="pw-icon-button raised xl">
<span class="material-symbols-outlined">favorite</span>
</button>
</div>
<h4>Rounded</h4>
<div class="flex align-center gap-2">
<button class="pw-icon-button raised rounded">
<span class="material-symbols-outlined">favorite</span>
</button>
</div>
</details>
<details class="pw-details">
<summary>Input</summary>
<h4>Default</h4>
<input class="pw-input" />
<h4>Placeholder</h4>
<input class="pw-input" placeholder="Placeholder" />
<h4>Invalid</h4>
<input class="pw-input invalid" />
<h4>Disabled</h4>
<input class="pw-input" disabled />
<h4>Rounded</h4>
<input class="pw-input rounded" />
<h4>Label</h4>
<label class="pw-input-label" for="label-example">Username</label>
<input class="pw-input" id="label-example" />
<h4>Hint</h4>
<input class="pw-input" />
<p class="hint">Password must contain 8 characters</p>
<h4>Error</h4>
<input class="pw-input" />
<p class="error">Password must contain 8 characters</p>
<h4>Sizes</h4>
<div class="flex align-start gap-2">
<input class="pw-input xs" placeholder="Extra Small" />
<input class="pw-input sm" placeholder="Small" />
<input class="pw-input md" placeholder="Medium" />
<input class="pw-input lg" placeholder="Large" />
<input class="pw-input xl" placeholder="Extra Large" />
</div>
<h4>Textarea</h4>
<textarea class="pw-input" placeholder="Placeholder"></textarea>
<h4>Select</h4>
<select class="pw-input">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
</details>
<details class="pw-details">
<summary>Pagination</summary>
<h4>Default</h4>
<nav>
<ul class="pw-pagination">
<li class="pw-pagination-item disabled">
<a class="pw-pagination-link" href="#">Prev</a>
</li>
<li class="pw-pagination-item active">
<a class="pw-pagination-link" href="#">1</a>
</li>
<li class="pw-pagination-item">
<a class="pw-pagination-link" href="#">2</a>
</li>
<li class="pw-pagination-item">
<a class="pw-pagination-link" href="#">3</a>
</li>
<li class="pw-pagination-item">
<a class="pw-pagination-link" href="#">Next</a>
</li>
</ul>
</nav>
</details>
<details class="pw-details">
<summary>Spinner</summary>
<h4>Default</h4>
<div class="pw-spinner"></div>
<h4>Sizes</h4>
<div class="flex align-center gap-4">
<div class="pw-spinner xs"></div>
<div class="pw-spinner sm"></div>
<div class="pw-spinner md"></div>
<div class="pw-spinner lg"></div>
<div class="pw-spinner xl"></div>
</div>
<h4>Centered</h4>
<div class="pw-spinner-container">
<div class="pw-spinner"></div>
</div>
<h4>Message</h4>
<div class="pw-spinner-container">
<div class="pw-spinner"></div>
<div class="hint">Loading...</div>
</div>
</details>
</div>
</body>
</html>