-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
469 lines (451 loc) · 17.1 KB
/
app.vue
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
<script setup>
import { ref } from "vue";
// Common Class Lists
const headerClasses = "space-y-2 pb-2 border-b-2 border-surface-800-200";
const previewCardClasses =
"card bg-noise bg-surface-50-950 border-[1px] border-surface-200-800 flex justify-center items-center p-8";
</script>
<template>
<main>
<!-- Nuxt Default Components -->
<NuxtRouteAnnouncer />
<!-- <NuxtWelcome /> -->
<!-- Sticky Header -->
<header class="sticky top-0 z-50 bg-surface-50-950 shadow-xl">
<div
class="container mx-auto grid grid-cols-[auto_1fr_auto] items-center gap-10 p-4"
>
<h1 class="h3">Skeleton</h1>
<p class="text-xs opacity-60">
Test various feature provided by Skeleton.
</p>
<a href="https://skeleton.dev" target="_blank" class="btn preset-filled"
>Documentation</a
>
</div>
</header>
<!-- Page Contents -->
<div class="container mx-auto space-y-20 px-4 py-20">
<!-- -------------------------------------------------------- -->
<header :class="headerClasses">
<h2 class="h2">Tailwind Components</h2>
</header>
<!-- -------------------------------------------------------- -->
<!-- Badges -->
<!-- https://skeleton.dev/docs/tailwind/badges -->
<section class="space-y-4">
<h3 class="h3">Badges</h3>
<div :class="previewCardClasses">
<div class="grid grid-cols-3 gap-4">
<span class="badge preset-filled-primary-500">Badge</span>
<span class="badge preset-tonal-primary">Badge</span>
<span class="badge preset-outlined-primary-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-secondary-500">Badge</span>
<span class="badge preset-tonal-secondary">Badge</span>
<span class="badge preset-outlined-secondary-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-tertiary-500">Badge</span>
<span class="badge preset-tonal-tertiary">Badge</span>
<span class="badge preset-outlined-tertiary-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-success-500">Badge</span>
<span class="badge preset-tonal-success">Badge</span>
<span class="badge preset-outlined-success-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-warning-500">Badge</span>
<span class="badge preset-tonal-warning">Badge</span>
<span class="badge preset-outlined-warning-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-error-500">Badge</span>
<span class="badge preset-tonal-error">Badge</span>
<span class="badge preset-outlined-error-500">Badge</span>
<!-- --- -->
<span class="badge preset-filled-surface-500">Badge</span>
<span class="badge preset-tonal-surface">Badge</span>
<span class="badge preset-outlined-surface-500">Badge</span>
</div>
</div>
</section>
<!-- Buttons -->
<section class="space-y-4">
<h3 class="h3">Buttons</h3>
<div :class="previewCardClasses">
<div class="grid grid-cols-3 gap-4">
<button type="button" class="btn preset-filled-primary-500">
Button
</button>
<button type="button" class="btn preset-tonal-primary">
Button
</button>
<button type="button" class="btn preset-outlined-primary-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-secondary-500">
Button
</button>
<button type="button" class="btn preset-tonal-secondary">
Button
</button>
<button type="button" class="btn preset-outlined-secondary-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-tertiary-500">
Button
</button>
<button type="button" class="btn preset-tonal-tertiary">
Button
</button>
<button type="button" class="btn preset-outlined-tertiary-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-success-500">
Button
</button>
<button type="button" class="btn preset-tonal-success">
Button
</button>
<button type="button" class="btn preset-outlined-success-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-warning-500">
Button
</button>
<button type="button" class="btn preset-tonal-warning">
Button
</button>
<button type="button" class="btn preset-outlined-warning-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-error-500">
Button
</button>
<button type="button" class="btn preset-tonal-error">Button</button>
<button type="button" class="btn preset-outlined-error-500">
Button
</button>
<!-- --- -->
<button type="button" class="btn preset-filled-surface-500">
Button
</button>
<button type="button" class="btn preset-tonal-surface">
Button
</button>
<button type="button" class="btn preset-outlined-surface-500">
Button
</button>
</div>
</div>
</section>
<!-- Card -->
<section class="space-y-4">
<h3 class="h3">Card</h3>
<div :class="previewCardClasses">
<a
href="#card"
class="card preset-filled-surface-100-900 border-[1px] border-surface-200-800 card-hover divide-surface-200-800 block max-w-md divide-y overflow-hidden"
>
<header>
<img
src="https://images.unsplash.com/photo-1463171515643-952cee54d42a?q=80&w=450&h=190&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
class="aspect-[21/9] w-full grayscale hue-rotate-90"
alt="banner"
/>
</header>
<article class="space-y-4 p-4">
<div>
<h2 class="h6">Announcements</h2>
<h3 class="h3">Skeleton is Awesome</h3>
</div>
<p class="opacity-60">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Numquam
aspernatur provident eveniet eligendi cumque consequatur tempore
sint nisi sapiente. Iste beatae laboriosam iure molestias cum
expedita architecto itaque quae rem.
</p>
</article>
<footer class="flex items-center justify-between gap-4 p-4">
<small class="opacity-60">By Alex</small>
<small class="opacity-60"
>On {new Date().toLocaleDateString()}</small
>
</footer>
</a>
</div>
</section>
<!-- Forms -->
<section class="space-y-4">
<h3 class="h3">Forms</h3>
<div :class="previewCardClasses">
<form class="w-full max-w-xl mx-auto space-y-4">
<fieldset class="space-y-4">
<!-- Input -->
<label class="label">
<span class="label-text">Input</span>
<input class="input" type="text" placeholder="Input" />
</label>
<!-- Select -->
<label class="label">
<span class="label-text">Select</span>
<select class="select">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
</select>
</label>
<!-- Textarea -->
<label class="label">
<span class="label-text">Textarea</span>
<textarea
class="textarea rounded-container"
rows="4"
placeholder="Lorem ipsum dolor sit amet consectetur adipisicing elit."
></textarea>
</label>
<!-- Search -->
<label class="label">
<span class="label-text">Search</span>
<input class="input" type="search" placeholder="Search..." />
</label>
<!-- Date Picker -->
<label class="label">
<span class="label-text">Date</span>
<input class="input" type="date" />
</label>
<!-- File Input -->
<label class="label">
<span class="label-text">File Input</span>
<input class="input" type="file" />
</label>
<!-- Range -->
<label class="label">
<span class="label-text">Range</span>
<input class="input" type="range" value="75" max="100" />
</label>
<!-- Progress -->
<label class="label">
<span class="label-text">Progress</span>
<progress class="progress" value="50" max="100"></progress>
</label>
<!-- Color -->
<!-- TODO: convert to mini-component for reactive value -->
<div class="grid grid-cols-[auto_1fr] gap-2">
<input class="input" type="color" value="#bada55" />
<input
class="input"
type="text"
value="#bada55"
readonly
tabindex="-1"
/>
</div>
</fieldset>
</form>
</div>
</section>
<!-- -------------------------------------------------------- -->
<header :class="headerClasses">
<h2 class="h2">Typography</h2>
</header>
<!-- -------------------------------------------------------- -->
<!-- Headings -->
<section class="space-y-4">
<h3 class="h3">Headings</h3>
<div :class="previewCardClasses">
<div class="space-y-4">
<h1 class="h1">Heading 1</h1>
<h2 class="h2">Heading 2</h2>
<h3 class="h3">Heading 3</h3>
<h4 class="h4">Heading 4</h4>
<h5 class="h5">Heading 5</h5>
<h6 class="h6">Heading 6</h6>
</div>
</div>
</section>
<!-- Blockquote -->
<section class="space-y-4">
<h3 class="h3">Blockquote</h3>
<div :class="previewCardClasses">
<div class="max-w-xl mx-auto">
<blockquote class="blockquote">
"Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Nesciunt, aliquid. Molestias, odio illum voluptatibus natus
dignissimos, quidem est unde aspernatur veniam pariatur fuga
distinctio esse in quas, repellendus neque reiciendis!"
</blockquote>
</div>
</div>
</section>
<!-- Code -->
<section class="space-y-4">
<h3 class="h3">Code</h3>
<div :class="previewCardClasses">
<code class="code">console.log()</code>
</div>
</section>
<!-- Keyboard -->
<section class="space-y-4">
<h3 class="h3">Keyboard</h3>
<div :class="previewCardClasses">
<div>
Press <kbd class="kbd">⌘</kbd> + <kbd class="kbd">C</kbd> to copy.
</div>
</div>
</section>
<!-- Pre-Formatted -->
<section class="space-y-4">
<h3 class="h3">Pre-Formatted</h3>
<div :class="previewCardClasses">
<pre class="pre">The quick brown fox jumps over the lazy dog.</pre>
</div>
</section>
<!-- -------------------------------------------------------- -->
<header :class="headerClasses">
<h2 class="h2">Extras</h2>
</header>
<!-- -------------------------------------------------------- -->
<!-- Alerts -->
<section class="space-y-4">
<h3 class="h3">Alerts</h3>
<div :class="previewCardClasses">
<div class="w-full max-w-xl grid grid-cols-1 gap-4">
<div
class="card preset-outlined-success-500 grid grid-cols-1 items-center gap-4 p-4 lg:grid-cols-[1fr_auto]"
>
<div>
<p class="font-bold">Success</p>
<p class="type-scale-1 opacity-60">
The task has been completed successfully.
</p>
</div>
</div>
<div
class="card preset-outlined-warning-500 grid grid-cols-1 items-center gap-4 p-4 lg:grid-cols-[auto_1fr_auto]"
>
<div>
<p class="font-bold">Warning</p>
<p class="type-scale-1 opacity-60">
Beware of this important notice.
</p>
</div>
</div>
<div
class="card preset-outlined-error-500 grid grid-cols-1 items-center gap-4 p-4 lg:grid-cols-[auto_1fr_auto]"
>
<div>
<p class="font-bold">Error</p>
<p class="type-scale-1 opacity-60">Something has gone wrong.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Breadcrumbs -->
<section class="space-y-4">
<h3 class="h3">Breadcrumbs</h3>
<div :class="previewCardClasses">
<ol class="flex items-center gap-4">
<li>
<a class="opacity-60 hover:underline" href="#breadcrumbs">Blog</a>
</li>
<li class="opacity-50" aria-hidden="true">›</li>
<li>
<a class="opacity-60 hover:underline" href="#breadcrumbs"
>Category</a
>
</li>
<li class="opacity-50" aria-hidden="true">›</li>
<li>Article</li>
</ol>
</div>
</section>
<!-- Image Layouts -->
<section class="space-y-4">
<h3 class="h3">Image Layouts</h3>
<div :class="previewCardClasses">
<section class="grid grid-cols-2 gap-4 md:grid-cols-4">
<!-- Column -->
<div class="grid gap-4">
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/320?random=1"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/120?random=2"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/280?random=3"
alt="Random"
/>
</div>
<!-- Column -->
<div class="grid gap-4">
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/300?random=4"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/280?random=5"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/140?random=6"
alt="Random"
/>
</div>
<!-- Column -->
<div class="grid gap-4">
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/280?random=7"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/320?random=8"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/140?random=9"
alt="Random"
/>
</div>
<!-- Column -->
<div class="grid gap-4">
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/320?random=10"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/140?random=11"
alt="Random"
/>
<img
class="bg-surface-500 rounded-container"
src="https://picsum.photos/220/280?random=12"
alt="Random"
/>
</div>
</section>
</div>
</section>
</div>
</main>
</template>