@sharadox/sharadox-web-library 0.19.0 → 0.21.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 +5 -4
- package/distribution/action/send-contact/index.d.ts +3 -1
- package/distribution/action/send-contact/index.d.ts.map +1 -1
- package/distribution/action/send-contact/index.js +7 -1
- package/distribution/action/send-contact/index.js.map +1 -1
- package/distribution/component/capability/index.d.ts +1 -1
- package/distribution/component/capability/index.d.ts.map +1 -1
- package/distribution/component/capability/index.js +1 -1
- package/distribution/component/capability/index.js.map +1 -1
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +1 -1
- package/distribution/component/contact/form/chip/index.d.ts +4 -0
- package/distribution/component/contact/form/chip/index.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/index.js +7 -0
- package/distribution/component/contact/form/chip/index.js.map +1 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -0
- package/distribution/component/contact/form/chip/index.module.scss +59 -0
- package/distribution/component/contact/form/chip/type.d.ts +7 -0
- package/distribution/component/contact/form/chip/type.d.ts.map +1 -0
- package/distribution/component/contact/form/chip/type.js.map +1 -0
- package/distribution/component/contact/form/index.d.ts +5 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +40 -5
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +35 -60
- package/distribution/component/footer/index.d.ts +2 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +4 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +75 -89
- package/distribution/component/process/index.d.ts.map +1 -1
- package/distribution/component/process/index.js +3 -2
- package/distribution/component/process/index.js.map +1 -1
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +4 -2
- package/distribution/component/service-card/index.d.ts +11 -0
- package/distribution/component/service-card/index.d.ts.map +1 -0
- package/distribution/component/service-card/index.js +24 -0
- package/distribution/component/service-card/index.js.map +1 -0
- package/distribution/component/service-card/index.module.css +1 -0
- package/distribution/component/service-card/index.module.scss +113 -0
- package/distribution/component/service-card/type.d.ts +10 -0
- package/distribution/component/service-card/type.d.ts.map +1 -0
- package/distribution/component/service-card/type.js.map +1 -0
- package/distribution/component/service-index/index.d.ts +1 -1
- package/distribution/component/service-index/index.d.ts.map +1 -1
- package/distribution/component/service-index/index.js +3 -2
- package/distribution/component/service-index/index.js.map +1 -1
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +4 -5
- package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
- package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.js +11 -0
- package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
- package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts +3 -0
- package/distribution/component/service-object/brand-awareness/index.d.ts.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.js +8 -0
- package/distribution/component/service-object/brand-awareness/index.js.map +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -0
- package/distribution/component/service-object/brand-awareness/index.module.scss +89 -0
- package/distribution/component/service-object/branding/index.d.ts +3 -0
- package/distribution/component/service-object/branding/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding/index.js +7 -0
- package/distribution/component/service-object/branding/index.js.map +1 -0
- package/distribution/component/service-object/branding/index.module.css +1 -0
- package/distribution/component/service-object/branding/index.module.scss +63 -0
- package/distribution/component/service-object/branding-design/index.d.ts +3 -0
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -0
- package/distribution/component/service-object/branding-design/index.js +7 -0
- package/distribution/component/service-object/branding-design/index.js.map +1 -0
- package/distribution/component/service-object/branding-design/index.module.css +1 -0
- package/distribution/component/service-object/branding-design/index.module.scss +61 -0
- package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
- package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
- package/distribution/component/service-object/content-management-system/index.js +10 -0
- package/distribution/component/service-object/content-management-system/index.js.map +1 -0
- package/distribution/component/service-object/content-management-system/index.module.css +1 -0
- package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
- package/distribution/component/service-object/cuboid/index.d.ts +11 -0
- package/distribution/component/service-object/cuboid/index.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/index.js +15 -0
- package/distribution/component/service-object/cuboid/index.js.map +1 -0
- package/distribution/component/service-object/cuboid/index.module.css +1 -0
- package/distribution/component/service-object/cuboid/index.module.scss +61 -0
- package/distribution/component/service-object/cuboid/type.d.ts +10 -0
- package/distribution/component/service-object/cuboid/type.d.ts.map +1 -0
- package/distribution/component/service-object/cuboid/type.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.d.ts +3 -0
- package/distribution/component/service-object/e-commerce/index.d.ts.map +1 -0
- package/distribution/component/service-object/e-commerce/index.js +8 -0
- package/distribution/component/service-object/e-commerce/index.js.map +1 -0
- package/distribution/component/service-object/e-commerce/index.module.css +1 -0
- package/distribution/component/service-object/e-commerce/index.module.scss +78 -0
- package/distribution/component/service-object/index.d.ts +10 -0
- package/distribution/component/service-object/index.d.ts.map +1 -0
- package/distribution/component/service-object/index.js +45 -0
- package/distribution/component/service-object/index.js.map +1 -0
- package/distribution/component/service-object/index.module.css +1 -0
- package/distribution/component/service-object/index.module.scss +16 -0
- package/distribution/component/service-object/lead-generation/index.d.ts +3 -0
- package/distribution/component/service-object/lead-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/lead-generation/index.js +7 -0
- package/distribution/component/service-object/lead-generation/index.js.map +1 -0
- package/distribution/component/service-object/lead-generation/index.module.css +1 -0
- package/distribution/component/service-object/lead-generation/index.module.scss +82 -0
- package/distribution/component/service-object/platform/index.d.ts +3 -0
- package/distribution/component/service-object/platform/index.d.ts.map +1 -0
- package/distribution/component/service-object/platform/index.js +8 -0
- package/distribution/component/service-object/platform/index.js.map +1 -0
- package/distribution/component/service-object/platform/index.module.css +1 -0
- package/distribution/component/service-object/platform/index.module.scss +54 -0
- package/distribution/component/service-object/product-launch/index.d.ts +3 -0
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -0
- package/distribution/component/service-object/product-launch/index.js +8 -0
- package/distribution/component/service-object/product-launch/index.js.map +1 -0
- package/distribution/component/service-object/product-launch/index.module.css +1 -0
- package/distribution/component/service-object/product-launch/index.module.scss +110 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts +6 -0
- package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.js +25 -0
- package/distribution/component/service-object/progressive-web-application/index.js.map +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -0
- package/distribution/component/service-object/progressive-web-application/index.module.scss +179 -0
- package/distribution/component/service-object/rebranding/index.d.ts +3 -0
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -0
- package/distribution/component/service-object/rebranding/index.js +8 -0
- package/distribution/component/service-object/rebranding/index.js.map +1 -0
- package/distribution/component/service-object/rebranding/index.module.css +1 -0
- package/distribution/component/service-object/rebranding/index.module.scss +76 -0
- package/distribution/component/service-object/sales-generation/index.d.ts +3 -0
- package/distribution/component/service-object/sales-generation/index.d.ts.map +1 -0
- package/distribution/component/service-object/sales-generation/index.js +8 -0
- package/distribution/component/service-object/sales-generation/index.js.map +1 -0
- package/distribution/component/service-object/sales-generation/index.module.css +1 -0
- package/distribution/component/service-object/sales-generation/index.module.scss +65 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts +6 -0
- package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.js +14 -0
- package/distribution/component/service-object/social-media-strategy/index.js.map +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -0
- package/distribution/component/service-object/social-media-strategy/index.module.scss +201 -0
- package/distribution/component/service-object/type.d.ts +6 -0
- package/distribution/component/service-object/type.d.ts.map +1 -0
- package/distribution/component/service-object/type.js.map +1 -0
- package/distribution/component/service-object/website/index.d.ts +3 -0
- package/distribution/component/service-object/website/index.d.ts.map +1 -0
- package/distribution/component/service-object/website/index.js +7 -0
- package/distribution/component/service-object/website/index.js.map +1 -0
- package/distribution/component/service-object/website/index.module.css +1 -0
- package/distribution/component/service-object/website/index.module.scss +73 -0
- package/distribution/component/service-unlisted/index.d.ts +10 -0
- package/distribution/component/service-unlisted/index.d.ts.map +1 -0
- package/distribution/component/service-unlisted/index.js +20 -0
- package/distribution/component/service-unlisted/index.js.map +1 -0
- package/distribution/component/service-unlisted/index.module.css +1 -0
- package/distribution/component/service-unlisted/index.module.scss +28 -0
- package/distribution/component/{services/social-visual → service-unlisted}/type.d.ts +1 -1
- package/distribution/component/service-unlisted/type.d.ts.map +1 -0
- package/distribution/component/service-unlisted/type.js.map +1 -0
- package/distribution/component/services/index.d.ts +5 -1
- package/distribution/component/services/index.d.ts.map +1 -1
- package/distribution/component/services/index.js +8 -17
- 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 +53 -43
- package/distribution/component/structured-data/index.d.ts +1 -1
- package/distribution/component/structured-data/index.d.ts.map +1 -1
- package/distribution/component/structured-data/index.js +17 -12
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/content/contact/index.d.ts +140 -34
- package/distribution/content/contact/index.d.ts.map +1 -1
- package/distribution/content/contact/index.js +42 -10
- package/distribution/content/contact/index.js.map +1 -1
- package/distribution/content/hero/index.d.ts +1 -1
- package/distribution/content/hero/index.js +1 -1
- package/distribution/content/hero/index.js.map +1 -1
- package/distribution/content/services/index.d.ts +330 -133
- package/distribution/content/services/index.d.ts.map +1 -1
- package/distribution/content/services/index.js +219 -117
- 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 +18 -10
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +28 -0
- package/distribution/style/token/index.scss +3 -1
- package/distribution/utility/contact-problem/index.d.ts +13 -0
- package/distribution/utility/contact-problem/index.d.ts.map +1 -0
- package/distribution/utility/contact-problem/index.js +23 -0
- package/distribution/utility/contact-problem/index.js.map +1 -0
- package/distribution/utility/llms-text/index.js +1 -1
- package/distribution/utility/llms-text/index.js.map +1 -1
- package/llms.txt +6 -3
- package/package.json +2 -2
- package/distribution/component/service-action/index.d.ts +0 -10
- package/distribution/component/service-action/index.d.ts.map +0 -1
- package/distribution/component/service-action/index.js +0 -18
- package/distribution/component/service-action/index.js.map +0 -1
- package/distribution/component/service-action/index.module.css +0 -1
- package/distribution/component/service-action/index.module.scss +0 -6
- package/distribution/component/service-action/type.d.ts +0 -7
- package/distribution/component/service-action/type.d.ts.map +0 -1
- package/distribution/component/service-action/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/index.js +0 -19
- package/distribution/component/services/campaign-visual/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/index.module.css +0 -1
- package/distribution/component/services/campaign-visual/index.module.scss +0 -125
- package/distribution/component/services/campaign-visual/stage/index.d.ts +0 -4
- package/distribution/component/services/campaign-visual/stage/index.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/index.js +0 -11
- package/distribution/component/services/campaign-visual/stage/index.js.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.d.ts +0 -10
- package/distribution/component/services/campaign-visual/stage/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/stage/type.js.map +0 -1
- package/distribution/component/services/campaign-visual/type.d.ts +0 -5
- package/distribution/component/services/campaign-visual/type.d.ts.map +0 -1
- package/distribution/component/services/campaign-visual/type.js.map +0 -1
- package/distribution/component/services/cell/index.d.ts +0 -7
- package/distribution/component/services/cell/index.d.ts.map +0 -1
- package/distribution/component/services/cell/index.js +0 -16
- package/distribution/component/services/cell/index.js.map +0 -1
- package/distribution/component/services/cell/index.module.css +0 -1
- package/distribution/component/services/cell/index.module.scss +0 -81
- package/distribution/component/services/cell/type.d.ts +0 -16
- package/distribution/component/services/cell/type.d.ts.map +0 -1
- package/distribution/component/services/cell/type.js.map +0 -1
- package/distribution/component/services/design-visual/index.d.ts +0 -5
- package/distribution/component/services/design-visual/index.d.ts.map +0 -1
- package/distribution/component/services/design-visual/index.js +0 -21
- package/distribution/component/services/design-visual/index.js.map +0 -1
- package/distribution/component/services/design-visual/index.module.css +0 -1
- package/distribution/component/services/design-visual/index.module.scss +0 -119
- package/distribution/component/services/mobile-visual/index.d.ts +0 -4
- package/distribution/component/services/mobile-visual/index.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/index.js +0 -18
- package/distribution/component/services/mobile-visual/index.js.map +0 -1
- package/distribution/component/services/mobile-visual/index.module.css +0 -1
- package/distribution/component/services/mobile-visual/index.module.scss +0 -93
- package/distribution/component/services/mobile-visual/type.d.ts +0 -5
- package/distribution/component/services/mobile-visual/type.d.ts.map +0 -1
- package/distribution/component/services/mobile-visual/type.js.map +0 -1
- package/distribution/component/services/platform-visual/index.d.ts +0 -3
- package/distribution/component/services/platform-visual/index.d.ts.map +0 -1
- package/distribution/component/services/platform-visual/index.js +0 -16
- package/distribution/component/services/platform-visual/index.js.map +0 -1
- package/distribution/component/services/platform-visual/index.module.css +0 -1
- package/distribution/component/services/platform-visual/index.module.scss +0 -39
- package/distribution/component/services/social-visual/index.d.ts +0 -4
- package/distribution/component/services/social-visual/index.d.ts.map +0 -1
- package/distribution/component/services/social-visual/index.js +0 -18
- package/distribution/component/services/social-visual/index.js.map +0 -1
- package/distribution/component/services/social-visual/index.module.css +0 -1
- package/distribution/component/services/social-visual/index.module.scss +0 -123
- package/distribution/component/services/social-visual/type.d.ts.map +0 -1
- package/distribution/component/services/social-visual/type.js +0 -2
- package/distribution/component/services/social-visual/type.js.map +0 -1
- package/distribution/component/services/web-visual/index.d.ts +0 -3
- package/distribution/component/services/web-visual/index.d.ts.map +0 -1
- package/distribution/component/services/web-visual/index.js +0 -26
- package/distribution/component/services/web-visual/index.js.map +0 -1
- package/distribution/component/services/web-visual/index.module.css +0 -1
- package/distribution/component/services/web-visual/index.module.scss +0 -133
- package/distribution/content/services/type.d.ts +0 -8
- package/distribution/content/services/type.d.ts.map +0 -1
- package/distribution/content/services/type.js +0 -2
- package/distribution/content/services/type.js.map +0 -1
- /package/distribution/component/{service-action → contact/form/chip}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual/stage → service-card}/type.js +0 -0
- /package/distribution/component/{services/campaign-visual → service-object/cuboid}/type.js +0 -0
- /package/distribution/component/{services/cell → service-object}/type.js +0 -0
- /package/distribution/component/{services/mobile-visual → service-unlisted}/type.js +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CuboidProperties } from "@sharadox/sharadox-web-library/component/service-object/cuboid/type";
|
|
2
|
+
/**
|
|
3
|
+
* A solid box in CSS 3D, centered where it is placed: six faces in the style's colors. Size it with `--width`,
|
|
4
|
+
* `--height` and `--depth` (lengths) in `className`, which can also move it with `transform`. `front` and `top` are
|
|
5
|
+
* drawn on those faces.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <Cuboid className={styles.slab} top={<span className={styles.glow} />} />
|
|
9
|
+
*/
|
|
10
|
+
export declare function Cuboid({ className, front, top }: CuboidProperties): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAC;AAE5G;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,gBAAgB,+BAWjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { classNames } from "@sharadox/web-library/class-name";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/**
|
|
5
|
+
* A solid box in CSS 3D, centered where it is placed: six faces in the style's colors. Size it with `--width`,
|
|
6
|
+
* `--height` and `--depth` (lengths) in `className`, which can also move it with `transform`. `front` and `top` are
|
|
7
|
+
* drawn on those faces.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Cuboid className={styles.slab} top={<span className={styles.glow} />} />
|
|
11
|
+
*/
|
|
12
|
+
export function Cuboid({ className, front, top }) {
|
|
13
|
+
return (_jsxs("div", { className: classNames(styles.cuboid, className), children: [_jsx("div", { className: classNames(styles.face, styles.front), children: front }), _jsx("div", { className: classNames(styles.face, styles.back) }), _jsx("div", { className: classNames(styles.face, styles.right) }), _jsx("div", { className: classNames(styles.face, styles.left) }), _jsx("div", { className: classNames(styles.face, styles.top), children: top }), _jsx("div", { className: classNames(styles.face, styles.bottom) })] }));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;;GAOG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAoB;IAChE,OAAO,CACL,eAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,aAClD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,YAAG,KAAK,GAAO,EACpE,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAI,EACxD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,GAAI,EACzD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAI,EACxD,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,YAAG,GAAG,GAAO,EAChE,cAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GAAI,IACtD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cuboid{--width: 40px;--height: 40px;--depth: 40px;position:absolute;left:50%;top:50%;width:var(--width);height:var(--height);margin:calc(var(--height)/-2) 0 0 calc(var(--width)/-2);transform-style:preserve-3d}.face{box-sizing:border-box;background:color-mix(in srgb, var(--foreground) var(--fill-amount, 6%), transparent);border:1px solid color-mix(in srgb, var(--foreground) var(--edge-amount, 40%), transparent);position:absolute;transform-style:preserve-3d}.front,.back{inset:0;border-radius:var(--radius, 0)}.front{transform:translateZ(calc(var(--depth) / 2));background:color-mix(in srgb, var(--foreground) var(--front-amount, 8%), transparent)}.back{transform:rotateY(180deg) translateZ(calc(var(--depth) / 2))}.right,.left{top:0;left:50%;width:var(--depth);height:100%;margin-left:calc(var(--depth)/-2)}.right{transform:rotateY(90deg) translateZ(calc(var(--width) / 2))}.left{transform:rotateY(-90deg) translateZ(calc(var(--width) / 2))}.top,.bottom{left:0;top:50%;width:100%;height:var(--depth);margin-top:calc(var(--depth)/-2)}.top{transform:rotateX(90deg) translateZ(calc(var(--height) / 2));background:color-mix(in srgb, var(--foreground) var(--top-amount, 12%), transparent)}.bottom{transform:rotateX(-90deg) translateZ(calc(var(--height) / 2))}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.cuboid {
|
|
5
|
+
--width: 40px;
|
|
6
|
+
--height: 40px;
|
|
7
|
+
--depth: 40px;
|
|
8
|
+
position: absolute;
|
|
9
|
+
left: 50%;
|
|
10
|
+
top: 50%;
|
|
11
|
+
width: var(--width);
|
|
12
|
+
height: var(--height);
|
|
13
|
+
margin: calc(var(--height) / -2) 0 0 calc(var(--width) / -2);
|
|
14
|
+
transform-style: preserve-3d;
|
|
15
|
+
}
|
|
16
|
+
.face {
|
|
17
|
+
@include face(var(--fill-amount, 6%), var(--edge-amount, 40%));
|
|
18
|
+
position: absolute;
|
|
19
|
+
transform-style: preserve-3d;
|
|
20
|
+
}
|
|
21
|
+
.front,
|
|
22
|
+
.back {
|
|
23
|
+
inset: 0;
|
|
24
|
+
border-radius: var(--radius, 0);
|
|
25
|
+
}
|
|
26
|
+
.front {
|
|
27
|
+
transform: translateZ(calc(var(--depth) / 2));
|
|
28
|
+
background: tint(var(--front-amount, 8%));
|
|
29
|
+
}
|
|
30
|
+
.back {
|
|
31
|
+
transform: rotateY(180deg) translateZ(calc(var(--depth) / 2));
|
|
32
|
+
}
|
|
33
|
+
.right,
|
|
34
|
+
.left {
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 50%;
|
|
37
|
+
width: var(--depth);
|
|
38
|
+
height: 100%;
|
|
39
|
+
margin-left: calc(var(--depth) / -2);
|
|
40
|
+
}
|
|
41
|
+
.right {
|
|
42
|
+
transform: rotateY(90deg) translateZ(calc(var(--width) / 2));
|
|
43
|
+
}
|
|
44
|
+
.left {
|
|
45
|
+
transform: rotateY(-90deg) translateZ(calc(var(--width) / 2));
|
|
46
|
+
}
|
|
47
|
+
.top,
|
|
48
|
+
.bottom {
|
|
49
|
+
left: 0;
|
|
50
|
+
top: 50%;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: var(--depth);
|
|
53
|
+
margin-top: calc(var(--depth) / -2);
|
|
54
|
+
}
|
|
55
|
+
.top {
|
|
56
|
+
transform: rotateX(90deg) translateZ(calc(var(--height) / 2));
|
|
57
|
+
background: tint(var(--top-amount, 12%));
|
|
58
|
+
}
|
|
59
|
+
.bottom {
|
|
60
|
+
transform: rotateX(-90deg) translateZ(calc(var(--height) / 2));
|
|
61
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface CuboidProperties {
|
|
3
|
+
/** Sets `--width`, `--height`, `--depth`, and may move it with `transform`. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Drawn on the front face. */
|
|
6
|
+
front?: ReactNode;
|
|
7
|
+
/** Drawn on the top face. */
|
|
8
|
+
top?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,6BAA6B;IAC7B,GAAG,CAAC,EAAE,SAAS,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/service-object/cuboid/type.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/e-commerce/index.tsx"],"names":[],"mappings":"AAGA,6FAA6F;AAC7F,wBAAgB,SAAS,gCAYxB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** E-commerce: a shopping bag, swaying, with products dropping into it one after another. */
|
|
5
|
+
export function ECommerce() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [[0, 1, 2].map((item) => (_jsx("div", { className: styles.drop, style: { animationDelay: `${item * 1.1}s` }, children: _jsx(Cuboid, { className: styles.item }) }, item))), _jsx("div", { className: styles.handle }), _jsx(Cuboid, { className: styles.bag, front: _jsx("span", { className: styles.tag }) })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/e-commerce/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,6FAA6F;AAC7F,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,cAAgB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,IAAI,GAAG,GAAG,GAAG,EAAE,YACjF,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAD1B,IAAI,CAER,CACP,CAAC,EACF,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EACjC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,GAAG,GAAI,GAAI,IACrE,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;animation:commerce-sway 8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(18px) rotateX(-16deg) rotateY(-28deg)}@keyframes commerce-sway{0%,100%{transform:translateY(18px) rotateX(-16deg) rotateY(-34deg)}50%{transform:translateY(18px) rotateX(-12deg) rotateY(26deg)}}.bag{--width: 104px;--height: 112px;--depth: 52px;--front-amount: 10%;--top-amount: 2%}.tag{position:absolute;left:50%;top:30px;width:30px;height:30px;margin-left:-15px;border:1px solid color-mix(in srgb, var(--foreground) 60%, transparent);border-radius:50%}.tag::after{content:"";position:absolute;inset:8px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 60%, transparent)}.handle{position:absolute;left:50%;top:50%;width:48px;height:34px;margin:-17px 0 0 -24px;transform-style:preserve-3d;transform:translate3d(0, -72px, 0);border:2px solid color-mix(in srgb, var(--foreground) 65%, transparent);border-bottom:0;border-radius:24px 24px 0 0}.drop{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;transform:translateY(-170px) scale(0);animation:commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite}@media(prefers-reduced-motion: reduce){.drop{animation:none}}.drop:nth-child(2){left:calc(50% - 18px)}.drop:nth-child(3){left:calc(50% + 16px)}@keyframes commerce-drop{0%{transform:translateY(-170px) rotateY(0deg) scale(1)}55%{transform:translateY(-40px) rotateY(160deg) scale(1)}65%,100%{transform:translateY(-10px) rotateY(180deg) scale(0)}}.item{--width: 22px;--height: 22px;--depth: 22px;--fill-amount: 16%;--edge-amount: 70%}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(commerce-sway 8s ease-in-out infinite);
|
|
7
|
+
transform: translateY(18px) rotateX(-16deg) rotateY(-28deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes commerce-sway {
|
|
10
|
+
0%,
|
|
11
|
+
100% {
|
|
12
|
+
transform: translateY(18px) rotateX(-16deg) rotateY(-34deg);
|
|
13
|
+
}
|
|
14
|
+
50% {
|
|
15
|
+
transform: translateY(18px) rotateX(-12deg) rotateY(26deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.bag {
|
|
19
|
+
--width: 104px;
|
|
20
|
+
--height: 112px;
|
|
21
|
+
--depth: 52px;
|
|
22
|
+
--front-amount: 10%;
|
|
23
|
+
--top-amount: 2%;
|
|
24
|
+
}
|
|
25
|
+
.tag {
|
|
26
|
+
position: absolute;
|
|
27
|
+
left: 50%;
|
|
28
|
+
top: 30px;
|
|
29
|
+
width: 30px;
|
|
30
|
+
height: 30px;
|
|
31
|
+
margin-left: -15px;
|
|
32
|
+
border: 1px solid tint(60%);
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
&::after {
|
|
35
|
+
content: "";
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 8px;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background: tint(60%);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.handle {
|
|
43
|
+
@include centered(48px, 34px);
|
|
44
|
+
transform: translate3d(0, -72px, 0);
|
|
45
|
+
border: 2px solid tint(65%);
|
|
46
|
+
border-bottom: 0;
|
|
47
|
+
border-radius: 24px 24px 0 0;
|
|
48
|
+
}
|
|
49
|
+
.drop {
|
|
50
|
+
@include centered(0px, 0px);
|
|
51
|
+
transform: translateY(-170px) scale(0);
|
|
52
|
+
@include loop(commerce-drop 3.3s cubic-bezier(0.5, 0, 0.75, 0) infinite);
|
|
53
|
+
&:nth-child(2) {
|
|
54
|
+
left: calc(50% - 18px);
|
|
55
|
+
}
|
|
56
|
+
&:nth-child(3) {
|
|
57
|
+
left: calc(50% + 16px);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
@keyframes commerce-drop {
|
|
61
|
+
0% {
|
|
62
|
+
transform: translateY(-170px) rotateY(0deg) scale(1);
|
|
63
|
+
}
|
|
64
|
+
55% {
|
|
65
|
+
transform: translateY(-40px) rotateY(160deg) scale(1);
|
|
66
|
+
}
|
|
67
|
+
65%,
|
|
68
|
+
100% {
|
|
69
|
+
transform: translateY(-10px) rotateY(180deg) scale(0);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.item {
|
|
73
|
+
--width: 22px;
|
|
74
|
+
--height: 22px;
|
|
75
|
+
--depth: 22px;
|
|
76
|
+
--fill-amount: 16%;
|
|
77
|
+
--edge-amount: 70%;
|
|
78
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ServiceObjectProperties } from "@sharadox/sharadox-web-library/component/service-object/type";
|
|
2
|
+
/**
|
|
3
|
+
* A service card's animated 3D object, in CSS 3D and the style's colors. It turns towards the pointer through the
|
|
4
|
+
* `--tilt-x` and `--tilt-y` its card sets (`useTilt`), on top of its own animation, which holds still with reduced motion.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <ServiceObject kind="website" />
|
|
8
|
+
*/
|
|
9
|
+
export declare function ServiceObject({ kind }: ServiceObjectProperties): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AAoB5G;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,uBAAuB,+BAS9D"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ApplicationProgrammingInterface } from "@sharadox/sharadox-web-library/component/service-object/application-programming-interface";
|
|
3
|
+
import { BrandAwareness } from "@sharadox/sharadox-web-library/component/service-object/brand-awareness";
|
|
4
|
+
import { Branding } from "@sharadox/sharadox-web-library/component/service-object/branding";
|
|
5
|
+
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
|
+
import { ECommerce } from "@sharadox/sharadox-web-library/component/service-object/e-commerce";
|
|
8
|
+
import { LeadGeneration } from "@sharadox/sharadox-web-library/component/service-object/lead-generation";
|
|
9
|
+
import { Platform } from "@sharadox/sharadox-web-library/component/service-object/platform";
|
|
10
|
+
import { ProductLaunch } from "@sharadox/sharadox-web-library/component/service-object/product-launch";
|
|
11
|
+
import { ProgressiveWebApplication } from "@sharadox/sharadox-web-library/component/service-object/progressive-web-application";
|
|
12
|
+
import { Rebranding } from "@sharadox/sharadox-web-library/component/service-object/rebranding";
|
|
13
|
+
import { SalesGeneration } from "@sharadox/sharadox-web-library/component/service-object/sales-generation";
|
|
14
|
+
import { SocialMediaStrategy } from "@sharadox/sharadox-web-library/component/service-object/social-media-strategy";
|
|
15
|
+
import { Website } from "@sharadox/sharadox-web-library/component/service-object/website";
|
|
16
|
+
import styles from "./index.module.css";
|
|
17
|
+
/** Each service card's own object. */
|
|
18
|
+
const OBJECTS = {
|
|
19
|
+
website: Website,
|
|
20
|
+
platform: Platform,
|
|
21
|
+
"e-commerce": ECommerce,
|
|
22
|
+
"content-management-system": ContentManagementSystem,
|
|
23
|
+
"application-programming-interface": ApplicationProgrammingInterface,
|
|
24
|
+
"progressive-web-application": ProgressiveWebApplication,
|
|
25
|
+
branding: Branding,
|
|
26
|
+
rebranding: Rebranding,
|
|
27
|
+
"branding-design": BrandingDesign,
|
|
28
|
+
"product-launch": ProductLaunch,
|
|
29
|
+
"lead-generation": LeadGeneration,
|
|
30
|
+
"sales-generation": SalesGeneration,
|
|
31
|
+
"brand-awareness": BrandAwareness,
|
|
32
|
+
"social-media-strategy": SocialMediaStrategy,
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A service card's animated 3D object, in CSS 3D and the style's colors. It turns towards the pointer through the
|
|
36
|
+
* `--tilt-x` and `--tilt-y` its card sets (`useTilt`), on top of its own animation, which holds still with reduced motion.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* <ServiceObject kind="website" />
|
|
40
|
+
*/
|
|
41
|
+
export function ServiceObject({ kind }) {
|
|
42
|
+
const Shape = OBJECTS[kind];
|
|
43
|
+
return (_jsx("div", { className: styles.stage, "aria-hidden": true, children: _jsx("div", { className: styles.view, children: _jsx(Shape, {}) }) }));
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-object/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,2FAA2F,CAAC;AAC5I,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mFAAmF,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAE,MAAM,oEAAoE,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,yEAAyE,CAAC;AACzG,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AACvG,OAAO,EAAE,yBAAyB,EAAE,MAAM,qFAAqF,CAAC;AAChI,OAAO,EAAE,UAAU,EAAE,MAAM,oEAAoE,CAAC;AAChG,OAAO,EAAE,eAAe,EAAE,MAAM,0EAA0E,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,+EAA+E,CAAC;AACpH,OAAO,EAAE,OAAO,EAAE,MAAM,iEAAiE,CAAC;AAE1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,sCAAsC;AACtC,MAAM,OAAO,GAA0C;IACrD,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,uBAAuB;IACpD,mCAAmC,EAAE,+BAA+B;IACpE,6BAA6B,EAAE,yBAAyB;IACxD,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE,UAAU;IACtB,iBAAiB,EAAE,cAAc;IACjC,gBAAgB,EAAE,aAAa;IAC/B,iBAAiB,EAAE,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 @@
|
|
|
1
|
+
.stage{position:absolute;inset:0;perspective:900px;overflow:hidden}.view{position:absolute;inset:0;transform-style:preserve-3d;transform:scale(var(--object-scale, 1)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));transition:transform .7s cubic-bezier(0.22, 1, 0.36, 1)}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
|
|
3
|
+
.stage {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset: 0;
|
|
6
|
+
perspective: 900px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
/* Turns towards the pointer (from the card's tilt), easing there and back; `--object-scale` enlarges it. */
|
|
10
|
+
.view {
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
13
|
+
transform-style: preserve-3d;
|
|
14
|
+
transform: scale(var(--object-scale, 1)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
|
|
15
|
+
transition: transform 0.7s $ease;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/lead-generation/index.tsx"],"names":[],"mappings":"AAEA,qHAAqH;AACrH,wBAAgB,cAAc,gCAc7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from "./index.module.css";
|
|
3
|
+
/** Lead generation: a funnel of rings turning slowly, with people dropping in at the top and coming out as leads. */
|
|
4
|
+
export function LeadGeneration() {
|
|
5
|
+
return (_jsxs("div", { className: styles.object, children: [[0, 1, 2, 3, 4].map((ring) => (_jsx("span", { className: styles.ring, "data-ring": ring }, ring))), [0, 1, 2, 3, 4, 5].map((dot) => (_jsx("span", { className: styles.path, style: { transform: `rotateY(${dot * 60}deg)` }, children: _jsx("i", { style: { animationDelay: `${dot * 0.5}s` } }) }, dot))), _jsx("span", { className: styles.lead })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/lead-generation/index.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,qHAAqH;AACrH,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC7B,eAAiB,SAAS,EAAE,MAAM,CAAC,IAAI,eAAa,IAAI,IAA7C,IAAI,CAA6C,CAC7D,CAAC,EACD,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC/B,eAAgB,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,GAAG,EAAE,MAAM,EAAE,YACrF,YAAG,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,GAAI,IADxC,GAAG,CAEP,CACR,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,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;animation:lead-turn 18s linear infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(10px) rotateX(-22deg) rotateY(0deg)}@keyframes lead-turn{to{transform:translateY(10px) rotateX(-22deg) rotateY(360deg)}}.ring{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;border-radius:50%;border:1px solid color-mix(in srgb, var(--foreground) 55%, transparent);background:color-mix(in srgb, var(--foreground) 3%, transparent)}.ring[data-ring="0"]{width:160px;height:160px;margin:-80px 0 0 -80px;transform:translateY(-62px) rotateX(90deg)}.ring[data-ring="1"]{width:124px;height:124px;margin:-62px 0 0 -62px;transform:translateY(-34px) rotateX(90deg)}.ring[data-ring="2"]{width:88px;height:88px;margin:-44px 0 0 -44px;transform:translateY(-6px) rotateX(90deg)}.ring[data-ring="3"]{width:52px;height:52px;margin:-26px 0 0 -26px;transform:translateY(22px) rotateX(90deg)}.ring[data-ring="4"]{width:26px;height:26px;margin:-13px 0 0 -13px;transform:translateY(50px) rotateX(90deg)}.path{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d}.path i{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--foreground);box-shadow:0 0 8px color-mix(in srgb, var(--foreground) 60%, transparent);opacity:0;animation:lead-fall 3s cubic-bezier(0.45, 0, 0.7, 1) infinite}@media(prefers-reduced-motion: reduce){.path i{animation:none}}@keyframes lead-fall{0%{transform:translate3d(0, -110px, 70px);opacity:0}15%{opacity:1}40%{transform:translate3d(0, -62px, 74px)}85%{transform:translate3d(0, 50px, 0);opacity:1}100%{transform:translate3d(0, 82px, 0);opacity:0}}.lead{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;transform-style:preserve-3d;border-radius:50%;background:var(--foreground);transform:translateY(82px);box-shadow:0 0 16px color-mix(in srgb, var(--foreground) 60%, transparent);animation:lead-pulse .5s ease-in-out infinite alternate}@media(prefers-reduced-motion: reduce){.lead{animation:none}}@keyframes lead-pulse{to{box-shadow:0 0 26px 4px color-mix(in srgb, var(--foreground) 70%, transparent)}}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "style/token" as *;
|
|
3
|
+
@use "style/object" as *;
|
|
4
|
+
|
|
5
|
+
.object {
|
|
6
|
+
@include centered(0px, 0px);
|
|
7
|
+
@include loop(lead-turn 18s linear infinite);
|
|
8
|
+
transform: translateY(10px) rotateX(-22deg) rotateY(0deg);
|
|
9
|
+
}
|
|
10
|
+
@keyframes lead-turn {
|
|
11
|
+
to {
|
|
12
|
+
transform: translateY(10px) rotateX(-22deg) rotateY(360deg);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
$sizes: 160px, 124px, 88px, 52px, 26px;
|
|
16
|
+
$heights:
|
|
17
|
+
-62px,
|
|
18
|
+
-34px,
|
|
19
|
+
-6px,
|
|
20
|
+
22px,
|
|
21
|
+
50px;
|
|
22
|
+
.ring {
|
|
23
|
+
@include centered(0px, 0px);
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
border: 1px solid tint(55%);
|
|
26
|
+
background: tint(3%);
|
|
27
|
+
@for $index from 0 through 4 {
|
|
28
|
+
&[data-ring="#{$index}"] {
|
|
29
|
+
width: list.nth($sizes, $index + 1);
|
|
30
|
+
height: list.nth($sizes, $index + 1);
|
|
31
|
+
margin: (-0.5 * list.nth($sizes, $index + 1)) 0 0 (-0.5 * list.nth($sizes, $index + 1));
|
|
32
|
+
transform: translateY(list.nth($heights, $index + 1)) rotateX(90deg);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.path {
|
|
37
|
+
@include centered(0px, 0px);
|
|
38
|
+
i {
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 8px;
|
|
41
|
+
height: 8px;
|
|
42
|
+
margin: -4px 0 0 -4px;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
background: var(--foreground);
|
|
45
|
+
box-shadow: 0 0 8px tint(60%);
|
|
46
|
+
opacity: 0;
|
|
47
|
+
@include loop(lead-fall 3s cubic-bezier(0.45, 0, 0.7, 1) infinite);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
@keyframes lead-fall {
|
|
51
|
+
0% {
|
|
52
|
+
transform: translate3d(0, -110px, 70px);
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
15% {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
40% {
|
|
59
|
+
transform: translate3d(0, -62px, 74px);
|
|
60
|
+
}
|
|
61
|
+
85% {
|
|
62
|
+
transform: translate3d(0, 50px, 0);
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
transform: translate3d(0, 82px, 0);
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
.lead {
|
|
71
|
+
@include centered(14px, 14px);
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
background: var(--foreground);
|
|
74
|
+
transform: translateY(82px);
|
|
75
|
+
box-shadow: 0 0 16px tint(60%);
|
|
76
|
+
@include loop(lead-pulse 0.5s ease-in-out infinite alternate);
|
|
77
|
+
}
|
|
78
|
+
@keyframes lead-pulse {
|
|
79
|
+
to {
|
|
80
|
+
box-shadow: 0 0 26px 4px tint(70%);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":"AAGA,yHAAyH;AACzH,wBAAgB,QAAQ,gCAavB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Platforms: four layers of one system, turning slowly, with a signal lighting them in turn and a core through them. */
|
|
5
|
+
export function Platform() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [_jsx("div", { className: styles.core }), [0, 1, 2, 3].map((layer) => (_jsx(Cuboid, { className: styles.slab, top: _jsx("span", { className: styles.signal, style: { animationDelay: `${layer * -0.45}s` } }) }, layer)))] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/platform/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,yHAAyH;AACzH,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC9B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC3B,KAAC,MAAM,IAEL,SAAS,EAAE,MAAM,CAAC,IAAI,EACtB,GAAG,EAAE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,KAAK,GAAG,CAAC,IAAI,GAAG,EAAE,GAAI,IAFlF,KAAK,CAGV,CACH,CAAC,IACE,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;animation:platform-turn 26s linear infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-28deg) rotateY(45deg)}@keyframes platform-turn{to{transform:rotateX(-28deg) rotateY(405deg)}}.slab{--width: 112px;--height: 10px;--depth: 112px}.slab:nth-child(2){transform:translateY(-54px)}.slab:nth-child(3){transform:translateY(-18px)}.slab:nth-child(4){transform:translateY(18px)}.slab:nth-child(5){transform:translateY(54px)}.signal{position:absolute;inset:10px;border-radius:4px;background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 60%, transparent) 1px, transparent 1.5px) 0 0/10px 10px;border:1px solid color-mix(in srgb, var(--foreground) 70%, transparent);opacity:.15;animation:platform-signal 1.8s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.signal{animation:none}}@keyframes platform-signal{0%,60%,100%{opacity:.15}20%{opacity:1}}.core{position:absolute;left:50%;top:50%;width:2px;height:140px;margin:-70px 0 0 -1px;transform-style:preserve-3d;background:linear-gradient(180deg, transparent, color-mix(in srgb, var(--foreground) 70%, transparent), transparent);box-shadow:0 0 10px color-mix(in srgb, var(--foreground) 50%, transparent)}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use "style/token" as *;
|
|
2
|
+
@use "style/object" as *;
|
|
3
|
+
|
|
4
|
+
.object {
|
|
5
|
+
@include centered(0px, 0px);
|
|
6
|
+
@include loop(platform-turn 26s linear infinite);
|
|
7
|
+
transform: rotateX(-28deg) rotateY(45deg);
|
|
8
|
+
}
|
|
9
|
+
@keyframes platform-turn {
|
|
10
|
+
to {
|
|
11
|
+
transform: rotateX(-28deg) rotateY(405deg);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.slab {
|
|
15
|
+
--width: 112px;
|
|
16
|
+
--height: 10px;
|
|
17
|
+
--depth: 112px;
|
|
18
|
+
&:nth-child(2) {
|
|
19
|
+
transform: translateY(-54px);
|
|
20
|
+
}
|
|
21
|
+
&:nth-child(3) {
|
|
22
|
+
transform: translateY(-18px);
|
|
23
|
+
}
|
|
24
|
+
&:nth-child(4) {
|
|
25
|
+
transform: translateY(18px);
|
|
26
|
+
}
|
|
27
|
+
&:nth-child(5) {
|
|
28
|
+
transform: translateY(54px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.signal {
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 10px;
|
|
34
|
+
border-radius: 4px;
|
|
35
|
+
background: radial-gradient(circle, tint(60%) 1px, transparent 1.5px) 0 0 / 10px 10px;
|
|
36
|
+
border: 1px solid tint(70%);
|
|
37
|
+
opacity: 0.15;
|
|
38
|
+
@include loop(platform-signal 1.8s ease-in-out infinite);
|
|
39
|
+
}
|
|
40
|
+
@keyframes platform-signal {
|
|
41
|
+
0%,
|
|
42
|
+
60%,
|
|
43
|
+
100% {
|
|
44
|
+
opacity: 0.15;
|
|
45
|
+
}
|
|
46
|
+
20% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
.core {
|
|
51
|
+
@include centered(2px, 140px);
|
|
52
|
+
background: linear-gradient(180deg, transparent, tint(70%), transparent);
|
|
53
|
+
box-shadow: 0 0 10px tint(50%);
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":"AAGA,yHAAyH;AACzH,wBAAgB,aAAa,gCAc5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
/** Product launches: a product lifting off its pad with a trail, shock rings spreading over the pad, again and again. */
|
|
5
|
+
export function ProductLaunch() {
|
|
6
|
+
return (_jsxs("div", { className: styles.object, children: [_jsxs("div", { className: styles.pad, children: [_jsx("i", {}), _jsx("i", {})] }), _jsxs("div", { className: styles.flight, children: [_jsx("span", { className: styles.trail }), _jsx(Cuboid, { className: styles.body }), _jsx(Cuboid, { className: styles.nose })] })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/product-launch/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,yHAAyH;AACzH,MAAM,UAAU,aAAa;IAC3B,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,aAAK,EACL,aAAK,IACD,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EACjC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAClC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC9B,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;animation:launch-turn 20s linear infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:translateY(40px) rotateX(-20deg) rotateY(30deg)}@keyframes launch-turn{to{transform:translateY(40px) rotateX(-20deg) rotateY(390deg)}}.pad{position:absolute;left:50%;top:50%;width:150px;height:150px;margin:-75px 0 0 -75px;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) 35%, transparent);border-radius:50%;transform:translateY(26px) rotateX(90deg);background:radial-gradient(circle, color-mix(in srgb, var(--foreground) 22%, transparent) 1px, transparent 1.5px) 0 0/12px 12px}.pad i{position:absolute;inset:40%;border-radius:50%;border:1.5px solid color-mix(in srgb, var(--foreground) 70%, transparent);opacity:0;animation:launch-ring 3.4s ease-out infinite}@media(prefers-reduced-motion: reduce){.pad i{animation:none}}.pad i:nth-child(2){animation-delay:.3s}@keyframes launch-ring{0%,8%{inset:40%;opacity:0}12%{opacity:1}60%,100%{inset:-4%;opacity:0}}.flight{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:launch-flight 3.4s cubic-bezier(0.55, 0, 0.8, 0.4) infinite}@media(prefers-reduced-motion: reduce){.flight{animation:none}}@keyframes launch-flight{0%,10%{transform:translateY(0) scale(1)}70%{transform:translateY(-190px) scale(1)}71%{transform:translateY(-190px) scale(0)}72%{transform:translateY(60px) scale(0)}80%{transform:translateY(60px) scale(1)}100%{transform:translateY(0) scale(1)}}.body{--width: 26px;--height: 54px;--depth: 26px;--fill-amount: 10%;--edge-amount: 70%;transform:translateY(-2px)}.nose{--width: 14px;--height: 14px;--depth: 14px;--fill-amount: 30%;--edge-amount: 80%;transform:translateY(-38px)}.trail{position:absolute;left:50%;top:50%;width:3px;height:90px;margin:-45px 0 0 -1.5px;transform-style:preserve-3d;transform:translateY(70px);background:linear-gradient(180deg, color-mix(in srgb, var(--foreground) 70%, transparent), transparent);box-shadow:0 0 12px color-mix(in srgb, var(--foreground) 40%, transparent);opacity:0;animation:launch-trail 3.4s linear infinite}@media(prefers-reduced-motion: reduce){.trail{animation:none}}@keyframes launch-trail{0%,10%{opacity:0}20%,66%{opacity:1}70%,100%{opacity:0}}
|