@sharadox/sharadox-web-library 0.24.0 → 0.26.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.
- package/README.md +1 -1
- package/distribution/component/service-object/branding/index.d.ts +4 -1
- package/distribution/component/service-object/branding/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding/index.js +6 -3
- package/distribution/component/service-object/branding/index.js.map +1 -1
- package/distribution/component/service-object/branding/index.module.css +1 -1
- package/distribution/component/service-object/branding/index.module.scss +116 -38
- package/distribution/component/service-object/branding-design/index.d.ts +4 -1
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding-design/index.js +36 -2
- package/distribution/component/service-object/branding-design/index.js.map +1 -1
- package/distribution/component/service-object/branding-design/index.module.css +1 -1
- package/distribution/component/service-object/branding-design/index.module.scss +64 -47
- package/distribution/component/service-object/index.js +4 -4
- package/distribution/component/service-object/index.js.map +1 -1
- package/distribution/component/service-object/merchandise/index.d.ts +6 -0
- package/distribution/component/service-object/merchandise/index.d.ts.map +1 -0
- package/distribution/component/service-object/merchandise/index.js +13 -0
- package/distribution/component/service-object/merchandise/index.js.map +1 -0
- package/distribution/component/service-object/merchandise/index.module.css +1 -0
- package/distribution/component/service-object/merchandise/index.module.scss +91 -0
- package/distribution/component/service-object/professional-email/index.d.ts +6 -0
- package/distribution/component/service-object/professional-email/index.d.ts.map +1 -0
- package/distribution/component/service-object/professional-email/index.js +12 -0
- package/distribution/component/service-object/professional-email/index.js.map +1 -0
- package/distribution/component/service-object/professional-email/index.module.css +1 -0
- package/distribution/component/service-object/professional-email/index.module.scss +153 -0
- package/distribution/component/service-object/rebranding/index.d.ts +4 -1
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
- package/distribution/component/service-object/rebranding/index.js +5 -3
- package/distribution/component/service-object/rebranding/index.js.map +1 -1
- package/distribution/component/service-object/rebranding/index.module.css +1 -1
- package/distribution/component/service-object/rebranding/index.module.scss +88 -44
- package/distribution/component/services/index.d.ts +1 -2
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +1 -2
- package/distribution/component/services/index.js.map +1 -1
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +9 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +3 -2
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +28 -28
- package/distribution/content/services/index.d.ts +67 -67
- package/distribution/content/services/index.js +49 -49
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.d.ts.map +1 -1
- package/distribution/content/site/index.js +8 -6
- package/distribution/content/site/index.js.map +1 -1
- package/llms.txt +2 -0
- package/package.json +1 -1
- package/distribution/component/service-object/application-programming-interface/index.d.ts +0 -6
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.js +0 -11
- package/distribution/component/service-object/application-programming-interface/index.js.map +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.css +0 -1
- package/distribution/component/service-object/application-programming-interface/index.module.scss +0 -154
- package/distribution/component/service-object/content-management-system/index.d.ts +0 -6
- package/distribution/component/service-object/content-management-system/index.d.ts.map +0 -1
- package/distribution/component/service-object/content-management-system/index.js +0 -10
- package/distribution/component/service-object/content-management-system/index.js.map +0 -1
- package/distribution/component/service-object/content-management-system/index.module.css +0 -1
- package/distribution/component/service-object/content-management-system/index.module.scss +0 -181
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
|
|
37
|
-
- hero and its guides, service index, statement, and Services: four groups of cards (Web
|
|
37
|
+
- hero and its guides, service index, statement, 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; a card alone in its group lies wide, with its numbered `points`; then `ServiceUnlisted`, the invitation for ideas none of them name
|
|
38
38
|
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, 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, `llmsText()` for `/llms.txt`
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
|
|
3
|
+
* and its type), and once they are all in place the brand's mark rises from the middle.
|
|
4
|
+
*/
|
|
2
5
|
export declare function Branding(): import("react").JSX.Element;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,QAAQ,gCAoBvB"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./index.module.css";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Branding: defining the brand. Its pieces settle onto a board one by one (who it speaks to, its voice, its colors
|
|
5
|
+
* and its type), and once they are all in place the brand's mark rises from the middle.
|
|
6
|
+
*/
|
|
4
7
|
export function Branding() {
|
|
5
|
-
return (
|
|
8
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.board, children: [_jsx("span", { className: styles.piece, style: { animationDelay: "0s" }, children: _jsx("i", { className: styles.audience }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "0.5s" }, children: _jsx("i", { className: styles.voice }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1s" }, children: _jsx("i", { className: styles.colors }) }), _jsx("span", { className: styles.piece, style: { animationDelay: "1.5s" }, children: _jsx("i", { className: styles.type, children: "Aa" }) })] }), _jsx("span", { className: styles.mark })] }));
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;GAGG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,QAAQ,GAAI,GAC5B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,GACzB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAC5D,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,GAC1B,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,YAC9D,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,mBAAQ,GAC5B,IACH,EACN,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,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;
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(38deg) rotateZ(-14deg)}@keyframes branding-sway{0%,100%{transform:rotateX(38deg) rotateZ(-14deg)}50%{transform:rotateX(30deg) rotateZ(-4deg)}}.board{position:absolute;left:50%;top:50%;width:176px;height:136px;margin:-68px 0 0 -88px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 36%, transparent);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-radius:8px}.piece{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 48%, transparent);display:grid;place-items:center;border-radius:5px;transform-style:preserve-3d;animation:branding-place 8s cubic-bezier(0.22, 1, 0.36, 1) infinite backwards}@media(prefers-reduced-motion: reduce){.piece{animation:none}}@keyframes branding-place{0%{opacity:0;transform:translateZ(70px)}10%,78%{opacity:1;transform:translateZ(0)}90%,100%{opacity:0;transform:translateZ(40px)}}.audience{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle, var(--foreground) 0 3px, transparent 4px 7px, color-mix(in srgb, var(--foreground) 60%, transparent) 8px 9px, transparent 10px 13px, color-mix(in srgb, var(--foreground) 40%, transparent) 14px)}.voice{position:relative;width:36px;height:22px;border-radius:6px;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:repeating-linear-gradient(180deg, transparent 0 5px, color-mix(in srgb, var(--foreground) 40%, transparent) 5px 7px) 6px 2px/22px 14px no-repeat}.voice::after{content:"";position:absolute;left:6px;bottom:-6px;width:8px;height:8px;border-right:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);border-bottom:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);background:var(--background);transform:skewX(30deg) rotate(45deg) scale(0.7)}.colors{display:block;width:44px;height:14px;background:radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 55%, transparent) 6px, transparent 7px) 15px 0/15px 14px,radial-gradient(circle, color-mix(in srgb, var(--foreground) 25%, transparent) 6px, transparent 7px) 30px 0/15px 14px;background-repeat:no-repeat}.type{font-family:var(--font-display, inherit);font-size:22px;font-style:normal;font-weight:600;color:var(--foreground)}.mark{position:absolute;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;transform-style:preserve-3d;animation:branding-mark 8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.mark{animation:none}}.mark{border-radius:50%;background:var(--background);border:1px solid color-mix(in srgb, var(--foreground) 70%, transparent);box-shadow:0 0 28px -4px color-mix(in srgb, var(--foreground) 40%, transparent);transform:translateZ(46px)}.mark::before{content:"";position:absolute;inset:10px;border:4px solid var(--foreground);border-radius:2px;transform:rotate(45deg)}@keyframes branding-mark{0%,34%{opacity:0;transform:translateZ(0) scale(0.4)}44%,78%{opacity:1;transform:translateZ(46px) scale(1)}90%,100%{opacity:0;transform:translateZ(70px) scale(0.8)}}
|
|
@@ -3,61 +3,139 @@
|
|
|
3
3
|
|
|
4
4
|
.object {
|
|
5
5
|
@include centered(0px, 0px);
|
|
6
|
-
|
|
6
|
+
@include loop(branding-sway 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(38deg) rotateZ(-14deg);
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
@keyframes branding-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: rotateX(38deg) rotateZ(-14deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(30deg) rotateZ(-4deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/* The board the brand is defined on: four places, two by two. */
|
|
19
|
+
.board {
|
|
20
|
+
@include centered(176px, 136px);
|
|
21
|
+
@include face(4%, 36%);
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: 1fr 1fr;
|
|
24
|
+
gap: 10px;
|
|
25
|
+
padding: 10px;
|
|
26
|
+
border-radius: 8px;
|
|
12
27
|
}
|
|
13
|
-
|
|
28
|
+
/* Each piece drops onto its place, stays while the mark shows, then lifts away for the next round. */
|
|
29
|
+
.piece {
|
|
30
|
+
@include face(9%, 48%);
|
|
31
|
+
display: grid;
|
|
32
|
+
place-items: center;
|
|
33
|
+
border-radius: 5px;
|
|
34
|
+
transform-style: preserve-3d;
|
|
35
|
+
@include loop(branding-place 8s $ease infinite backwards);
|
|
36
|
+
}
|
|
37
|
+
@keyframes branding-place {
|
|
14
38
|
0% {
|
|
15
|
-
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translateZ(70px);
|
|
16
41
|
}
|
|
17
|
-
|
|
18
|
-
|
|
42
|
+
10%,
|
|
43
|
+
78% {
|
|
44
|
+
opacity: 1;
|
|
45
|
+
transform: translateZ(0);
|
|
19
46
|
}
|
|
47
|
+
90%,
|
|
20
48
|
100% {
|
|
21
|
-
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transform: translateZ(40px);
|
|
22
51
|
}
|
|
23
52
|
}
|
|
24
|
-
.
|
|
25
|
-
|
|
53
|
+
/* Who it speaks to: a target. */
|
|
54
|
+
.audience {
|
|
55
|
+
width: 30px;
|
|
56
|
+
height: 30px;
|
|
26
57
|
border-radius: 50%;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
58
|
+
background: radial-gradient(
|
|
59
|
+
circle,
|
|
60
|
+
var(--foreground) 0 3px,
|
|
61
|
+
transparent 4px 7px,
|
|
62
|
+
tint(60%) 8px 9px,
|
|
63
|
+
transparent 10px 13px,
|
|
64
|
+
tint(40%) 14px
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
/* Its voice: a speech bubble. */
|
|
68
|
+
.voice {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 36px;
|
|
71
|
+
height: 22px;
|
|
72
|
+
border-radius: 6px;
|
|
73
|
+
border: 1.5px solid tint(70%);
|
|
74
|
+
background: repeating-linear-gradient(180deg, transparent 0 5px, tint(40%) 5px 7px) 6px 2px / 22px 14px no-repeat;
|
|
75
|
+
&::after {
|
|
76
|
+
content: "";
|
|
77
|
+
position: absolute;
|
|
78
|
+
left: 6px;
|
|
79
|
+
bottom: -6px;
|
|
80
|
+
width: 8px;
|
|
81
|
+
height: 8px;
|
|
82
|
+
border-right: 1.5px solid tint(70%);
|
|
83
|
+
border-bottom: 1.5px solid tint(70%);
|
|
84
|
+
background: var(--background);
|
|
85
|
+
transform: skewX(30deg) rotate(45deg) scale(0.7);
|
|
33
86
|
}
|
|
34
87
|
}
|
|
88
|
+
/* Its colors: three swatches. */
|
|
89
|
+
.colors {
|
|
90
|
+
display: block;
|
|
91
|
+
width: 44px;
|
|
92
|
+
height: 14px;
|
|
93
|
+
background:
|
|
94
|
+
radial-gradient(circle, var(--foreground) 6px, transparent 7px) 0 0 / 15px 14px,
|
|
95
|
+
radial-gradient(circle, tint(55%) 6px, transparent 7px) 15px 0 / 15px 14px,
|
|
96
|
+
radial-gradient(circle, tint(25%) 6px, transparent 7px) 30px 0 / 15px 14px;
|
|
97
|
+
background-repeat: no-repeat;
|
|
98
|
+
}
|
|
99
|
+
/* Its type. */
|
|
100
|
+
.type {
|
|
101
|
+
font-family: var(--font-display, inherit);
|
|
102
|
+
font-size: 22px;
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
color: var(--foreground);
|
|
106
|
+
}
|
|
107
|
+
/* Once every piece is in place, the brand's mark rises over the middle of the board. */
|
|
35
108
|
.mark {
|
|
36
|
-
|
|
37
|
-
|
|
109
|
+
@include centered(36px, 36px);
|
|
110
|
+
@include loop(branding-mark 8s $ease infinite);
|
|
38
111
|
border-radius: 50%;
|
|
39
|
-
|
|
112
|
+
background: var(--background);
|
|
113
|
+
border: 1px solid tint(70%);
|
|
114
|
+
box-shadow: 0 0 28px -4px tint(40%);
|
|
115
|
+
transform: translateZ(46px);
|
|
40
116
|
&::before {
|
|
41
117
|
content: "";
|
|
42
118
|
position: absolute;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
height: 34px;
|
|
47
|
-
margin: -17px 0 0 -17px;
|
|
48
|
-
background: var(--foreground);
|
|
119
|
+
inset: 10px;
|
|
120
|
+
border: 4px solid var(--foreground);
|
|
121
|
+
border-radius: 2px;
|
|
49
122
|
transform: rotate(45deg);
|
|
50
|
-
border-radius: 4px;
|
|
51
123
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
124
|
+
}
|
|
125
|
+
@keyframes branding-mark {
|
|
126
|
+
0%,
|
|
127
|
+
34% {
|
|
128
|
+
opacity: 0;
|
|
129
|
+
transform: translateZ(0) scale(0.4);
|
|
130
|
+
}
|
|
131
|
+
44%,
|
|
132
|
+
78% {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
transform: translateZ(46px) scale(1);
|
|
135
|
+
}
|
|
136
|
+
90%,
|
|
137
|
+
100% {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
transform: translateZ(70px) scale(0.8);
|
|
62
140
|
}
|
|
63
141
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
|
|
3
|
+
* it, its handles following and the curve reshaping, as in a design tool.
|
|
4
|
+
*/
|
|
2
5
|
export declare function BrandingDesign(): import("react").JSX.Element;
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":"AAwFA;;;GAGG;AACH,wBAAgB,cAAc,gCAS7B"}
|
|
@@ -1,7 +1,41 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styles from "./index.module.css";
|
|
3
|
-
/**
|
|
3
|
+
/** One full round of the drag, in seconds; every part of the drawing moves on the same clock. */
|
|
4
|
+
const DURATION = "7s";
|
|
5
|
+
/** When each pose is reached, as a share of the round; the moves between them ease in and out. */
|
|
6
|
+
const KEY_TIMES = "0;0.18;0.42;0.56;0.8;1";
|
|
7
|
+
const KEY_SPLINES = Array(5).fill("0.65 0 0.35 1").join(";");
|
|
8
|
+
/** The middle anchor's place at each pose: where it starts, and where the pointer drags it. */
|
|
9
|
+
const ANCHOR_X = [100, 100, 116, 116, 100, 100];
|
|
10
|
+
const ANCHOR_Y = [86, 86, 40, 40, 86, 86];
|
|
11
|
+
/** How far its two handles reach out on either side. */
|
|
12
|
+
const HANDLE = 34;
|
|
13
|
+
const poses = (place) => ANCHOR_X.map((_, index) => place(index)).join(";");
|
|
14
|
+
/** Animates one attribute through the poses, in step with everything else. */
|
|
15
|
+
function Move({ attribute, values }) {
|
|
16
|
+
return (_jsx("animate", { attributeName: attribute, values: values, dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" }));
|
|
17
|
+
}
|
|
18
|
+
/** The curve through the three anchors, with the middle one at pose `index`. */
|
|
19
|
+
const curve = (index) => {
|
|
20
|
+
const x = ANCHOR_X[index];
|
|
21
|
+
const y = ANCHOR_Y[index];
|
|
22
|
+
return `M36 112 C52 70 ${x - HANDLE} ${y} ${x} ${y} S152 74 164 112`;
|
|
23
|
+
};
|
|
24
|
+
/** The vector drawing, still (for visitors who ask for less motion) or moving. */
|
|
25
|
+
function Drawing({ moving }) {
|
|
26
|
+
const x = ANCHOR_X[0];
|
|
27
|
+
const y = ANCHOR_Y[0];
|
|
28
|
+
return (_jsxs("svg", { className: moving ? styles.moving : styles.still, viewBox: "0 0 200 150", children: [_jsx("path", { className: styles.curve, d: curve(0), children: moving && _jsx(Move, { attribute: "d", values: poses(curve) }) }), _jsxs("line", { className: styles.handle, x1: x - HANDLE, y1: y, x2: x + HANDLE, y2: y, children: [moving && _jsx(Move, { attribute: "x1", values: poses((index) => String(ANCHOR_X[index] - HANDLE)) }), moving && _jsx(Move, { attribute: "x2", values: poses((index) => String(ANCHOR_X[index] + HANDLE)) }), moving && _jsx(Move, { attribute: "y1", values: ANCHOR_Y.join(";") }), moving && _jsx(Move, { attribute: "y2", values: ANCHOR_Y.join(";") })] }), [-HANDLE, HANDLE].map((reach) => (_jsxs("circle", { className: styles.knob, cx: x + reach, cy: y, r: "3.5", children: [moving && _jsx(Move, { attribute: "cx", values: poses((index) => String(ANCHOR_X[index] + reach)) }), moving && _jsx(Move, { attribute: "cy", values: ANCHOR_Y.join(";") })] }, reach))), _jsx("rect", { className: styles.anchor, x: "32", y: "108", width: "8", height: "8" }), _jsx("rect", { className: styles.anchor, x: "160", y: "108", width: "8", height: "8" }), _jsxs("rect", { className: styles.selected, x: x - 5, y: y - 5, width: "10", height: "10", children: [moving && _jsx(Move, { attribute: "x", values: poses((index) => String(ANCHOR_X[index] - 5)) }), moving && _jsx(Move, { attribute: "y", values: poses((index) => String(ANCHOR_Y[index] - 5)) })] }), _jsx("path", { className: styles.pointer, d: "M0 0 L0 17 L4.5 13 L8 20.5 L11 19 L7.5 11.8 L13 11.5 Z", children: moving ? (_jsx("animateTransform", { attributeName: "transform", type: "translate", values: [
|
|
29
|
+
"176 146",
|
|
30
|
+
...ANCHOR_X.slice(1, -1).map((ax, index) => `${ax} ${ANCHOR_Y[index + 1]}`),
|
|
31
|
+
"176 146",
|
|
32
|
+
].join(";"), dur: DURATION, keyTimes: KEY_TIMES, calcMode: "spline", keySplines: KEY_SPLINES, repeatCount: "indefinite" })) : null })] }));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Branding design: designing the logo itself. On an artboard, a pointer grabs an anchor of a vector curve and drags
|
|
36
|
+
* it, its handles following and the curve reshaping, as in a design tool.
|
|
37
|
+
*/
|
|
4
38
|
export function BrandingDesign() {
|
|
5
|
-
return (_jsx("div", { className: styles.object, children:
|
|
39
|
+
return (_jsx("div", { className: styles.object, children: _jsxs("div", { className: styles.artboard, children: [_jsx(Drawing, { moving: true }), _jsx(Drawing, { moving: false })] }) }));
|
|
6
40
|
}
|
|
7
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,+FAA+F;AAC/F,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/branding-design/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,iGAAiG;AACjG,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,kGAAkG;AACl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AG,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAE,GAAG,CAAC,CAAC,CAAC,GAAI,IACpF,EAEP,eAAM,SAAS,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,EAAC,wDAAwD,YACxF,MAAM,CAAC,CAAC,CAAC,CACR,2BACE,aAAa,EAAC,WAAW,EACzB,IAAI,EAAC,WAAW,EAChB,MAAM,EAAE;wBACN,SAAS;wBACT,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;wBAC3E,SAAS;qBACV,CAAC,IAAI,CAAC,GAAG,CAAC,EACX,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,SAAS,EACnB,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,WAAW,EACvB,WAAW,EAAC,YAAY,GACxB,CACH,CAAC,CAAC,CAAC,IAAI,GACH,IACH,CACP,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,aAC7B,KAAC,OAAO,IAAC,MAAM,SAAG,EAClB,KAAC,OAAO,IAAC,MAAM,EAAE,KAAK,GAAI,IACtB,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:branding-design-sway 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(14deg) rotateY(-16deg)}@keyframes branding-design-sway{0%,100%{transform:rotateX(14deg) rotateY(-18deg)}50%{transform:rotateX(8deg) rotateY(-4deg)}}.artboard{position:absolute;left:50%;top:50%;width:200px;height:150px;margin:-75px 0 0 -100px;transform-style:preserve-3d;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 4%, transparent);border:1px solid color-mix(in srgb, var(--foreground) 40%, transparent);border-radius:8px;background:linear-gradient(color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,linear-gradient(90deg, color-mix(in srgb, var(--foreground) 7%, transparent) 1px, transparent 1px) 0 0/20px 20px,color-mix(in srgb, var(--foreground) 3%, transparent);box-shadow:0 24px 50px -26px color-mix(in srgb, var(--foreground) 35%, transparent)}.artboard svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.still{display:none}@media(prefers-reduced-motion: reduce){.moving{display:none}.still{display:block}}.curve{fill:none;stroke:var(--foreground);stroke-width:4;stroke-linecap:round}.handle{stroke:color-mix(in srgb, var(--foreground) 55%, transparent);stroke-width:1}.knob{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.anchor{fill:var(--background);stroke:color-mix(in srgb, var(--foreground) 70%, transparent);stroke-width:1.2}.selected{fill:var(--foreground);stroke:var(--background);stroke-width:1}.pointer{fill:var(--foreground);stroke:var(--background);stroke-width:1.2;stroke-linejoin:round}
|
|
@@ -1,61 +1,78 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
1
|
@use "style/token" as *;
|
|
3
2
|
@use "style/object" as *;
|
|
4
3
|
|
|
5
|
-
@property --swatch-fan {
|
|
6
|
-
syntax: "<angle>";
|
|
7
|
-
inherits: true;
|
|
8
|
-
initial-value: 12deg;
|
|
9
|
-
}
|
|
10
4
|
.object {
|
|
11
5
|
@include centered(0px, 0px);
|
|
12
|
-
@include loop(
|
|
13
|
-
transform:
|
|
6
|
+
@include loop(branding-design-sway 10s ease-in-out infinite);
|
|
7
|
+
transform: rotateX(14deg) rotateY(-16deg);
|
|
14
8
|
}
|
|
15
|
-
@keyframes
|
|
9
|
+
@keyframes branding-design-sway {
|
|
16
10
|
0%,
|
|
17
11
|
100% {
|
|
18
|
-
|
|
12
|
+
transform: rotateX(14deg) rotateY(-18deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: rotateX(8deg) rotateY(-4deg);
|
|
19
16
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
}
|
|
18
|
+
/* The artboard: a sheet with a faint grid, the drawing on it. */
|
|
19
|
+
.artboard {
|
|
20
|
+
@include centered(200px, 150px);
|
|
21
|
+
@include face(4%, 40%);
|
|
22
|
+
border-radius: 8px;
|
|
23
|
+
background:
|
|
24
|
+
linear-gradient(tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
|
|
25
|
+
linear-gradient(90deg, tint(7%) 1px, transparent 1px) 0 0 / 20px 20px,
|
|
26
|
+
tint(3%);
|
|
27
|
+
box-shadow: 0 24px 50px -26px tint(35%);
|
|
28
|
+
svg {
|
|
29
|
+
position: absolute;
|
|
30
|
+
inset: 0;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
overflow: visible;
|
|
23
34
|
}
|
|
24
35
|
}
|
|
25
|
-
|
|
26
|
-
.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
transform: translateZ(#{$index * 5 - 12}px) rotateZ(calc(var(--swatch-fan) * #{$index - 2.5}));
|
|
36
|
-
.color {
|
|
37
|
-
background: tint(list.nth($amounts, $index + 1));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
36
|
+
/* The moving drawing, or the still one for visitors who ask for less motion (SVG animations ignore that setting). */
|
|
37
|
+
.still {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
@media (prefers-reduced-motion: reduce) {
|
|
41
|
+
.moving {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
.still {
|
|
45
|
+
display: block;
|
|
40
46
|
}
|
|
41
47
|
}
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
.curve {
|
|
49
|
+
fill: none;
|
|
50
|
+
stroke: var(--foreground);
|
|
51
|
+
stroke-width: 4;
|
|
52
|
+
stroke-linecap: round;
|
|
53
|
+
}
|
|
54
|
+
.handle {
|
|
55
|
+
stroke: tint(55%);
|
|
56
|
+
stroke-width: 1;
|
|
57
|
+
}
|
|
58
|
+
.knob {
|
|
59
|
+
fill: var(--background);
|
|
60
|
+
stroke: tint(70%);
|
|
61
|
+
stroke-width: 1.2;
|
|
62
|
+
}
|
|
63
|
+
.anchor {
|
|
64
|
+
fill: var(--background);
|
|
65
|
+
stroke: tint(70%);
|
|
66
|
+
stroke-width: 1.2;
|
|
67
|
+
}
|
|
68
|
+
.selected {
|
|
69
|
+
fill: var(--foreground);
|
|
70
|
+
stroke: var(--background);
|
|
71
|
+
stroke-width: 1;
|
|
72
|
+
}
|
|
73
|
+
.pointer {
|
|
74
|
+
fill: var(--foreground);
|
|
75
|
+
stroke: var(--background);
|
|
76
|
+
stroke-width: 1.2;
|
|
77
|
+
stroke-linejoin: round;
|
|
61
78
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ApplicationProgrammingInterface } from "@sharadox/sharadox-web-library/component/service-object/application-programming-interface";
|
|
3
2
|
import { BrandAwareness } from "@sharadox/sharadox-web-library/component/service-object/brand-awareness";
|
|
4
3
|
import { Branding } from "@sharadox/sharadox-web-library/component/service-object/branding";
|
|
5
4
|
import { BrandingDesign } from "@sharadox/sharadox-web-library/component/service-object/branding-design";
|
|
6
|
-
import { ContentManagementSystem } from "@sharadox/sharadox-web-library/component/service-object/content-management-system";
|
|
7
5
|
import { ECommerce } from "@sharadox/sharadox-web-library/component/service-object/e-commerce";
|
|
6
|
+
import { Merchandise } from "@sharadox/sharadox-web-library/component/service-object/merchandise";
|
|
8
7
|
import { LeadGeneration } from "@sharadox/sharadox-web-library/component/service-object/lead-generation";
|
|
9
8
|
import { Platform } from "@sharadox/sharadox-web-library/component/service-object/platform";
|
|
10
9
|
import { PrintDesign } from "@sharadox/sharadox-web-library/component/service-object/print-design";
|
|
10
|
+
import { ProfessionalEmail } from "@sharadox/sharadox-web-library/component/service-object/professional-email";
|
|
11
11
|
import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
|
|
12
12
|
import { ProgressiveWebApplication } from "@sharadox/sharadox-web-library/component/service-object/progressive-web-application";
|
|
13
13
|
import { Rebranding } from "@sharadox/sharadox-web-library/component/service-object/rebranding";
|
|
@@ -20,13 +20,13 @@ const OBJECTS = {
|
|
|
20
20
|
website: Website,
|
|
21
21
|
platform: Platform,
|
|
22
22
|
"e-commerce": ECommerce,
|
|
23
|
-
"
|
|
24
|
-
"application-programming-interface": ApplicationProgrammingInterface,
|
|
23
|
+
"professional-email": ProfessionalEmail,
|
|
25
24
|
"progressive-web-application": ProgressiveWebApplication,
|
|
26
25
|
branding: Branding,
|
|
27
26
|
rebranding: Rebranding,
|
|
28
27
|
"branding-design": BrandingDesign,
|
|
29
28
|
"print-design": PrintDesign,
|
|
29
|
+
merchandise: Merchandise,
|
|
30
30
|
"product-launch": ProductLaunch,
|
|
31
31
|
"lead-generation": LeadGeneration,
|
|
32
32
|
"sales-generation": SalesGeneration,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE
|
|
1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,cAAc;IACjC,kBAAkB,EAAE,eAAe;IACnC,iBAAiB,EAAE,cAAc;IACjC,uBAAuB,EAAE,mBAAmB;CAC7C,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,IAAI,EAA2B;IAC7D,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,KAAC,KAAK,KAAG,GACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
|
|
3
|
+
* the label comes round again and again.
|
|
4
|
+
*/
|
|
5
|
+
export declare function Merchandise(): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/merchandise/index.tsx"],"names":[],"mappings":"AAMA;;;GAGG;AACH,wBAAgB,WAAW,gCA0B1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** Faces around the bottle; the label shows on these. */
|
|
4
|
+
const SIDES = 14;
|
|
5
|
+
const LABEL = [0, 1, 2, 3];
|
|
6
|
+
/**
|
|
7
|
+
* Merchandise: a T-shirt with the brand's mark on its chest, swaying beside a branded bottle turning on the spot, so
|
|
8
|
+
* the label comes round again and again.
|
|
9
|
+
*/
|
|
10
|
+
export function Merchandise() {
|
|
11
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.shirt, children: [_jsx("i", { className: styles.collar }), _jsx("i", { className: styles.mark })] }), _jsxs("div", { className: styles.bottle, children: [Array.from({ length: SIDES }, (_, side) => (_jsx("span", { className: styles.side, "data-label": LABEL.includes(side) || undefined, style: { transform: `rotateY(${(side * 360) / SIDES}deg) translateZ(23px)` } }, side))), Array.from({ length: 8 }, (_, side) => (_jsx("span", { className: styles.cap, style: { transform: `translateY(-66px) rotateY(${side * 45}deg) translateZ(13px)` } }, side)))] })] }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/merchandise/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,yDAAyD;AACzD,MAAM,KAAK,GAAG,EAAE,CAAC;AACjB,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE3B;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAC/B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IACzB,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAC1C,eAEE,SAAS,EAAE,MAAM,CAAC,IAAI,gBACV,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,SAAS,EAC7C,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,CAAC,IAAI,GAAG,GAAG,CAAC,GAAG,KAAK,uBAAuB,EAAE,IAHvE,IAAI,CAIT,CACH,CAAC,EACD,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACtC,eAEE,SAAS,EAAE,MAAM,CAAC,GAAG,EACrB,KAAK,EAAE,EAAE,SAAS,EAAE,6BAA6B,IAAI,GAAG,EAAE,uBAAuB,EAAE,IAF9E,IAAI,CAGT,CACH,CAAC,IACE,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:rotateX(-12deg)}.shirt{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;transform-style:preserve-3d;animation:merch-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.shirt{animation:none}}.shirt{transform:translate3d(-58px, 4px, -20px) rotateY(18deg);background:color-mix(in srgb, var(--foreground) 16%, transparent);clip-path:polygon(30% 6%, 41% 6%, 50% 13%, 59% 6%, 70% 6%, 97% 24%, 86% 42%, 75% 36%, 75% 96%, 25% 96%, 25% 36%, 14% 42%, 3% 24%)}@keyframes merch-sway{0%,100%{transform:translate3d(-58px, 4px, -20px) rotateY(24deg) rotateZ(-2deg)}50%{transform:translate3d(-58px, 0px, -20px) rotateY(-10deg) rotateZ(2deg)}}.collar{position:absolute;left:41%;top:6%;width:18%;height:9%;border-radius:0 0 50% 50%;background:color-mix(in srgb, var(--foreground) 34%, transparent)}.mark{position:absolute;left:50%;top:38%;width:22px;height:22px;margin-left:-11px;border-radius:3px;border:5px solid var(--foreground);transform:rotate(45deg)}.bottle{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:merch-turn 7s linear infinite}@media(prefers-reduced-motion: reduce){.bottle{animation:none}}.bottle{transform:translate3d(76px, 12px, 30px)}@keyframes merch-turn{from{transform:translate3d(76px, 12px, 30px) rotateY(0deg)}to{transform:translate3d(76px, 12px, 30px) rotateY(360deg)}}.side{position:absolute;left:50%;top:50%;width:11px;height:112px;margin:-56px 0 0 -5.5px;transform-style:preserve-3d;border-top:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-bottom:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);border-radius:2px;background:color-mix(in srgb, var(--foreground) 10%, transparent);box-shadow:inset 1px 0 0 color-mix(in srgb, var(--foreground) 18%, transparent);backface-visibility:hidden}.side[data-label]{background:linear-gradient(transparent 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 30%, color-mix(in srgb, var(--foreground) 55%, transparent) 66%, transparent 66%),color-mix(in srgb, var(--foreground) 10%, transparent)}.cap{position:absolute;left:50%;top:50%;width:11px;height:20px;margin:-10px 0 0 -5.5px;transform-style:preserve-3d;border-radius:2px;background:color-mix(in srgb, var(--foreground) 30%, transparent);border-top:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);backface-visibility:hidden}
|