@d0rich/esprit-design 0.5.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +157 -11
  3. package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
  4. package/dist/components/DChip.vue.js +14 -0
  5. package/dist/components/DChip.vue2.js +6 -0
  6. package/dist/components/DPagination.vue.js +116 -0
  7. package/dist/components/DPagination.vue2.js +4 -0
  8. package/dist/components/DStats.vue.js +367 -0
  9. package/dist/components/DStats.vue4.js +6 -0
  10. package/dist/components/animations/DAnimationAccordion.vue.js +47 -0
  11. package/dist/components/animations/DAnimationAccordion.vue3.js +5 -0
  12. package/dist/components/animations/DAnimationDefLetterD.vue.js +11 -0
  13. package/dist/components/animations/DAnimationDefLetterD.vue2.js +6 -0
  14. package/dist/components/animations/DAnimationFloatingLetter.vue.js +39 -0
  15. package/dist/components/animations/DAnimationFloatingLetter.vue3.js +5 -0
  16. package/dist/components/animations/DAnimationHypnosis.vue.js +46 -0
  17. package/dist/components/animations/DAnimationHypnosis.vue3.js +5 -0
  18. package/dist/components/animations/DAnimationSpinner.vue.js +80 -0
  19. package/dist/components/animations/DAnimationSpinner.vue3.js +5 -0
  20. package/dist/components/buttons/DBigBangButton.vue.js +56 -0
  21. package/dist/components/buttons/DBigBangButton.vue3.js +5 -0
  22. package/dist/components/buttons/DBigBangButtonAnimation.vue.js +97 -0
  23. package/dist/components/buttons/DBigBangButtonAnimation.vue3.js +5 -0
  24. package/dist/components/buttons/DBtn.vue.js +92 -0
  25. package/dist/components/buttons/DBtn.vue3.js +5 -0
  26. package/dist/components/cards/DCard.vue.js +50 -0
  27. package/dist/components/cards/DCard.vue3.js +5 -0
  28. package/dist/components/cards/DCardTitle.vue.js +30 -0
  29. package/dist/components/cards/DCardTitle.vue2.js +12 -0
  30. package/dist/components/content/DAlert.vue.js +61 -0
  31. package/dist/components/content/DAlert.vue3.js +5 -0
  32. package/dist/components/content/DQuote.vue.js +39 -0
  33. package/dist/components/content/DQuote.vue3.js +5 -0
  34. package/dist/components/index.js +61 -0
  35. package/dist/components/lists/DActionsFan.vue.js +101 -0
  36. package/dist/components/lists/DActionsFan.vue4.js +6 -0
  37. package/dist/components/lists/DActionsList.vue.js +89 -0
  38. package/dist/components/lists/DActionsList.vue3.js +5 -0
  39. package/dist/components/utils/DWrapBackground.vue.js +86 -0
  40. package/dist/components/utils/DWrapBackground.vue3.js +5 -0
  41. package/dist/components/utils/DWrapFocusHighlight.vue.js +93 -0
  42. package/dist/components/utils/DWrapFocusHighlight.vue5.js +7 -0
  43. package/dist/components/utils/DWrapShape.vue.js +73 -0
  44. package/dist/components/utils/DWrapShape.vue4.js +6 -0
  45. package/dist/composables/big-bang-button-utils.js +8 -0
  46. package/dist/composables/index.js +6 -0
  47. package/dist/composables/router.js +71 -0
  48. package/dist/composables/utils.js +7 -0
  49. package/dist/index.js +78 -0
  50. package/dist/style.css +869 -0
  51. package/dist/style.pure.css +2026 -0
  52. package/dist/style.tailwind.css +869 -0
  53. package/dist/utils/boundings.js +33 -0
  54. package/dist/utils/index.js +15 -0
  55. package/dist/utils/pagination.js +7 -0
  56. package/dist/utils/polygon-animation.js +85 -0
  57. package/package.json +31 -5
  58. package/tailwind.config.js +4 -1
  59. package/vite.config.ts +74 -10
  60. package/dist/esprit-design.css +0 -1
  61. package/dist/esprit-design.js +0 -2701
  62. package/dist/esprit-design.umd.cjs +0 -1
package/dist/style.css ADDED
@@ -0,0 +1,869 @@
1
+
2
+ .d-chip {
3
+ display: inline-block;
4
+ clip-path: polygon(
5
+ 0 0,
6
+ 100% 0.2em,
7
+ calc(100% - 0.3em) 100%,
8
+ 0.2em calc(100% - 0.3em)
9
+ );
10
+ padding: 0.4em;
11
+ }
12
+ @media print {
13
+ .d-chip {
14
+ clip-path: none;
15
+ padding: 0;
16
+ background: unset !important;
17
+ }
18
+ }
19
+
20
+ .d-shape,
21
+ .d-shape > * {
22
+ @apply relative;
23
+ }
24
+ .d-shape__bg-filter {
25
+ @apply absolute top-0 left-0 w-full h-full;
26
+ }
27
+ .d-shape__bg-wrapper {
28
+ @apply relative w-full h-full;
29
+ }
30
+ .d-shape__bg {
31
+ @apply absolute w-full h-full;
32
+ }
33
+
34
+ :root {
35
+ --shape-bubble--right: polygon(
36
+ 0 calc(100% - 20px),
37
+ 20px calc(100% - 10px),
38
+ 25px calc(100% - 15px),
39
+ 45px calc(100% - 5px),
40
+ 70px calc(100% - 10px),
41
+ 100% 100%,
42
+ calc(100% - 40px) 0,
43
+ 45px 30px,
44
+ 40px calc(100% - 30px),
45
+ 20px calc(100% - 45px),
46
+ 18px calc(100% - 25px)
47
+ );
48
+ --shape-bubble--right__outline: polygon(
49
+ 0 calc(100% - 20px),
50
+ 5px calc(100% - 20px),
51
+ 20px calc(100% - 10px),
52
+ 25px calc(100% - 15px),
53
+ 45px calc(100% - 5px),
54
+ 70px calc(100% - 10px),
55
+ calc(100% - 20px) calc(100% - 10px),
56
+ calc(100% - 50px) 7px,
57
+ 45px 30px,
58
+ 40px calc(100% - 30px),
59
+ 20px calc(100% - 45px),
60
+ 18px calc(100% - 25px),
61
+ 5px calc(100% - 20px),
62
+ 0 calc(100% - 20px),
63
+ 16px calc(100% - 28px),
64
+ 17px calc(100% - 53px),
65
+ 39px calc(100% - 40px),
66
+ 38px 23px,
67
+ calc(100% - 40px) 0,
68
+ 100% 100%,
69
+ 70px calc(100% - 7px),
70
+ 45px 100%,
71
+ 25px calc(100% - 11px),
72
+ 19px calc(100% - 7px),
73
+ 0 calc(100% - 20px)
74
+ );
75
+ --shape-bubble--right__padding: 35px 45px 15px 50px;
76
+ }
77
+ :root {
78
+ --shape-bubble--left: polygon(
79
+ 100% calc(100% - 20px),
80
+ calc(100% - 20px) calc(100% - 10px),
81
+ calc(100% - 25px) calc(100% - 15px),
82
+ calc(100% - 45px) calc(100% - 5px),
83
+ calc(100% - 70px) calc(100% - 10px),
84
+ 0 100%,
85
+ 40px 0,
86
+ calc(100% - 45px) 30px,
87
+ calc(100% - 40px) calc(100% - 30px),
88
+ calc(100% - 20px) calc(100% - 45px),
89
+ calc(100% - 18px) calc(100% - 25px)
90
+ );
91
+ --shape-bubble--left__outline: polygon(
92
+ 100% calc(100% - 20px),
93
+ calc(100% - 5px) calc(100% - 20px),
94
+ calc(100% - 20px) calc(100% - 10px),
95
+ calc(100% - 25px) calc(100% - 15px),
96
+ calc(100% - 45px) calc(100% - 5px),
97
+ calc(100% - 70px) calc(100% - 10px),
98
+ 20px calc(100% - 10px),
99
+ 50px 7px,
100
+ calc(100% - 45px) 30px,
101
+ calc(100% - 40px) calc(100% - 30px),
102
+ calc(100% - 20px) calc(100% - 45px),
103
+ calc(100% - 18px) calc(100% - 25px),
104
+ calc(100% - 5px) calc(100% - 20px),
105
+ 100% calc(100% - 20px),
106
+ calc(100% - 16px) calc(100% - 28px),
107
+ calc(100% - 17px) calc(100% - 53px),
108
+ calc(100% - 39px) calc(100% - 40px),
109
+ calc(100% - 38px) 23px,
110
+ 40px 0,
111
+ 0 100%,
112
+ calc(100% - 70px) calc(100% - 7px),
113
+ calc(100% - 45px) 100%,
114
+ calc(100% - 25px) calc(100% - 11px),
115
+ calc(100% - 19px) calc(100% - 7px),
116
+ 100% calc(100% - 20px)
117
+ );
118
+ --shape-bubble--left__padding: 35px 50px 15px 45px;
119
+ }
120
+ :root {
121
+ --shape-card: polygon(2em 0, 0% 100%, 100% calc(100% - 5em), 100% 4em);
122
+ --shape-card-padding: 4.5em 0.5em 5.5em 2.5em;
123
+ }
124
+ :root {
125
+ --shape-card--dense: polygon(
126
+ 0.5em 0,
127
+ 0% 100%,
128
+ 100% calc(100% - 2em),
129
+ 100% 1.5em
130
+ );
131
+ --shape-card--dense__outline: polygon(
132
+ 0.5em 0,
133
+ 0.8em 0.3em,
134
+ 0.4em calc(100% - 0.7em),
135
+ calc(100% - 0.3em) calc(100% - 2em),
136
+ calc(100% - 0.4em) 1.5em,
137
+ 0.8em 0.3em,
138
+ 0.5em 0,
139
+ 100% 1em,
140
+ 100% calc(100% - 1.8em),
141
+ 0% 100%
142
+ );
143
+ --shape-card--dense__padding: 2em 0.5em 2.5em 1em;
144
+ }
145
+
146
+ .d-focus-hl {
147
+ @apply relative isolate;
148
+ }
149
+ .d-focus-hl--default-color {
150
+ @apply bg-red-600;
151
+ }
152
+
153
+ .d-focus-hl:has(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
154
+ @apply w-fit;
155
+ }
156
+ .d-focus-hl > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
157
+ width: 0%;
158
+ height: 0%;
159
+ top: 50%;
160
+ left: 50%;
161
+ content: '';
162
+ opacity: 0;
163
+ pointer-events: none;
164
+ @apply absolute transition-all;
165
+ }
166
+ .d-focus-hl > .d-focus-hl__hl--negative-tile {
167
+ @apply backdrop-invert;
168
+ }
169
+ .d-focus-hl > .d-focus-hl__hl--tile {
170
+ @apply -z-10;
171
+ }
172
+ .d-focus-hl:hover > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile),
173
+ .d-focusable:focus :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
174
+ opacity: 1;
175
+ animation: hl--negative-tile-animation linear 1s infinite;
176
+ }
177
+ .d-focus-hl:hover > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
178
+ width: 110%;
179
+ height: 130%;
180
+ top: -15%;
181
+ left: -5%;
182
+ }
183
+ .d-focusable:focus :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
184
+ width: 140% !important;
185
+ height: 200% !important;
186
+ top: -50% !important;
187
+ left: -20% !important;
188
+ }
189
+ :is(
190
+ :is(
191
+ .router-link-active
192
+ .d-focus-hl--not-exact:not(.d-focus-hl--no-passive-link),
193
+ .router-link-exact-active
194
+ .d-focus-hl--exact:not(.d-focus-hl--no-passive-link)
195
+ ),
196
+ .d-focus-hl--active
197
+ )
198
+ :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
199
+ opacity: 1;
200
+ width: 120% !important;
201
+ height: 120% !important;
202
+ top: -10% !important;
203
+ left: -10% !important;
204
+ }
205
+ @keyframes hl--negative-tile-animation {
206
+ 0%,
207
+ 100% {
208
+ transform: skew(0deg) rotate(6deg);
209
+ }
210
+ 50% {
211
+ transform: skew(-40deg) rotate(-6deg) scaleX(0.8);
212
+ }
213
+ }
214
+ @media (prefers-reduced-motion: reduce) {
215
+ .d-focus-hl > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
216
+ transition: none;
217
+ }
218
+ .d-focus-hl:hover
219
+ > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile),
220
+ .d-focusable:focus
221
+ :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
222
+ animation-play-state: paused;
223
+ }
224
+ }
225
+
226
+ .d-focus-hl:has(
227
+ .d-focus-hl__hl--list-item,
228
+ .d-focus-hl__hl--negative-list-item
229
+ ) {
230
+ @apply w-full;
231
+ }
232
+ .d-focus-hl
233
+ > :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
234
+ width: 0%;
235
+ height: 200%;
236
+ top: -50%;
237
+ left: 0;
238
+ content: '';
239
+ margin-left: -1.2em;
240
+ pointer-events: none;
241
+ clip-path: polygon(1rem 0, 0% 100%, 90% 50%);
242
+ @apply absolute transition-all;
243
+ }
244
+ .d-focus-hl > .d-focus-hl__hl--negative-list-item {
245
+ @apply backdrop-invert;
246
+ }
247
+ .d-focus-hl > .d-focus-hl__hl--list-item {
248
+ @apply -z-10;
249
+ }
250
+ :is(.d-focus-hl:hover, .d-focusable:focus)
251
+ :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
252
+ opacity: 1;
253
+ animation: hl--list-item-animation 0.3s infinite;
254
+ }
255
+ .d-focus-hl:hover
256
+ > :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
257
+ width: 200%;
258
+ height: 130%;
259
+ top: -15%;
260
+ left: -5%;
261
+ }
262
+ .d-focusable:focus
263
+ :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
264
+ width: 220% !important;
265
+ height: 200% !important;
266
+ top: -50% !important;
267
+ left: -5% !important;
268
+ }
269
+ :is(
270
+ :is(
271
+ .router-link-active
272
+ .d-focus-hl--not-exact:not(.d-focus-hl--no-passive-link),
273
+ .router-link-exact-active
274
+ .d-focus-hl--exact:not(.d-focus-hl--no-passive-link)
275
+ ),
276
+ .d-focus-hl--active
277
+ )
278
+ :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
279
+ opacity: 1;
280
+ width: 220% !important;
281
+ height: 130% !important;
282
+ top: -15% !important;
283
+ left: -5% !important;
284
+ }
285
+ @keyframes hl--list-item-animation {
286
+ 0%,
287
+ 100% {
288
+ clip-path: polygon(1em 0, 0% 100%, 100% 50%);
289
+ }
290
+ 50% {
291
+ clip-path: polygon(1em 10%, 0% 90%, 100% 50%);
292
+ }
293
+ }
294
+ @media (prefers-reduced-motion: reduce) {
295
+ .d-focus-hl
296
+ > :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
297
+ transition: none;
298
+ }
299
+ :is(.d-focus-hl:hover, .d-focusable:focus)
300
+ :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
301
+ animation-play-state: paused;
302
+ }
303
+ }
304
+
305
+ .d-btn {
306
+ @apply font-extrabold select-none relative inline-block cursor-pointer;
307
+ }
308
+ .d-btn--rotated {
309
+ @apply -rotate-6;
310
+ }
311
+ .d-btn--uppercase {
312
+ @apply uppercase;
313
+ }
314
+ .d-btn--capitalize {
315
+ @apply capitalize;
316
+ }
317
+ .d-btn--lowercase {
318
+ @apply lowercase;
319
+ }
320
+
321
+ .stats {
322
+ @apply relative print:hidden;
323
+ }
324
+ .stats__bg {
325
+ @apply dark:fill-neutral-800 fill-neutral-300;
326
+ }
327
+ .stats__bg-star--odd {
328
+ @apply dark:fill-neutral-500 fill-neutral-400;
329
+ }
330
+ .stats__bg-star--even {
331
+ @apply dark:fill-neutral-800 fill-neutral-600;
332
+ }
333
+ .stats__single-stat:hover {
334
+ animation: single-stat-hover 1.5s ease-in-out infinite;
335
+ }
336
+ .stats__star--light {
337
+ @apply fill-yellow-400;
338
+ }
339
+ .stats__star--dark {
340
+ @apply fill-yellow-600;
341
+ }
342
+ @keyframes single-stat-hover {
343
+ 0% {
344
+ filter: brightness(1);
345
+ }
346
+ 50% {
347
+ filter: brightness(1.35);
348
+ }
349
+ 100% {
350
+ filter: brightness(1);
351
+ }
352
+ }
353
+ .stats__images {
354
+ @apply absolute inset-0 pointer-events-none;
355
+ }
356
+ .stats__image {
357
+ width: 20%;
358
+ height: 20%;
359
+ @apply absolute;
360
+ }
361
+ .stats__image:nth-child(1) {
362
+ top: 2%;
363
+ left: 50%;
364
+ }
365
+ .stats__image:nth-child(2) {
366
+ top: 20%;
367
+ right: 6%;
368
+ }
369
+ .stats__image:nth-child(3) {
370
+ bottom: 8%;
371
+ right: 30%;
372
+ }
373
+ .stats__image:nth-child(4) {
374
+ bottom: 4%;
375
+ left: 10%;
376
+ }
377
+ .stats__image:nth-child(5) {
378
+ top: 30%;
379
+ left: 6%;
380
+ }
381
+ .stats_titles-layer {
382
+ @apply absolute inset-0 pointer-events-none;
383
+ }
384
+ .stats__group-title {
385
+ font-size: 150px;
386
+ paint-order: stroke;
387
+ text-anchor: start;
388
+ dominant-baseline: text-bottom;
389
+ font-weight: 900;
390
+ stroke-width: 20;
391
+ @apply fill-black font-sans stroke-yellow-500;
392
+ }
393
+ .stats__title {
394
+ font-size: 100px;
395
+ paint-order: stroke;
396
+ text-anchor: middle;
397
+ dominant-baseline: text-top;
398
+ font-weight: 900;
399
+ stroke-width: 20;
400
+ rotate: 5deg;
401
+ @apply fill-black font-sans stroke-yellow-500;
402
+ }
403
+ .stats__title__value {
404
+ font-size: 80px;
405
+ stroke-width: 20;
406
+ stroke-linejoin: round;
407
+ }
408
+
409
+ .stats__print-value {
410
+ @apply hidden print:block;
411
+ }
412
+ .stats__print-value__group-title {
413
+ @apply text-lg font-bold;
414
+ }
415
+ .stats__print-value__skill {
416
+ @apply grid grid-cols-[1fr_auto] items-center gap-x-4 gap-y-1;
417
+ }
418
+ .stats__print-value--small {
419
+ @apply hidden flex-wrap gap-2 items-center;
420
+ }
421
+ .stats__print-value--small__skill {
422
+ @apply rounded text-white p-[.3em];
423
+ }
424
+ .stats__print-value--small__skill--hidden {
425
+ @apply hidden;
426
+ }
427
+ .stats__print-value--small__skill--3 {
428
+ @apply bg-blue-500 text-xs;
429
+ }
430
+ .stats__print-value--small__skill--4 {
431
+ @apply bg-blue-600 text-sm;
432
+ }
433
+ .stats__print-value--small__skill--5 {
434
+ @apply bg-blue-700 text-base;
435
+ }
436
+ .small-print-stats .stats__print-value {
437
+ @apply print:hidden;
438
+ }
439
+ .small-print-stats .stats__print-value--small {
440
+ @apply print:flex;
441
+ }
442
+
443
+ .d-animation-accordion > .d-animation-accordion__section {
444
+ --accordion-section-min-posion: translate(
445
+ calc(var(--accordion-section-count) * 50px),
446
+ 0
447
+ );
448
+ --accordion-section-max-posion: translate(
449
+ calc(var(--accordion-section-count) * 70px),
450
+ 0
451
+ );
452
+ transform: var(--accordion-section-min-posion);
453
+ animation: d-animation-accordion-section-wiggle
454
+ var(--d-accordion-wiggle-period) ease-in-out infinite alternate
455
+ calc((var(--accordion-section-count) - 1) * var(--d-accordion-delay));
456
+ }
457
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(2n + 1) {
458
+ @apply fill-white;
459
+ }
460
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(2) {
461
+ --accordion-section-count: 1;
462
+ }
463
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(3) {
464
+ --accordion-section-count: 2;
465
+ }
466
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(4) {
467
+ --accordion-section-count: 3;
468
+ }
469
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(5) {
470
+ --accordion-section-count: 4;
471
+ }
472
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(6) {
473
+ --accordion-section-count: 5;
474
+ }
475
+ .d-animation-accordion > .d-animation-accordion__section:nth-child(7) {
476
+ --accordion-section-count: 6;
477
+ }
478
+ @keyframes d-animation-accordion-section-wiggle {
479
+ 0% {
480
+ transform: var(--accordion-section-min-posion);
481
+ }
482
+ 50% {
483
+ transform: var(--accordion-section-max-posion);
484
+ }
485
+ 100% {
486
+ transform: var(--accordion-section-min-posion);
487
+ }
488
+ }
489
+ @media (prefers-reduced-motion: reduce) {
490
+ .d-animation-accordion > .d-animation-accordion__section {
491
+ animation-play-state: paused;
492
+ }
493
+ }
494
+
495
+ .d-animation-floating-letter {
496
+ animation: d-animation-floating-letter-float
497
+ var(--d-floating-letter-float-period) ease-in-out infinite;
498
+ transform-origin: 315px 315px;
499
+ }
500
+ @keyframes d-animation-floating-letter-float {
501
+ 0% {
502
+ transform: translate(0, 0);
503
+ }
504
+ 50% {
505
+ transform: translate(0, 40px);
506
+ }
507
+ 100% {
508
+ transform: translate(0, 0);
509
+ }
510
+ }
511
+ @media (prefers-reduced-motion: reduce) {
512
+ .d-animation-floating-letter {
513
+ animation-play-state: paused;
514
+ }
515
+ }
516
+
517
+ .d-animation-hypnosis > .d-animation-hypnosis__section {
518
+ --hypnosis-section-min-posion: scale(
519
+ calc(var(--hypnosis-section-count) / 12)
520
+ );
521
+ --hypnosis-section-max-posion: translate(
522
+ calc(var(--hypnosis-section-count) / 6)
523
+ );
524
+ transform: var(--hypnosis-section-min-posion);
525
+ transform-origin: 315px 315px;
526
+ animation: d-animation-hypnosis-section-wiggle var(--d-hypnosis-wiggle-period)
527
+ ease-in-out infinite alternate
528
+ calc((var(--hypnosis-section-count) - 6) * -1 * var(--d-hypnosis-delay));
529
+ }
530
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(2n + 1) {
531
+ @apply fill-white;
532
+ }
533
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(2) {
534
+ --hypnosis-section-count: 1;
535
+ }
536
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(3) {
537
+ --hypnosis-section-count: 2;
538
+ }
539
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(4) {
540
+ --hypnosis-section-count: 3;
541
+ }
542
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(5) {
543
+ --hypnosis-section-count: 4;
544
+ }
545
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(6) {
546
+ --hypnosis-section-count: 5;
547
+ }
548
+ .d-animation-hypnosis > .d-animation-hypnosis__section:nth-child(7) {
549
+ --hypnosis-section-count: 6;
550
+ }
551
+ @keyframes d-animation-hypnosis-section-wiggle {
552
+ 0% {
553
+ transform: var(--hypnosis-section-min-posion);
554
+ }
555
+ 50% {
556
+ transform: var(--hypnosis-section-max-posion);
557
+ }
558
+ 100% {
559
+ transform: var(--hypnosis-section-min-posion);
560
+ }
561
+ }
562
+ @media (prefers-reduced-motion: reduce) {
563
+ .d-animation-hypnosis > .d-animation-hypnosis__section {
564
+ animation-play-state: paused;
565
+ }
566
+ }
567
+
568
+ .d-animation-spinner__foreground {
569
+ @apply fill-white;
570
+ }
571
+ .d-animation-spinner__background {
572
+ @apply fill-black;
573
+ }
574
+ .d-animation-spinner__blade {
575
+ --transform-static: scale(0.5) rotate(220deg);
576
+ animation: d-spinner-blade-wiggle var(--d-spinner-blade-wiggle-period)
577
+ ease-in-out infinite;
578
+ }
579
+ @keyframes d-spinner-blade-wiggle {
580
+ 0% {
581
+ transform: translate(0px, -150px) var(--transform-static);
582
+ }
583
+ 50% {
584
+ transform: translate(0px, -120px) var(--transform-static);
585
+ }
586
+ 100% {
587
+ transform: translate(0px, -150px) var(--transform-static);
588
+ }
589
+ }
590
+ .d-animation-spinner__spinner {
591
+ animation: d-spinner-spin var(--d-spinner-spin-period) linear infinite;
592
+ }
593
+ @keyframes d-spinner-spin {
594
+ 0% {
595
+ transform: rotate(0deg);
596
+ }
597
+ 100% {
598
+ transform: rotate(-360deg);
599
+ }
600
+ }
601
+ @media (prefers-reduced-motion: reduce) {
602
+ .d-animation-spinner__blade,
603
+ .d-animation-spinner__spinner {
604
+ animation-play-state: paused;
605
+ }
606
+ }
607
+
608
+ #big-bang-button-animation {
609
+ overflow: hidden;
610
+ pointer-events: none;
611
+ @apply fixed w-full h-full top-0 left-0
612
+ text-center uppercase text-7xl md:text-9xl font-extrabold;
613
+ }
614
+ #big-bang-button-animation > .bbb__text-container {
615
+ width: fit-content;
616
+ margin-left: auto;
617
+ margin-right: 0.5em;
618
+ perspective: 200px;
619
+ transform-origin: right top;
620
+ transform: rotate3d(0, 1, 0, 35deg) rotate(-12deg);
621
+ }
622
+ #big-bang-button-animation span {
623
+ @apply inline-block mx-2;
624
+ }
625
+ #big-bang-button-animation span:nth-of-type(3n + 1) {
626
+ @apply text-neutral-900 bg-neutral-50;
627
+ }
628
+ #big-bang-button-animation span:nth-of-type(4n + 3) {
629
+ @apply bg-neutral-900 text-neutral-50;
630
+ }
631
+
632
+ .big-bang-button {
633
+ @apply text-3xl font-bold uppercase cursor-pointer;
634
+ }
635
+ .big-bang-button:hover > span {
636
+ @apply inline-block transition-all motion-reduce:transition-none;
637
+ }
638
+ .big-bang-button:hover > span:nth-of-type(4n + 1) {
639
+ @apply rotate-12 translate-x-1 -translate-y-2;
640
+ }
641
+ .big-bang-button:hover > span:nth-of-type(4n + 2) {
642
+ @apply -rotate-6 translate-y-3;
643
+ }
644
+ .big-bang-button:hover > span:nth-of-type(4n + 3) {
645
+ @apply -rotate-12 translate-x-1 -translate-y-2;
646
+ }
647
+ .big-bang-button:hover > span:nth-of-type(4n + 4) {
648
+ @apply -rotate-6 translate-x-1 -translate-y-1;
649
+ }
650
+ .big-bang-button:hover > span:first {
651
+ @apply rotate-12 -translate-x-2 -translate-y-2;
652
+ }
653
+
654
+ .card__content,
655
+ .card__content--dense {
656
+ @apply md:text-lg;
657
+ }
658
+ .card__content {
659
+ padding: var(--shape-card-padding);
660
+ @apply print:p-0;
661
+ }
662
+ .card__content--dense {
663
+ padding: var(--shape-card--dense__padding);
664
+ @apply print:p-0;
665
+ }
666
+ .card--homepage-story .card__content,
667
+ .card--homepage-skills .card__content {
668
+ @apply text-black;
669
+ }
670
+ .force-light :is(.card__bg, .card__bg--dense) {
671
+ @apply !bg-white dark:bg-white;
672
+ }
673
+ .card--homepage-story :is(.card__bg, .card__bg--dense) {
674
+ background: var(--d-card-x-ray--idle__color);
675
+ }
676
+ .card--homepage-skills :is(.card__bg, .card__bg--dense) {
677
+ background: var(--d-card-x-ray--action__color);
678
+ }
679
+ .card__bg,
680
+ .card__bg--dense {
681
+ @apply bg-white dark:bg-neutral-700
682
+ print:bg-none;
683
+ }
684
+ .card__bg {
685
+ clip-path: var(--shape-card);
686
+ }
687
+ .card__bg--dense {
688
+ clip-path: var(--shape-card--dense);
689
+ }
690
+ @media print {
691
+ .card__bg {
692
+ clip-path: none !important;
693
+ background: none !important;
694
+ }
695
+ }
696
+
697
+ .card__title {
698
+ @apply text-2xl md:text-3xl font-semibold -mt-5 mb-3
699
+ print:text-base print:ml-0 print:mb-0;
700
+ }
701
+ .card__title__content {
702
+ @apply inline-block -ml-10
703
+ print:ml-0;
704
+ }
705
+ .card__title__content__text {
706
+ @apply p-5 text-white dark:text-black
707
+ print:p-0 print:text-inherit;
708
+ }
709
+ .card__title__content__shape {
710
+ clip-path: polygon(
711
+ 0.4em 0.4em,
712
+ 100% 0%,
713
+ calc(100% - 0.4em) calc(100% - 0.4em),
714
+ 0% 100%
715
+ );
716
+ @apply bg-black dark:bg-white
717
+ print:bg-transparent;
718
+ }
719
+ .force-light .card__title__content__text {
720
+ @apply dark:text-white;
721
+ }
722
+ .force-light .card__title__content__shape {
723
+ @apply dark:bg-black;
724
+ }
725
+ @media print {
726
+ .card__title__content__shape {
727
+ clip-path: none;
728
+ }
729
+ }
730
+
731
+ .d-alert {
732
+ @apply font-dialog text-black dark:text-white mb-6 mt-12;
733
+ }
734
+ .d-alert__shape {
735
+ @apply bg-white dark:bg-black opacity-80;
736
+ clip-path: var(--shape-card--dense);
737
+ }
738
+ .d-alert__outline {
739
+ @apply absolute inset-0 bg-black dark:bg-white;
740
+ clip-path: var(--shape-card--dense__outline);
741
+ }
742
+ .d-alert--info .d-alert__outline {
743
+ @apply bg-cyan-500;
744
+ }
745
+ .d-alert--question .d-alert__outline {
746
+ @apply bg-yellow-500;
747
+ }
748
+ .d-alert--warning .d-alert__outline {
749
+ @apply bg-red-500;
750
+ }
751
+ .d-alert__body {
752
+ padding: var(--shape-card--dense__padding);
753
+ }
754
+ .d-alert__sign {
755
+ @apply absolute w-[5em] -top-[1.5em] -left-[1.5em]
756
+ pointer-events-none
757
+ sharp-shadow ss-white ss-r-1;
758
+ }
759
+ .d-alert--info .d-alert__sign {
760
+ @apply fill-cyan-500;
761
+ }
762
+ .d-alert--question .d-alert__sign {
763
+ @apply fill-yellow-500;
764
+ }
765
+ .d-alert--warning .d-alert__sign {
766
+ @apply fill-red-500;
767
+ }
768
+
769
+ .d-blockquote {
770
+ @apply font-dialog text-black dark:text-white my-6;
771
+ }
772
+ .d-blockquote__outline {
773
+ @apply absolute inset-0 bg-black dark:bg-white;
774
+ }
775
+ .d-blockquote__shape {
776
+ @apply bg-white dark:bg-black opacity-80;
777
+ }
778
+
779
+ /* Right */
780
+ .d-blockquote--right .d-blockquote__body {
781
+ padding: var(--shape-bubble--right__padding);
782
+ }
783
+ .d-blockquote--right .d-blockquote__outline {
784
+ clip-path: var(--shape-bubble--right__outline);
785
+ }
786
+ .d-blockquote--right .d-blockquote__shape {
787
+ clip-path: var(--shape-bubble--right);
788
+ }
789
+
790
+ /* Left */
791
+ .d-blockquote--left .d-blockquote__body {
792
+ padding: var(--shape-bubble--left__padding);
793
+ }
794
+ .d-blockquote--left .d-blockquote__outline {
795
+ clip-path: var(--shape-bubble--left__outline);
796
+ }
797
+ .d-blockquote--left .d-blockquote__shape {
798
+ clip-path: var(--shape-bubble--left);
799
+ }
800
+
801
+ .d-actions-fan__list-item__shape {
802
+ @apply dark:bg-neutral-900;
803
+ }
804
+ .d-actions-fan--right__list-item__shape {
805
+ clip-path: polygon(calc(100% - 10px) 0, 100% 100%, 0 40%);
806
+ }
807
+ .d-actions-fan--left__list-item__shape {
808
+ clip-path: polygon(10px 0, 0 100%, 100% 40%);
809
+ }
810
+ .d-actions-fan__list-item {
811
+ @apply w-full transform -my-8;
812
+ }
813
+ .d-actions-fan--right__list-item {
814
+ @apply origin-left;
815
+ }
816
+ .d-actions-fan--left__list-item {
817
+ @apply origin-right;
818
+ }
819
+ .d-actions-fan__list-item__body {
820
+ @apply px-3 py-2;
821
+ }
822
+ .d-actions-fan--right__list-item__body {
823
+ @apply flex justify-end;
824
+ }
825
+
826
+ .actions-enter-active,
827
+ .actions-leave-active {
828
+ @apply transition-all;
829
+ }
830
+ .actions-enter-from {
831
+ --tw-rotate: -90deg !important;
832
+ @apply opacity-0;
833
+ }
834
+ .actions-leave-to {
835
+ --tw-rotate: 90deg !important;
836
+ @apply opacity-0;
837
+ }
838
+
839
+ .d-actions-list__shape {
840
+ @apply dark:bg-neutral-900 dark:bg-opacity-80 backdrop-blur;
841
+ clip-path: polygon(10px 0, 0 100%, 100% calc(100% - 10px), 100% 13px);
842
+ }
843
+ .d-actions-list__body {
844
+ @apply p-7;
845
+ }
846
+ .d-actions-list__header {
847
+ @apply mb-4 font-serif text-lg;
848
+ }
849
+ .d-actions-list__list {
850
+ @apply relative [&_button]:font-sans [&_button]:font-bold [&_button]:text-left font-sans font-bold;
851
+ }
852
+
853
+ .mbg__main-container {
854
+ isolation: isolate;
855
+ }
856
+ .mbg__relative-container {
857
+ @apply relative w-full h-full;
858
+ }
859
+ .mbg__layer {
860
+ inset: 0;
861
+ @apply absolute;
862
+ }
863
+ .mbg__dots {
864
+ background: url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="rotate(0)" opacity="0.2" version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><g fill="%23250E17"><circle cx="25" cy="25" r="12.5"/><circle cx="75" cy="75" r="12.5"/><circle cx="75" cy="25" r="12.5"/><circle cx="25" cy="75" r="12.5"/></g></svg>');
865
+ background-size: 2rem;
866
+ }
867
+ .mbg__content {
868
+ @apply relative z-[1];
869
+ }