@sharadox/sharadox-web-library 0.28.0 → 0.30.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 (26) hide show
  1. package/distribution/component/service-object/android-application/index.d.ts +5 -1
  2. package/distribution/component/service-object/android-application/index.d.ts.map +1 -1
  3. package/distribution/component/service-object/android-application/index.js +11 -3
  4. package/distribution/component/service-object/android-application/index.js.map +1 -1
  5. package/distribution/component/service-object/android-application/index.module.css +1 -1
  6. package/distribution/component/service-object/android-application/index.module.scss +112 -30
  7. package/distribution/component/service-object/hosting/index.d.ts +2 -3
  8. package/distribution/component/service-object/hosting/index.d.ts.map +1 -1
  9. package/distribution/component/service-object/hosting/index.js +3 -6
  10. package/distribution/component/service-object/hosting/index.js.map +1 -1
  11. package/distribution/component/service-object/hosting/index.module.css +1 -1
  12. package/distribution/component/service-object/hosting/index.module.scss +5 -39
  13. package/distribution/component/service-object/ios-application/index.d.ts +4 -1
  14. package/distribution/component/service-object/ios-application/index.d.ts.map +1 -1
  15. package/distribution/component/service-object/ios-application/index.js +10 -3
  16. package/distribution/component/service-object/ios-application/index.js.map +1 -1
  17. package/distribution/component/service-object/ios-application/index.module.css +1 -1
  18. package/distribution/component/service-object/ios-application/index.module.scss +129 -36
  19. package/distribution/component/service-object/product-launch/index.d.ts +4 -3
  20. package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
  21. package/distribution/component/service-object/product-launch/index.js +35 -11
  22. package/distribution/component/service-object/product-launch/index.js.map +1 -1
  23. package/distribution/component/service-object/product-launch/index.module.css +1 -1
  24. package/distribution/component/service-object/product-launch/index.module.scss +225 -199
  25. package/llms.txt +2 -0
  26. package/package.json +2 -2
@@ -1,256 +1,282 @@
1
1
  @use "style/token" as *;
2
2
  @use "style/object" as *;
3
3
 
4
- /* One round: the four steps light one after the other (from 4%, every 17%), launch day holds, then all clears. */
5
- $round: 8s;
6
- $first: 4%;
7
- $step: 17%;
8
- $clear: 88%;
4
+ /*
5
+ * One round of 6s: the countdown (3, 2 and 1, 1.2s each, so 0 to 60%), the engine lighting and the lift-off (60% to
6
+ * 84%), and the next rocket standing ready (from 90%). Every part runs on the same clock.
7
+ */
8
+ $round: 6s;
9
+ /* The rocket's body: its height, and the top of the pad it stands on. */
10
+ $body: 54px;
11
+ $pad-top: 52px;
9
12
 
10
13
  .object {
11
14
  @include centered(0px, 0px);
12
15
  @include loop(launch-sway 12s ease-in-out infinite);
13
- transform: rotateX(24deg) rotateY(-14deg);
16
+ transform: scale(1.15) rotateX(-14deg) rotateY(-18deg);
14
17
  }
15
18
  @keyframes launch-sway {
16
19
  0%,
17
20
  100% {
18
- transform: rotateX(24deg) rotateY(-14deg);
21
+ transform: scale(1.15) rotateX(-14deg) rotateY(-18deg);
19
22
  }
20
23
  50% {
21
- transform: rotateX(18deg) rotateY(10deg);
24
+ transform: scale(1.15) rotateX(-8deg) rotateY(14deg);
22
25
  }
23
26
  }
24
- .timeline {
25
- @include centered(264px, 130px);
26
- display: grid;
27
- grid-template-columns: repeat(4, 1fr);
28
- gap: 10px;
29
- }
30
- /* The timeline under the steps, filling as the campaign moves on. */
31
- .track {
32
- position: absolute;
33
- left: 30px;
34
- right: 30px;
35
- bottom: 9px;
36
- height: 2px;
37
- background: tint(16%);
27
+ /* The launch pad: a low, wide block. */
28
+ .pad {
29
+ --width: 96px;
30
+ --height: 10px;
31
+ --depth: 96px;
32
+ --radius: 3px;
33
+ --fill-amount: 8%;
34
+ --edge-amount: 50%;
35
+ transform: translateY($pad-top + 5px);
38
36
  }
39
- .progress {
40
- position: absolute;
41
- inset: 0;
42
- background: var(--foreground);
43
- box-shadow: 0 0 8px tint(60%);
44
- transform-origin: left;
45
- @include loop(launch-progress $round $ease infinite);
37
+ /* The rocket stands on the pad, turning slowly on its axis; at zero it rises, faster and faster, out of sight. */
38
+ .rocket {
39
+ @include centered(0px, 0px);
40
+ transform: translateY($pad-top);
41
+ @include loop(launch-rocket $round infinite);
46
42
  }
47
- @keyframes launch-progress {
43
+ /* Shown and hidden by scale, not opacity, which would flatten the rocket. */
44
+ @keyframes launch-rocket {
48
45
  0%,
49
- #{$first} {
50
- transform: scaleX(0);
46
+ 60% {
47
+ transform: translateY($pad-top);
51
48
  }
52
- #{$first + 3 * $step} {
53
- transform: scaleX(1);
49
+ 63% {
50
+ transform: translateY($pad-top + 2px);
51
+ animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4);
54
52
  }
55
- #{$clear} {
56
- transform: scaleX(1);
57
- opacity: 1;
53
+ 84% {
54
+ transform: translateY($pad-top - 360px);
55
+ }
56
+ 85%,
57
+ 92% {
58
+ transform: translateY($pad-top) scale(0);
59
+ animation-timing-function: $ease;
58
60
  }
59
- #{$clear + 6%},
60
61
  100% {
61
- transform: scaleX(1);
62
- opacity: 0;
62
+ transform: translateY($pad-top) scale(1);
63
63
  }
64
64
  }
65
- .step {
66
- position: relative;
67
- display: grid;
68
- grid-template-rows: 1fr 20px;
69
- justify-items: center;
70
- align-items: center;
65
+ .spin {
66
+ @include centered(0px, 0px);
67
+ @include loop(launch-spin 9s linear infinite);
71
68
  }
72
- /* A step's card: dim until the campaign reaches it, then lit, raised a little. */
73
- .tile {
74
- display: grid;
75
- place-items: center;
76
- width: 58px;
77
- height: 78px;
78
- border-radius: 6px;
79
- @include face(6%, 55%);
80
- background: var(--background);
81
- box-shadow: 0 0 22px -6px tint(45%);
82
- transform-style: preserve-3d;
69
+ @keyframes launch-spin {
70
+ to {
71
+ transform: rotateY(360deg);
72
+ }
73
+ }
74
+ /* A panel of the round body, lit by how it faces the light; the window sits on the front one. */
75
+ .panel {
76
+ position: absolute;
77
+ top: -$body;
78
+ height: $body;
79
+ background: color-mix(in srgb, var(--foreground) var(--light), var(--background));
80
+ border-top: 1px solid tint(60%);
83
81
  }
84
- .dot {
82
+ .window {
83
+ position: absolute;
84
+ left: 50%;
85
+ top: 14px;
85
86
  width: 9px;
86
87
  height: 9px;
88
+ margin-left: -4.5px;
87
89
  border-radius: 50%;
90
+ background: var(--background);
88
91
  border: 1.5px solid var(--foreground);
89
- background: var(--foreground);
90
92
  }
91
- @each $index in 0, 1, 2, 3 {
92
- $at: $first + $index * $step;
93
- .step[data-step="#{$index}"] {
94
- .tile {
95
- @include loop(launch-tile-#{$index} $round $ease infinite);
96
- }
97
- .dot {
98
- @include loop(launch-dot-#{$index} $round $ease infinite);
99
- }
93
+ /* A panel of the nose cone, leaning in to the tip. */
94
+ .nose {
95
+ position: absolute;
96
+ bottom: $body;
97
+ transform-origin: 50% 100%;
98
+ clip-path: polygon(50% 0, 100% 100%, 0 100%);
99
+ background: color-mix(in srgb, var(--foreground) var(--light), var(--background));
100
+ }
101
+ /* A fin standing out from the base. */
102
+ .fin {
103
+ position: absolute;
104
+ left: -8px;
105
+ top: -24px;
106
+ width: 16px;
107
+ height: 26px;
108
+ clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
109
+ background: color-mix(in srgb, var(--foreground) 40%, var(--background));
110
+ }
111
+ /* The engine's flame: two crossed sheets of light under the rocket, lit at zero, flickering as it burns. */
112
+ .flame {
113
+ position: absolute;
114
+ left: -8px;
115
+ top: 0;
116
+ width: 16px;
117
+ height: 30px;
118
+ clip-path: polygon(0 0, 100% 0, 50% 100%);
119
+ background: linear-gradient(180deg, var(--foreground), tint(20%));
120
+ transform-origin: 50% 0;
121
+ scale: 1 0;
122
+ @include loop(launch-flame $round linear infinite);
123
+ }
124
+ @keyframes launch-flame {
125
+ 0%,
126
+ 58% {
127
+ scale: 1 0;
100
128
  }
101
- @keyframes launch-tile-#{$index} {
102
- 0%,
103
- #{$at} {
104
- opacity: 0.3;
105
- transform: translateY(0) translateZ(0);
106
- box-shadow: none;
107
- }
108
- #{$at + 4%},
109
- #{$clear} {
110
- opacity: 1;
111
- transform: translateY(-4px) translateZ(14px);
112
- box-shadow: 0 0 22px -6px tint(45%);
113
- }
114
- #{$clear + 6%},
115
- 100% {
116
- opacity: 0.3;
117
- transform: translateY(0) translateZ(0);
118
- box-shadow: none;
119
- }
129
+ 61% {
130
+ scale: 1 1.2;
120
131
  }
121
- @keyframes launch-dot-#{$index} {
122
- 0%,
123
- #{$at} {
124
- background: var(--background);
125
- border-color: tint(35%);
126
- }
127
- #{$at + 3%},
128
- #{$clear} {
129
- background: var(--foreground);
130
- border-color: var(--foreground);
131
- }
132
- #{$clear + 6%},
133
- 100% {
134
- background: var(--background);
135
- border-color: tint(35%);
132
+ @for $step from 0 through 10 {
133
+ #{62% + $step * 2%} {
134
+ scale: 1 if($step % 2 == 0, 0.8, 1.25);
136
135
  }
137
136
  }
138
- }
139
- /* The teaser: the product as a mystery, a dashed outline with a question mark. */
140
- .teaser {
141
- display: grid;
142
- place-items: center;
143
- width: 32px;
144
- height: 32px;
145
- border: 1.5px dashed tint(70%);
146
- border-radius: 5px;
147
- &::after {
148
- content: "?";
149
- font-size: 18px;
150
- font-weight: 700;
151
- line-height: 1;
152
- color: var(--foreground);
137
+ 84%,
138
+ 100% {
139
+ scale: 1 0;
153
140
  }
154
141
  }
155
- /* The landing page: a little browser window with a headline, a picture and a button. */
156
- .page {
157
- position: relative;
158
- width: 40px;
159
- height: 50px;
160
- border: 1.5px solid tint(70%);
161
- border-radius: 4px;
162
- background:
163
- linear-gradient(var(--foreground), var(--foreground)) 6px 10px / 24px 3px,
164
- linear-gradient(tint(40%), tint(40%)) 6px 16px / 16px 2px,
165
- linear-gradient(tint(25%), tint(25%)) 6px 22px / 25px 12px,
166
- linear-gradient(var(--foreground), var(--foreground)) 6px 38px / 14px 5px;
167
- background-repeat: no-repeat;
168
- &::before {
169
- content: "";
170
- position: absolute;
171
- left: 0;
172
- right: 0;
173
- top: 4px;
174
- border-top: 1.5px solid tint(40%);
175
- }
142
+ /* The trail left behind, stretching as the rocket climbs and fading. */
143
+ .trail {
144
+ position: absolute;
145
+ left: -1.5px;
146
+ top: 26px;
147
+ width: 3px;
148
+ height: 80px;
149
+ background: linear-gradient(180deg, tint(70%), transparent);
150
+ transform-origin: top;
151
+ transform: scaleY(0);
152
+ @include loop(launch-trail $round ease-in infinite);
176
153
  }
177
- /* The campaign: a megaphone and the sound it sends out. */
178
- .campaign {
179
- position: relative;
180
- width: 40px;
181
- height: 30px;
182
- &::before {
183
- content: "";
184
- position: absolute;
185
- left: 2px;
186
- top: 4px;
187
- width: 22px;
188
- height: 22px;
189
- background: var(--foreground);
190
- clip-path: polygon(0 35%, 30% 35%, 100% 0, 100% 100%, 30% 65%, 0 65%);
154
+ @keyframes launch-trail {
155
+ 0%,
156
+ 62% {
157
+ transform: scaleY(0);
158
+ opacity: 1;
191
159
  }
192
- &::after {
193
- content: "";
194
- position: absolute;
195
- left: 20px;
196
- top: 3px;
197
- width: 18px;
198
- height: 24px;
199
- border-radius: 50%;
200
- border: 2px solid transparent;
201
- border-right-color: tint(70%);
160
+ 80% {
161
+ transform: scaleY(1);
162
+ opacity: 1;
163
+ }
164
+ 84%,
165
+ 100% {
166
+ transform: scaleY(1);
167
+ opacity: 0;
202
168
  }
203
169
  }
204
- /* Launch day: the product revealed, a solid box with a star of light behind it. */
205
- .launch {
206
- position: relative;
207
- width: 26px;
208
- height: 34px;
209
- border-radius: 4px;
210
- background: linear-gradient(160deg, var(--foreground), tint(55%));
211
- box-shadow: 0 0 18px tint(55%);
212
- &::before {
213
- content: "";
170
+ /* Smoke rolling out over the pad all the way round at lift-off. */
171
+ .smoke {
172
+ @include centered(0px, 0px);
173
+ transform: translateY($pad-top - 8px);
174
+ i {
214
175
  position: absolute;
215
- inset: -14px;
216
- z-index: -1;
217
- background: repeating-conic-gradient(tint(35%) 0 6deg, transparent 6deg 30deg);
218
- mask: radial-gradient(circle, #000 30%, transparent 70%);
176
+ left: -14px;
177
+ top: -14px;
178
+ width: 28px;
179
+ height: 28px;
219
180
  border-radius: 50%;
181
+ background: radial-gradient(circle, tint(45%), transparent 70%);
182
+ opacity: 0;
183
+ @include loop(launch-smoke $round ease-out infinite);
220
184
  }
221
185
  }
222
- /* Confetti flying out of launch day once it is reached. */
223
- .confetti {
224
- position: absolute;
225
- left: calc(100% - 32px);
226
- top: 46px;
227
- width: 0;
228
- height: 0;
229
- transform: translateZ(20px);
230
- i {
231
- position: absolute;
232
- left: -2px;
233
- top: -4px;
234
- width: 4px;
235
- height: 8px;
236
- border-radius: 1px;
237
- background: var(--foreground);
186
+ @keyframes launch-smoke {
187
+ 0%,
188
+ 60% {
189
+ opacity: 0;
190
+ transform: rotateY(var(--angle)) translateZ(0) rotateY(calc(-1 * var(--angle))) scale(0.4);
191
+ }
192
+ 64% {
193
+ opacity: 1;
194
+ }
195
+ 86%,
196
+ 100% {
238
197
  opacity: 0;
239
- @include loop(launch-confetti $round ease-out infinite);
198
+ transform: rotateY(var(--angle)) translateZ(64px) rotateY(calc(-1 * var(--angle))) scale(2);
240
199
  }
241
200
  }
242
- @keyframes launch-confetti {
201
+ /* The countdown, beside the rocket: a ring that runs out over the three seconds, the numbers inside it. */
202
+ .countdown {
203
+ position: absolute;
204
+ left: -118px;
205
+ top: -92px;
206
+ width: 64px;
207
+ height: 64px;
208
+ transform: translateZ(30px);
209
+ opacity: 0;
210
+ @include loop(launch-countdown $round ease-out infinite);
211
+ }
212
+ @keyframes launch-countdown {
243
213
  0%,
244
- #{$first + 3 * $step} {
214
+ 58% {
215
+ opacity: 1;
216
+ transform: translateZ(30px) scale(1);
217
+ }
218
+ 66%,
219
+ 100% {
220
+ opacity: 0;
221
+ transform: translateZ(30px) scale(0.8);
222
+ }
223
+ }
224
+ .ring {
225
+ position: absolute;
226
+ inset: 0;
227
+ overflow: visible;
228
+ transform: rotate(-90deg);
229
+ circle {
230
+ fill: none;
231
+ stroke: tint(16%);
232
+ stroke-width: 2;
233
+ }
234
+ .time {
235
+ stroke: var(--foreground);
236
+ stroke-linecap: round;
237
+ stroke-dasharray: 100 100;
238
+ @include loop(launch-time $round linear infinite);
239
+ }
240
+ }
241
+ @keyframes launch-time {
242
+ 0% {
243
+ stroke-dashoffset: 0;
244
+ }
245
+ 60%,
246
+ 100% {
247
+ stroke-dashoffset: 100;
248
+ }
249
+ }
250
+ /* Each number rises into place out of a blur and flows away upwards as the next one comes in. */
251
+ .number {
252
+ position: absolute;
253
+ inset: 0;
254
+ display: grid;
255
+ place-items: center;
256
+ font-family: var(--font-display, inherit);
257
+ font-size: 30px;
258
+ font-weight: 700;
259
+ font-variant-numeric: tabular-nums;
260
+ color: var(--foreground);
261
+ opacity: 0;
262
+ @include loop(launch-number $round $ease infinite backwards);
263
+ }
264
+ @keyframes launch-number {
265
+ 0% {
245
266
  opacity: 0;
246
- transform: rotate(var(--angle)) translateY(-8px) rotate(0deg);
267
+ transform: translateY(14px) scale(1.25);
268
+ filter: blur(6px);
247
269
  }
248
- #{$first + 3 * $step + 2%} {
270
+ 6%,
271
+ 16% {
249
272
  opacity: 1;
273
+ transform: translateY(0) scale(1);
274
+ filter: blur(0);
250
275
  }
251
- #{$first + 3 * $step + 18%},
276
+ 23%,
252
277
  100% {
253
278
  opacity: 0;
254
- transform: rotate(var(--angle)) translateY(calc(-1 * var(--reach))) rotate(220deg);
279
+ transform: translateY(-14px) scale(0.85);
280
+ filter: blur(6px);
255
281
  }
256
282
  }
package/llms.txt CHANGED
@@ -31,3 +31,5 @@
31
31
  - 0.26.0: Services renamed Web, Desktop & Mobile, Creative and Marketing. Web drops CMS and APIs and adds Professional Emails (object: an envelope opening behind an address that changes name, always @yourdomain.com); Platforms reads as your company's own system. Creative brings Merchandise back (designed by us, made by trusted partners) and every description is short, like the web ones; new objects: Branding (pieces of the brand settle on a board, then its mark rises), Rebranding (a divider sweeps the dated mark into the fresh one), Branding Design (a pointer drags a vector anchor and its handles, SVG with a still copy for reduced motion). Marketing cards are named campaigns (Product Launch, Lead Generation, Sales Generation, Brand Awareness Campaigns). "Didn't find the service you were looking for?"; 15 cards in all
32
32
  - 0.27.0: New objects: Platforms (a company's people around one system, joined to it by lines; messages travel from person to person through it, its gear turning and its tasks ticking off; text: your company's way of working, made digital), Product Launch (a countdown over a covered product, then the cover lifts, the product rises into the light and sparks fly), Brand Awareness (a billboard, then word of mouth spreads the brand's mark through a crowd until everyone thinks of it together). Shared Person and Mark pieces (component/service-object/person, /mark); Branding uses Mark. animation-web-library ^0.2.3 (the marquee glides sideways). The 0.26.0 note above said 16 cards: there are 15
33
33
  - 0.28.0: Web adds Hosting before Professional Emails (we host what we build, look after it and bring it back up if anything goes wrong; object: a server rack watched by an uptime line, one server has an incident, goes dark, and comes back with a tick); Web is now three cards over two. Desktop & Mobile brings back Android Applications and iOS Applications after the PWA (three cards in a row; the PWA card is short like the others, without its points; lead "Apps for every screen."). New Product Launch object: a campaign timeline lighting step by step (teaser, landing page, campaign, launch day with the product revealed and confetti). ServiceCard has no `wide` or `points` any more. 18 cards in all
34
+ - 0.29.0: Hosting's object is only the server rack (no uptime line): one server goes dark and comes back with a tick. Android's object looks like Android (camera hole, round icons, search bar, three buttons, the quick settings shade sliding down and its toggles switching on); iOS's like an iPhone (Dynamic Island opening into a live activity, rounded-square icons that jiggle, page dots, dock, home bar). Product Launch is a 3-2-1 countdown, each number flowing smoothly into the next inside a ring that runs out, then a rocket lifts off with flame, smoke and a trail
35
+ - 0.30.0: Product Launch is in 3D: a round rocket (eight shaded panels, a nose cone of eight leaning panels, four fins, a window) turning slowly on a 3D pad, the flame as two crossed sheets, smoke rolling out all around the pad; the countdown floats in front. scroll-web-library ^0.4.2 (a glide never carries over to the next page)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENCA.md",
@@ -65,7 +65,7 @@
65
65
  "@sharadox/metadata-web-library": "^0.2.0",
66
66
  "@sharadox/pointer-web-library": "^0.1.0",
67
67
  "@sharadox/privacy-web-library": "^0.1.1",
68
- "@sharadox/scroll-web-library": "^0.4.1",
68
+ "@sharadox/scroll-web-library": "^0.4.2",
69
69
  "@sharadox/style-web-library": "^0.2.0",
70
70
  "@sharadox/time-web-library": "^0.2.0",
71
71
  "@sharadox/web-library": "^0.7.0",