|
1 |
| -<script setup lang="ts"> |
2 |
| -import type { CharacterPose, ActionFanItem, ActionListItem } from '../types' |
3 |
| -
|
4 |
| -const pose = ref<CharacterPose>('action') |
5 |
| -const listItems = ref<ActionListItem<CharacterPose>[]>([ |
6 |
| - { title: 'Idle', emit: 'idle' }, |
7 |
| - { title: 'Action', emit: 'action' }, |
8 |
| - { title: 'Profi', emit: 'profi' } |
9 |
| -]) |
10 |
| -
|
11 |
| -const fanItems = ref<ActionFanItem<CharacterPose>[]>([ |
12 |
| - { title: 'Idle', emit: 'idle' }, |
13 |
| - { title: 'Action', emit: 'action' }, |
14 |
| - { title: 'Profi', emit: 'profi' } |
15 |
| -]) |
16 |
| -</script> |
17 |
| - |
18 | 1 | <template>
|
19 | 2 | <Head>
|
20 | 3 | <Title>d0rich • Nuxt design system</Title>
|
21 | 4 | </Head>
|
22 |
| - <main class="w-full min-h-screen bg-neutral-300 px-3 py-10"> |
23 |
| - <div class="prose prose-lg mx-auto"> |
24 |
| - <h1 class="sharp-shadow ss-red-500 ss-br-1">d0rich Nuxt design system</h1> |
25 |
| - <section class="my-7"> |
26 |
| - <h2 class="sharp-shadow ss-cyan-500 ss-br-1"> |
27 |
| - FocusHighlight and Buttons |
28 |
| - </h2> |
29 |
| - <div class="not-prose flex flex-wrap gap-3"> |
30 |
| - <DBtn>Just Button</DBtn> |
31 |
| - <DBtn no-rotate>No Rotate</DBtn> |
32 |
| - </div> |
33 |
| - <div class="no-prose my-5"> |
34 |
| - <DBtn highlight="negative-tile" class="!block" |
35 |
| - >Default highlight</DBtn |
36 |
| - > |
37 |
| - <DBtn highlight="list-item" class="!block">List highlight</DBtn> |
38 |
| - <DBtn highlight="list-item" color-class="bg-blue-600" class="!block" |
39 |
| - >Custom color</DBtn |
40 |
| - > |
41 |
| - <DBtn highlight="negative-list-item" class="!block" |
42 |
| - >List highlight (negative)</DBtn |
43 |
| - > |
44 |
| - <DBtn |
45 |
| - highlight="composite-list-item" |
46 |
| - class="!block" |
47 |
| - color-class="bg-white" |
48 |
| - >List highlight (composite)</DBtn |
49 |
| - > |
50 |
| - </div> |
51 |
| - <div class="no-prose my-5"> |
52 |
| - <DBtn href="https://d0rich.me" target="_blank">Link Button</DBtn> |
53 |
| - <DBtn no-rotate active class="!block">Active Link</DBtn> |
54 |
| - <DBtn no-rotate active class="!block" highlight="negative-list-item" |
55 |
| - >Active List Link</DBtn |
56 |
| - > |
57 |
| - <DBtn |
58 |
| - no-rotate |
59 |
| - no-passive-highlight |
60 |
| - active |
61 |
| - class="router-link-active !block" |
62 |
| - highlight="negative-list-item" |
63 |
| - >Active List Link</DBtn |
64 |
| - > |
65 |
| - <DBtn text-transform="none" class="!block">No Text transform</DBtn> |
66 |
| - </div> |
67 |
| - </section> |
68 |
| - <section class="my-7"> |
69 |
| - <h2 class="sharp-shadow ss-cyan-500 ss-br-1">Lists</h2> |
70 |
| - <div class="grid md:grid-cols-2 not-prose items-center"> |
71 |
| - <DCharacter :pose="pose" no-image /> |
72 |
| - <DActionsList |
73 |
| - class="text-white" |
74 |
| - :actions="listItems" |
75 |
| - @action-focus="pose = $event" |
76 |
| - /> |
77 |
| - </div> |
78 |
| - <div class="grid md:grid-cols-3 not-prose items-center"> |
79 |
| - <DActionsFan |
80 |
| - class="text-white py-48" |
81 |
| - side="left" |
82 |
| - :actions="fanItems" |
83 |
| - @action-focus="pose = $event" |
84 |
| - /> |
85 |
| - <DCharacter :pose="pose" shape-class="fill-red-500" no-image /> |
86 |
| - <DActionsFan |
87 |
| - class="text-white py-48" |
88 |
| - side="right" |
89 |
| - :actions="fanItems" |
90 |
| - @action-focus="pose = $event" |
91 |
| - /> |
92 |
| - </div> |
93 |
| - </section> |
94 |
| - <section class="my-7"> |
95 |
| - <h2 class="sharp-shadow ss-cyan-500 ss-br-1">Animations</h2> |
96 |
| - <div class="grid grid-cols-2 items-center"> |
97 |
| - <DAnimationSpinner /> |
98 |
| - <DAnimationAccordion /> |
99 |
| - <DAnimationHypnosis /> |
100 |
| - <DAnimationFloatingLetter /> |
101 |
| - </div> |
102 |
| - </section> |
103 |
| - <section class="my-7"> |
104 |
| - <h2 class="sharp-shadow ss-cyan-500 ss-br-1">Shapes</h2> |
105 |
| - <div class="grid grid-cols-2 items-center"> |
106 |
| - <DWrapShape |
107 |
| - shape-class="bg-white" |
108 |
| - :shape-style="{ |
109 |
| - clipPath: 'var(--shape-bubble--left)' |
110 |
| - }" |
111 |
| - > |
112 |
| - <div style="padding: var(--shape-bubble--left__padding)"> |
113 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
114 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
115 |
| - distinctio quaerat reiciendis. |
116 |
| - </div> |
117 |
| - </DWrapShape> |
118 |
| - <DWrapShape |
119 |
| - shape-class="bg-white" |
120 |
| - :shape-style="{ |
121 |
| - clipPath: 'var(--shape-bubble--right)' |
122 |
| - }" |
123 |
| - > |
124 |
| - <div style="padding: var(--shape-bubble--right__padding)"> |
125 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
126 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
127 |
| - distinctio quaerat reiciendis. |
128 |
| - </div> |
129 |
| - </DWrapShape> |
130 |
| - </div> |
131 |
| - </section> |
132 |
| - <section class="my-7"> |
133 |
| - <h2 class="sharp-shadow ss-cyan-500 ss-br-1">Content components</h2> |
134 |
| - <div class="not-prose"> |
135 |
| - <ContentProseBlockquote> |
136 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
137 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
138 |
| - distinctio quaerat reiciendis. |
139 |
| - </ContentProseBlockquote> |
140 |
| - <ContentAlert> |
141 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
142 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
143 |
| - distinctio quaerat reiciendis. |
144 |
| - </ContentAlert> |
145 |
| - <ContentAlert type="question"> |
146 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
147 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
148 |
| - distinctio quaerat reiciendis. |
149 |
| - </ContentAlert> |
150 |
| - <ContentAlert type="warning"> |
151 |
| - Lorem ipsum, dolor sit amet consectetur adipisicing elit. Itaque |
152 |
| - quibusdam possimus aliquid earum adipisci tempore quidem molestiae |
153 |
| - distinctio quaerat reiciendis. |
154 |
| - </ContentAlert> |
155 |
| - </div> |
156 |
| - </section> |
157 |
| - </div> |
158 |
| - </main> |
| 5 | + <NuxtPage /> |
| 6 | + <CustomFooter class="dark text-white" /> |
| 7 | + <DBigBangButtonAnimation /> |
159 | 8 | </template>
|
0 commit comments