@sharadox/sharadox-web-library 0.31.0 → 0.32.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 (120) hide show
  1. package/README.md +2 -2
  2. package/distribution/component/about/feed/index.d.ts +8 -0
  3. package/distribution/component/about/feed/index.d.ts.map +1 -0
  4. package/distribution/component/about/feed/index.js +16 -0
  5. package/distribution/component/about/feed/index.js.map +1 -0
  6. package/distribution/component/about/feed/index.module.css +1 -0
  7. package/distribution/component/about/feed/index.module.scss +190 -0
  8. package/distribution/component/{touchpoint → about/feed}/type.d.ts +1 -1
  9. package/distribution/component/about/feed/type.d.ts.map +1 -0
  10. package/distribution/component/about/feed/type.js.map +1 -0
  11. package/distribution/component/about/index.d.ts +8 -0
  12. package/distribution/component/about/index.d.ts.map +1 -0
  13. package/distribution/component/about/index.js +20 -0
  14. package/distribution/component/about/index.js.map +1 -0
  15. package/distribution/component/about/index.module.css +1 -0
  16. package/distribution/component/about/index.module.scss +129 -0
  17. package/distribution/component/about/type.d.ts +5 -0
  18. package/distribution/component/about/type.d.ts.map +1 -0
  19. package/distribution/component/about/type.js.map +1 -0
  20. package/distribution/component/capability/index.d.ts +1 -1
  21. package/distribution/component/capability/index.d.ts.map +1 -1
  22. package/distribution/component/capability/index.js +3 -2
  23. package/distribution/component/capability/index.js.map +1 -1
  24. package/distribution/component/capability/index.module.css +1 -1
  25. package/distribution/component/capability/index.module.scss +41 -0
  26. package/distribution/component/footer/index.d.ts +2 -2
  27. package/distribution/component/footer/index.js +4 -4
  28. package/distribution/component/footer/index.js.map +1 -1
  29. package/distribution/component/footer/index.module.css +1 -1
  30. package/distribution/component/footer/index.module.scss +6 -28
  31. package/distribution/component/hero/index.module.css +1 -1
  32. package/distribution/component/hero/index.module.scss +6 -0
  33. package/distribution/component/process/index.d.ts +1 -1
  34. package/distribution/component/process/index.d.ts.map +1 -1
  35. package/distribution/component/process/index.js +13 -3
  36. package/distribution/component/process/index.js.map +1 -1
  37. package/distribution/component/process/index.module.css +1 -1
  38. package/distribution/component/process/index.module.scss +2 -0
  39. package/distribution/component/process/measure-stops/index.d.ts +10 -0
  40. package/distribution/component/process/measure-stops/index.d.ts.map +1 -0
  41. package/distribution/component/process/measure-stops/index.js +21 -0
  42. package/distribution/component/process/measure-stops/index.js.map +1 -0
  43. package/distribution/component/process/step/index.d.ts +2 -2
  44. package/distribution/component/process/step/index.d.ts.map +1 -1
  45. package/distribution/component/process/step/index.js +4 -5
  46. package/distribution/component/process/step/index.js.map +1 -1
  47. package/distribution/component/process/step/type.d.ts +2 -2
  48. package/distribution/component/process/step/type.d.ts.map +1 -1
  49. package/distribution/component/section-indicator/index.module.css +1 -1
  50. package/distribution/component/section-indicator/index.module.scss +17 -1
  51. package/distribution/component/service-object/rebranding/index.d.ts +3 -3
  52. package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
  53. package/distribution/component/service-object/rebranding/index.js +19 -6
  54. package/distribution/component/service-object/rebranding/index.js.map +1 -1
  55. package/distribution/component/service-object/rebranding/index.module.css +1 -1
  56. package/distribution/component/service-object/rebranding/index.module.scss +85 -140
  57. package/distribution/component/service-unlisted/index.module.css +1 -1
  58. package/distribution/component/service-unlisted/index.module.scss +5 -3
  59. package/distribution/content/about/index.d.ts +100 -0
  60. package/distribution/content/about/index.d.ts.map +1 -0
  61. package/distribution/content/about/index.js +71 -0
  62. package/distribution/content/about/index.js.map +1 -0
  63. package/distribution/content/capability/index.d.ts +27 -1
  64. package/distribution/content/capability/index.d.ts.map +1 -1
  65. package/distribution/content/capability/index.js +13 -1
  66. package/distribution/content/capability/index.js.map +1 -1
  67. package/distribution/content/contact/index.d.ts +1 -1
  68. package/distribution/content/navigation/index.d.ts +4 -4
  69. package/distribution/content/navigation/index.js +1 -1
  70. package/distribution/content/navigation/index.js.map +1 -1
  71. package/distribution/content/section/index.d.ts +5 -5
  72. package/distribution/content/section/index.js +1 -1
  73. package/distribution/content/section/index.js.map +1 -1
  74. package/distribution/content/section-indicator/index.d.ts +4 -4
  75. package/distribution/content/section-indicator/index.d.ts.map +1 -1
  76. package/distribution/content/section-indicator/index.js +1 -8
  77. package/distribution/content/section-indicator/index.js.map +1 -1
  78. package/distribution/content/services/index.d.ts +12 -12
  79. package/distribution/content/services/index.d.ts.map +1 -1
  80. package/distribution/content/services/index.js +71 -21
  81. package/distribution/content/services/index.js.map +1 -1
  82. package/llms.txt +3 -2
  83. package/package.json +2 -2
  84. package/distribution/component/statement/index.d.ts +0 -4
  85. package/distribution/component/statement/index.d.ts.map +0 -1
  86. package/distribution/component/statement/index.js +0 -10
  87. package/distribution/component/statement/index.js.map +0 -1
  88. package/distribution/component/statement/index.module.css +0 -1
  89. package/distribution/component/statement/index.module.scss +0 -10
  90. package/distribution/component/statement/type.d.ts +0 -4
  91. package/distribution/component/statement/type.d.ts.map +0 -1
  92. package/distribution/component/statement/type.js.map +0 -1
  93. package/distribution/component/touchpoint/index.d.ts +0 -7
  94. package/distribution/component/touchpoint/index.d.ts.map +0 -1
  95. package/distribution/component/touchpoint/index.js +0 -26
  96. package/distribution/component/touchpoint/index.js.map +0 -1
  97. package/distribution/component/touchpoint/index.module.css +0 -1
  98. package/distribution/component/touchpoint/index.module.scss +0 -76
  99. package/distribution/component/touchpoint/plate/index.d.ts +0 -4
  100. package/distribution/component/touchpoint/plate/index.d.ts.map +0 -1
  101. package/distribution/component/touchpoint/plate/index.js +0 -9
  102. package/distribution/component/touchpoint/plate/index.js.map +0 -1
  103. package/distribution/component/touchpoint/plate/index.module.css +0 -1
  104. package/distribution/component/touchpoint/plate/index.module.scss +0 -135
  105. package/distribution/component/touchpoint/plate/type.d.ts +0 -8
  106. package/distribution/component/touchpoint/plate/type.d.ts.map +0 -1
  107. package/distribution/component/touchpoint/plate/type.js.map +0 -1
  108. package/distribution/component/touchpoint/type.d.ts.map +0 -1
  109. package/distribution/component/touchpoint/type.js +0 -2
  110. package/distribution/component/touchpoint/type.js.map +0 -1
  111. package/distribution/content/statement/index.d.ts +0 -6
  112. package/distribution/content/statement/index.d.ts.map +0 -1
  113. package/distribution/content/statement/index.js +0 -6
  114. package/distribution/content/statement/index.js.map +0 -1
  115. package/distribution/content/touchpoint/index.d.ts +0 -37
  116. package/distribution/content/touchpoint/index.d.ts.map +0 -1
  117. package/distribution/content/touchpoint/index.js +0 -17
  118. package/distribution/content/touchpoint/index.js.map +0 -1
  119. /package/distribution/component/{statement → about/feed}/type.js +0 -0
  120. /package/distribution/component/{touchpoint/plate → about}/type.js +0 -0
@@ -1 +1 @@
1
- .footer{text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{align-items:stretch;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{justify-content:stretch;position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>.brand,.columns>.settings{grid-column:1/-1}.columns>.brand::after,.columns>.settings::after{display:none}.columns>:nth-child(3)::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.legal{align-items:stretch;display:grid;grid-template-columns:1.6fr 3fr;border-bottom:1px solid var(--line);font-size:13px}.legal>*{padding:28px var(--padding)}.legal>:first-child{position:relative}.legal>:first-child::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}@media(max-width: 900px){.legal{grid-template-columns:1fr}.legal>:first-child{padding-bottom:0}.legal>:first-child::after{display:none}}.bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px var(--padding);border-bottom:1px solid var(--line)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings{justify-items:start}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:12px}.copyright{font-size:12px;color:var(--foreground-3)}.links{align-content:flex-start;justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}.links a,.links [data-preferences-link]{padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:left;transition:color .2s}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}}.disputes{max-width:72ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{font-size:14px;display:inline-flex;align-items:center;width:fit-content;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
1
+ .footer{text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{align-items:stretch;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{justify-content:stretch;position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>.brand,.columns>.settings{grid-column:1/-1}.columns>.brand::after,.columns>.settings::after{display:none}.columns>:nth-child(3)::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.legal{display:grid;justify-content:stretch;justify-items:start;gap:14px;padding:28px var(--padding);border-bottom:1px solid var(--line);font-size:13px}.bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px var(--padding);border-bottom:1px solid var(--line)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings{justify-items:start}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:12px}.copyright{font-size:12px;color:var(--foreground-3)}.links{align-content:flex-start;justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}.links a,.links [data-preferences-link]{padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:left;transition:color .2s}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}}.disputes{max-width:120ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{font-size:14px;display:inline-flex;align-items:center;width:fit-content;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
@@ -68,37 +68,15 @@
68
68
  }
69
69
  }
70
70
  }
71
- /* Everything legal: the links on the left, the dispute notice on the right, on the same columns as above. */
71
+ /* Everything legal, across the frame: the dispute notice as one line of text, the links in a row under it. */
72
72
  .legal {
73
- align-items: stretch;
74
73
  display: grid;
75
- grid-template-columns: 1.6fr 3fr;
74
+ justify-content: stretch;
75
+ justify-items: start;
76
+ gap: 14px;
77
+ padding: 28px var(--padding);
76
78
  border-bottom: 1px solid var(--line);
77
79
  font-size: 13px;
78
- > * {
79
- padding: 28px var(--padding);
80
- }
81
- > :first-child {
82
- position: relative;
83
- &::after {
84
- content: "";
85
- position: absolute;
86
- top: 0;
87
- bottom: 0;
88
- right: 0;
89
- width: 1px;
90
- @include dashed(vertical);
91
- }
92
- }
93
- @include below(900px) {
94
- grid-template-columns: 1fr;
95
- > :first-child {
96
- padding-bottom: 0;
97
- &::after {
98
- display: none;
99
- }
100
- }
101
- }
102
80
  }
103
81
  /* The very bottom: the copyright on the left, the way back up on the right. */
104
82
  .bottom {
@@ -173,7 +151,7 @@
173
151
  }
174
152
  }
175
153
  .disputes {
176
- max-width: 72ch;
154
+ max-width: 120ch;
177
155
  font-size: 12px;
178
156
  line-height: 1.6;
179
157
  color: var(--foreground-3);
@@ -1 +1 @@
1
- .hero{text-align:left;position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{justify-content:flex-start;display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
1
+ .hero{text-align:left;position:relative;min-height:min(100svh,980px);width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;padding:104px var(--padding) 56px;border-inline:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px}@media(min-width: 961px){.hero{min-height:calc(min(100svh,980px) - 140px);padding-bottom:32px}}@media(max-width: 900px){.hero{grid-template-columns:1fr;padding-top:72px;gap:0}}.copy{position:relative;z-index:2;container-type:inline-size}.eyebrow{padding:6px 12px 6px 10px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--background) 60%, transparent);backdrop-filter:blur(6px)}.live{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:live 2.4s infinite}@keyframes live{70%{box-shadow:0 0 0 9px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.title{margin:26px 0 26px;font-size:min(clamp(3rem,7vw,6.4rem),14.6cqi);white-space:nowrap;letter-spacing:-0.06em;line-height:.95}@media(max-width: 900px){.title{margin-top:18px}}.line{display:block;overflow:hidden;padding-bottom:.06em}.lineInner{display:inline-block}.dim{background:linear-gradient(180deg, var(--foreground) 10%, var(--foreground-3) 120%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.subtitle{max-width:31rem;font-size:clamp(1.05rem,1.4vw,1.2rem);color:var(--foreground-2);line-height:1.55}.actions{justify-content:flex-start;display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}.globe{position:absolute;z-index:1;left:75%;top:50%;width:61.3%;aspect-ratio:1;margin:calc(61.3%/-2) 0 0 calc(61.3%/-2)}@media(max-width: 900px){.globe{position:relative;left:auto;top:auto;order:-1;width:112%;margin:0 -6%;justify-self:center}}.hint{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-3);pointer-events:none}
@@ -12,6 +12,12 @@
12
12
  grid-template-columns: 1fr 1fr;
13
13
  align-items: center;
14
14
  gap: 24px;
15
+ /* On wide screens the service index (one row of four, about 140px) sits under the hero, so the two together fill
16
+ the first screen and the four shortcuts show at its bottom. */
17
+ @media (min-width: 961px) {
18
+ min-height: calc(min(100svh, 980px) - 140px);
19
+ padding-bottom: 32px;
20
+ }
15
21
  @include below(900px) {
16
22
  grid-template-columns: 1fr;
17
23
  padding-top: 72px;
@@ -1,4 +1,4 @@
1
1
  import type { ProcessProperties } from "@sharadox/sharadox-web-library/component/process/type";
2
- /** Four steps on a line that draws itself as you scroll through the section. */
2
+ /** Four steps on a line that draws itself as you scroll through the section, each dot lighting as it is reached. */
3
3
  export declare function Process({ locale }: ProcessProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA2BpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,oHAAoH;AACpH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAmCpD"}
@@ -1,21 +1,31 @@
1
1
  "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { motion, useScroll, useTransform } from "motion/react";
4
- import { useRef } from "react";
4
+ import { useEffect, useRef, useState } from "react";
5
5
  import { Section } from "@sharadox/sharadox-web-library/component/section";
6
6
  import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
7
7
  import { PROCESS } from "@sharadox/sharadox-web-library/content/process";
8
8
  import { translate } from "@sharadox/internationalization-web-library/translate";
9
9
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
10
10
  import styles from "./index.module.css";
11
+ import { measureStops } from "@sharadox/sharadox-web-library/component/process/measure-stops";
11
12
  import { Step } from "@sharadox/sharadox-web-library/component/process/step";
12
- /** Four steps on a line that draws itself as you scroll through the section. */
13
+ /** Four steps on a line that draws itself as you scroll through the section, each dot lighting as it is reached. */
13
14
  export function Process({ locale }) {
14
15
  const container = useRef(null);
15
16
  const { scrollYProgress } = useScroll({ target: container, offset: ["start 75%", "end 55%"] });
16
17
  // How much of the line is drawn: across on wide screens, down on phones (see the styles).
17
18
  const drawn = useTransform(scrollYProgress, [0, 1], ["0%", "100%"]);
18
19
  const steps = PROCESS.steps;
19
- return (_jsxs(Section, { id: SECTION.process.id, children: [_jsx(SectionHeading, { eyebrow: translate(PROCESS.eyebrow, locale), title: translate(PROCESS.title, locale) }), _jsxs("div", { ref: container, className: styles.process, children: [_jsx("div", { className: styles.line, "aria-hidden": true, children: _jsx(motion.span, { style: { "--drawn": drawn } }) }), steps.map((step, index) => (_jsx(Step, { index: index, count: steps.length, progress: scrollYProgress, number: step.number, title: translate(step.title, locale), text: translate(step.text, locale) }, step.number)))] })] }));
20
+ const line = useRef(null);
21
+ const [stops, setStops] = useState(null);
22
+ useEffect(() => {
23
+ const measure = () => setStops(measureStops(line.current));
24
+ measure();
25
+ const observer = new ResizeObserver(measure);
26
+ observer.observe(container.current);
27
+ return () => observer.disconnect();
28
+ }, []);
29
+ return (_jsxs(Section, { id: SECTION.process.id, children: [_jsx(SectionHeading, { eyebrow: translate(PROCESS.eyebrow, locale), title: translate(PROCESS.title, locale) }), _jsxs("div", { ref: container, className: styles.process, children: [_jsx("div", { ref: line, className: styles.line, "aria-hidden": true, children: _jsx(motion.span, { style: { "--drawn": drawn } }) }), steps.map((step, index) => (_jsx(Step, { at: stops?.[index] ?? index / (steps.length - 1), progress: scrollYProgress, number: step.number, title: translate(step.title, locale), text: translate(step.text, locale) }, step.number)))] })] }));
20
30
  }
21
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/process/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAsB,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EA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,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAChD,QAAQ,EAAE,eAAe,EACzB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EACpC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,IAL7B,IAAI,CAAC,MAAM,CAMhB,CACH,CAAC,IACE,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .process{align-items:stretch;position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;width:var(--drawn, 0%);height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%;height:var(--drawn, 0%);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground))}}
1
+ .process{align-items:stretch;position:relative;display:grid;grid-template-columns:repeat(4, 1fr);gap:24px;padding-top:34px}@media(max-width: 860px){.process{grid-template-columns:1fr;gap:44px;padding:0 0 0 30px}}.line{align-content:start;position:absolute;left:0;right:0;top:6px;height:1px;background:linear-gradient(90deg, var(--line-2) 50%, transparent 0) 0 0/8px 1px repeat-x}.line span{display:block;width:var(--drawn, 0%);height:100%;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground));box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 60%, transparent)}@media(max-width: 860px){.line{left:5px;right:auto;top:0;bottom:0;width:1px;height:auto}.line span{width:100%;height:var(--drawn, 0%);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 20%, transparent), var(--foreground))}}
@@ -13,7 +13,9 @@
13
13
  padding: 0 0 0 30px;
14
14
  }
15
15
  }
16
+ /* The drawn part starts at the line's start (the top, on phones), never from its middle. */
16
17
  .line {
18
+ align-content: start;
17
19
  position: absolute;
18
20
  left: 0;
19
21
  right: 0;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Where each dot sits along the line, from 0 to 1: across on wide screens, down on phones. The dots are the elements
3
+ * marked `data-dot` beside the line, in its parent. Null where nothing has a size yet, so the steps fall back to even
4
+ * spacing.
5
+ *
6
+ * @example
7
+ * setStops(measureStops(line)); // [0, 0.26, 0.51, 0.77] across a four-column row
8
+ */
9
+ export declare function measureStops(line: HTMLElement): number[] | null;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/measure-stops/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,EAAE,GAAG,IAAI,CAU/D"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Where each dot sits along the line, from 0 to 1: across on wide screens, down on phones. The dots are the elements
3
+ * marked `data-dot` beside the line, in its parent. Null where nothing has a size yet, so the steps fall back to even
4
+ * spacing.
5
+ *
6
+ * @example
7
+ * setStops(measureStops(line)); // [0, 0.26, 0.51, 0.77] across a four-column row
8
+ */
9
+ export function measureStops(line) {
10
+ const box = line.getBoundingClientRect();
11
+ const across = box.width >= box.height;
12
+ const length = across ? box.width : box.height;
13
+ if (!length)
14
+ return null;
15
+ return [...line.parentElement.querySelectorAll("[data-dot]")].map((dot) => {
16
+ const place = dot.getBoundingClientRect();
17
+ const center = across ? place.left + place.width / 2 - box.left : place.top + place.height / 2 - box.top;
18
+ return Math.min(1, Math.max(0, center / length));
19
+ });
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/process/measure-stops/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAiB;IAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC;IACvC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;IAC/C,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAC;IACzB,OAAO,CAAC,GAAG,IAAI,CAAC,aAAc,CAAC,gBAAgB,CAAc,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACtF,MAAM,KAAK,GAAG,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC;QACzG,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { StepProperties } from "@sharadox/sharadox-web-library/component/process/step/type";
2
- /** One process step; brightens and lights its dot when the line reaches it. */
3
- export declare function Step({ index, count, progress, number, title, text }: StepProperties): import("react").JSX.Element;
2
+ /** One process step: brightens as the line nears it, and lights its dot the moment the line reaches it. */
3
+ export declare function Step({ at, progress, number, title, text }: StepProperties): import("react").JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAEjG,+EAA+E;AAC/E,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,cAAc,+BAYnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4DAA4D,CAAC;AAEjG,2GAA2G;AAC3G,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,cAAc,+BAWzE"}
@@ -2,11 +2,10 @@
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { motion, useTransform } from "motion/react";
4
4
  import styles from "./index.module.css";
5
- /** One process step; brightens and lights its dot when the line reaches it. */
6
- export function Step({ index, count, progress, number, title, text }) {
7
- const at = index / (count - 1);
5
+ /** One process step: brightens as the line nears it, and lights its dot the moment the line reaches it. */
6
+ export function Step({ at, progress, number, title, text }) {
8
7
  const opacity = useTransform(progress, [Math.max(0, at - 0.25), at], [0.3, 1]);
9
- const glow = useTransform(progress, [Math.max(0, at - 0.05), at], [0, 1]);
10
- return (_jsxs(motion.div, { className: styles.step, style: { opacity }, children: [_jsx(motion.span, { className: styles.dot, style: { opacity: glow }, "aria-hidden": true }), _jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("h3", { children: title }), _jsx("p", { children: text })] }));
8
+ const glow = useTransform(progress, [Math.max(0, at - 0.01), at], [0, 1]);
9
+ return (_jsxs(motion.div, { className: styles.step, style: { opacity }, children: [_jsx(motion.span, { className: styles.dot, style: { opacity: glow }, "data-dot": true, "aria-hidden": true }), _jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("h3", { children: title }), _jsx("p", { children: text })] }));
11
10
  }
12
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/process/step/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,+EAA+E;AAC/E,MAAM,UAAU,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAkB;IAClF,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC/B,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;IAC/E,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO,CACL,MAAC,MAAM,CAAC,GAAG,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,aACpD,KAAC,MAAM,CAAC,IAAI,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,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1,7 +1,7 @@
1
1
  import type { MotionValue } from "motion/react";
2
2
  export interface StepProperties {
3
- index: number;
4
- count: number;
3
+ /** How far along the line this step's dot sits, from 0 (its start) to 1 (its end). */
4
+ at: number;
5
5
  progress: MotionValue<number>;
6
6
  number: string;
7
7
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/process/step/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,sFAAsF;IACtF,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1 +1 @@
1
- .indicator{text-align:left;--page: 0;--within: 0;position:fixed;z-index:40;right:max(14px,(100vw - var(--maximum-width))/2 - 92px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .indicator{animation-duration:0s !important;animation-delay:0s !important}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}
1
+ .indicator{text-align:left;--page: 0;--within: 0;position:fixed;z-index:40;left:calc(50% + min(100% - 2*var(--gutter),var(--maximum-width))/2 + 14px);top:50%;transform:translateY(-50%);padding:14px 0;animation:enter 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .indicator{animation-duration:0s !important;animation-delay:0s !important}.indicator ol{position:relative;display:grid;gap:14px;margin:0;padding:0;list-style:none}@media(max-width: 1180px){.indicator{display:none}}@keyframes enter{from{opacity:0;transform:translate(16px, -50%)}}.rail{position:absolute;right:0;top:0;bottom:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 6px repeat-y}.rail span{position:absolute;inset:0 0 auto;height:calc(var(--page)*100%);background:linear-gradient(180deg, transparent, var(--foreground));box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent)}.indicator a{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:26px;padding-right:0;color:var(--foreground-3);transition:color .3s}.indicator a:hover{color:var(--foreground)}.number{font-size:10.5px;letter-spacing:.04em;transition:color .3s}.tick{position:relative;width:12px;height:1px;background:var(--line-2);transition:width .6s cubic-bezier(0.22, 1, 0.36, 1),background .3s}.tick span{position:absolute;inset:0 auto 0 0;width:0;background:var(--foreground)}.name{position:absolute;right:64px;padding:5px 11px;border-radius:99px;border:1px solid var(--line-2);background:color-mix(in srgb, var(--background) 75%, transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12.5px;font-weight:500;letter-spacing:-0.01em;white-space:nowrap;opacity:0;transform:translateX(8px);filter:blur(4px);pointer-events:none;transition:opacity .35s,transform .5s cubic-bezier(0.22, 1, 0.36, 1),filter .35s}.indicator:hover .name{opacity:1;transform:none;filter:none}.current{color:var(--foreground) !important}.current .tick{width:34px;background:color-mix(in srgb, var(--foreground) 25%, transparent)}.current .tick span{width:calc(var(--within)*100%);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 70%, transparent)}.current .name{animation:flash 2.2s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes flash{0%{opacity:0;transform:translateX(10px);filter:blur(4px)}15%,70%{opacity:1;transform:none;filter:none}100%{opacity:0;transform:translateX(4px);filter:blur(2px)}}.indicator:hover .current .name{animation:none}@media(max-width: 1399px){.indicator{left:calc(50% + min(100% - 2*var(--gutter),var(--maximum-width))/2 + 8px)}.number{display:none}.tick{width:8px}.current .tick{width:18px}}
@@ -7,7 +7,8 @@
7
7
  --within: 0;
8
8
  position: fixed;
9
9
  z-index: 40;
10
- right: max(14px, calc((100vw - var(--maximum-width)) / 2 - 92px));
10
+ /* Outside the grid frame: just past its right line, in the margin beside it. */
11
+ left: calc(50% + min(100% - 2 * var(--gutter), var(--maximum-width)) / 2 + 14px);
11
12
  top: 50%;
12
13
  transform: translateY(-50%);
13
14
  padding: 14px 0;
@@ -144,3 +145,18 @@
144
145
  .indicator:hover .current .name {
145
146
  animation: none;
146
147
  }
148
+ /* Where the margin beside the frame is too narrow for the numbers (under 1400px wide), ticks only, shorter. */
149
+ @include below(1399px) {
150
+ .indicator {
151
+ left: calc(50% + min(100% - 2 * var(--gutter), var(--maximum-width)) / 2 + 8px);
152
+ }
153
+ .number {
154
+ display: none;
155
+ }
156
+ .tick {
157
+ width: 8px;
158
+ }
159
+ .current .tick {
160
+ width: 18px;
161
+ }
162
+ }
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Rebranding: the same brand, brought up to date. The dated mark (a heavy, double-ringed badge with a band across it
3
- * and a chunky name) turns and reshapes into the fresh one (a clean diamond and a fine name), keeping its center and
4
- * its place, and the change rolls out to the business card and the app icon behind it. Then it starts over.
2
+ * Rebranding: one logo, before and after. A divider sways gently left and right across it: on its left the dated
3
+ * version (a lopsided star with a gradient, a hard drop shadow, a gloss and a chunky name), on its right the same
4
+ * star reimagined (even, crisp, in a fine ring, with a light name).
5
5
  */
6
6
  export declare function Rebranding(): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,UAAU,gCAezB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,wBAAgB,UAAU,gCA0BzB"}
@@ -1,13 +1,26 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styles from "./index.module.css";
3
- /** Where the brand shows, besides its main sign: a business card and an app icon, updated after it in turn. */
4
- const TOUCHPOINTS = ["card", "icon"];
3
+ /** A five-pointed star around (50, 46) of the drawing, from each point's reach and the dents' between them. */
4
+ function star(outer, inner, turn) {
5
+ const corners = outer.flatMap((reach, index) => {
6
+ const at = (angle, radius) => {
7
+ const radians = ((angle + turn - 90) * Math.PI) / 180;
8
+ return `${(50 + radius * Math.cos(radians)).toFixed(1)} ${(46 + radius * Math.sin(radians)).toFixed(1)}`;
9
+ };
10
+ return [at(index * 72, reach), at(index * 72 + 36, inner[index])];
11
+ });
12
+ return `M${corners.join(" L")}Z`;
13
+ }
14
+ /** The dated star: lopsided points, tilted, as if drawn by hand. */
15
+ const BEFORE = star([37, 30, 40, 28, 35], [19, 15, 21, 14, 18], -9);
16
+ /** The same star, reimagined: even, balanced, upright. */
17
+ const AFTER = star([37, 37, 37, 37, 37], [15, 15, 15, 15, 15], 0);
5
18
  /**
6
- * Rebranding: the same brand, brought up to date. The dated mark (a heavy, double-ringed badge with a band across it
7
- * and a chunky name) turns and reshapes into the fresh one (a clean diamond and a fine name), keeping its center and
8
- * its place, and the change rolls out to the business card and the app icon behind it. Then it starts over.
19
+ * Rebranding: one logo, before and after. A divider sways gently left and right across it: on its left the dated
20
+ * version (a lopsided star with a gradient, a hard drop shadow, a gloss and a chunky name), on its right the same
21
+ * star reimagined (even, crisp, in a fine ring, with a light name).
9
22
  */
10
23
  export function Rebranding() {
11
- return (_jsxs("div", { className: styles.object, children: [TOUCHPOINTS.map((touchpoint) => (_jsxs("div", { className: styles.touchpoint, "data-touchpoint": touchpoint, children: [_jsx("i", { className: styles.mark }), _jsx("i", { className: styles.name })] }, touchpoint))), _jsxs("div", { className: styles.sign, children: [_jsx("i", { className: styles.mark }), _jsx("i", { className: styles.name })] })] }));
24
+ return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.tile, children: [_jsxs("svg", { className: styles.before, viewBox: "0 0 100 100", children: [_jsx("defs", { children: _jsxs("linearGradient", { id: "rebranding-bevel", x1: "0", y1: "0", x2: "1", y2: "1", children: [_jsx("stop", { offset: "0", className: styles.light }), _jsx("stop", { offset: "0.55", className: styles.middle }), _jsx("stop", { offset: "1", className: styles.dark })] }) }), _jsx("path", { className: styles.shadow, d: BEFORE, transform: "translate(5 5)" }), _jsx("path", { className: styles.dated, d: BEFORE, fill: "url(#rebranding-bevel)" }), _jsx("ellipse", { className: styles.gloss, cx: "40", cy: "34", rx: "9", ry: "4", transform: "rotate(-25 40 34)" }), _jsx("rect", { className: styles.chunky, x: "24", y: "86", width: "52", height: "8", rx: "1" })] }), _jsxs("svg", { className: styles.after, viewBox: "0 0 100 100", children: [_jsx("circle", { className: styles.ring, cx: "50", cy: "46", r: "42" }), _jsx("path", { className: styles.fresh, d: AFTER }), _jsx("rect", { className: styles.name, x: "34", y: "94", width: "32", height: "2", rx: "1" })] }), _jsx("span", { className: styles.divider })] }) }));
12
25
  }
13
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/rebranding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+GAA+G;AAC/G,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAU,CAAC;AAE9C;;;;GAIG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAC/B,eAAsB,SAAS,EAAE,MAAM,CAAC,UAAU,qBAAmB,UAAU,aAC7E,YAAG,SAAS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,EAC1E,kBAAS,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAC,mBAAmB,GAAG,EAChG,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,GAAG,IACzE,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAC,aAAa,aACjD,iBAAQ,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAG,EACzD,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,GAAI,EAC3C,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,GAAG,IACvE,EACN,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,GAAI,IAC/B,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:rebranding-float 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-20deg)}@keyframes rebranding-float{0%,100%{transform:rotateX(10deg) rotateY(-24deg)}50%{transform:rotateX(4deg) rotateY(-8deg)}}.sign{position:absolute;left:50%;top:50%;width:150px;height:112px;margin:-56px 0 0 -75px;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);display:grid;place-content:center;justify-items:center;gap:14px;border-radius:10px;box-shadow:0 24px 50px -24px color-mix(in srgb, var(--foreground) 35%, transparent);transform:translateZ(20px)}.touchpoint{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);position:absolute;display:grid;place-content:center;justify-items:center;gap:6px}.touchpoint[data-touchpoint=card]{left:-168px;top:-70px;width:84px;height:50px;border-radius:4px;transform:translateZ(-30px)}.touchpoint[data-touchpoint=icon]{left:96px;top:4px;width:52px;height:52px;border-radius:13px;transform:translateZ(-20px)}.touchpoint[data-touchpoint=icon] .name{display:none}.mark{--size: 40px;position:relative;width:var(--size);height:var(--size);box-sizing:border-box;border:calc(var(--size)/10) double color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:50%;animation:rebranding-mark 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.mark{animation:none}}.mark::after{content:"";position:absolute;inset:38% -22%;border-radius:2px;background:color-mix(in srgb, var(--foreground) 45%, transparent);animation:rebranding-band 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.mark::after{animation:none}}.touchpoint .mark{--size: 20px}@keyframes rebranding-mark{0%,20%{border-style:double;border-color:color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:50%;transform:rotate(0deg) scale(1)}26%{border-style:solid;border-color:var(--foreground);border-radius:30%;transform:rotate(120deg) scale(0.8)}34%,86%{border-style:solid;border-color:var(--foreground);border-radius:10%;transform:rotate(225deg) scale(0.78)}94%,100%{border-style:double;border-color:color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:50%;transform:rotate(360deg) scale(1)}}@keyframes rebranding-band{0%,20%{transform:scale(1)}30%,90%{transform:scale(0)}96%,100%{transform:scale(1)}}.name{width:64px;height:8px;border-radius:1px;background:repeating-linear-gradient(90deg, color-mix(in srgb, var(--foreground) 45%, transparent) 0 7px, transparent 7px 9px);animation:rebranding-name 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.name{animation:none}}.touchpoint .name{width:40px;height:5px}@keyframes rebranding-name{0%,22%{background:repeating-linear-gradient(90deg, color-mix(in srgb, var(--foreground) 45%, transparent) 0 7px, transparent 7px 9px);transform:scaleY(1)}34%,86%{background:repeating-linear-gradient(90deg, var(--foreground) 0 7px, var(--foreground) 7px 9px);transform:scaleY(0.45)}94%,100%{background:repeating-linear-gradient(90deg, color-mix(in srgb, var(--foreground) 45%, transparent) 0 7px, transparent 7px 9px);transform:scaleY(1)}}.touchpoint[data-touchpoint=card] .mark,.touchpoint[data-touchpoint=card] .mark::after,.touchpoint[data-touchpoint=card] .name{animation-delay:.4s}.touchpoint[data-touchpoint=icon] .mark,.touchpoint[data-touchpoint=icon] .mark::after{animation-delay:.8s}
1
+ @property --rebranding-split{syntax:"<percentage>";inherits:true;initial-value:50%}.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:rebranding-float 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-18deg)}@keyframes rebranding-float{0%,100%{transform:rotateX(10deg) rotateY(-22deg)}50%{transform:rotateX(4deg) rotateY(-6deg)}}.tile{position:absolute;left:50%;top:50%;width:208px;height:140px;margin:-70px 0 0 -104px;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:rebranding-sway 4.5s ease-in-out infinite alternate}@media(prefers-reduced-motion: reduce){.tile{animation:none}}.tile{--rebranding-split: 50%;overflow:hidden;border-radius:10px;box-shadow:0 24px 50px -24px color-mix(in srgb, var(--foreground) 35%, transparent)}.tile svg{position:absolute;inset:10px 0 6px;width:100%;height:calc(100% - 16px)}@keyframes rebranding-sway{0%{--rebranding-split: 30%}100%{--rebranding-split: 70%}}.before{clip-path:inset(0 calc(100% - var(--rebranding-split)) 0 0)}.after{clip-path:inset(0 0 0 var(--rebranding-split))}.light{stop-color:color-mix(in srgb, var(--foreground) 55%, var(--background))}.middle{stop-color:color-mix(in srgb, var(--foreground) 25%, var(--background))}.dark{stop-color:color-mix(in srgb, var(--foreground) 8%, var(--background))}.shadow{fill:color-mix(in srgb, var(--foreground) 20%, transparent)}.dated{stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:3.5;stroke-linejoin:miter}.gloss{fill:color-mix(in srgb, var(--foreground) 70%, transparent);opacity:.6}.chunky{fill:color-mix(in srgb, var(--foreground) 45%, transparent)}.ring{fill:none;stroke:color-mix(in srgb, var(--foreground) 50%, transparent);stroke-width:.8}.fresh{fill:var(--foreground);stroke:var(--foreground);stroke-width:2;stroke-linejoin:round}.name{fill:var(--foreground)}.divider{position:absolute;inset:0 auto 0 var(--rebranding-split);width:2px;margin-left:-1px;background:var(--foreground);box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 35%, transparent)}.divider::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2px solid var(--foreground);background:var(--background)}