@sharadox/sharadox-web-library 0.29.0 → 0.31.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 (129) hide show
  1. package/README.md +4 -2
  2. package/distribution/component/button/index.module.css +1 -1
  3. package/distribution/component/button/index.module.scss +2 -0
  4. package/distribution/component/capability/index.module.css +1 -1
  5. package/distribution/component/capability/index.module.scss +5 -0
  6. package/distribution/component/consent/index.module.css +1 -1
  7. package/distribution/component/consent/index.module.scss +2 -0
  8. package/distribution/component/contact/form/chip/index.module.css +1 -1
  9. package/distribution/component/contact/form/chip/index.module.scss +2 -0
  10. package/distribution/component/contact/form/index.d.ts +2 -1
  11. package/distribution/component/contact/form/index.d.ts.map +1 -1
  12. package/distribution/component/contact/form/index.js +3 -2
  13. package/distribution/component/contact/form/index.js.map +1 -1
  14. package/distribution/component/contact/form/index.module.css +1 -1
  15. package/distribution/component/contact/form/index.module.scss +30 -0
  16. package/distribution/component/contact/index.d.ts +1 -1
  17. package/distribution/component/contact/index.d.ts.map +1 -1
  18. package/distribution/component/contact/index.js +2 -2
  19. package/distribution/component/contact/index.js.map +1 -1
  20. package/distribution/component/contact/index.module.css +1 -1
  21. package/distribution/component/contact/index.module.scss +15 -5
  22. package/distribution/component/footer/index.d.ts +4 -3
  23. package/distribution/component/footer/index.d.ts.map +1 -1
  24. package/distribution/component/footer/index.js +5 -4
  25. package/distribution/component/footer/index.js.map +1 -1
  26. package/distribution/component/footer/index.module.css +1 -1
  27. package/distribution/component/footer/index.module.scss +54 -42
  28. package/distribution/component/hero/index.module.css +1 -1
  29. package/distribution/component/hero/index.module.scss +2 -0
  30. package/distribution/component/license/index.module.css +1 -1
  31. package/distribution/component/license/index.module.scss +7 -0
  32. package/distribution/component/navigation/index.module.css +1 -1
  33. package/distribution/component/navigation/index.module.scss +6 -0
  34. package/distribution/component/privacy-page/index.module.css +1 -1
  35. package/distribution/component/privacy-page/index.module.scss +7 -0
  36. package/distribution/component/process/index.module.css +1 -1
  37. package/distribution/component/process/index.module.scss +1 -0
  38. package/distribution/component/process/step/index.module.css +1 -1
  39. package/distribution/component/process/step/index.module.scss +1 -0
  40. package/distribution/component/section/index.module.css +1 -1
  41. package/distribution/component/section/index.module.scss +2 -0
  42. package/distribution/component/section-indicator/index.module.css +1 -1
  43. package/distribution/component/section-indicator/index.module.scss +2 -0
  44. package/distribution/component/service-card/index.module.css +1 -1
  45. package/distribution/component/service-card/index.module.scss +2 -0
  46. package/distribution/component/service-index/index.module.css +1 -1
  47. package/distribution/component/service-index/index.module.scss +3 -0
  48. package/distribution/component/service-object/android-application/index.module.css +1 -1
  49. package/distribution/component/service-object/android-application/index.module.scss +18 -17
  50. package/distribution/component/service-object/brand-awareness/index.module.css +1 -1
  51. package/distribution/component/service-object/brand-awareness/index.module.scss +7 -7
  52. package/distribution/component/service-object/branding/index.d.ts +3 -2
  53. package/distribution/component/service-object/branding/index.d.ts.map +1 -1
  54. package/distribution/component/service-object/branding/index.js +4 -3
  55. package/distribution/component/service-object/branding/index.js.map +1 -1
  56. package/distribution/component/service-object/branding/index.module.css +1 -1
  57. package/distribution/component/service-object/branding/index.module.scss +136 -80
  58. package/distribution/component/service-object/branding-design/index.d.ts +2 -2
  59. package/distribution/component/service-object/branding-design/index.d.ts.map +1 -1
  60. package/distribution/component/service-object/branding-design/index.js +34 -11
  61. package/distribution/component/service-object/branding-design/index.js.map +1 -1
  62. package/distribution/component/service-object/branding-design/index.module.css +1 -1
  63. package/distribution/component/service-object/branding-design/index.module.scss +12 -12
  64. package/distribution/component/service-object/cuboid/index.module.css +1 -1
  65. package/distribution/component/service-object/cuboid/index.module.scss +3 -3
  66. package/distribution/component/service-object/e-commerce/index.module.css +1 -1
  67. package/distribution/component/service-object/e-commerce/index.module.scss +3 -7
  68. package/distribution/component/service-object/hosting/index.d.ts +1 -1
  69. package/distribution/component/service-object/hosting/index.d.ts.map +1 -1
  70. package/distribution/component/service-object/hosting/index.js +2 -2
  71. package/distribution/component/service-object/hosting/index.js.map +1 -1
  72. package/distribution/component/service-object/hosting/index.module.css +1 -1
  73. package/distribution/component/service-object/hosting/index.module.scss +5 -46
  74. package/distribution/component/service-object/ios-application/index.module.css +1 -1
  75. package/distribution/component/service-object/ios-application/index.module.scss +11 -10
  76. package/distribution/component/service-object/lead-generation/index.module.css +1 -1
  77. package/distribution/component/service-object/lead-generation/index.module.scss +5 -5
  78. package/distribution/component/service-object/mark/index.module.scss +2 -1
  79. package/distribution/component/service-object/merchandise/index.module.css +1 -1
  80. package/distribution/component/service-object/merchandise/index.module.scss +9 -9
  81. package/distribution/component/service-object/person/index.module.css +1 -1
  82. package/distribution/component/service-object/person/index.module.scss +2 -1
  83. package/distribution/component/service-object/platform/index.module.css +1 -1
  84. package/distribution/component/service-object/platform/index.module.scss +15 -14
  85. package/distribution/component/service-object/print-design/index.d.ts +1 -1
  86. package/distribution/component/service-object/print-design/index.js +1 -1
  87. package/distribution/component/service-object/print-design/index.module.css +1 -1
  88. package/distribution/component/service-object/print-design/index.module.scss +13 -9
  89. package/distribution/component/service-object/product-launch/index.d.ts +4 -4
  90. package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
  91. package/distribution/component/service-object/product-launch/index.js +33 -7
  92. package/distribution/component/service-object/product-launch/index.js.map +1 -1
  93. package/distribution/component/service-object/product-launch/index.module.css +1 -1
  94. package/distribution/component/service-object/product-launch/index.module.scss +184 -159
  95. package/distribution/component/service-object/professional-email/index.module.css +1 -1
  96. package/distribution/component/service-object/professional-email/index.module.scss +12 -11
  97. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
  98. package/distribution/component/service-object/progressive-web-application/index.module.scss +10 -9
  99. package/distribution/component/service-object/rebranding/index.d.ts +3 -2
  100. package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
  101. package/distribution/component/service-object/rebranding/index.js +6 -3
  102. package/distribution/component/service-object/rebranding/index.js.map +1 -1
  103. package/distribution/component/service-object/rebranding/index.module.css +1 -1
  104. package/distribution/component/service-object/rebranding/index.module.scss +131 -82
  105. package/distribution/component/service-object/sales-generation/index.module.css +1 -1
  106. package/distribution/component/service-object/sales-generation/index.module.scss +5 -8
  107. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
  108. package/distribution/component/service-object/social-media-strategy/index.module.scss +20 -13
  109. package/distribution/component/service-object/website/index.module.css +1 -1
  110. package/distribution/component/service-object/website/index.module.scss +12 -8
  111. package/distribution/component/services/index.module.css +1 -1
  112. package/distribution/component/services/index.module.scss +1 -0
  113. package/distribution/component/structured-data/index.js +1 -1
  114. package/distribution/component/structured-data/index.js.map +1 -1
  115. package/distribution/component/touchpoint/index.js +1 -1
  116. package/distribution/component/touchpoint/index.js.map +1 -1
  117. package/distribution/component/touchpoint/index.module.css +1 -1
  118. package/distribution/component/touchpoint/index.module.scss +1 -0
  119. package/distribution/component/touchpoint/plate/index.module.css +1 -1
  120. package/distribution/component/touchpoint/plate/index.module.scss +6 -0
  121. package/distribution/content/contact/index.d.ts +4 -4
  122. package/distribution/content/services/index.d.ts +14 -14
  123. package/distribution/content/services/index.js +9 -9
  124. package/distribution/content/services/index.js.map +1 -1
  125. package/distribution/content/site/index.js +4 -4
  126. package/distribution/content/site/index.js.map +1 -1
  127. package/distribution/style/object/index.scss +30 -4
  128. package/llms.txt +2 -0
  129. package/package.json +3 -3
@@ -2,10 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Mark } from "@sharadox/sharadox-web-library/component/service-object/mark";
3
3
  import styles from "./index.module.css";
4
4
  /**
5
- * Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
6
- * and its type), and once they are all in place the brand's mark rises from the middle.
5
+ * Branding: defining who the brand is, drawn as its identity card being filled in. Its mark appears, its name is
6
+ * written, then who it speaks to, its voice, its colors and its type; once the card is complete it lifts, and the
7
+ * round starts again with a blank card.
7
8
  */
8
9
  export function Branding() {
9
- return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.board, children: [_jsx("span", { className: styles.piece, style: { animationDelay: "0s" }, children: _jsx("i", { className: styles.audience }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "0.5s" }, children: _jsx("i", { className: styles.voice }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1s" }, children: _jsx("i", { className: styles.colors }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1.5s" }, children: _jsx("i", { className: styles.type, children: "Aa" }) })] }), _jsx(Mark, { className: styles.mark })] }));
10
+ return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.card, children: [_jsx("span", { className: styles.portrait, "data-step": "0", children: _jsx(Mark, { className: styles.mark }) }), _jsx("span", { className: styles.name, "data-step": "1" }), _jsx("span", { className: styles.tagline, "data-step": "1" }), _jsxs("span", { className: styles.row, "data-step": "2", children: [_jsx("i", { className: styles.audience }), _jsx("b", {})] }), _jsxs("span", { className: styles.row, "data-step": "3", children: [_jsx("i", { className: styles.voice }), _jsx("b", {})] }), _jsx("span", { className: styles.row, "data-step": "4", children: _jsx("i", { className: styles.colors }) }), _jsx("span", { className: styles.row, "data-step": "5", children: _jsx("i", { className: styles.type, children: "Aa" }) })] }) }));
10
11
  }
11
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,8DAA8D,CAAC;AACpF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,GA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MAAM,CAAC,GAAG,eAAY,GAAG,aACxC,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC9B,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,eAAY,GAAG,YACxC,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC1B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,eAAY,GAAG,YACxC,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,mBAAQ,GAC5B,IACH,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(38deg) rotateZ(-14deg)}@keyframes branding-sway{0%,100%{transform:rotateX(38deg) rotateZ(-14deg)}50%{transform:rotateX(30deg) rotateZ(-4deg)}}.board{position:absolute;left:50%;top:50%;width:176px;height:136px;margin:-68px 0 0 -88px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 36%, transparent);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-radius:8px}.piece{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 48%, transparent);display:grid;place-items:center;border-radius:5px;transform-style:preserve-3d;animation:branding-place 8s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.piece{animation:none}}@keyframes branding-place{0%{opacity:0;transform:translateZ(70px)}10%,78%{opacity:1;transform:translateZ(0)}90%,100%{opacity:0;transform:translateZ(40px)}}.audience{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle, var(--foreground) 0 3px, transparent 4px 7px, color-mix(in srgb, var(--foreground) 60%, transparent) 8px 9px, transparent 10px 13px, color-mix(in srgb, var(--foreground) 40%, transparent) 14px)}.voice{position:relative;width:36px;height:22px;border-radius:6px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--foreground) 40%, transparent) 5px 7px) 6px 2px/22px 14px no-repeat}.voice::after{content:"";position:absolute;left:6px;bottom:-6px;width:8px;height:8px;border-right:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-bottom:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:var(--background);transform:skewX(30deg) rotate(45deg) scale(0.7)}.colors{display:block;width:44px;height:14px;background:radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 55%, transparent) 6px, transparent 7px) 15px 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 25%, transparent) 6px, transparent 7px) 30px 0/15px 14px;background-repeat:no-repeat}.type{font-family:var(--font-display, inherit);font-size:22px;font-style:normal;font-weight:600;color:var(--foreground)}.mark{--size: 36px;animation:branding-mark 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.mark{animation:none}}.mark{box-shadow:0 0 28px -4px color-mix(in srgb, var(--foreground) 40%, transparent);transform:translateZ(46px)}@keyframes branding-mark{0%,34%{opacity:0;transform:translateZ(0) scale(0.4)}44%,78%{opacity:1;transform:translateZ(46px) scale(1)}90%,100%{opacity:0;transform:translateZ(70px) scale(0.8)}}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(18deg) rotateY(-20deg)}@keyframes branding-sway{0%,100%{transform:rotateX(18deg) rotateY(-22deg)}50%{transform:rotateX(10deg) rotateY(-6deg)}}.card{align-items:stretch;align-content:stretch;position:absolute;left:50%;top:50%;width:196px;height:124px;margin:-62px 0 0 -98px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);animation:branding-card 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card{animation:none}}.card{display:grid;grid-template-columns:52px 1fr 1fr;grid-template-rows:14px 8px 1fr 1fr;gap:8px 10px;padding:14px;border-radius:10px;box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}@keyframes branding-card{0%,70%{transform:translateZ(0)}76%,92%{transform:translateZ(26px)}100%{transform:translateZ(0)}}.card [data-step="0"]{animation:branding-step-0 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="0"]{animation:none}}@keyframes branding-step-0{0%,4%{opacity:0;transform:scale(0.6)}10%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.card [data-step="1"]{animation:branding-step-1 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="1"]{animation:none}}@keyframes branding-step-1{0%,14%{opacity:0;transform:scale(0.6)}20%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.card [data-step="2"]{animation:branding-step-2 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="2"]{animation:none}}@keyframes branding-step-2{0%,24%{opacity:0;transform:scale(0.6)}30%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.card [data-step="3"]{animation:branding-step-3 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="3"]{animation:none}}@keyframes branding-step-3{0%,34%{opacity:0;transform:scale(0.6)}40%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.card [data-step="4"]{animation:branding-step-4 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="4"]{animation:none}}@keyframes branding-step-4{0%,44%{opacity:0;transform:scale(0.6)}50%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.card [data-step="5"]{animation:branding-step-5 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card [data-step="5"]{animation:none}}@keyframes branding-step-5{0%,54%{opacity:0;transform:scale(0.6)}60%,92%{opacity:1;transform:scale(1)}98%,100%{opacity:0;transform:scale(1)}}.portrait{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 16%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);position:relative;grid-row:1/5;border-radius:6px}.mark{--size: 34px}.name,.tagline{grid-column:2/4;border-radius:3px;transform-origin:left}.name{width:80%;background:var(--foreground)}.tagline{width:56%;background:color-mix(in srgb, var(--foreground) 45%, transparent)}.card .name[data-step],.card .tagline[data-step]{animation:branding-write 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.card .name[data-step],.card .tagline[data-step]{animation:none}}@keyframes branding-write{0%,14%{transform:scaleX(0)}22%,92%{transform:scaleX(1)}98%,100%{transform:scaleX(0)}}.row{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 16%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);display:flex;align-items:center;justify-content:center;gap:6px;padding:0 7px;border-radius:5px}.row b{flex:1;height:3px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.audience{flex:none;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle, var(--foreground) 0 2px, transparent 2.5px 4.5px, color-mix(in srgb, var(--foreground) 70%, transparent) 5px 6px, transparent 6.5px 8px, color-mix(in srgb, var(--foreground) 45%, transparent) 8.5px)}.voice{position:relative;flex:none;width:20px;height:13px;border-radius:4px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent)}.voice::after{content:"";position:absolute;left:3px;bottom:-5px;border:3px solid rgba(0,0,0,0);border-top-color:color-mix(in srgb, var(--foreground) 70%, transparent);border-left-color:color-mix(in srgb, var(--foreground) 70%, transparent)}.colors{display:block;width:40px;height:12px;background:radial-gradient(circle, var(--foreground) 5px, transparent 5.5px) 0 0/13px 12px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 45%, transparent) 5px, transparent 5.5px) 13px 0/13px 12px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 20%, transparent) 5px, transparent 5.5px) 26px 0/13px 12px;background-repeat:no-repeat}.type{font-family:var(--font-display, inherit);font-size:15px;font-style:normal;font-weight:600;line-height:1;color:var(--foreground)}
@@ -1,130 +1,186 @@
1
1
  @use "style/token" as *;
2
2
  @use "style/object" as *;
3
3
 
4
+ /* One round: the fields fill in one after another, the finished card lifts and holds, then clears for the next. */
5
+ $round: 8s;
6
+ /* The fields, in order: the mark, the name, who it speaks to, the voice, the colors and the type. */
7
+ $steps: 6;
8
+
4
9
  .object {
5
10
  @include centered(0px, 0px);
6
11
  @include loop(branding-sway 10s ease-in-out infinite);
7
- transform: rotateX(38deg) rotateZ(-14deg);
12
+ transform: rotateX(18deg) rotateY(-20deg);
8
13
  }
9
14
  @keyframes branding-sway {
10
15
  0%,
11
16
  100% {
12
- transform: rotateX(38deg) rotateZ(-14deg);
17
+ transform: rotateX(18deg) rotateY(-22deg);
13
18
  }
14
19
  50% {
15
- transform: rotateX(30deg) rotateZ(-4deg);
20
+ transform: rotateX(10deg) rotateY(-6deg);
16
21
  }
17
22
  }
18
- /* The board the brand is defined on: four places, two by two. */
19
- .board {
20
- @include centered(176px, 136px);
21
- @include face(4%, 36%);
22
- display: grid;
23
- grid-template-columns: 1fr 1fr;
24
- gap: 10px;
25
- padding: 10px;
26
- border-radius: 8px;
27
- }
28
- /* Each piece drops onto its place, stays while the mark shows, then lifts away for the next round. */
29
- .piece {
30
- @include face(9%, 48%);
23
+ /* The identity card: the portrait on the left, the name and the rows on the right. */
24
+ .card {
25
+ align-items: stretch;
26
+ align-content: stretch;
27
+ @include centered(196px, 124px);
28
+ @include face;
29
+ @include loop(branding-card $round $ease infinite);
31
30
  display: grid;
32
- place-items: center;
33
- border-radius: 5px;
34
- transform-style: preserve-3d;
35
- @include loop(branding-place 8s $ease infinite backwards);
31
+ grid-template-columns: 52px 1fr 1fr;
32
+ grid-template-rows: 14px 8px 1fr 1fr;
33
+ gap: 8px 10px;
34
+ padding: 14px;
35
+ border-radius: 10px;
36
+ box-shadow: 0 24px 50px -26px tint($glow);
36
37
  }
37
- @keyframes branding-place {
38
- 0% {
39
- opacity: 0;
40
- transform: translateZ(70px);
38
+ @keyframes branding-card {
39
+ 0%,
40
+ 70% {
41
+ transform: translateZ(0);
41
42
  }
42
- 10%,
43
- 78% {
44
- opacity: 1;
43
+ 76%,
44
+ 92% {
45
+ transform: translateZ(26px);
46
+ }
47
+ 100% {
45
48
  transform: translateZ(0);
46
49
  }
47
- 90%,
50
+ }
51
+ /* Each field fills in at its step, and they all clear together at the end of the round. */
52
+ @for $step from 0 through $steps - 1 {
53
+ $start: 4% + $step * 10%;
54
+ .card [data-step="#{$step}"] {
55
+ @include loop(branding-step-#{$step} $round $ease infinite);
56
+ }
57
+ @keyframes branding-step-#{$step} {
58
+ 0%,
59
+ #{$start} {
60
+ opacity: 0;
61
+ transform: scale(0.6);
62
+ }
63
+ #{$start + 6%},
64
+ 92% {
65
+ opacity: 1;
66
+ transform: scale(1);
67
+ }
68
+ 98%,
69
+ 100% {
70
+ opacity: 0;
71
+ transform: scale(1);
72
+ }
73
+ }
74
+ }
75
+ /* The portrait: the brand's mark. */
76
+ .portrait {
77
+ @include face($raised);
78
+ position: relative;
79
+ grid-row: 1 / 5;
80
+ border-radius: 6px;
81
+ }
82
+ .mark {
83
+ --size: 34px;
84
+ }
85
+ /* The name, written left to right, and a tagline under it. */
86
+ .name,
87
+ .tagline {
88
+ grid-column: 2 / 4;
89
+ border-radius: 3px;
90
+ transform-origin: left;
91
+ }
92
+ .name {
93
+ width: 80%;
94
+ background: var(--foreground);
95
+ }
96
+ .tagline {
97
+ width: 56%;
98
+ background: tint($detail);
99
+ }
100
+ .card .name[data-step],
101
+ .card .tagline[data-step] {
102
+ @include loop(branding-write $round $ease infinite);
103
+ }
104
+ @keyframes branding-write {
105
+ 0%,
106
+ 14% {
107
+ transform: scaleX(0);
108
+ }
109
+ 22%,
110
+ 92% {
111
+ transform: scaleX(1);
112
+ }
113
+ 98%,
48
114
  100% {
49
- opacity: 0;
50
- transform: translateZ(40px);
115
+ transform: scaleX(0);
116
+ }
117
+ }
118
+ /* A row: an icon and, for some, a short note. */
119
+ .row {
120
+ @include face($raised);
121
+ display: flex;
122
+ align-items: center;
123
+ justify-content: center;
124
+ gap: 6px;
125
+ padding: 0 7px;
126
+ border-radius: 5px;
127
+ b {
128
+ flex: 1;
129
+ height: 3px;
130
+ border-radius: 2px;
131
+ background: tint($faint);
51
132
  }
52
133
  }
53
134
  /* Who it speaks to: a target. */
54
135
  .audience {
55
- width: 30px;
56
- height: 30px;
136
+ flex: none;
137
+ width: 18px;
138
+ height: 18px;
57
139
  border-radius: 50%;
58
140
  background: radial-gradient(
59
141
  circle,
60
- var(--foreground) 0 3px,
61
- transparent 4px 7px,
62
- tint(60%) 8px 9px,
63
- transparent 10px 13px,
64
- tint(40%) 14px
142
+ var(--foreground) 0 2px,
143
+ transparent 2.5px 4.5px,
144
+ tint($strong) 5px 6px,
145
+ transparent 6.5px 8px,
146
+ tint($detail) 8.5px
65
147
  );
66
148
  }
67
149
  /* Its voice: a speech bubble. */
68
150
  .voice {
69
151
  position: relative;
70
- width: 36px;
71
- height: 22px;
72
- border-radius: 6px;
73
- border: 1.5px solid tint(70%);
74
- background: repeating-linear-gradient(180deg, transparent 0 5px, tint(40%) 5px 7px) 6px 2px / 22px 14px no-repeat;
152
+ flex: none;
153
+ width: 20px;
154
+ height: 13px;
155
+ border-radius: 4px;
156
+ border: 1.5px solid tint($strong);
75
157
  &::after {
76
158
  content: "";
77
159
  position: absolute;
78
- left: 6px;
79
- bottom: -6px;
80
- width: 8px;
81
- height: 8px;
82
- border-right: 1.5px solid tint(70%);
83
- border-bottom: 1.5px solid tint(70%);
84
- background: var(--background);
85
- transform: skewX(30deg) rotate(45deg) scale(0.7);
160
+ left: 3px;
161
+ bottom: -5px;
162
+ border: 3px solid transparent;
163
+ border-top-color: tint($strong);
164
+ border-left-color: tint($strong);
86
165
  }
87
166
  }
88
167
  /* Its colors: three swatches. */
89
168
  .colors {
90
169
  display: block;
91
- width: 44px;
92
- height: 14px;
170
+ width: 40px;
171
+ height: 12px;
93
172
  background:
94
- radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0 / 15px 14px,
95
- radial-gradient(circle, tint(55%) 6px, transparent 7px) 15px 0 / 15px 14px,
96
- radial-gradient(circle, tint(25%) 6px, transparent 7px) 30px 0 / 15px 14px;
173
+ radial-gradient(circle, var(--foreground) 5px, transparent 5.5px) 0 0 / 13px 12px,
174
+ radial-gradient(circle, tint($detail) 5px, transparent 5.5px) 13px 0 / 13px 12px,
175
+ radial-gradient(circle, tint($faint) 5px, transparent 5.5px) 26px 0 / 13px 12px;
97
176
  background-repeat: no-repeat;
98
177
  }
99
178
  /* Its type. */
100
179
  .type {
101
180
  font-family: var(--font-display, inherit);
102
- font-size: 22px;
181
+ font-size: 15px;
103
182
  font-style: normal;
104
183
  font-weight: 600;
184
+ line-height: 1;
105
185
  color: var(--foreground);
106
186
  }
107
- /* Once every piece is in place, the brand's mark rises over the middle of the board. */
108
- .mark {
109
- --size: 36px;
110
- @include loop(branding-mark 8s $ease infinite);
111
- box-shadow: 0 0 28px -4px tint(40%);
112
- transform: translateZ(46px);
113
- }
114
- @keyframes branding-mark {
115
- 0%,
116
- 34% {
117
- opacity: 0;
118
- transform: translateZ(0) scale(0.4);
119
- }
120
- 44%,
121
- 78% {
122
- opacity: 1;
123
- transform: translateZ(46px) scale(1);
124
- }
125
- 90%,
126
- 100% {
127
- opacity: 0;
128
- transform: translateZ(70px) scale(0.8);
129
- }
130
- }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
3
- * it, its handles following and the curve reshaping, as in a design tool.
2
+ * Branding design: designing the logo itself. On an artboard, a pointer grabs the top anchor of a round vector shape
3
+ * and drags it up, its handles following and closing in, and the shape becomes a drop, as in a design tool.
4
4
  */
5
5
  export declare function BrandingDesign(): import("react").JSX.Element;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,wBAAgB,cAAc,gCAS7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"AAmHA;;;GAGG;AACH,wBAAgB,cAAc,gCAS7B"}
@@ -5,35 +5,58 @@ const DURATION = "7s";
5
5
  /** When each pose is reached, as a share of the round; the moves between them ease in and out. */
6
6
  const KEY_TIMES = "0;0.18;0.42;0.56;0.8;1";
7
7
  const KEY_SPLINES = Array(5).fill("0.65 0 0.35 1").join(";");
8
- /** The middle anchor's place at each pose: where it starts, and where the pointer drags it. */
9
- const ANCHOR_X = [100, 100, 116, 116, 100, 100];
10
- const ANCHOR_Y = [86, 86, 40, 40, 86, 86];
11
- /** How far its two handles reach out on either side. */
12
- const HANDLE = 34;
8
+ /** The shape: a round blob of four anchors around this middle, this far out. */
9
+ const MIDDLE_X = 100;
10
+ const MIDDLE_Y = 80;
11
+ const RADIUS = 38;
12
+ /** The top anchor's place at each pose: where it starts, and where the pointer drags it (up, into a drop). */
13
+ const ANCHOR_X = [100, 100, 100, 100, 100, 100];
14
+ const ANCHOR_Y = [42, 42, 14, 14, 42, 42];
15
+ /** How far the top anchor's two handles reach out at each pose: shorter as it is pulled up, so the tip sharpens. */
16
+ const HANDLE = [21, 21, 6, 6, 21, 21];
17
+ /** How far the other anchors' handles reach (a circle's, for this radius). */
18
+ const ROUND = 21;
13
19
  const poses = (place) => ANCHOR_X.map((_, index) => place(index)).join(";");
14
20
  /** Animates one attribute through the poses, in step with everything else. */
15
21
  function Move({ attribute, values }) {
16
22
  return (_jsx("animate", { attributeName: attribute, values: values, dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" }));
17
23
  }
18
- /** The curve through the three anchors, with the middle one at pose `index`. */
19
- const curve = (index) => {
24
+ /** The closed shape, with its top anchor at pose `index`. */
25
+ const shape = (index) => {
20
26
  const x = ANCHOR_X[index];
21
27
  const y = ANCHOR_Y[index];
22
- return `M36 112 C52 70 ${x - HANDLE} ${y} ${x} ${y} S152 74 164 112`;
28
+ const reach = HANDLE[index];
29
+ const right = MIDDLE_X + RADIUS;
30
+ const left = MIDDLE_X - RADIUS;
31
+ const bottom = MIDDLE_Y + RADIUS;
32
+ return [
33
+ `M${x} ${y}`,
34
+ `C${x + reach} ${y} ${right} ${MIDDLE_Y - ROUND} ${right} ${MIDDLE_Y}`,
35
+ `C${right} ${MIDDLE_Y + ROUND} ${MIDDLE_X + ROUND} ${bottom} ${MIDDLE_X} ${bottom}`,
36
+ `C${MIDDLE_X - ROUND} ${bottom} ${left} ${MIDDLE_Y + ROUND} ${left} ${MIDDLE_Y}`,
37
+ `C${left} ${MIDDLE_Y - ROUND} ${x - reach} ${y} ${x} ${y}Z`,
38
+ ].join(" ");
23
39
  };
40
+ /** The other three anchors, which stay put: right, bottom and left. */
41
+ const STILL_ANCHORS = [
42
+ [MIDDLE_X + RADIUS, MIDDLE_Y],
43
+ [MIDDLE_X, MIDDLE_Y + RADIUS],
44
+ [MIDDLE_X - RADIUS, MIDDLE_Y],
45
+ ];
24
46
  /** The vector drawing, still (for visitors who ask for less motion) or moving. */
25
47
  function Drawing({ moving }) {
26
48
  const x = ANCHOR_X[0];
27
49
  const y = ANCHOR_Y[0];
28
- return (_jsxs("svg", { className: moving ? styles.moving : styles.still, viewBox: "0 0 200 150", children: [_jsx("path", { className: styles.curve, d: curve(0), children: moving && _jsx(Move, { attribute: "d", values: poses(curve) }) }), _jsxs("line", { className: styles.handle, x1: x - HANDLE, y1: y, x2: x + HANDLE, y2: y, children: [moving && _jsx(Move, { attribute: "x1", values: poses((index) => String(ANCHOR_X[index] - HANDLE)) }), moving && _jsx(Move, { attribute: "x2", values: poses((index) => String(ANCHOR_X[index] + HANDLE)) }), moving && _jsx(Move, { attribute: "y1", values: ANCHOR_Y.join(";") }), moving && _jsx(Move, { attribute: "y2", values: ANCHOR_Y.join(";") })] }), [-HANDLE, HANDLE].map((reach) => (_jsxs("circle", { className: styles.knob, cx: x + reach, cy: y, r: "3.5", children: [moving && _jsx(Move, { attribute: "cx", values: poses((index) => String(ANCHOR_X[index] + reach)) }), moving && _jsx(Move, { attribute: "cy", values: ANCHOR_Y.join(";") })] }, reach))), _jsx("rect", { className: styles.anchor, x: "32", y: "108", width: "8", height: "8" }), _jsx("rect", { className: styles.anchor, x: "160", y: "108", width: "8", height: "8" }), _jsxs("rect", { className: styles.selected, x: x - 5, y: y - 5, width: "10", height: "10", children: [moving && _jsx(Move, { attribute: "x", values: poses((index) => String(ANCHOR_X[index] - 5)) }), moving && _jsx(Move, { attribute: "y", values: poses((index) => String(ANCHOR_Y[index] - 5)) })] }), _jsx("path", { className: styles.pointer, d: "M0 0 L0 17 L4.5 13 L8 20.5 L11 19 L7.5 11.8 L13 11.5 Z", children: moving ? (_jsx("animateTransform", { attributeName: "transform", type: "translate", values: [
50
+ const reach = HANDLE[0];
51
+ return (_jsxs("svg", { className: moving ? styles.moving : styles.still, viewBox: "0 0 200 150", children: [_jsx("path", { className: styles.shape, d: shape(0), children: moving && _jsx(Move, { attribute: "d", values: poses(shape) }) }), STILL_ANCHORS.map(([ax, ay]) => (_jsx("rect", { className: styles.anchor, x: ax - 4, y: ay - 4, width: "8", height: "8" }, `${ax} ${ay}`))), _jsxs("line", { className: styles.handle, x1: x - reach, y1: y, x2: x + reach, y2: y, children: [moving && _jsx(Move, { attribute: "x1", values: poses((index) => String(ANCHOR_X[index] - HANDLE[index])) }), moving && _jsx(Move, { attribute: "x2", values: poses((index) => String(ANCHOR_X[index] + HANDLE[index])) }), moving && _jsx(Move, { attribute: "y1", values: ANCHOR_Y.join(";") }), moving && _jsx(Move, { attribute: "y2", values: ANCHOR_Y.join(";") })] }), [-1, 1].map((side) => (_jsxs("circle", { className: styles.knob, cx: x + side * reach, cy: y, r: "3.5", children: [moving && (_jsx(Move, { attribute: "cx", values: poses((index) => String(ANCHOR_X[index] + side * HANDLE[index])) })), moving && _jsx(Move, { attribute: "cy", values: ANCHOR_Y.join(";") })] }, side))), _jsxs("rect", { className: styles.selected, x: x - 5, y: y - 5, width: "10", height: "10", children: [moving && _jsx(Move, { attribute: "x", values: poses((index) => String(ANCHOR_X[index] - 5)) }), moving && _jsx(Move, { attribute: "y", values: poses((index) => String(ANCHOR_Y[index] - 5)) })] }), _jsx("path", { className: styles.pointer, d: "M0 0 L0 17 L4.5 13 L8 20.5 L11 19 L7.5 11.8 L13 11.5 Z", children: moving ? (_jsx("animateTransform", { attributeName: "transform", type: "translate", values: [
29
52
  "176 146",
30
53
  ...ANCHOR_X.slice(1, -1).map((ax, index) => `${ax} ${ANCHOR_Y[index + 1]}`),
31
54
  "176 146",
32
55
  ].join(";"), dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" })) : null })] }));
33
56
  }
34
57
  /**
35
- * Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
36
- * it, its handles following and the curve reshaping, as in a design tool.
58
+ * Branding design: designing the logo itself. On an artboard, a pointer grabs the top anchor of a round vector shape
59
+ * and drags it up, its handles following and closing in, and the shape becomes a drop, as in a design tool.
37
60
  */
38
61
  export function BrandingDesign() {
39
62
  return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.artboard, children: [_jsx(Drawing, { moving: true }), _jsx(Drawing, { moving: false })] }) }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,iGAAiG;AACjG,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,kGAAkG;AAClG,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAC3C,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE7D,+FAA+F;AAC/F,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAChD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1C,wDAAwD;AACxD,MAAM,MAAM,GAAG,EAAE,CAAC;AAElB,MAAM,KAAK,GAAG,CAAC,KAAgC,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEvG,8EAA8E;AAC9E,SAAS,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAyC;IACxE,OAAO,CACL,kBACE,aAAa,EAAE,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,WAAW,EACvB,WAAW,EAAC,YAAY,GACxB,CACH,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,KAAK,GAAG,CAAC,KAA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KAAK,GAAI,IACtB,GACF,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,iGAAiG;AACjG,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,kGAAkG;AAClG,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAC3C,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE7D,gFAAgF;AAChF,MAAM,QAAQ,GAAG,GAAG,CAAC;AACrB,MAAM,QAAQ,GAAG,EAAE,CAAC;AACpB,MAAM,MAAM,GAAG,EAAE,CAAC;AAClB,8GAA8G;AAC9G,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AAChD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1C,oHAAoH;AACpH,MAAM,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACtC,8EAA8E;AAC9E,MAAM,KAAK,GAAG,EAAE,CAAC;AAEjB,MAAM,KAAK,GAAG,CAAC,KAAgC,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEvG,8EAA8E;AAC9E,SAAS,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAyC;IACxE,OAAO,CACL,kBACE,aAAa,EAAE,SAAS,EACxB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,GAAI,IACtB,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-design-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(14deg) rotateY(-16deg)}@keyframes branding-design-sway{0%,100%{transform:rotateX(14deg) rotateY(-18deg)}50%{transform:rotateX(8deg) rotateY(-4deg)}}.artboard{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);border-radius:8px;background:linear-gradient(color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,linear-gradient(90deg, color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,color-mix(in srgb, var(--foreground) 3%, transparent);box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.artboard svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.still{display:none}@media(prefers-reduced-motion: reduce){.moving{display:none}.still{display:block}}.curve{fill:none;stroke:var(--foreground);stroke-width:4;stroke-linecap:round}.handle{stroke:color-mix(in srgb, var(--foreground) 55%, transparent);stroke-width:1}.knob{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.anchor{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.selected{fill:var(--foreground);stroke:var(--background);stroke-width:1}.pointer{fill:var(--foreground);stroke:var(--background);stroke-width:1.2;stroke-linejoin:round}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-design-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(14deg) rotateY(-16deg)}@keyframes branding-design-sway{0%,100%{transform:rotateX(14deg) rotateY(-18deg)}50%{transform:rotateX(8deg) rotateY(-4deg)}}.artboard{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:8px;background:linear-gradient(color-mix(in srgb, var(--foreground) 10%, transparent) 1px, transparent 1px) 0 0/20px 20px,linear-gradient(90deg, color-mix(in srgb, var(--foreground) 10%, transparent) 1px, transparent 1px) 0 0/20px 20px,color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.artboard svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.still{display:none}@media(prefers-reduced-motion: reduce){.moving{display:none}.still{display:block}}.shape{fill:color-mix(in srgb, var(--foreground) 20%, transparent);stroke:var(--foreground);stroke-width:2;stroke-linejoin:round}.handle{stroke:color-mix(in srgb, var(--foreground) 50%, transparent);stroke-width:1}.knob{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.anchor{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.selected{fill:var(--foreground);stroke:var(--background);stroke-width:1}.pointer{fill:var(--foreground);stroke:var(--background);stroke-width:1.2;stroke-linejoin:round}
@@ -18,13 +18,13 @@
18
18
  /* The artboard: a sheet with a faint grid, the drawing on it. */
19
19
  .artboard {
20
20
  @include centered(200px, 150px);
21
- @include face(4%, 40%);
21
+ @include face;
22
22
  border-radius: 8px;
23
23
  background:
24
- linear-gradient(tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
25
- linear-gradient(90deg, tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
26
- tint(3%);
27
- box-shadow: 0 24px 50px -26px tint(35%);
24
+ linear-gradient(tint($hint) 1px, transparent 1px) 0 0 / 20px 20px,
25
+ linear-gradient(90deg, tint($hint) 1px, transparent 1px) 0 0 / 20px 20px,
26
+ tint($hint);
27
+ box-shadow: 0 24px 50px -26px tint($glow);
28
28
  svg {
29
29
  position: absolute;
30
30
  inset: 0;
@@ -45,24 +45,24 @@
45
45
  display: block;
46
46
  }
47
47
  }
48
- .curve {
49
- fill: none;
48
+ .shape {
49
+ fill: tint($faint);
50
50
  stroke: var(--foreground);
51
- stroke-width: 4;
52
- stroke-linecap: round;
51
+ stroke-width: 2;
52
+ stroke-linejoin: round;
53
53
  }
54
54
  .handle {
55
- stroke: tint(55%);
55
+ stroke: tint($edge);
56
56
  stroke-width: 1;
57
57
  }
58
58
  .knob {
59
59
  fill: var(--background);
60
- stroke: tint(70%);
60
+ stroke: tint($strong);
61
61
  stroke-width: 1.2;
62
62
  }
63
63
  .anchor {
64
64
  fill: var(--background);
65
- stroke: tint(70%);
65
+ stroke: tint($strong);
66
66
  stroke-width: 1.2;
67
67
  }
68
68
  .selected {
@@ -1 +1 @@
1
- .cuboid{--width: 40px;--height: 40px;--depth: 40px;position:absolute;left:50%;top:50%;width:var(--width);height:var(--height);margin:calc(var(--height)/-2) 0 0 calc(var(--width)/-2);transform-style:preserve-3d}.face{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) var(--fill-amount, 6%), transparent);border:1px solid color-mix(in srgb, var(--foreground) var(--edge-amount, 40%), transparent);position:absolute;transform-style:preserve-3d}.front,.back{inset:0;border-radius:var(--radius, 0)}.front{transform:translateZ(calc(var(--depth) / 2));background:color-mix(in srgb, var(--foreground) var(--front-amount, 8%), transparent)}.back{transform:rotateY(180deg) translateZ(calc(var(--depth) / 2))}.right,.left{top:0;left:50%;width:var(--depth);height:100%;margin-left:calc(var(--depth)/-2)}.right{transform:rotateY(90deg) translateZ(calc(var(--width) / 2))}.left{transform:rotateY(-90deg) translateZ(calc(var(--width) / 2))}.top,.bottom{left:0;top:50%;width:100%;height:var(--depth);margin-top:calc(var(--depth)/-2)}.top{transform:rotateX(90deg) translateZ(calc(var(--height) / 2));background:color-mix(in srgb, var(--foreground) var(--top-amount, 12%), transparent)}.bottom{transform:rotateX(-90deg) translateZ(calc(var(--height) / 2))}
1
+ .cuboid{--width: 40px;--height: 40px;--depth: 40px;position:absolute;left:50%;top:50%;width:var(--width);height:var(--height);margin:calc(var(--height)/-2) 0 0 calc(var(--width)/-2);transform-style:preserve-3d}.face{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) var(--fill-amount, 9%), var(--background));border:1px solid color-mix(in srgb, var(--foreground) var(--edge-amount, 50%), transparent);position:absolute;transform-style:preserve-3d}.front,.back{inset:0;border-radius:var(--radius, 0)}.front{transform:translateZ(calc(var(--depth) / 2));background:color-mix(in srgb, var(--foreground) var(--front-amount, 9%), var(--background))}.back{transform:rotateY(180deg) translateZ(calc(var(--depth) / 2))}.right,.left{top:0;left:50%;width:var(--depth);height:100%;margin-left:calc(var(--depth)/-2)}.right{transform:rotateY(90deg) translateZ(calc(var(--width) / 2))}.left{transform:rotateY(-90deg) translateZ(calc(var(--width) / 2))}.top,.bottom{left:0;top:50%;width:100%;height:var(--depth);margin-top:calc(var(--depth)/-2)}.top{transform:rotateX(90deg) translateZ(calc(var(--height) / 2));background:color-mix(in srgb, var(--foreground) var(--top-amount, 16%), var(--background))}.bottom{transform:rotateX(-90deg) translateZ(calc(var(--height) / 2))}
@@ -14,7 +14,7 @@
14
14
  transform-style: preserve-3d;
15
15
  }
16
16
  .face {
17
- @include face(var(--fill-amount, 6%), var(--edge-amount, 40%));
17
+ @include face(var(--fill-amount, #{$surface}), var(--edge-amount, #{$edge}));
18
18
  position: absolute;
19
19
  transform-style: preserve-3d;
20
20
  }
@@ -25,7 +25,7 @@
25
25
  }
26
26
  .front {
27
27
  transform: translateZ(calc(var(--depth) / 2));
28
- background: tint(var(--front-amount, 8%));
28
+ background: surface(var(--front-amount, #{$surface}));
29
29
  }
30
30
  .back {
31
31
  transform: rotateY(180deg) translateZ(calc(var(--depth) / 2));
@@ -54,7 +54,7 @@
54
54
  }
55
55
  .top {
56
56
  transform: rotateX(90deg) translateZ(calc(var(--height) / 2));
57
- background: tint(var(--top-amount, 12%));
57
+ background: surface(var(--top-amount, #{$raised}));
58
58
  }
59
59
  .bottom {
60
60
  transform: rotateX(-90deg) translateZ(calc(var(--height) / 2));
@@ -1 +1 @@
1
- .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:commerce-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(18px) rotateX(-16deg) rotateY(-28deg)}@keyframes commerce-sway{0%,100%{transform:translateY(18px) rotateX(-16deg) rotateY(-34deg)}50%{transform:translateY(18px) rotateX(-12deg) rotateY(26deg)}}.bag{--width: 104px;--height: 112px;--depth: 52px;--front-amount: 10%;--top-amount: 2%}.tag{position:absolute;left:50%;top:30px;width:30px;height:30px;margin-left:-15px;border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50%}.tag::after{content:"";position:absolute;inset:8px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 60%, transparent)}.handle{position:absolute;left:50%;top:50%;width:48px;height:34px;margin:-17px 0 0 -24px;transform-style:preserve-3d;transform:translate3d(0, -72px, 0);border:2px solid color-mix(in srgb, var(--foreground) 65%, transparent);border-bottom:0;border-radius:24px 24px 0 0}.drop{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-170px) scale(0);animation:commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite}@media(prefers-reduced-motion: reduce){.drop{animation:none}}.drop:nth-child(2){left:calc(50% - 18px)}.drop:nth-child(3){left:calc(50% + 16px)}@keyframes commerce-drop{0%{transform:translateY(-170px) rotateY(0deg) scale(1)}55%{transform:translateY(-40px) rotateY(160deg) scale(1)}65%,100%{transform:translateY(-10px) rotateY(180deg) scale(0)}}.item{--width: 22px;--height: 22px;--depth: 22px;--fill-amount: 16%;--edge-amount: 70%}
1
+ .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:commerce-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(18px) rotateX(-16deg) rotateY(-28deg)}@keyframes commerce-sway{0%,100%{transform:translateY(18px) rotateX(-16deg) rotateY(-34deg)}50%{transform:translateY(18px) rotateX(-12deg) rotateY(26deg)}}.bag{--width: 104px;--height: 112px;--depth: 52px}.tag{position:absolute;left:50%;top:30px;width:30px;height:30px;margin-left:-15px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:50%}.tag::after{content:"";position:absolute;inset:8px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 45%, transparent)}.handle{position:absolute;left:50%;top:50%;width:48px;height:34px;margin:-17px 0 0 -24px;transform-style:preserve-3d;transform:translate3d(0, -72px, 0);border:2px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-bottom:0;border-radius:24px 24px 0 0}.drop{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-170px) scale(0);animation:commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite}@media(prefers-reduced-motion: reduce){.drop{animation:none}}.drop:nth-child(2){left:calc(50% - 18px)}.drop:nth-child(3){left:calc(50% + 16px)}@keyframes commerce-drop{0%{transform:translateY(-170px) rotateY(0deg) scale(1)}55%{transform:translateY(-40px) rotateY(160deg) scale(1)}65%,100%{transform:translateY(-10px) rotateY(180deg) scale(0)}}.item{--width: 22px;--height: 22px;--depth: 22px}
@@ -19,8 +19,6 @@
19
19
  --width: 104px;
20
20
  --height: 112px;
21
21
  --depth: 52px;
22
- --front-amount: 10%;
23
- --top-amount: 2%;
24
22
  }
25
23
  .tag {
26
24
  position: absolute;
@@ -29,20 +27,20 @@
29
27
  width: 30px;
30
28
  height: 30px;
31
29
  margin-left: -15px;
32
- border: 1px solid tint(60%);
30
+ border: 1px solid tint($edge);
33
31
  border-radius: 50%;
34
32
  &::after {
35
33
  content: "";
36
34
  position: absolute;
37
35
  inset: 8px;
38
36
  border-radius: 50%;
39
- background: tint(60%);
37
+ background: tint($detail);
40
38
  }
41
39
  }
42
40
  .handle {
43
41
  @include centered(48px, 34px);
44
42
  transform: translate3d(0, -72px, 0);
45
- border: 2px solid tint(65%);
43
+ border: 2px solid tint($strong);
46
44
  border-bottom: 0;
47
45
  border-radius: 24px 24px 0 0;
48
46
  }
@@ -73,6 +71,4 @@
73
71
  --width: 22px;
74
72
  --height: 22px;
75
73
  --depth: 22px;
76
- --fill-amount: 16%;
77
- --edge-amount: 70%;
78
74
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Hosting: what we build, kept running. A rack of servers, their lights blinking. Then one server has an incident and
3
- * its lights go out. It is looked after at once: the server comes back with a glow and a tick.
3
+ * its lights go out; it is looked after at once and comes back on with a glow.
4
4
  */
5
5
  export declare function Hosting(): import("react").JSX.Element;
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,OAAO,gCAoBtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,OAAO,gCAmBtB"}
@@ -5,9 +5,9 @@ import styles from "./index.module.css";
5
5
  const SERVERS = 3;
6
6
  /**
7
7
  * Hosting: what we build, kept running. A rack of servers, their lights blinking. Then one server has an incident and
8
- * its lights go out. It is looked after at once: the server comes back with a glow and a tick.
8
+ * its lights go out; it is looked after at once and comes back on with a glow.
9
9
  */
10
10
  export function Hosting() {
11
- return (_jsxs("div", { className: styles.object, children: [Array.from({ length: SERVERS }, (_, server) => (_jsx(Cuboid, { className: styles.server, front: _jsxs("span", { className: styles.panel, "data-incident": server === 1 || undefined, children: [[0, 1, 2].map((light) => (_jsx("i", { style: { animationDelay: `${(server * 3 + light) * -0.37}s` } }, light))), _jsx("b", {})] }) }, server))), _jsx("span", { className: styles.fixed })] }));
11
+ return (_jsx("div", { className: styles.object, children: Array.from({ length: SERVERS }, (_, server) => (_jsx(Cuboid, { className: styles.server, front: _jsxs("span", { className: styles.panel, "data-incident": server === 1 || undefined, children: [[0, 1, 2].map((light) => (_jsx("i", { style: { animationDelay: `${(server * 3 + light) * -0.37}s` } }, light))), _jsx("b", {})] }) }, server))) }));
12
12
  }
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,OAAO,GAAG,CAAC,CAAC;AAClB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAC9C,KAAC,MAAM,IAEL,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,mBAAiB,MAAM,KAAK,CAAC,IAAI,SAAS,aACpE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACxB,YAAe,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,IAApE,KAAK,CAAmE,CACjF,CAAC,EACF,aAAK,IACA,IARJ,MAAM,CAUX,CACH,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,IAC7B,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/hosting/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,OAAO,GAAG,CAAC,CAAC;AAClB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,CAC9C,KAAC,MAAM,IAEL,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,KAAK,EACH,gBAAM,SAAS,EAAE,MAAM,CAAC,KAAK,mBAAiB,MAAM,KAAK,CAAC,IAAI,SAAS,aACpE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACxB,YAAe,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,IAApE,KAAK,CAAmE,CACjF,CAAC,EACF,aAAK,IACA,IARJ,MAAM,CAUX,CACH,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}