@d0rich/esprit-design 0.4.4 → 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 (69) hide show
  1. package/CHANGELOG.md +13 -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 +32 -5
  58. package/src/components/animations/DAnimationAccordion.vue +6 -0
  59. package/src/components/animations/DAnimationFloatingLetter.vue +6 -0
  60. package/src/components/animations/DAnimationHypnosis.vue +6 -0
  61. package/src/components/animations/DAnimationSpinner.vue +6 -0
  62. package/src/components/buttons/DBigBangButton.vue +1 -1
  63. package/src/components/buttons/DBigBangButtonAnimation.vue +10 -0
  64. package/src/components/utils/DWrapFocusHighlight.vue +25 -0
  65. package/tailwind.config.js +14 -3
  66. package/vite.config.ts +74 -10
  67. package/dist/esprit-design.css +0 -1
  68. package/dist/esprit-design.js +0 -2586
  69. package/dist/esprit-design.umd.cjs +0 -1
@@ -0,0 +1,33 @@
1
+ function getAbsoluteBoundingsGetters(el, correlations = {}) {
2
+ return {
3
+ top: () => {
4
+ var _a;
5
+ return (((_a = el.value) == null ? void 0 : _a.getBoundingClientRect().top) ?? 0) + window.scrollY + (correlations.y ? correlations.y() : 0);
6
+ },
7
+ bottom: () => {
8
+ var _a;
9
+ return (((_a = el.value) == null ? void 0 : _a.getBoundingClientRect().bottom) ?? 0) + window.scrollY + (correlations.y ? correlations.y() : 0);
10
+ },
11
+ right: () => {
12
+ var _a;
13
+ return (((_a = el.value) == null ? void 0 : _a.getBoundingClientRect().right) ?? 0) + window.scrollX + (correlations.x ? correlations.x() : 0);
14
+ },
15
+ left: () => {
16
+ var _a;
17
+ return (((_a = el.value) == null ? void 0 : _a.getBoundingClientRect().left) ?? 0) + window.scrollX + (correlations.x ? correlations.x() : 0);
18
+ }
19
+ };
20
+ }
21
+ function getAbsoluteBoundings(el) {
22
+ const getters = getAbsoluteBoundingsGetters(el);
23
+ return {
24
+ top: getters.top(),
25
+ bottom: getters.bottom(),
26
+ right: getters.right(),
27
+ left: getters.left()
28
+ };
29
+ }
30
+ export {
31
+ getAbsoluteBoundings,
32
+ getAbsoluteBoundingsGetters
33
+ };
@@ -0,0 +1,15 @@
1
+ import { getAbsoluteBoundings, getAbsoluteBoundingsGetters } from "./boundings.js";
2
+ import { getLinkToPaginatedPage } from "./pagination.js";
3
+ import { applyLinePerPointAnimation, applyStaticPoints, createCoordsFromArray, createLineEdgeFromArray, createLineFromArray, generatePolygonLineKeyframes, generatePolygonPointsKeyframes } from "./polygon-animation.js";
4
+ export {
5
+ applyLinePerPointAnimation,
6
+ applyStaticPoints,
7
+ createCoordsFromArray,
8
+ createLineEdgeFromArray,
9
+ createLineFromArray,
10
+ generatePolygonLineKeyframes,
11
+ generatePolygonPointsKeyframes,
12
+ getAbsoluteBoundings,
13
+ getAbsoluteBoundingsGetters,
14
+ getLinkToPaginatedPage
15
+ };
@@ -0,0 +1,7 @@
1
+ function getLinkToPaginatedPage(baseLink, page) {
2
+ if (page === 1) return baseLink;
3
+ return `${baseLink}/${page}`;
4
+ }
5
+ export {
6
+ getLinkToPaginatedPage
7
+ };
@@ -0,0 +1,85 @@
1
+ function generatePolygonLineKeyframes(line) {
2
+ return line.map((_, index, edges) => {
3
+ const leftPoints = edges.reduce((points, edge, currentIndex) => {
4
+ if (currentIndex > index) {
5
+ points.push(points.at(-1));
6
+ } else {
7
+ points.push(edge.left);
8
+ }
9
+ return points;
10
+ }, []);
11
+ const rightPoints = edges.reduce((points, edge, currentIndex) => {
12
+ if (currentIndex > index) {
13
+ points.push(points.at(-1));
14
+ } else {
15
+ points.push(edge.right);
16
+ }
17
+ return points;
18
+ }, []);
19
+ return [...rightPoints, ...leftPoints.reverse()];
20
+ });
21
+ }
22
+ function generatePolygonPointsKeyframes(line) {
23
+ const lineKfs = generatePolygonLineKeyframes(line);
24
+ const keyframesCount = lineKfs.length;
25
+ const pointsCount = lineKfs[0].length;
26
+ const result = [];
27
+ for (let i = 0; i < pointsCount; i++) {
28
+ const pointKfs = [];
29
+ for (let k = 0; k < keyframesCount; k++) {
30
+ pointKfs.push(lineKfs[k][i]);
31
+ }
32
+ result.push(pointKfs);
33
+ }
34
+ return result;
35
+ }
36
+ function applyLinePerPointAnimation(line, svgContainer, svgPolygon, animationCallback) {
37
+ const allPointsKeyframes = generatePolygonPointsKeyframes(line);
38
+ for (const pointKeyframes of allPointsKeyframes) {
39
+ const point = svgContainer.createSVGPoint();
40
+ svgPolygon.points.appendItem(point);
41
+ animationCallback(point, pointKeyframes);
42
+ }
43
+ }
44
+ function applyStaticPoints(line, svgContainer, svgPolygon) {
45
+ const finalLineState = generatePolygonLineKeyframes(line).at(-1);
46
+ if (!finalLineState) return;
47
+ for (const pointCoords of finalLineState) {
48
+ const point = svgContainer.createSVGPoint();
49
+ point.x = pointCoords.x;
50
+ point.y = pointCoords.y;
51
+ svgPolygon.points.appendItem(point);
52
+ }
53
+ }
54
+ function createCoordsFromArray(coordsAsArray) {
55
+ if (coordsAsArray.length !== 2)
56
+ throw new Error(
57
+ "Array should contain 2 numbers in order to be translated into coords"
58
+ );
59
+ return {
60
+ x: coordsAsArray[0],
61
+ y: coordsAsArray[1]
62
+ };
63
+ }
64
+ function createLineEdgeFromArray(edgeAsArray) {
65
+ if (edgeAsArray.length !== 2)
66
+ throw new Error(
67
+ "Array should contain 2 elements in order to be translated into LineEdge"
68
+ );
69
+ return {
70
+ left: createCoordsFromArray(edgeAsArray[0]),
71
+ right: createCoordsFromArray(edgeAsArray[1])
72
+ };
73
+ }
74
+ function createLineFromArray(lineAsArray) {
75
+ return lineAsArray.map(createLineEdgeFromArray);
76
+ }
77
+ export {
78
+ applyLinePerPointAnimation,
79
+ applyStaticPoints,
80
+ createCoordsFromArray,
81
+ createLineEdgeFromArray,
82
+ createLineFromArray,
83
+ generatePolygonLineKeyframes,
84
+ generatePolygonPointsKeyframes
85
+ };
package/package.json CHANGED
@@ -1,21 +1,47 @@
1
1
  {
2
2
  "name": "@d0rich/esprit-design",
3
- "version": "0.4.4",
3
+ "version": "1.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "type": "module",
8
- "main": "./dist/esprit-design.umd.cjs",
9
- "module": "./dist/esprit-design.js",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
- "import": "./dist/esprit-design.js",
15
- "require": "./dist/esprit-design.umd.cjs"
14
+ "import": "./dist/index.js",
15
+ "default": "./dist/index.js"
16
16
  },
17
+ "./dist/esprit-design.js": "./dist/index.js",
17
18
  "./style.css": "./dist/style.css",
19
+ "./style.tailwind.css": "./dist/style.tailwind.css",
20
+ "./style.pure.css": "./dist/style.pure.css",
21
+ "./dist/style.css": "./dist/style.css",
22
+ "./dist/style.tailwind.css": "./dist/style.tailwind.css",
23
+ "./dist/style.pure.css": "./dist/style.pure.css",
24
+ "./dist/esprit-design.css": "./dist/style.css",
18
25
  "./tailwind.config": "./tailwind.config.js",
26
+ "./components": {
27
+ "types": "./dist/components/index.d.ts",
28
+ "import": "./dist/components/index.js",
29
+ "default": "./dist/components/index.js"
30
+ },
31
+ "./composables": {
32
+ "types": "./dist/composables/index.d.ts",
33
+ "import": "./dist/composables/index.js",
34
+ "default": "./dist/composables/index.js"
35
+ },
36
+ "./utils": {
37
+ "types": "./dist/utils/index.d.ts",
38
+ "import": "./dist/utils/index.js",
39
+ "default": "./dist/utils/index.js"
40
+ },
41
+ "./components/*": "./dist/components/*",
42
+ "./composables/*": "./dist/composables/*",
43
+ "./utils/*": "./dist/utils/*",
44
+ "./dist/*": "./dist/*",
19
45
  "./src/": "./src/"
20
46
  },
21
47
  "scripts": {
@@ -25,6 +51,7 @@
25
51
  },
26
52
  "dependencies": {
27
53
  "@iconify/vue": "^4.1.2",
54
+ "@vueuse/core": "^13.2.0",
28
55
  "gsap": "^3.12.5",
29
56
  "vue": "^3.5.13"
30
57
  },
@@ -100,4 +100,10 @@ defineProps({
100
100
  transform: var(--accordion-section-min-posion);
101
101
  }
102
102
  }
103
+
104
+ @media (prefers-reduced-motion: reduce) {
105
+ .d-animation-accordion > .d-animation-accordion__section {
106
+ animation-play-state: paused;
107
+ }
108
+ }
103
109
  </style>
@@ -55,4 +55,10 @@ defineProps({
55
55
  transform: translate(0, 0);
56
56
  }
57
57
  }
58
+
59
+ @media (prefers-reduced-motion: reduce) {
60
+ .d-animation-floating-letter {
61
+ animation-play-state: paused;
62
+ }
63
+ }
58
64
  </style>
@@ -99,4 +99,10 @@ defineProps({
99
99
  transform: var(--hypnosis-section-min-posion);
100
100
  }
101
101
  }
102
+
103
+ @media (prefers-reduced-motion: reduce) {
104
+ .d-animation-hypnosis > .d-animation-hypnosis__section {
105
+ animation-play-state: paused;
106
+ }
107
+ }
102
108
  </style>
@@ -111,4 +111,10 @@ defineProps({
111
111
  transform: rotate(-360deg);
112
112
  }
113
113
  }
114
+ @media (prefers-reduced-motion: reduce) {
115
+ .d-animation-spinner__blade,
116
+ .d-animation-spinner__spinner {
117
+ animation-play-state: paused;
118
+ }
119
+ }
114
120
  </style>
@@ -50,7 +50,7 @@ function onClick(event: MouseEvent) {
50
50
  }
51
51
 
52
52
  .big-bang-button:hover > span {
53
- @apply inline-block transition-all;
53
+ @apply inline-block transition-all motion-reduce:transition-none;
54
54
  }
55
55
 
56
56
  .big-bang-button:hover > span:nth-of-type(4n + 1) {
@@ -1,6 +1,7 @@
1
1
  <script lang="ts">
2
2
  import gsap from 'gsap'
3
3
  import { watch, computed } from 'vue'
4
+ import { usePreferredReducedMotion } from '@vueuse/core'
4
5
  import { useDBigBangButtonUtils } from '../../composables/big-bang-button-utils'
5
6
 
6
7
  export default {
@@ -9,6 +10,7 @@ export default {
9
10
  </script>
10
11
 
11
12
  <script setup lang="ts">
13
+ const preferredMotion = usePreferredReducedMotion()
12
14
  const paths = {
13
15
  first: 'M 0 0 C -489.471 -116.5 -526.692 -193.268 -563.913 -311.911',
14
16
  last: 'M 0 0 C 317.761 171.963 466.645 199.879 680.666 171.963',
@@ -38,6 +40,10 @@ function pathFromIndex(i: number) {
38
40
  }
39
41
 
40
42
  function onEnter(el: Element, done: () => void) {
43
+ if (preferredMotion.value === 'reduce') {
44
+ done()
45
+ return
46
+ }
41
47
  gsap.fromTo(
42
48
  el,
43
49
  {
@@ -56,6 +62,10 @@ function onEnter(el: Element, done: () => void) {
56
62
  }
57
63
 
58
64
  function onLeave(el: Element, done: () => void) {
65
+ if (preferredMotion.value === 'reduce') {
66
+ done()
67
+ return
68
+ }
59
69
  const index = +gsap.getProperty(el, 'i')
60
70
  gsap.to(el, {
61
71
  motionPath: {
@@ -180,6 +180,19 @@ const currentComponent = computed(() => {
180
180
  transform: skew(-40deg) rotate(-6deg) scaleX(0.8);
181
181
  }
182
182
  }
183
+
184
+ @media (prefers-reduced-motion: reduce) {
185
+ .d-focus-hl > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
186
+ transition: none;
187
+ }
188
+
189
+ .d-focus-hl:hover
190
+ > :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile),
191
+ .d-focusable:focus
192
+ :is(.d-focus-hl__hl--negative-tile, .d-focus-hl__hl--tile) {
193
+ animation-play-state: paused;
194
+ }
195
+ }
183
196
  </style>
184
197
 
185
198
  <!-- list-item -->
@@ -260,4 +273,16 @@ const currentComponent = computed(() => {
260
273
  clip-path: polygon(1em 10%, 0% 90%, 100% 50%);
261
274
  }
262
275
  }
276
+
277
+ @media (prefers-reduced-motion: reduce) {
278
+ .d-focus-hl
279
+ > :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
280
+ transition: none;
281
+ }
282
+
283
+ :is(.d-focus-hl:hover, .d-focusable:focus)
284
+ :is(.d-focus-hl__hl--list-item, .d-focus-hl__hl--negative-list-item) {
285
+ animation-play-state: paused;
286
+ }
287
+ }
263
288
  </style>
@@ -3,21 +3,32 @@ const defaultTheme = require('tailwindcss/defaultTheme')
3
3
  /** @type {import('tailwindcss').Config} */
4
4
  module.exports = {
5
5
  darkMode: 'class',
6
- content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
6
+ content: {
7
+ relative: true,
8
+ files: ['./src/**/*.{vue,js,ts,jsx,tsx}']
9
+ },
7
10
  theme: {
8
11
  fontFamily: {
9
12
  sans: ['Roboto', '"Noto Color Emoji"', ...defaultTheme.fontFamily.sans],
10
13
  serif: [
11
14
  '"Roboto Slab"',
12
15
  '"Noto Color Emoji"',
13
- ...defaultTheme.fontFamily.sans
16
+ ...defaultTheme.fontFamily.serif
14
17
  ],
15
18
  mono: [
16
19
  '"JetBrains Mono"',
17
20
  '"Noto Color Emoji"',
18
21
  ...defaultTheme.fontFamily.mono
19
22
  ],
20
- dialog: ['Arsenal', '"Noto Color Emoji"']
23
+ dialog: [
24
+ 'Arsenal',
25
+ '"Noto Color Emoji"',
26
+ '"Segoe UI"',
27
+ '"San Francisco"',
28
+ 'Roboto',
29
+ 'Arial',
30
+ 'sans-serif'
31
+ ]
21
32
  },
22
33
  extend: {
23
34
  screens: {
package/vite.config.ts CHANGED
@@ -1,33 +1,97 @@
1
+ import fs from 'node:fs'
1
2
  import { resolve } from 'path'
2
- import { defineConfig, splitVendorChunkPlugin } from 'vite'
3
+ import { defineConfig, type Plugin } from 'vite'
3
4
  import dts from 'vite-plugin-dts'
4
5
  import vue from '@vitejs/plugin-vue'
6
+ import postcss from 'postcss'
7
+ import tailwindcss from 'tailwindcss'
8
+ import autoprefixer from 'autoprefixer'
9
+
10
+ function compilePureCssPlugin(): Plugin {
11
+ return {
12
+ name: 'compile-pure-css',
13
+ apply: 'build',
14
+ async closeBundle() {
15
+ const distDir = resolve(__dirname, 'dist')
16
+ const tailwindCssPath = resolve(distDir, 'style.tailwind.css')
17
+ const fallbackCssPath = resolve(distDir, 'style.css')
18
+ const pureCssPath = resolve(distDir, 'style.pure.css')
19
+
20
+ if (!fs.existsSync(tailwindCssPath)) {
21
+ return
22
+ }
23
+
24
+ // Fallback: copy tailwind-based CSS as style.css
25
+ fs.copyFileSync(tailwindCssPath, fallbackCssPath)
26
+
27
+ // Compile pure CSS with resolved Tailwind utilities and @apply rules
28
+ const srcStylePath = resolve(__dirname, 'src/style.css')
29
+ const baseCss = fs.existsSync(srcStylePath)
30
+ ? fs.readFileSync(srcStylePath, 'utf-8')
31
+ : '@tailwind base;\n@tailwind components;\n@tailwind utilities;'
32
+ const tailwindCss = fs.readFileSync(tailwindCssPath, 'utf-8')
33
+
34
+ const combinedCss = `${baseCss}\n\n${tailwindCss}`
35
+
36
+ const tailwindConfigPath = resolve(__dirname, 'tailwind.config.js')
37
+ const result = await postcss([
38
+ tailwindcss({ config: tailwindConfigPath }),
39
+ autoprefixer()
40
+ ]).process(combinedCss, {
41
+ from: undefined,
42
+ to: pureCssPath
43
+ })
44
+
45
+ fs.writeFileSync(pureCssPath, result.css)
46
+ }
47
+ }
48
+ }
5
49
 
6
50
  // https://vitejs.dev/config/
7
51
  export default defineConfig({
52
+ css: {
53
+ postcss: {
54
+ plugins: []
55
+ }
56
+ },
8
57
  plugins: [
9
58
  vue(),
10
- splitVendorChunkPlugin(),
11
59
  dts({
12
60
  insertTypesEntry: true
13
- })
61
+ }),
62
+ compilePureCssPlugin()
14
63
  ],
15
64
  build: {
16
65
  lib: {
17
- // src/indext.ts is where we have exported the component(s)
18
- entry: resolve(__dirname, 'src'),
66
+ entry: {
67
+ index: resolve(__dirname, 'src/index.ts'),
68
+ 'components/index': resolve(__dirname, 'src/components/index.ts'),
69
+ 'composables/index': resolve(__dirname, 'src/composables/index.ts'),
70
+ 'utils/index': resolve(__dirname, 'src/utils/index.ts')
71
+ },
19
72
  name: 'EspritDesign',
20
- fileName: 'esprit-design'
73
+ formats: ['es'],
74
+ cssFileName: 'style.tailwind'
21
75
  },
76
+ minify: false,
22
77
  rollupOptions: {
23
78
  // make sure to externalize deps that shouldn't be bundled
24
79
  // into your library
25
- external: ['vue', 'gsap'],
80
+ external: [
81
+ 'vue',
82
+ 'gsap',
83
+ /^@vueuse\//,
84
+ '@vueuse/core',
85
+ /^@iconify\//,
86
+ '@iconify/vue'
87
+ ],
26
88
  output: {
27
- // Provide global variables to use in the UMD build
28
- // for externalized deps
89
+ preserveModules: true,
90
+ preserveModulesRoot: 'src',
91
+ entryFileNames: '[name].js',
29
92
  globals: {
30
- vue: 'Vue'
93
+ vue: 'Vue',
94
+ gsap: 'gsap'
31
95
  }
32
96
  }
33
97
  }
@@ -1 +0,0 @@
1
- .d-chip{display:inline-block;clip-path:polygon(0 0,100% .2em,calc(100% - .3em) 100%,.2em calc(100% - .3em));padding:.4em}@media print{.d-chip{clip-path:none;padding:0;background:unset!important}}.d-shape,.d-shape>*{@apply relative;}.d-shape__bg-filter{@apply absolute top-0 left-0 w-full h-full;}.d-shape__bg-wrapper{@apply relative w-full h-full;}.d-shape__bg{@apply absolute w-full h-full;}:root{--shape-bubble--right: polygon( 0 calc(100% - 20px) , 20px calc(100% - 10px) , 25px calc(100% - 15px) , 45px calc(100% - 5px) , 70px calc(100% - 10px) , 100% 100%, calc(100% - 40px) 0, 45px 30px, 40px calc(100% - 30px) , 20px calc(100% - 45px) , 18px calc(100% - 25px) );--shape-bubble--right__outline: polygon( 0 calc(100% - 20px) , 5px calc(100% - 20px) , 20px calc(100% - 10px) , 25px calc(100% - 15px) , 45px calc(100% - 5px) , 70px calc(100% - 10px) , calc(100% - 20px) calc(100% - 10px) , calc(100% - 50px) 7px, 45px 30px, 40px calc(100% - 30px) , 20px calc(100% - 45px) , 18px calc(100% - 25px) , 5px calc(100% - 20px) , 0 calc(100% - 20px) , 16px calc(100% - 28px) , 17px calc(100% - 53px) , 39px calc(100% - 40px) , 38px 23px, calc(100% - 40px) 0, 100% 100%, 70px calc(100% - 7px) , 45px 100%, 25px calc(100% - 11px) , 19px calc(100% - 7px) , 0 calc(100% - 20px) );--shape-bubble--right__padding: 35px 45px 15px 50px}:root{--shape-bubble--left: polygon( 100% calc(100% - 20px) , calc(100% - 20px) calc(100% - 10px) , calc(100% - 25px) calc(100% - 15px) , calc(100% - 45px) calc(100% - 5px) , calc(100% - 70px) calc(100% - 10px) , 0 100%, 40px 0, calc(100% - 45px) 30px, calc(100% - 40px) calc(100% - 30px) , calc(100% - 20px) calc(100% - 45px) , calc(100% - 18px) calc(100% - 25px) );--shape-bubble--left__outline: polygon( 100% calc(100% - 20px) , calc(100% - 5px) calc(100% - 20px) , calc(100% - 20px) calc(100% - 10px) , calc(100% - 25px) calc(100% - 15px) , calc(100% - 45px) calc(100% - 5px) , calc(100% - 70px) calc(100% - 10px) , 20px calc(100% - 10px) , 50px 7px, calc(100% - 45px) 30px, calc(100% - 40px) calc(100% - 30px) , calc(100% - 20px) calc(100% - 45px) , calc(100% - 18px) calc(100% - 25px) , calc(100% - 5px) calc(100% - 20px) , 100% calc(100% - 20px) , calc(100% - 16px) calc(100% - 28px) , calc(100% - 17px) calc(100% - 53px) , calc(100% - 39px) calc(100% - 40px) , calc(100% - 38px) 23px, 40px 0, 0 100%, calc(100% - 70px) calc(100% - 7px) , calc(100% - 45px) 100%, calc(100% - 25px) calc(100% - 11px) , calc(100% - 19px) calc(100% - 7px) , 100% calc(100% - 20px) );--shape-bubble--left__padding: 35px 50px 15px 45px}:root{--shape-card: polygon(2em 0, 0% 100%, 100% calc(100% - 5em) , 100% 4em);--shape-card-padding: 4.5em .5em 5.5em 2.5em}:root{--shape-card--dense: polygon( .5em 0, 0% 100%, 100% calc(100% - 2em) , 100% 1.5em );--shape-card--dense__outline: polygon( .5em 0, .8em .3em, .4em calc(100% - .7em) , calc(100% - .3em) calc(100% - 2em) , calc(100% - .4em) 1.5em, .8em .3em, .5em 0, 100% 1em, 100% calc(100% - 1.8em) , 0% 100% );--shape-card--dense__padding: 2em .5em 2.5em 1em}.d-focus-hl{@apply relative isolate;}.d-focus-hl--default-color{@apply bg-red-600;}.d-focus-hl:has(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){@apply w-fit;}.d-focus-hl>:is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){width:0%;height:0%;top:50%;left:50%;content:"";opacity:0;pointer-events:none;@apply absolute transition-all;}.d-focus-hl>.d-focus-hl__hl--negative-tile{@apply backdrop-invert;}.d-focus-hl>.d-focus-hl__hl--tile{@apply -z-10;}.d-focus-hl:hover>:is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile),.d-focusable:focus :is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){opacity:1;animation:hl--negative-tile-animation linear 1s infinite}.d-focus-hl:hover>:is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){width:110%;height:130%;top:-15%;left:-5%}.d-focusable:focus :is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){width:140%!important;height:200%!important;top:-50%!important;left:-20%!important}:is(:is(.router-link-active .d-focus-hl--not-exact:not(.d-focus-hl--no-passive-link),.router-link-exact-active .d-focus-hl--exact:not(.d-focus-hl--no-passive-link)),.d-focus-hl--active) :is(.d-focus-hl__hl--negative-tile,.d-focus-hl__hl--tile){opacity:1;width:120%!important;height:120%!important;top:-10%!important;left:-10%!important}@keyframes hl--negative-tile-animation{0%,to{transform:skew(0) rotate(6deg)}50%{transform:skew(-40deg) rotate(-6deg) scaleX(.8)}}.d-focus-hl:has(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){@apply w-full;}.d-focus-hl>:is(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){width:0%;height:200%;top:-50%;left:0;content:"";margin-left:-1.2em;pointer-events:none;clip-path:polygon(1rem 0,0% 100%,90% 50%);@apply absolute transition-all;}.d-focus-hl>.d-focus-hl__hl--negative-list-item{@apply backdrop-invert;}.d-focus-hl>.d-focus-hl__hl--list-item{@apply -z-10;}:is(.d-focus-hl:hover,.d-focusable:focus) :is(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){opacity:1;animation:hl--list-item-animation .3s infinite}.d-focus-hl:hover>:is(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){width:200%;height:130%;top:-15%;left:-5%}.d-focusable:focus :is(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){width:220%!important;height:200%!important;top:-50%!important;left:-5%!important}:is(:is(.router-link-active .d-focus-hl--not-exact:not(.d-focus-hl--no-passive-link),.router-link-exact-active .d-focus-hl--exact:not(.d-focus-hl--no-passive-link)),.d-focus-hl--active) :is(.d-focus-hl__hl--list-item,.d-focus-hl__hl--negative-list-item){opacity:1;width:220%!important;height:130%!important;top:-15%!important;left:-5%!important}@keyframes hl--list-item-animation{0%,to{clip-path:polygon(1em 0,0% 100%,100% 50%)}50%{clip-path:polygon(1em 10%,0% 90%,100% 50%)}}.d-btn{@apply font-extrabold select-none relative inline-block cursor-pointer;}.d-btn--rotated{@apply -rotate-6;}.d-btn--uppercase{@apply uppercase;}.d-btn--capitalize{@apply capitalize;}.d-btn--lowercase{@apply lowercase;}.stats{@apply relative print:hidden;}.stats__bg{@apply dark:fill-neutral-800 fill-neutral-300;}.stats__bg-star--odd{@apply dark:fill-neutral-500 fill-neutral-400;}.stats__bg-star--even{@apply dark:fill-neutral-800 fill-neutral-600;}.stats__single-stat:hover{animation:single-stat-hover 1.5s ease-in-out infinite}.stats__star--light{@apply fill-yellow-400;}.stats__star--dark{@apply fill-yellow-600;}@keyframes single-stat-hover{0%{filter:brightness(1)}50%{filter:brightness(1.35)}to{filter:brightness(1)}}.stats__images{@apply absolute inset-0 pointer-events-none;}.stats__image{width:20%;height:20%;@apply absolute;}.stats__image:nth-child(1){top:2%;left:50%}.stats__image:nth-child(2){top:20%;right:6%}.stats__image:nth-child(3){bottom:8%;right:30%}.stats__image:nth-child(4){bottom:4%;left:10%}.stats__image:nth-child(5){top:30%;left:6%}.stats_titles-layer{@apply absolute inset-0 pointer-events-none;}.stats__group-title{font-size:150px;paint-order:stroke;text-anchor:start;dominant-baseline:text-bottom;font-weight:900;stroke-width:20;@apply fill-black font-sans stroke-yellow-500;}.stats__title{font-size:100px;paint-order:stroke;text-anchor:middle;dominant-baseline:text-top;font-weight:900;stroke-width:20;rotate:5deg;@apply fill-black font-sans stroke-yellow-500;}.stats__title__value{font-size:80px;stroke-width:20;stroke-linejoin:round}.stats__print-value{@apply hidden print:block;}.stats__print-value__group-title{@apply text-lg font-bold;}.stats__print-value__skill{@apply grid grid-cols-[1fr_auto] items-center gap-x-4 gap-y-1;}.stats__print-value--small{@apply hidden flex-wrap gap-2 items-center;}.stats__print-value--small__skill{@apply rounded text-white p-[.3em];}.stats__print-value--small__skill--hidden{@apply hidden;}.stats__print-value--small__skill--3{@apply bg-blue-500 text-xs;}.stats__print-value--small__skill--4{@apply bg-blue-600 text-sm;}.stats__print-value--small__skill--5{@apply bg-blue-700 text-base;}.small-print-stats .stats__print-value{@apply print:hidden;}.small-print-stats .stats__print-value--small{@apply print:flex;}.d-animation-accordion>.d-animation-accordion__section{--accordion-section-min-posion: translate( calc(var(--accordion-section-count) * 50px), 0 );--accordion-section-max-posion: translate( calc(var(--accordion-section-count) * 70px), 0 );transform:var(--accordion-section-min-posion);animation:d-animation-accordion-section-wiggle var(--d-accordion-wiggle-period) ease-in-out infinite alternate calc((var(--accordion-section-count) - 1) * var(--d-accordion-delay))}.d-animation-accordion>.d-animation-accordion__section:nth-child(odd){@apply fill-white;}.d-animation-accordion>.d-animation-accordion__section:nth-child(2){--accordion-section-count: 1}.d-animation-accordion>.d-animation-accordion__section:nth-child(3){--accordion-section-count: 2}.d-animation-accordion>.d-animation-accordion__section:nth-child(4){--accordion-section-count: 3}.d-animation-accordion>.d-animation-accordion__section:nth-child(5){--accordion-section-count: 4}.d-animation-accordion>.d-animation-accordion__section:nth-child(6){--accordion-section-count: 5}.d-animation-accordion>.d-animation-accordion__section:nth-child(7){--accordion-section-count: 6}@keyframes d-animation-accordion-section-wiggle{0%{transform:var(--accordion-section-min-posion)}50%{transform:var(--accordion-section-max-posion)}to{transform:var(--accordion-section-min-posion)}}.d-animation-floating-letter{animation:d-animation-floating-letter-float var(--d-floating-letter-float-period) ease-in-out infinite;transform-origin:315px 315px}@keyframes d-animation-floating-letter-float{0%{transform:translate(0)}50%{transform:translateY(40px)}to{transform:translate(0)}}.d-animation-hypnosis>.d-animation-hypnosis__section{--hypnosis-section-min-posion: scale( calc(var(--hypnosis-section-count) / 12) );--hypnosis-section-max-posion: translate( calc(var(--hypnosis-section-count) / 6) );transform:var(--hypnosis-section-min-posion);transform-origin:315px 315px;animation:d-animation-hypnosis-section-wiggle var(--d-hypnosis-wiggle-period) ease-in-out infinite alternate calc((var(--hypnosis-section-count) - 6) * -1 * var(--d-hypnosis-delay))}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(odd){@apply fill-white;}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(2){--hypnosis-section-count: 1}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(3){--hypnosis-section-count: 2}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(4){--hypnosis-section-count: 3}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(5){--hypnosis-section-count: 4}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(6){--hypnosis-section-count: 5}.d-animation-hypnosis>.d-animation-hypnosis__section:nth-child(7){--hypnosis-section-count: 6}@keyframes d-animation-hypnosis-section-wiggle{0%{transform:var(--hypnosis-section-min-posion)}50%{transform:var(--hypnosis-section-max-posion)}to{transform:var(--hypnosis-section-min-posion)}}.d-animation-spinner__foreground{@apply fill-white;}.d-animation-spinner__background{@apply fill-black;}.d-animation-spinner__blade{--transform-static: scale(.5) rotate(220deg);animation:d-spinner-blade-wiggle var(--d-spinner-blade-wiggle-period) ease-in-out infinite}@keyframes d-spinner-blade-wiggle{0%{transform:translateY(-150px) var(--transform-static)}50%{transform:translateY(-120px) var(--transform-static)}to{transform:translateY(-150px) var(--transform-static)}}.d-animation-spinner__spinner{animation:d-spinner-spin var(--d-spinner-spin-period) linear infinite}@keyframes d-spinner-spin{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}#big-bang-button-animation{overflow:hidden;pointer-events:none;@apply fixed w-full h-full top-0 left-0 text-center uppercase text-7xl md:text-9xl font-extrabold;}#big-bang-button-animation>.bbb__text-container{width:fit-content;margin-left:auto;margin-right:.5em;perspective:200px;transform-origin:right top;transform:rotateY(35deg) rotate(-12deg)}#big-bang-button-animation span{@apply inline-block mx-2;}#big-bang-button-animation span:nth-of-type(3n+1){@apply text-neutral-900 bg-neutral-50;}#big-bang-button-animation span:nth-of-type(4n+3){@apply bg-neutral-900 text-neutral-50;}.big-bang-button{@apply text-3xl font-bold uppercase cursor-pointer;}.big-bang-button:hover>span{@apply inline-block transition-all;}.big-bang-button:hover>span:nth-of-type(4n+1){@apply rotate-12 translate-x-1 -translate-y-2;}.big-bang-button:hover>span:nth-of-type(4n+2){@apply -rotate-6 translate-y-3;}.big-bang-button:hover>span:nth-of-type(4n+3){@apply -rotate-12 translate-x-1 -translate-y-2;}.big-bang-button:hover>span:nth-of-type(4n+4){@apply -rotate-6 translate-x-1 -translate-y-1;}.big-bang-button:hover>span:first{@apply rotate-12 -translate-x-2 -translate-y-2;}.card__content,.card__content--dense{@apply md:text-lg;}.card__content{padding:var(--shape-card-padding);@apply print:p-0;}.card__content--dense{padding:var(--shape-card--dense__padding);@apply print:p-0;}.card--homepage-story .card__content,.card--homepage-skills .card__content{@apply text-black;}.force-light :is(.card__bg,.card__bg--dense){@apply !bg-white dark:bg-white;}.card--homepage-story :is(.card__bg,.card__bg--dense){background:var(--d-card-x-ray--idle__color)}.card--homepage-skills :is(.card__bg,.card__bg--dense){background:var(--d-card-x-ray--action__color)}.card__bg,.card__bg--dense{@apply bg-white dark:bg-neutral-700 print:bg-none;}.card__bg{clip-path:var(--shape-card)}.card__bg--dense{clip-path:var(--shape-card--dense)}@media print{.card__bg{clip-path:none!important;background:none!important}}.card__title{@apply text-2xl md:text-3xl font-semibold -mt-5 mb-3 print:text-base print:ml-0 print:mb-0;}.card__title__content{@apply inline-block -ml-10 print:ml-0;}.card__title__content__text{@apply p-5 text-white dark:text-black print:p-0 print:text-inherit;}.card__title__content__shape{clip-path:polygon(.4em .4em,100% 0%,calc(100% - .4em) calc(100% - .4em),0% 100%);@apply bg-black dark:bg-white print:bg-transparent;}.force-light .card__title__content__text{@apply dark:text-white;}.force-light .card__title__content__shape{@apply dark:bg-black;}@media print{.card__title__content__shape{clip-path:none}}.d-alert{@apply font-dialog text-black dark:text-white mb-6 mt-12;}.d-alert__shape{@apply bg-white dark:bg-black opacity-80;clip-path:var(--shape-card--dense)}.d-alert__outline{@apply absolute inset-0 bg-black dark:bg-white;clip-path:var(--shape-card--dense__outline)}.d-alert--info .d-alert__outline{@apply bg-cyan-500;}.d-alert--question .d-alert__outline{@apply bg-yellow-500;}.d-alert--warning .d-alert__outline{@apply bg-red-500;}.d-alert__body{padding:var(--shape-card--dense__padding)}.d-alert__sign{@apply absolute w-[5em] -top-[1.5em] -left-[1.5em] pointer-events-none sharp-shadow ss-white ss-r-1;}.d-alert--info .d-alert__sign{@apply fill-cyan-500;}.d-alert--question .d-alert__sign{@apply fill-yellow-500;}.d-alert--warning .d-alert__sign{@apply fill-red-500;}.d-blockquote{@apply font-dialog text-black dark:text-white my-6;}.d-blockquote__outline{@apply absolute inset-0 bg-black dark:bg-white;}.d-blockquote__shape{@apply bg-white dark:bg-black opacity-80;}.d-blockquote--right .d-blockquote__body{padding:var(--shape-bubble--right__padding)}.d-blockquote--right .d-blockquote__outline{clip-path:var(--shape-bubble--right__outline)}.d-blockquote--right .d-blockquote__shape{clip-path:var(--shape-bubble--right)}.d-blockquote--left .d-blockquote__body{padding:var(--shape-bubble--left__padding)}.d-blockquote--left .d-blockquote__outline{clip-path:var(--shape-bubble--left__outline)}.d-blockquote--left .d-blockquote__shape{clip-path:var(--shape-bubble--left)}.d-actions-fan__list-item__shape{@apply dark:bg-neutral-900;}.d-actions-fan--right__list-item__shape{clip-path:polygon(calc(100% - 10px) 0,100% 100%,0 40%)}.d-actions-fan--left__list-item__shape{clip-path:polygon(10px 0,0 100%,100% 40%)}.d-actions-fan__list-item{@apply w-full transform -my-8;}.d-actions-fan--right__list-item{@apply origin-left;}.d-actions-fan--left__list-item{@apply origin-right;}.d-actions-fan__list-item__body{@apply px-3 py-2;}.d-actions-fan--right__list-item__body{@apply flex justify-end;}.actions-enter-active,.actions-leave-active{@apply transition-all;}.actions-enter-from{--tw-rotate: -90deg !important;@apply opacity-0;}.actions-leave-to{--tw-rotate: 90deg !important;@apply opacity-0;}.d-actions-list__shape{@apply dark:bg-neutral-900 dark:bg-opacity-80 backdrop-blur;clip-path:polygon(10px 0,0 100%,100% calc(100% - 10px),100% 13px)}.d-actions-list__body{@apply p-7;}.d-actions-list__header{@apply mb-4 font-serif text-lg;}.d-actions-list__list{@apply relative [&_button]:font-sans [&_button]:font-bold [&_button]:text-left font-sans font-bold;}.mbg__main-container{isolation:isolate}.mbg__relative-container{@apply relative w-full h-full;}.mbg__layer{top:0;right:0;bottom:0;left:0;@apply absolute;}.mbg__dots{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>');background-size:2rem}.mbg__content{@apply relative z-[1];}