@sharadox/sharadox-web-library 0.37.0 → 0.38.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 (41) hide show
  1. package/README.md +1 -1
  2. package/distribution/component/about/brand-parts/index.d.ts +7 -0
  3. package/distribution/component/about/brand-parts/index.d.ts.map +1 -0
  4. package/distribution/component/about/brand-parts/index.js +12 -0
  5. package/distribution/component/about/brand-parts/index.js.map +1 -0
  6. package/distribution/component/about/brand-parts/index.module.css +1 -0
  7. package/distribution/component/about/brand-parts/index.module.scss +225 -0
  8. package/distribution/component/about/{feed → brand-parts}/type.d.ts +1 -1
  9. package/distribution/component/about/brand-parts/type.d.ts.map +1 -0
  10. package/distribution/component/about/brand-parts/type.js.map +1 -0
  11. package/distribution/component/about/index.d.ts +3 -4
  12. package/distribution/component/about/index.d.ts.map +1 -1
  13. package/distribution/component/about/index.js +10 -7
  14. package/distribution/component/about/index.js.map +1 -1
  15. package/distribution/component/about/index.module.css +1 -1
  16. package/distribution/component/about/index.module.scss +42 -130
  17. package/distribution/component/about/platform-flow/index.d.ts +8 -0
  18. package/distribution/component/about/platform-flow/index.d.ts.map +1 -0
  19. package/distribution/component/about/platform-flow/index.js +17 -0
  20. package/distribution/component/about/platform-flow/index.js.map +1 -0
  21. package/distribution/component/about/platform-flow/index.module.css +1 -0
  22. package/distribution/component/about/platform-flow/index.module.scss +341 -0
  23. package/distribution/component/about/platform-flow/type.d.ts +5 -0
  24. package/distribution/component/about/platform-flow/type.d.ts.map +1 -0
  25. package/distribution/component/about/platform-flow/type.js +2 -0
  26. package/distribution/component/about/platform-flow/type.js.map +1 -0
  27. package/distribution/content/about/index.d.ts +129 -63
  28. package/distribution/content/about/index.d.ts.map +1 -1
  29. package/distribution/content/about/index.js +76 -50
  30. package/distribution/content/about/index.js.map +1 -1
  31. package/llms.txt +2 -1
  32. package/package.json +1 -1
  33. package/distribution/component/about/feed/index.d.ts +0 -9
  34. package/distribution/component/about/feed/index.d.ts.map +0 -1
  35. package/distribution/component/about/feed/index.js +0 -17
  36. package/distribution/component/about/feed/index.js.map +0 -1
  37. package/distribution/component/about/feed/index.module.css +0 -1
  38. package/distribution/component/about/feed/index.module.scss +0 -206
  39. package/distribution/component/about/feed/type.d.ts.map +0 -1
  40. package/distribution/component/about/feed/type.js.map +0 -1
  41. /package/distribution/component/about/{feed → brand-parts}/type.js +0 -0
package/README.md CHANGED
@@ -34,7 +34,7 @@ Everything generic comes from the open-source Sharadox libraries, configured her
34
34
  - **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
35
35
  - **`component/`:** the page's branded parts:
36
36
  - grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer (the brand with Start a Project, the services, the studio, the language and style; with Back to top under the style switch; then a centered row of everything legal: the copyright, the dispute notice, the links)
37
- - hero and its guides (on wide screens a little shorter than the screen, so the service index shows at its bottom; the copy in the middle of the space under the bar, the globe centered on it), service index, `About` (a sentence lighting up as it scrolls, then the brand online beside the platform that runs the business, with its live feed), and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; rows of three, with a row of two (or two rows of two) when the count needs it; `ServiceUnlisted`, the invitation for ideas none of them name, is a section of its own placed after the capabilities
37
+ - hero and its guides (on wide screens a little shorter than the screen, so the service index shows at its bottom; the copy in the middle of the space under the bar, the globe centered on it), service index, `About` (a sentence lighting up as it scrolls, then two numbered chapters: the brand as five drawn tiles, and the platform as a flow from customers, through the platform, to the team, with the owner watching live), and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; rows of three, with a row of two (or two rows of two) when the count needs it; `ServiceUnlisted`, the invitation for ideas none of them name, is a section of its own placed after the capabilities
38
38
  - capabilities sheet (headed by the same `ServiceShortcut`s as under the hero, which stay in view under the bar, and shorter columns run on in empty ruled cells; with what's always included under it), `Faq` (questions that open to their answers, native `details`, with their FAQPage structured data), process (each dot lights as the line reaches it, measured by `process/measure-stops`), contact (the invitation and the direct email over a wide form: the visitor's details, the message and Send on the left, the choices on the right), section indicator (in the margin right of the frame: the rail along the line, ticks and numbers out from it, names to the right, ending at the window's edge when there isn't room; nothing shifts when the section changes; ticks only where the margin is narrow), style switch
39
39
  - `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
40
40
  - the Sharadox wrapper around the shared globe, structured data, share image, `renderSocialImage()` (images to post on social media: the mark on black, landscape and portrait, alone or with the hero's three lines; the application serves them at `/<locale>/social/<name>`), `llmsText()` for `/llms.txt`
@@ -0,0 +1,7 @@
1
+ import type { BrandPartsProperties } from "@sharadox/sharadox-web-library/component/about/brand-parts/type";
2
+ /**
3
+ * Everything the brand reaches, as five tiles: each a small drawing (the mark, a website, a phone, a post, a rising
4
+ * chart) over its name and a line on what it does. The drawings are decoration, hidden from assistive technology.
5
+ */
6
+ export declare function BrandParts({ locale }: BrandPartsProperties): import("react").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/about/brand-parts/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAE5G;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAgB1D"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { translate } from "@sharadox/internationalization-web-library/translate";
3
+ import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
4
+ import styles from "./index.module.css";
5
+ /**
6
+ * Everything the brand reaches, as five tiles: each a small drawing (the mark, a website, a phone, a post, a rising
7
+ * chart) over its name and a line on what it does. The drawings are decoration, hidden from assistive technology.
8
+ */
9
+ export function BrandParts({ locale }) {
10
+ return (_jsx("ul", { className: styles.parts, role: "list", children: ABOUT.brand.parts.map((part) => (_jsxs("li", { className: styles.part, children: [_jsxs("span", { className: styles.drawing, "data-part": part.key, "aria-hidden": true, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("b", { children: translate(part.title, locale) }), _jsx("span", { className: styles.note, children: translate(part.note, locale) })] }, part.key))) }));
11
+ }
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/about/brand-parts/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,MAAM,EAAwB;IACzD,OAAO,CACL,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,MAAM,YACrC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC/B,cAAmB,SAAS,EAAE,MAAM,CAAC,IAAI,aACvC,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,eAAa,IAAI,CAAC,GAAG,kCAClD,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,sBAAI,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,GAAK,EACtC,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,GAAQ,KAP5D,IAAI,CAAC,GAAG,CAQZ,CACN,CAAC,GACC,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ .parts{display:grid;grid-template-columns:repeat(5, minmax(0, 1fr));align-items:stretch;gap:1px;margin:0;padding:0;list-style:none;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden}@media(max-width: 1000px){.parts{grid-template-columns:repeat(3, minmax(0, 1fr))}}@media(max-width: 600px){.parts{grid-template-columns:repeat(2, minmax(0, 1fr))}}.part{display:grid;grid-template-rows:auto auto 1fr;justify-content:stretch;justify-items:start;align-content:start;gap:6px;padding:18px 18px 22px;background:var(--background);transition:background .3s}.part b{margin-top:12px;font-weight:600;letter-spacing:-0.02em}.part:hover{background:color-mix(in srgb, var(--foreground) 10%, var(--background))}.part:hover .drawing{transform:translateY(-3px)}.note{align-self:start;font-size:13.5px;line-height:1.45;color:var(--foreground-2)}.drawing{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:relative;display:block;justify-self:stretch;height:92px;border-radius:12px;transition:transform .5s cubic-bezier(0.22, 1, 0.36, 1)}.drawing i{position:absolute;display:block}.drawing[data-part=identity] i:nth-child(1){left:50%;top:18px;width:34px;height:34px;margin-left:-17px;border:1.5px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:50%}.drawing[data-part=identity] i:nth-child(2){left:50%;top:27px;width:16px;height:16px;margin-left:-8px;border:3.5px solid var(--foreground);border-radius:2px;transform:rotate(45deg)}.drawing[data-part=identity] i:nth-child(3){left:50%;bottom:12px;width:46px;height:10px;margin-left:-23px;background:radial-gradient(circle, var(--foreground) 4px, transparent 4.5px) 0 0/15px 10px no-repeat,radial-gradient(circle, color-mix(in srgb, var(--foreground) 45%, transparent) 4px, transparent 4.5px) 15px 0/15px 10px no-repeat,radial-gradient(circle, color-mix(in srgb, var(--foreground) 20%, transparent) 4px, transparent 4.5px) 30px 0/15px 10px no-repeat}.drawing[data-part=website] i:nth-child(1){inset:14px 18px 12px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:6px;background:linear-gradient(color-mix(in srgb, var(--foreground) 20%, transparent), color-mix(in srgb, var(--foreground) 20%, transparent)) 0 0/100% 10px no-repeat}.drawing[data-part=website] i:nth-child(2){left:26px;right:26px;top:32px;height:20px;border-radius:3px;background:linear-gradient(120deg, color-mix(in srgb, var(--foreground) 45%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent))}.drawing[data-part=website] i:nth-child(3){left:26px;width:46%;top:58px;height:4px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 20%, transparent);box-shadow:0 8px 0 color-mix(in srgb, var(--foreground) 20%, transparent)}.drawing[data-part=apps] i:nth-child(1){left:50%;top:10px;width:40px;height:72px;margin-left:-20px;border:1.5px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:9px}.drawing[data-part=apps] i:nth-child(2){left:50%;top:22px;width:26px;height:26px;margin-left:-13px;background:radial-gradient(circle, var(--foreground) 3.5px, transparent 4px) 0 0/13px 13px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 45%, transparent) 3.5px, transparent 4px) 6.5px 6.5px/13px 13px}.drawing[data-part=apps] i:nth-child(3){left:50%;top:68px;width:14px;height:3px;margin-left:-7px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 45%, transparent)}.drawing[data-part=social] i:nth-child(1){left:50%;top:12px;width:58px;height:68px;margin-left:-29px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:7px}.drawing[data-part=social] i:nth-child(2){left:50%;top:22px;width:46px;height:32px;margin-left:-23px;border-radius:4px;background:linear-gradient(150deg, color-mix(in srgb, var(--foreground) 45%, transparent), color-mix(in srgb, var(--foreground) 10%, transparent))}.drawing[data-part=social] i:nth-child(3){left:calc(50% - 21px);top:61px;width:9px;height:9px;background:var(--foreground);transform:rotate(45deg)}.drawing[data-part=social] i:nth-child(3)::before,.drawing[data-part=social] i:nth-child(3)::after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--foreground)}.drawing[data-part=social] i:nth-child(3)::before{left:-4.5px;top:0}.drawing[data-part=social] i:nth-child(3)::after{left:0;top:-4.5px}.drawing[data-part=campaigns] i{bottom:16px;width:12px;border-radius:3px 3px 0 0}.drawing[data-part=campaigns] i:nth-child(1){left:calc(50% - 26px);height:22px;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.drawing[data-part=campaigns] i:nth-child(2){left:calc(50% - 6px);height:38px;background:color-mix(in srgb, var(--foreground) 45%, transparent)}.drawing[data-part=campaigns] i:nth-child(3){left:calc(50% + 14px);height:58px;background:var(--foreground);box-shadow:0 0 16px color-mix(in srgb, var(--foreground) 35%, transparent)}
@@ -0,0 +1,225 @@
1
+ @use "style/token" as *;
2
+ @use "style/object" as *;
3
+
4
+ /* Five tiles in a row, hairlines between them (three and two on tablets, one under another on phones). */
5
+ .parts {
6
+ display: grid;
7
+ grid-template-columns: repeat(5, minmax(0, 1fr));
8
+ align-items: stretch;
9
+ gap: 1px;
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style: none;
13
+ background: var(--line);
14
+ border: 1px solid var(--line);
15
+ border-radius: 16px;
16
+ overflow: hidden;
17
+ @include below(1000px) {
18
+ grid-template-columns: repeat(3, minmax(0, 1fr));
19
+ }
20
+ @include below(600px) {
21
+ grid-template-columns: repeat(2, minmax(0, 1fr));
22
+ }
23
+ }
24
+ .part {
25
+ display: grid;
26
+ grid-template-rows: auto auto 1fr;
27
+ justify-content: stretch;
28
+ justify-items: start;
29
+ align-content: start;
30
+ gap: 6px;
31
+ padding: 18px 18px 22px;
32
+ background: var(--background);
33
+ transition: background 0.3s;
34
+ b {
35
+ margin-top: 12px;
36
+ font-weight: 600;
37
+ letter-spacing: -0.02em;
38
+ }
39
+ &:hover {
40
+ background: surface($hint);
41
+ }
42
+ &:hover .drawing {
43
+ transform: translateY(-3px);
44
+ }
45
+ }
46
+ .note {
47
+ align-self: start;
48
+ font-size: 13.5px;
49
+ line-height: 1.45;
50
+ color: var(--foreground-2);
51
+ }
52
+ /* A small drawing on a soft panel; its three pieces make a different thing for each part. */
53
+ .drawing {
54
+ @include face;
55
+ position: relative;
56
+ display: block;
57
+ justify-self: stretch;
58
+ height: 92px;
59
+ border-radius: 12px;
60
+ transition: transform 0.5s $ease;
61
+ i {
62
+ position: absolute;
63
+ display: block;
64
+ }
65
+ /* Identity: the mark in a ring, and a row of color swatches. */
66
+ &[data-part="identity"] {
67
+ i:nth-child(1) {
68
+ left: 50%;
69
+ top: 18px;
70
+ width: 34px;
71
+ height: 34px;
72
+ margin-left: -17px;
73
+ border: 1.5px solid tint($edge);
74
+ border-radius: 50%;
75
+ }
76
+ i:nth-child(2) {
77
+ left: 50%;
78
+ top: 27px;
79
+ width: 16px;
80
+ height: 16px;
81
+ margin-left: -8px;
82
+ border: 3.5px solid var(--foreground);
83
+ border-radius: 2px;
84
+ transform: rotate(45deg);
85
+ }
86
+ i:nth-child(3) {
87
+ left: 50%;
88
+ bottom: 12px;
89
+ width: 46px;
90
+ height: 10px;
91
+ margin-left: -23px;
92
+ background:
93
+ radial-gradient(circle, var(--foreground) 4px, transparent 4.5px) 0 0 / 15px 10px no-repeat,
94
+ radial-gradient(circle, tint($detail) 4px, transparent 4.5px) 15px 0 / 15px 10px no-repeat,
95
+ radial-gradient(circle, tint($faint) 4px, transparent 4.5px) 30px 0 / 15px 10px no-repeat;
96
+ }
97
+ }
98
+ /* Website: a browser window with a picture and lines. */
99
+ &[data-part="website"] {
100
+ i:nth-child(1) {
101
+ inset: 14px 18px 12px;
102
+ border: 1px solid tint($edge);
103
+ border-radius: 6px;
104
+ background: linear-gradient(tint($faint), tint($faint)) 0 0 / 100% 10px no-repeat;
105
+ }
106
+ i:nth-child(2) {
107
+ left: 26px;
108
+ right: 26px;
109
+ top: 32px;
110
+ height: 20px;
111
+ border-radius: 3px;
112
+ background: linear-gradient(120deg, tint($detail), tint($hint));
113
+ }
114
+ i:nth-child(3) {
115
+ left: 26px;
116
+ width: 46%;
117
+ top: 58px;
118
+ height: 4px;
119
+ border-radius: 2px;
120
+ background: tint($faint);
121
+ box-shadow: 0 8px 0 tint($faint);
122
+ }
123
+ }
124
+ /* Apps: a phone with app icons. */
125
+ &[data-part="apps"] {
126
+ i:nth-child(1) {
127
+ left: 50%;
128
+ top: 10px;
129
+ width: 40px;
130
+ height: 72px;
131
+ margin-left: -20px;
132
+ border: 1.5px solid tint($edge);
133
+ border-radius: 9px;
134
+ }
135
+ i:nth-child(2) {
136
+ left: 50%;
137
+ top: 22px;
138
+ width: 26px;
139
+ height: 26px;
140
+ margin-left: -13px;
141
+ background:
142
+ radial-gradient(circle, var(--foreground) 3.5px, transparent 4px) 0 0 / 13px 13px,
143
+ radial-gradient(circle, tint($detail) 3.5px, transparent 4px) 6.5px 6.5px / 13px 13px;
144
+ }
145
+ i:nth-child(3) {
146
+ left: 50%;
147
+ top: 68px;
148
+ width: 14px;
149
+ height: 3px;
150
+ margin-left: -7px;
151
+ border-radius: 2px;
152
+ background: tint($detail);
153
+ }
154
+ }
155
+ /* Social media: a post with a picture and a heart. */
156
+ &[data-part="social"] {
157
+ i:nth-child(1) {
158
+ left: 50%;
159
+ top: 12px;
160
+ width: 58px;
161
+ height: 68px;
162
+ margin-left: -29px;
163
+ border: 1px solid tint($edge);
164
+ border-radius: 7px;
165
+ }
166
+ i:nth-child(2) {
167
+ left: 50%;
168
+ top: 22px;
169
+ width: 46px;
170
+ height: 32px;
171
+ margin-left: -23px;
172
+ border-radius: 4px;
173
+ background: linear-gradient(150deg, tint($detail), tint($hint));
174
+ }
175
+ i:nth-child(3) {
176
+ left: calc(50% - 21px);
177
+ top: 61px;
178
+ width: 9px;
179
+ height: 9px;
180
+ background: var(--foreground);
181
+ transform: rotate(45deg);
182
+ &::before,
183
+ &::after {
184
+ content: "";
185
+ position: absolute;
186
+ width: 9px;
187
+ height: 9px;
188
+ border-radius: 50%;
189
+ background: var(--foreground);
190
+ }
191
+ &::before {
192
+ left: -4.5px;
193
+ top: 0;
194
+ }
195
+ &::after {
196
+ left: 0;
197
+ top: -4.5px;
198
+ }
199
+ }
200
+ }
201
+ /* Campaigns: bars rising to a peak. */
202
+ &[data-part="campaigns"] {
203
+ i {
204
+ bottom: 16px;
205
+ width: 12px;
206
+ border-radius: 3px 3px 0 0;
207
+ }
208
+ i:nth-child(1) {
209
+ left: calc(50% - 26px);
210
+ height: 22px;
211
+ background: tint($faint);
212
+ }
213
+ i:nth-child(2) {
214
+ left: calc(50% - 6px);
215
+ height: 38px;
216
+ background: tint($detail);
217
+ }
218
+ i:nth-child(3) {
219
+ left: calc(50% + 14px);
220
+ height: 58px;
221
+ background: var(--foreground);
222
+ box-shadow: 0 0 16px tint($glow);
223
+ }
224
+ }
225
+ }
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
- export interface FeedProperties {
2
+ export interface BrandPartsProperties {
3
3
  locale: Locale;
4
4
  }
5
5
  //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/about/brand-parts/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/about/brand-parts/type.ts"],"names":[],"mappings":""}
@@ -1,10 +1,9 @@
1
1
  import type { AboutProperties } from "@sharadox/sharadox-web-library/component/about/type";
2
2
  /**
3
3
  * Between the hero and the services: a sentence that lights up as it scrolls (the brand everywhere online, and the
4
- * system that runs the business behind it), then the two halves of it, one row each across the frame. The brand,
5
- * online: what it is, and the five things it's made of in a numbered row. Then, given the most room, the platform
6
- * that runs the business: what it is beside its live feed (the platform and the team at work), and its three
7
- * promises in a row under both.
4
+ * system that runs the business behind it), then its two halves as numbered chapters, each told in one picture.
5
+ * 01, the brand: five tiles of everything customers see. 02, the platform: a flow from the customers, through the
6
+ * platform, to the team, with the owner watching it all live.
8
7
  */
9
8
  export declare function About({ locale }: AboutProperties): import("react").JSX.Element;
10
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/about/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAE3F;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,+BAsChD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/about/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AAE3F;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,+BAwBhD"}
@@ -2,21 +2,24 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Reveal } from "@sharadox/animation-web-library/reveal";
3
3
  import { ScrollWords } from "@sharadox/animation-web-library/scroll-word";
4
4
  import { translate } from "@sharadox/internationalization-web-library/translate";
5
+ import { BrandParts } from "@sharadox/sharadox-web-library/component/about/brand-parts";
6
+ import { PlatformFlow } from "@sharadox/sharadox-web-library/component/about/platform-flow";
5
7
  import { Eyebrow } from "@sharadox/sharadox-web-library/component/eyebrow";
6
- import { Feed } from "@sharadox/sharadox-web-library/component/about/feed";
7
8
  import { Section } from "@sharadox/sharadox-web-library/component/section";
8
9
  import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
9
10
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
10
11
  import styles from "./index.module.css";
11
12
  /**
12
13
  * Between the hero and the services: a sentence that lights up as it scrolls (the brand everywhere online, and the
13
- * system that runs the business behind it), then the two halves of it, one row each across the frame. The brand,
14
- * online: what it is, and the five things it's made of in a numbered row. Then, given the most room, the platform
15
- * that runs the business: what it is beside its live feed (the platform and the team at work), and its three
16
- * promises in a row under both.
14
+ * system that runs the business behind it), then its two halves as numbered chapters, each told in one picture.
15
+ * 01, the brand: five tiles of everything customers see. 02, the platform: a flow from the customers, through the
16
+ * platform, to the team, with the owner watching it all live.
17
17
  */
18
18
  export function About({ locale }) {
19
- const { brand, business } = ABOUT;
20
- return (_jsxs(Section, { id: SECTION.about.id, className: styles.about, children: [_jsx(Eyebrow, { children: translate(SECTION.about, locale) }), _jsx(ScrollWords, { text: translate(ABOUT.statement, locale), className: styles.statement }), _jsxs("div", { className: styles.panels, children: [_jsxs(Reveal, { className: styles.brand, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(brand.eyebrow, locale) }), _jsx("h3", { children: translate(brand.title, locale) }), _jsx("p", { children: translate(brand.text, locale) })] }), _jsx("ol", { className: styles.parts, children: brand.parts[locale].map((part) => (_jsx("li", { children: part }, part))) })] }), _jsxs(Reveal, { delay: 0.1, className: styles.business, children: [_jsxs("div", { className: styles.copy, children: [_jsx(Eyebrow, { children: translate(business.eyebrow, locale) }), _jsx("h3", { children: translate(business.title, locale) }), _jsx("p", { children: translate(business.text, locale) })] }), _jsx(Feed, { locale: locale }), _jsx("ul", { className: styles.points, children: business.points.map((point) => (_jsxs("li", { children: [_jsx("b", { children: translate(point.title, locale) }), _jsx("span", { children: translate(point.text, locale) })] }, point.title.en))) })] })] })] }));
19
+ const { brand, platform } = ABOUT;
20
+ return (_jsxs(Section, { id: SECTION.about.id, className: styles.about, children: [_jsx(Eyebrow, { children: translate(SECTION.about, locale) }), _jsx(ScrollWords, { text: translate(ABOUT.statement, locale), className: styles.statement }), [
21
+ { chapter: brand, picture: _jsx(BrandParts, { locale: locale }), key: "brand" },
22
+ { chapter: platform, picture: _jsx(PlatformFlow, { locale: locale }), key: "platform" },
23
+ ].map(({ chapter, picture, key }) => (_jsxs("div", { className: styles.chapter, "data-chapter": key, children: [_jsxs(Reveal, { className: styles.heading, children: [_jsx("span", { className: `${styles.number} monospace`, children: chapter.number }), _jsx(Eyebrow, { className: styles.eyebrow, children: translate(chapter.eyebrow, locale) }), _jsx("h3", { className: styles.title, children: translate(chapter.title, locale) }), _jsx("p", { className: styles.text, children: translate(chapter.text, locale) })] }), _jsx(Reveal, { delay: 0.1, className: styles.picture, children: picture })] }, key)))] }));
21
24
  }
22
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/about/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,MAAM,EAAmB;IAC/C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAClC,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,aACpD,KAAC,OAAO,cAAE,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAW,EACrD,KAAC,WAAW,IAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,EACtF,eA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Q,EAAE,OAAO,EAAE,KAAC,YAAY,IAAC,MAAM,EAAE,MAAM,GAAI,EAAE,GAAG,EAAE,UAAU,EAAE;aAClF,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CACnC,eAAe,SAAS,EAAE,MAAM,CAAC,OAAO,kBAAgB,GAAG,aACzD,MAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,aAC/B,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,YAAG,OAAO,CAAC,MAAM,GAAQ,EACtE,KAAC,OAAO,IAAC,SAAS,EAAE,MAAM,CAAC,OAAO,YAAG,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,GAAW,EAClF,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,GAAM,EACpE,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GAAK,IACzD,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,OAAO,YAC1C,OAAO,GACD,KATD,GAAG,CAUP,CACP,CAAC,IACM,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .about{padding-block:clamp(100px,16vh,180px) clamp(72px,10vw,128px)}.statement{margin-top:24px;font-size:clamp(1.9rem,4.2vw,3.8rem);font-weight:500;letter-spacing:-0.045em;line-height:1.08;max-width:24ch}.panels{display:grid;justify-content:stretch;align-items:stretch;gap:1px;margin-top:clamp(56px,8vw,96px);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--line)}.panels>*{background:var(--background);padding:clamp(24px,3.4vw,48px)}.panels h3{font-size:clamp(1.6rem,2.8vw,2.5rem);letter-spacing:-0.04em;text-wrap:balance}.panels p{color:var(--foreground-2);text-wrap:pretty}.copy{display:grid;justify-content:stretch;justify-items:start;align-content:start;gap:16px}.brand{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr);align-items:end;gap:clamp(24px,4vw,64px)}@media(max-width: 1000px){.brand{grid-template-columns:1fr}}.parts{display:grid;grid-template-columns:repeat(5, 1fr);align-items:stretch;margin:0;padding:0;list-style:none;counter-reset:part}.parts li{display:grid;align-content:start;justify-items:start;gap:10px;padding:16px 14px 4px;border-left:1px dashed var(--line-2);font-weight:500;letter-spacing:-0.02em;counter-increment:part}.parts li::before{content:counter(part, decimal-leading-zero);font-family:var(--monospace);font-size:11.5px;font-weight:400;color:var(--foreground-3)}@media(max-width: 640px){.parts{grid-template-columns:1fr}.parts li{display:flex;align-items:baseline;justify-content:flex-start;gap:14px;padding:12px 0;border-left:0;border-bottom:1px dashed var(--line-2)}.parts li:last-child{border-bottom:0}}.business{display:grid;grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);grid-template-areas:"copy feed" "points points";align-items:center;gap:clamp(28px,4vw,56px) clamp(24px,4vw,64px);background:radial-gradient(70% 80% at 80% 40%, color-mix(in srgb, var(--foreground) 7%, transparent), transparent 70%),var(--background) !important}.business>.copy{grid-area:copy}.business>:nth-child(2){grid-area:feed}@media(max-width: 1000px){.business{grid-template-columns:1fr;grid-template-areas:"copy" "feed" "points"}}.points{grid-area:points;display:grid;grid-template-columns:repeat(3, 1fr);align-items:start;gap:16px clamp(16px,3vw,40px);margin:0;padding:24px 0 0;border-top:1px dashed var(--line-2);list-style:none}.points li{display:grid;justify-content:stretch;align-content:start;gap:6px}.points b{font-weight:600;letter-spacing:-0.02em}.points span{font-size:14.5px;line-height:1.55;color:var(--foreground-2)}@media(max-width: 700px){.points{grid-template-columns:1fr}}
1
+ .about{padding-block:clamp(100px,16vh,180px) clamp(72px,10vw,128px)}.statement{margin-top:24px;font-size:clamp(1.9rem,4.2vw,3.8rem);font-weight:500;letter-spacing:-0.045em;line-height:1.08;max-width:24ch}.chapter{display:grid;grid-template-columns:minmax(0, 1fr);gap:clamp(28px,3.4vw,48px);margin-top:clamp(64px,9vw,120px);padding-top:clamp(32px,4vw,48px);border-top:1px solid var(--line)}@media(min-width: 901px){.chapter .heading{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);align-items:end;column-gap:clamp(24px,4vw,64px)}.chapter .number,.chapter .eyebrow{grid-column:1/-1}.chapter .title{grid-column:1}.chapter .text{grid-column:2;justify-self:end}}.heading{display:grid;justify-content:stretch;justify-items:start;align-content:start;gap:14px}.title{font-size:clamp(1.9rem,3.4vw,3rem);letter-spacing:-0.045em;line-height:1.04;text-wrap:balance}.text{max-width:46ch;color:var(--foreground-2);font-size:1.05rem;text-wrap:pretty}.number{font-size:12px;color:var(--foreground-3)}.picture{min-width:0}
@@ -12,145 +12,57 @@
12
12
  line-height: 1.08;
13
13
  max-width: 24ch;
14
14
  }
15
- /* The two halves, one row each, as cells with hairlines between them. */
16
- .panels {
15
+ /* A chapter: its number and label, then its title and a few lines side by side, then its picture across the whole
16
+ width (all one under another on smaller screens). */
17
+ .chapter {
17
18
  display: grid;
18
- justify-content: stretch;
19
- align-items: stretch;
20
- gap: 1px;
21
- margin-top: clamp(56px, 8vw, 96px);
22
- border: 1px solid var(--line);
23
- border-radius: 18px;
24
- overflow: hidden;
25
- background: var(--line);
26
- > * {
27
- background: var(--background);
28
- padding: clamp(24px, 3.4vw, 48px);
29
- }
30
- h3 {
31
- font-size: clamp(1.6rem, 2.8vw, 2.5rem);
32
- letter-spacing: -0.04em;
33
- text-wrap: balance;
34
- }
35
- p {
36
- color: var(--foreground-2);
37
- text-wrap: pretty;
19
+ grid-template-columns: minmax(0, 1fr);
20
+ gap: clamp(28px, 3.4vw, 48px);
21
+ margin-top: clamp(64px, 9vw, 120px);
22
+ padding-top: clamp(32px, 4vw, 48px);
23
+ border-top: 1px solid var(--line);
24
+ @media (min-width: 901px) {
25
+ .heading {
26
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
27
+ align-items: end;
28
+ column-gap: clamp(24px, 4vw, 64px);
29
+ }
30
+ .number,
31
+ .eyebrow {
32
+ grid-column: 1 / -1;
33
+ }
34
+ .title {
35
+ grid-column: 1;
36
+ }
37
+ .text {
38
+ grid-column: 2;
39
+ justify-self: end;
40
+ }
38
41
  }
39
42
  }
40
- /* What a half is: its label, its title and a few lines. */
41
- .copy {
43
+ .heading {
42
44
  display: grid;
43
45
  justify-content: stretch;
44
46
  justify-items: start;
45
47
  align-content: start;
46
- gap: 16px;
48
+ gap: 14px;
47
49
  }
48
- /* The brand: what it is on the left, the five things it's made of in a numbered row on the right, level with its
49
- bottom. */
50
- .brand {
51
- display: grid;
52
- grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
53
- align-items: end;
54
- gap: clamp(24px, 4vw, 64px);
55
- @include below(1000px) {
56
- grid-template-columns: 1fr;
57
- }
50
+ .title {
51
+ font-size: clamp(1.9rem, 3.4vw, 3rem);
52
+ letter-spacing: -0.045em;
53
+ line-height: 1.04;
54
+ text-wrap: balance;
58
55
  }
59
- /* Their numbers in a line at the top, whatever wraps under them. */
60
- .parts {
61
- display: grid;
62
- grid-template-columns: repeat(5, 1fr);
63
- align-items: stretch;
64
- margin: 0;
65
- padding: 0;
66
- list-style: none;
67
- counter-reset: part;
68
- li {
69
- display: grid;
70
- align-content: start;
71
- justify-items: start;
72
- gap: 10px;
73
- padding: 16px 14px 4px;
74
- border-left: 1px dashed var(--line-2);
75
- font-weight: 500;
76
- letter-spacing: -0.02em;
77
- counter-increment: part;
78
- &::before {
79
- content: counter(part, decimal-leading-zero);
80
- font-family: var(--monospace);
81
- font-size: 11.5px;
82
- font-weight: 400;
83
- color: var(--foreground-3);
84
- }
85
- }
86
- @include below(640px) {
87
- grid-template-columns: 1fr;
88
- li {
89
- display: flex;
90
- align-items: baseline;
91
- justify-content: flex-start;
92
- gap: 14px;
93
- padding: 12px 0;
94
- border-left: 0;
95
- border-bottom: 1px dashed var(--line-2);
96
- &:last-child {
97
- border-bottom: 0;
98
- }
99
- }
100
- }
56
+ .text {
57
+ max-width: 46ch;
58
+ color: var(--foreground-2);
59
+ font-size: 1.05rem;
60
+ text-wrap: pretty;
101
61
  }
102
- /* The business, lit from behind as the half that matters most: what it is beside its live feed, its three promises
103
- in a row under both. */
104
- .business {
105
- display: grid;
106
- grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
107
- grid-template-areas:
108
- "copy feed"
109
- "points points";
110
- align-items: center;
111
- gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
112
- background: radial-gradient(70% 80% at 80% 40%, tint(7%), transparent 70%), var(--background) !important;
113
- > .copy {
114
- grid-area: copy;
115
- }
116
- > :nth-child(2) {
117
- grid-area: feed;
118
- }
119
- @include below(1000px) {
120
- grid-template-columns: 1fr;
121
- grid-template-areas:
122
- "copy"
123
- "feed"
124
- "points";
125
- }
62
+ .number {
63
+ font-size: 12px;
64
+ color: var(--foreground-3);
126
65
  }
127
- /* Automated, your team, anywhere: three promises side by side, each a word and a line. */
128
- .points {
129
- grid-area: points;
130
- display: grid;
131
- grid-template-columns: repeat(3, 1fr);
132
- align-items: start;
133
- gap: 16px clamp(16px, 3vw, 40px);
134
- margin: 0;
135
- padding: 24px 0 0;
136
- border-top: 1px dashed var(--line-2);
137
- list-style: none;
138
- li {
139
- display: grid;
140
- justify-content: stretch;
141
- align-content: start;
142
- gap: 6px;
143
- }
144
- b {
145
- font-weight: 600;
146
- letter-spacing: -0.02em;
147
- }
148
- span {
149
- font-size: 14.5px;
150
- line-height: 1.55;
151
- color: var(--foreground-2);
152
- }
153
- @include below(700px) {
154
- grid-template-columns: 1fr;
155
- }
66
+ .picture {
67
+ min-width: 0;
156
68
  }
@@ -0,0 +1,8 @@
1
+ import type { PlatformFlowProperties } from "@sharadox/sharadox-web-library/component/about/platform-flow/type";
2
+ /**
3
+ * How a platform runs a business, as a flow read left to right (top to bottom on phones): the customers' steps, the
4
+ * platform's own (the one that matters most, lit), the team's on their phone, each ticking off in turn while a pulse
5
+ * travels between them; under it all, the owner, watching live from wherever they are.
6
+ */
7
+ export declare function PlatformFlow({ locale }: PlatformFlowProperties): import("react").JSX.Element;
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/about/platform-flow/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mEAAmE,CAAC;AAEhH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAiD9D"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment } from "react";
3
+ import { translate } from "@sharadox/internationalization-web-library/translate";
4
+ import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
5
+ import styles from "./index.module.css";
6
+ /**
7
+ * How a platform runs a business, as a flow read left to right (top to bottom on phones): the customers' steps, the
8
+ * platform's own (the one that matters most, lit), the team's on their phone, each ticking off in turn while a pulse
9
+ * travels between them; under it all, the owner, watching live from wherever they are.
10
+ */
11
+ export function PlatformFlow({ locale }) {
12
+ const { lanes, you } = ABOUT.platform;
13
+ // Every step's place in the whole flow, so they tick off one after another, lane after lane.
14
+ const offsets = lanes.map((_, index) => lanes.slice(0, index).reduce((sum, lane) => sum + lane.steps.length, 0));
15
+ return (_jsxs("div", { className: styles.flow, children: [_jsx("div", { className: styles.lanes, children: lanes.map((lane, index) => (_jsxs(Fragment, { children: [index > 0 && (_jsx("span", { className: styles.link, "aria-hidden": true, children: _jsx("i", {}) })), _jsxs("section", { className: styles.lane, "data-lane": lane.key, "aria-label": translate(lane.title, locale), children: [_jsxs("header", { className: styles.header, children: [_jsx("span", { className: styles.badge, "aria-hidden": true }), _jsxs("span", { children: [_jsx("b", { children: translate(lane.title, locale) }), _jsx("span", { className: styles.note, children: translate(lane.note, locale) })] })] }), _jsx("ol", { className: styles.steps, children: lane.steps.map((step, position) => (_jsxs("li", { style: { "--order": offsets[index] + position }, children: [_jsx("i", { className: styles.tick, "aria-hidden": true }), translate(step, locale)] }, step.en))) })] })] }, lane.key))) }), _jsxs("div", { className: styles.you, children: [_jsxs("span", { className: styles.live, children: [_jsx("i", { "aria-hidden": true }), translate(you.live, locale)] }), _jsx("b", { children: translate(you.title, locale) }), _jsx("span", { className: styles.text, children: translate(you.text, locale) }), _jsx("span", { className: styles.places, "aria-hidden": true, children: you.places[locale].map((place) => (_jsx("span", { children: place }, place))) })] })] }));
16
+ }
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/about/platform-flow/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAsB,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,8CAA8C,CAAC;AACrE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,MAAM,EAA0B;IAC7D,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,KAAK,CAAC,QAAQ,CAAC;IACtC,6FAA6F;IAC7F,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;IACjH,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YACzB,KAAK,CAAC,GAAG,CAAC,CA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AC,IAAI,YAAG,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,GAAQ,EAClE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC3B,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CACjC,yBAAmB,KAAK,IAAb,KAAK,CAAgB,CACjC,CAAC,GACG,IACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ .flow{display:grid;justify-content:stretch;gap:16px}.lanes{display:grid;grid-template-columns:minmax(0, 1fr) 56px minmax(0, 1.2fr) 56px minmax(0, 1fr);align-items:stretch}@media(max-width: 1000px){.lanes{grid-template-columns:minmax(0, 1fr)}}.lane{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;justify-content:stretch;align-content:start;gap:16px;padding:20px;border-radius:16px}.lane[data-lane=platform]{border-color:color-mix(in srgb, var(--foreground) 70%, transparent);background:radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--foreground) 20%, transparent), transparent 70%),color-mix(in srgb, var(--foreground) 9%, var(--background));box-shadow:0 30px 70px -36px color-mix(in srgb, var(--foreground) 35%, transparent)}.header{display:flex;align-items:center;justify-content:flex-start;gap:12px;text-align:left}.header b{display:block;font-weight:600;letter-spacing:-0.02em}.note{display:block;font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.badge{position:relative;flex:none;width:36px;height:36px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:10px;background:var(--background)}.badge::before,.badge::after{content:"";position:absolute;left:50%}[data-lane=customers] .badge::before{top:8px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 70%, transparent)}[data-lane=customers] .badge::after{top:19px;width:18px;height:9px;margin-left:-9px;border-radius:9px 9px 2px 2px;background:color-mix(in srgb, var(--foreground) 70%, transparent)}[data-lane=platform] .badge::before{top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border:3px solid var(--foreground);border-radius:2px;transform:rotate(45deg)}[data-lane=team] .badge::before{top:7px;width:14px;height:22px;margin-left:-7px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-radius:4px}[data-lane=team] .badge::after{top:24px;width:4px;height:1.5px;margin-left:-2px;background:color-mix(in srgb, var(--foreground) 70%, transparent)}.steps{display:grid;justify-content:stretch;gap:8px;margin:0;padding:0;list-style:none}.steps li{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--background);font-size:14px;text-align:left;animation:flow-step 10s cubic-bezier(0.22, 1, 0.36, 1) infinite calc(var(--order)*0.8s - 10s)}@media(prefers-reduced-motion: reduce){.steps li{animation:none}}@keyframes flow-step{0%,4%{opacity:.35}10%,86%{opacity:1}94%,100%{opacity:.35}}.tick{position:relative;flex:none;width:16px;height:16px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:50%;animation:flow-tick 10s cubic-bezier(0.22, 1, 0.36, 1) infinite calc(var(--order)*0.8s - 10s)}@media(prefers-reduced-motion: reduce){.tick{animation:none}}.tick::after{content:"";position:absolute;left:5px;top:2.5px;width:3.5px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}@keyframes flow-tick{0%,6%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}12%,86%{background:var(--foreground);color:var(--background)}94%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}.link{position:relative;align-self:center;height:1px;margin:0 6px;background:linear-gradient(90deg, color-mix(in srgb, var(--foreground) 50%, transparent) 50%, transparent 0) 0 0/8px 1px repeat-x}.link i{position:absolute;top:-3px;left:0;width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 10px color-mix(in srgb, var(--foreground) 35%, transparent);animation:flow-pulse 2.2s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.link i{animation:none}}@media(max-width: 1000px){.link{justify-self:center;width:1px;height:32px;margin:6px 0;background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 50%, transparent) 50%, transparent 0) 0 0/1px 8px repeat-y}.link i{left:-3px;top:0;animation-name:flow-pulse-down}}@keyframes flow-pulse{0%{left:0;opacity:0}15%,85%{opacity:1}100%{left:calc(100% - 7px);opacity:0}}@keyframes flow-pulse-down{0%{top:0;opacity:0}15%,85%{opacity:1}100%{top:calc(100% - 7px);opacity:0}}.you{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:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:10px 16px;padding:16px 20px;border-radius:16px;text-align:left}.you b{font-weight:600;letter-spacing:-0.02em}.text{flex:1 1 260px;color:var(--foreground-2)}.live{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border:1px solid var(--line-2);border-radius:99px;font-family:var(--monospace);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--foreground-2)}.live i{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:flow-live 2.4s infinite}@media(prefers-reduced-motion: reduce){.live i{animation:none}}@keyframes flow-live{70%{box-shadow:0 0 0 8px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.places{display:inline-grid;justify-items:end;font-family:var(--monospace);font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground)}.places span{grid-area:1/1;opacity:0}.places span:nth-child(1){animation:flow-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 0s backwards}@media(prefers-reduced-motion: reduce){.places span:nth-child(1){animation:none}}.places span:nth-child(2){animation:flow-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 3s backwards}@media(prefers-reduced-motion: reduce){.places span:nth-child(2){animation:none}}.places span:nth-child(3){animation:flow-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 6s backwards}@media(prefers-reduced-motion: reduce){.places span:nth-child(3){animation:none}}.places span:nth-child(4){animation:flow-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 9s backwards}@media(prefers-reduced-motion: reduce){.places span:nth-child(4){animation:none}}@media(prefers-reduced-motion: reduce){.places span:first-child{opacity:1}}@keyframes flow-place{0%{opacity:0;transform:translateY(6px)}6%,22%{opacity:1;transform:none}28%,100%{opacity:0;transform:translateY(-6px)}}