@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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAKzE;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,IAAc;IAC5C,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACnE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACtD,OAAO;QACL,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,MAAM;QACvB,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,OAAO;QAC3B,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO;QACnC,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO;QACnC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO;QAC3C,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,oBAAoB,IAAI,SAAS;KACnE,CAAC,MAAM,CAAC,CAAC,OAAO,EAA6B,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -20,7 +20,7 @@ export function llmsText() {
|
|
|
20
20
|
sections: [
|
|
21
21
|
{
|
|
22
22
|
title: "What Sharadox does",
|
|
23
|
-
lines: SERVICES.items.
|
|
23
|
+
lines: SERVICES.items.flatMap((service) => service.cards.map((card) => `${service.title.en}, ${card.title.en}: ${card.text.en}`)),
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
title: "How it works",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/llms-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,aAAa,CAAC;QACnB,KAAK,EAAE,IAAI,CAAC,IAAI;QAChB,OAAO,EAAE,MAAM,CAAC,EAAE;QAClB,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE;QAC5B,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utility/llms-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAEvE;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ;IACtB,OAAO,aAAa,CAAC;QACnB,KAAK,EAAE,IAAI,CAAC,IAAI;QAChB,OAAO,EAAE,MAAM,CAAC,EAAE;QAClB,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE;QAC5B,QAAQ,EAAE;YACR;gBACE,KAAK,EAAE,oBAAoB;gBAC3B,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CACxC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CACtF;aACF;YACD;gBACE,KAAK,EAAE,cAAc;gBACrB,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;gBACvE,KAAK,EAAE,UAAU;aAClB;YACD,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,UAAU,IAAI,CAAC,KAAK,EAAE,EAAE,oBAAoB,IAAI,CAAC,GAAG,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE;YAC9G;gBACE,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE;oBACL,oBAAoB,IAAI,CAAC,GAAG,MAAM;oBAClC,wBAAwB,IAAI,CAAC,GAAG,MAAM;oBACtC,aAAa,IAAI,CAAC,GAAG,MAAM,OAAO,CAAC,IAAI,GAAG;iBAC3C;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
- content/locale LOCALES (defineLocales en/pt); content/style STYLES (color group: black default, white, system; storageKey "style"); content/separator SEPARATOR "·"
|
|
6
6
|
- utility/separate separate(...parts) with the Sharadox separator
|
|
7
|
-
- action/send-contact sendContact(form, ip) — createContactAction to contact@sharadox.com, subject "Contact · Name (Company)"
|
|
8
|
-
- component/*: navigation, hero (+ lazy globe), service-index, statement, services (
|
|
7
|
+
- action/send-contact sendContact(form, ip) — createContactAction to contact@sharadox.com, subject "Contact · Name (Company)", email or phone, at least one choice, 20+ character message, 5/hour per address, 50/day overall
|
|
8
|
+
- component/*: navigation, hero (+ lazy globe), service-index, statement, services (four groups of service-card, each with a service-object), touchpoint, capability, marquee, process, contact (+ form), footer, section-indicator, style-switch, structured-data, share-image (renderShareImage)
|
|
9
9
|
- style/token Sass helpers: tint, shade, dashed, on-scroll, below, fill-center
|
|
10
10
|
- License: Sharadox Verifiable Source License 0.1.0 (read and verify only)
|
|
11
11
|
- component/license License({ locale, markdown }) renders the license page body (marked); content/license LICENSE { path "/license", title, eyebrow, description }
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- component/not-found NotFound({ locale, path }) the 404 screen (giant 404 with the live globe as the zero, failed request line, way home); content/not-found NOT_FOUND; ServiceIndex takes base? ("/<locale>" off the home page)
|
|
14
14
|
- content/slogan SLOGAN (with full stop) and SLOGAN_LINES; content/section SECTION { home, services, touchpoints, capabilities, process, contact } with id + names; content/action ACTION.startProject; content/language LANGUAGE { label, names }. SITE.slogan, HERO.lines, HERO.primary, NAVIGATION.<name>, FOOTER.services/language, CAPABILITY.eyebrow and CONTACT.eyebrow were removed in 0.10.0 in favor of these.
|
|
15
15
|
- Language switch (internationalization-web-library 0.2): entrances skip on soft navigation (hero/not-found Motion initial, Sass mixin skip-entrance($durations...) for CSS entrances); site must render <LocaleTransitionStyle /> in <head>
|
|
16
|
-
- Service
|
|
16
|
+
- Service cards: SERVICES.items (groups web-application, mobile-application, creative, marketing; anchors) each with cards [{ key, title, text, action, chip }]; a card's key is its contact choice and its 3D object; ServiceCard's button links to #contact and calls requestContactNeeds([key]) (utility/contact-need, window event CONTACT_NEED_EVENT); ContactForm ticks the chip with a glow. CONTACT.needs.groups (chips grouped like the services) + other, and options (flat). Choices: website, platform, e-commerce, android-application, ios-application, progressive-web-application, branding, rebranding, branding-design, product-launch, lead-generation, sales-generation, brand-awareness, social-media-strategy, other
|
|
17
17
|
- content/site FOUNDED 2026; the footer's copyright years come from CopyrightYears (@sharadox/time-web-library): "2026", then "2026–<current year>" as years pass
|
|
18
18
|
- utility/llms-text llmsText() → sharadox.com's llms.txt (shared shape from @sharadox/metadata-web-library). The cookie panel was removed in 0.14.0: the site stores only what it needs (language, style), which needs no consent.
|
|
19
19
|
- content/privacy PRIVACY (privacy-web-library options) and PRIVACY_PAGE { path "/privacy", title, eyebrow, description }; component/privacy-page PrivacyPage({ locale }); the footer links it
|
|
@@ -21,3 +21,6 @@
|
|
|
21
21
|
- 0.17.0: component/consent Consent back (consent-web-library 0.3, required only: Got It and Details); footer: Cookie Preferences, Livro de Reclamações link and the CIMAAL consumer dispute notice (legal-web-library); privacy policy mentions the consent record
|
|
22
22
|
- 0.18.0: navigation links include One System (touchpoints); below 1100px a menu button opens the links and Start a Project under the bar, in the bar's frosted background, scrolling when it doesn't fit (Escape, a link or a wider screen closes it); footer Studio column adds One System and Start a Project
|
|
23
23
|
- 0.19.0: the globe floats (slow rise, fall and sway; still with reduced motion), in the hero and the 404; footer reorganized (brand, services, studio with Start a Project, language and style; wordmark; a bar with license, privacy, cookie preferences, complaints book and Back to top; copyright beside the dispute notice); the phone menu uses @sharadox/menu-web-library (any tap on a link or button in the bar or menu closes it, the logo included)
|
|
24
|
+
- 0.20.0: "What we do" is now Services: four groups (Web Applications: websites, platforms, e-commerce; Mobile Applications: Android, iOS, PWAs; Creative: branding, rebranding, branding design; Marketing: product launches, lead generation, sales generation, brand awareness, social media growth strategy) of cards, each with its own animated CSS 3D object (component/service-object, Cuboid primitive, style/object helpers) that turns towards the pointer (useTilt on the card), a description and a button that ticks its contact choice; contact chips grouped by service (component/contact/form/chip); service-action, services/cell and the old visuals removed; footer: no big wordmark, Start a Project is a solid button, everything legal in one section (title, copyright, links, dispute notice, Back to top); the process line fills as you scroll on phones too (--drawn); ServiceIndex has four cells and a chevron icon; structured data offers one service per card
|
|
25
|
+
- 0.20.1: same as 0.20.0, published again (0.20.0's npm publish failed at the provenance log)
|
|
26
|
+
- 0.21.0: Services: Web Applications adds Content Management Systems (CMS) and APIs; Mobile Applications becomes Desktop and Mobile Applications with one PWA card (wide, numbered points: no store in between, one codebase for every platform, less to pay and wait; its object sends one codebase to a computer, a tablet and a phone); Creative becomes Creative Services with plain-language descriptions of branding, branding design and rebranding; Marketing becomes Marketing Campaigns; a new social media object (feed, likes, posting calendar, followers chart); new CMS and API objects; ServiceUnlisted ("Didn't find what you were looking for?", ticks "not-listed"). Contact form: phone field under email (email or phone or both), chips "I don't know what I need" and "What I need is not listed" replace "Others", checks before sending (utility/contact-problem: name, email or phone, a choice, 20+ characters) with messages under each field; sendContact applies the same rules (form-web-library 0.3.0: requireChoice, minimumMessageLength) and the daily cap of 50 emails. Footer: the legal row sits on the same columns as above (copyright, links and dispute notice, Back to top), without the Legal label or dots. Organization logo is /profile-picture.png
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Sharadox's own website building blocks: content, components, brand and actions for sharadox-web-application, plus the preview notice and agency credit used on client demos.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENCA.md",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@sharadox/animation-web-library": "^0.2.2",
|
|
58
58
|
"@sharadox/consent-web-library": "^0.3.0",
|
|
59
|
-
"@sharadox/form-web-library": "^0.
|
|
59
|
+
"@sharadox/form-web-library": "^0.3.0",
|
|
60
60
|
"@sharadox/globe-web-library": "^0.2.1",
|
|
61
61
|
"@sharadox/icon-web-library": "^0.1.0",
|
|
62
62
|
"@sharadox/internationalization-web-library": "^0.2.3",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ServiceActionsProperties } from "@sharadox/sharadox-web-library/component/service-action/type";
|
|
2
|
-
/**
|
|
3
|
-
* A service card's calls to action: each scrolls to the contact form and ticks its choice there. The first is solid,
|
|
4
|
-
* the others outlined.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* <ServiceActions locale="en" actions={[{ need: "website", label: { en: "Get a Website", pt: "Pedir um Website" } }]} />
|
|
8
|
-
*/
|
|
9
|
-
export declare function ServiceActions({ locale, actions }: ServiceActionsProperties): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/service-action/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AAE7G;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,wBAAwB,+BAiB3E"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
4
|
-
import { Button } from "@sharadox/sharadox-web-library/component/button";
|
|
5
|
-
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
6
|
-
import { requestContactNeeds } from "@sharadox/sharadox-web-library/utility/contact-need";
|
|
7
|
-
import styles from "./index.module.css";
|
|
8
|
-
/**
|
|
9
|
-
* A service card's calls to action: each scrolls to the contact form and ticks its choice there. The first is solid,
|
|
10
|
-
* the others outlined.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* <ServiceActions locale="en" actions={[{ need: "website", label: { en: "Get a Website", pt: "Pedir um Website" } }]} />
|
|
14
|
-
*/
|
|
15
|
-
export function ServiceActions({ locale, actions }) {
|
|
16
|
-
return (_jsx("div", { className: styles.actions, children: actions.map((action, index) => (_jsx(Button, { href: `#${SECTION.contact.id}`, size: "small", variant: index === 0 ? "solid" : "ghost", arrow: index === 0, onClick: () => requestContactNeeds([action.need]), children: translate(action.label, locale) }, action.need))) }));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/service-action/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAAE,OAAO,EAA4B;IAC1E,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,OAAO,YAC3B,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,KAAC,MAAM,IAEL,IAAI,EAAE,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAC9B,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EACxC,KAAK,EAAE,KAAK,KAAK,CAAC,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,YAEhD,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAP3B,MAAM,CAAC,IAAI,CAQT,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ServiceAction } from "@sharadox/sharadox-web-library/content/services/type";
|
|
2
|
-
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
3
|
-
export interface ServiceActionsProperties {
|
|
4
|
-
locale: Locale;
|
|
5
|
-
actions: readonly ServiceAction[];
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../source/component/service-action/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;CACnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../source/component/service-action/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CampaignVisualProperties } from "@sharadox/sharadox-web-library/component/services/campaign-visual/type";
|
|
2
|
-
/** A campaign funnel as stacked 3D plates, narrowing from reach to customers, with live counters. */
|
|
3
|
-
export declare function CampaignVisual({ locale }: CampaignVisualProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wEAAwE,CAAC;AAQvH,qGAAqG;AACrG,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,wBAAwB,+BAwBlE"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
|
-
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
5
|
-
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
6
|
-
import { Stage } from "@sharadox/sharadox-web-library/component/services/campaign-visual/stage";
|
|
7
|
-
import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
|
|
8
|
-
import styles from "./index.module.css";
|
|
9
|
-
const STAGES = [
|
|
10
|
-
{ key: "reach", value: 48200 },
|
|
11
|
-
{ key: "clicks", value: 3140 },
|
|
12
|
-
{ key: "customers", value: 214 },
|
|
13
|
-
];
|
|
14
|
-
/** A campaign funnel as stacked 3D plates, narrowing from reach to customers, with live counters. */
|
|
15
|
-
export function CampaignVisual({ locale }) {
|
|
16
|
-
const [container, on] = useInView();
|
|
17
|
-
return (_jsxs("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: [_jsxs("div", { className: styles.scene, children: [STAGES.map((stage, index) => (_jsx("span", { className: `${styles.plate} ${styles[`plate${index}`]}` }, stage.key))), _jsx("span", { className: styles.ring })] }), _jsx("dl", { className: styles.legend, children: STAGES.map((stage, index) => (_jsx(Stage, { start: on, value: stage.value, durationMilliseconds: 1800 + index * 300, locale: locale, label: translate(SERVICES.visual[stage.key], locale) }, stage.key))) })] }));
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,MAAM,MAAM,GAAG;IACb,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE;IAC9B,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,EAAE;CACxB,CAAC;AAEX,qGAAqG;AACrG,MAAM,UAAU,cAAc,CAAC,EAAE,MAAM,EAA4B;IACjE,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,eAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,kCACxE,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,eAAsB,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,KAAK,EAAE,CAAC,EAAE,IAAlE,KAAK,CAAC,GAAG,CAA6D,CAClF,CAAC,EACF,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,IAC5B,EACN,aAAI,SAAS,EAAE,MAAM,CAAC,MAAM,YACzB,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,KAAC,KAAK,IAEJ,KAAK,EAAE,EAAE,EACT,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,oBAAoB,EAAE,IAAI,GAAG,KAAK,GAAG,GAAG,EACxC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,IAL/C,KAAK,CAAC,GAAG,CAMd,CACH,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;perspective:1000px}.scene{position:relative;justify-self:center;width:150px;height:150px;transform-style:preserve-3d;transform:rotateX(62deg) rotateZ(-38deg);animation:turn 16s linear infinite}@keyframes turn{to{transform:rotateX(62deg) rotateZ(322deg)}}.plate{position:absolute;inset:0;margin:auto;border-radius:16px;border:1px solid var(--foreground-3);background:color-mix(in srgb, var(--foreground) 6%, transparent);box-shadow:0 0 40px -10px color-mix(in srgb, var(--foreground) 30%, transparent)}.plate0{width:150px;height:150px;transform:translateZ(0)}.on .plate0{animation:lift-0 1.4s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate0{animation-duration:0s !important;animation-delay:0s !important}.plate1{width:104px;height:104px;transform:translateZ(34px);background:color-mix(in srgb, var(--foreground) 12%, transparent)}.on .plate1{animation:lift-1 1.4s .15s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate1{animation-duration:0s !important;animation-delay:0s !important}.plate2{width:58px;height:58px;transform:translateZ(68px);background:var(--foreground);border-color:var(--foreground)}.on .plate2{animation:lift-2 1.4s .3s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .plate2{animation-duration:0s !important;animation-delay:0s !important}@keyframes lift-0{from{transform:translateZ(0);opacity:0}}@keyframes lift-1{from{transform:translateZ(0);opacity:0}}@keyframes lift-2{from{transform:translateZ(0);opacity:0}}.ring{position:absolute;inset:0;margin:auto;width:58px;height:58px;border-radius:16px;border:1px solid var(--foreground);transform:translateZ(68px);animation:ripple 2.6s ease-out infinite}@keyframes ripple{from{transform:translateZ(68px) scale(1);opacity:.8}to{transform:translateZ(68px) scale(3.2);opacity:0}}.legend{margin:0;display:grid;gap:14px;padding-right:22px}.stage{padding-left:12px;border-left:1px dashed var(--line-2)}.stage dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--foreground-3)}.stage dd{margin:0;font-size:22px;font-weight:600;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
@use "style/token" as *;
|
|
2
|
-
|
|
3
|
-
.visual {
|
|
4
|
-
position: absolute;
|
|
5
|
-
inset: 0;
|
|
6
|
-
display: grid;
|
|
7
|
-
grid-template-columns: 1.2fr 1fr;
|
|
8
|
-
align-items: center;
|
|
9
|
-
perspective: 1000px;
|
|
10
|
-
}
|
|
11
|
-
.scene {
|
|
12
|
-
position: relative;
|
|
13
|
-
justify-self: center;
|
|
14
|
-
width: 150px;
|
|
15
|
-
height: 150px;
|
|
16
|
-
transform-style: preserve-3d;
|
|
17
|
-
transform: rotateX(62deg) rotateZ(-38deg);
|
|
18
|
-
animation: turn 16s linear infinite;
|
|
19
|
-
}
|
|
20
|
-
@keyframes turn {
|
|
21
|
-
to {
|
|
22
|
-
transform: rotateX(62deg) rotateZ(322deg);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
.plate {
|
|
26
|
-
position: absolute;
|
|
27
|
-
inset: 0;
|
|
28
|
-
margin: auto;
|
|
29
|
-
border-radius: 16px;
|
|
30
|
-
border: 1px solid var(--foreground-3);
|
|
31
|
-
background: tint(6%);
|
|
32
|
-
box-shadow: 0 0 40px -10px tint(30%);
|
|
33
|
-
}
|
|
34
|
-
.plate0 {
|
|
35
|
-
width: 150px;
|
|
36
|
-
height: 150px;
|
|
37
|
-
transform: translateZ(0);
|
|
38
|
-
.on & {
|
|
39
|
-
animation: lift-0 1.4s $ease both;
|
|
40
|
-
@include skip-entrance;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.plate1 {
|
|
44
|
-
width: 104px;
|
|
45
|
-
height: 104px;
|
|
46
|
-
transform: translateZ(34px);
|
|
47
|
-
background: tint(12%);
|
|
48
|
-
.on & {
|
|
49
|
-
animation: lift-1 1.4s 0.15s $ease both;
|
|
50
|
-
@include skip-entrance;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
.plate2 {
|
|
54
|
-
width: 58px;
|
|
55
|
-
height: 58px;
|
|
56
|
-
transform: translateZ(68px);
|
|
57
|
-
background: var(--foreground);
|
|
58
|
-
border-color: var(--foreground);
|
|
59
|
-
.on & {
|
|
60
|
-
animation: lift-2 1.4s 0.3s $ease both;
|
|
61
|
-
@include skip-entrance;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
@keyframes lift-0 {
|
|
65
|
-
from {
|
|
66
|
-
transform: translateZ(0);
|
|
67
|
-
opacity: 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
@keyframes lift-1 {
|
|
71
|
-
from {
|
|
72
|
-
transform: translateZ(0);
|
|
73
|
-
opacity: 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
@keyframes lift-2 {
|
|
77
|
-
from {
|
|
78
|
-
transform: translateZ(0);
|
|
79
|
-
opacity: 0;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
.ring {
|
|
83
|
-
position: absolute;
|
|
84
|
-
inset: 0;
|
|
85
|
-
margin: auto;
|
|
86
|
-
width: 58px;
|
|
87
|
-
height: 58px;
|
|
88
|
-
border-radius: 16px;
|
|
89
|
-
border: 1px solid var(--foreground);
|
|
90
|
-
transform: translateZ(68px);
|
|
91
|
-
animation: ripple 2.6s ease-out infinite;
|
|
92
|
-
}
|
|
93
|
-
@keyframes ripple {
|
|
94
|
-
from {
|
|
95
|
-
transform: translateZ(68px) scale(1);
|
|
96
|
-
opacity: 0.8;
|
|
97
|
-
}
|
|
98
|
-
to {
|
|
99
|
-
transform: translateZ(68px) scale(3.2);
|
|
100
|
-
opacity: 0;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
.legend {
|
|
104
|
-
margin: 0;
|
|
105
|
-
display: grid;
|
|
106
|
-
gap: 14px;
|
|
107
|
-
padding-right: 22px;
|
|
108
|
-
}
|
|
109
|
-
.stage {
|
|
110
|
-
padding-left: 12px;
|
|
111
|
-
border-left: 1px dashed var(--line-2);
|
|
112
|
-
dt {
|
|
113
|
-
font-size: 10.5px;
|
|
114
|
-
text-transform: uppercase;
|
|
115
|
-
letter-spacing: 0.05em;
|
|
116
|
-
color: var(--foreground-3);
|
|
117
|
-
}
|
|
118
|
-
dd {
|
|
119
|
-
margin: 0;
|
|
120
|
-
font-size: 22px;
|
|
121
|
-
font-weight: 600;
|
|
122
|
-
letter-spacing: -0.03em;
|
|
123
|
-
font-variant-numeric: tabular-nums;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { StageProperties } from "@sharadox/sharadox-web-library/component/services/campaign-visual/stage/type";
|
|
2
|
-
/** One funnel stage in the legend: its label and a number counting up. */
|
|
3
|
-
export declare function Stage({ label, value, start, durationMilliseconds, locale }: StageProperties): import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8EAA8E,CAAC;AAEpH,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,EAAE,eAAe,+BAQ3F"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useCountUp } from "@sharadox/animation-web-library/count-up";
|
|
4
|
-
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
5
|
-
import styles from "../index.module.css";
|
|
6
|
-
/** One funnel stage in the legend: its label and a number counting up. */
|
|
7
|
-
export function Stage({ label, value, start, durationMilliseconds, locale }) {
|
|
8
|
-
const count = useCountUp(value, start, durationMilliseconds);
|
|
9
|
-
return (_jsxs("div", { className: styles.stage, children: [_jsx("dt", { className: "monospace", children: label }), _jsx("dd", { children: count.toLocaleString(LOCALES.languageTag(locale)) })] }));
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AACxE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAG1C,0EAA0E;AAC1E,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAmB;IAC1F,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC;IAC7D,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,aAAI,SAAS,EAAC,WAAW,YAAE,KAAK,GAAM,EACtC,uBAAK,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,GAAM,IACxD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
|
|
2
|
-
export interface StageProperties {
|
|
3
|
-
label: string;
|
|
4
|
-
value: number;
|
|
5
|
-
/** Starts counting up when true. */
|
|
6
|
-
start: boolean;
|
|
7
|
-
durationMilliseconds: number;
|
|
8
|
-
locale: Locale;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../source/component/services/campaign-visual/stage/type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/campaign-visual/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CellProperties } from "@sharadox/sharadox-web-library/component/services/cell/type";
|
|
2
|
-
/**
|
|
3
|
-
* One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
|
|
4
|
-
* copy, with a light that follows the pointer.
|
|
5
|
-
*/
|
|
6
|
-
export declare function Cell({ id, visual, number, kinds, title, lead, text, actions, className }: CellProperties): import("react").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6DAA6D,CAAC;AAElG;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,cAAc,+BA0BxG"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
|
-
import { useSpotlight } from "@sharadox/pointer-web-library/spotlight";
|
|
5
|
-
import { useTilt } from "@sharadox/pointer-web-library/tilt";
|
|
6
|
-
import styles from "./index.module.css";
|
|
7
|
-
/**
|
|
8
|
-
* One discipline in the services grid: its live visual (which tilts in 3D towards the pointer), number, kinds and
|
|
9
|
-
* copy, with a light that follows the pointer.
|
|
10
|
-
*/
|
|
11
|
-
export function Cell({ id, visual, number, kinds, title, lead, text, actions, className }) {
|
|
12
|
-
const spotlight = useSpotlight();
|
|
13
|
-
const tilt = useTilt(5);
|
|
14
|
-
return (_jsxs("article", { id: id, ref: spotlight, className: classNames(styles.cell, className), children: [_jsx("div", { ref: tilt, className: styles.visual, children: _jsx("div", { className: styles.stage, children: visual }) }), _jsxs("div", { className: styles.copy, children: [_jsxs("div", { className: styles.meta, children: [_jsx("span", { className: `monospace ${styles.number}`, children: number }), _jsx("ul", { className: styles.kinds, children: kinds.map((kind) => (_jsx("li", { className: "monospace", children: kind }, kind))) })] }), _jsx("h3", { children: title }), _jsx("p", { className: styles.lead, children: lead }), _jsx("p", { children: text }), actions] })] }));
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/cell/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAC7D,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAkB;IACvG,MAAM,SAAS,GAAG,YAAY,EAAe,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAiB,CAAC,CAAC,CAAC;IACxC,OAAO,CACL,mBAAS,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,aAC5E,cAAK,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,YACtC,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,YAAG,MAAM,GAAO,GACxC,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAK,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,YAAG,MAAM,GAAQ,EAC9D,aAAI,SAAS,EAAE,MAAM,CAAC,KAAK,YACxB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,aAAe,SAAS,EAAC,WAAW,YACjC,IAAI,IADE,IAAI,CAER,CACN,CAAC,GACC,IACD,EACN,uBAAK,KAAK,GAAM,EAChB,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,YAAG,IAAI,GAAK,EACrC,sBAAI,IAAI,GAAK,EACZ,OAAO,IACJ,IACE,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.cell{--pointer-x: -500px;--pointer-y: -500px;position:relative;display:flex;flex-direction:column;background:var(--background);isolation:isolate;scroll-margin-top:80px}.cell::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(460px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 6%, transparent), transparent 60%)}.visual{--tilt-x: 0deg;--tilt-y: 0deg;position:relative;height:320px;overflow:hidden;perspective:1100px;border-bottom:1px dashed var(--line-2);background:radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--foreground) 5%, transparent), transparent 70%),radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0/18px 18px}@media(max-width: 600px){.visual{height:280px}}.stage{position:absolute;inset:0;transform:rotateX(var(--tilt-x)) rotateY(var(--tilt-y));transform-style:preserve-3d;transition:transform .6s cubic-bezier(0.22, 1, 0.36, 1)}.copy{padding:26px 28px 32px;display:grid;gap:10px;align-content:start}.copy p:not(.lead){color:var(--foreground-2);max-width:48ch}.meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.number{font-size:12px;color:var(--foreground-3)}.kinds{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:0;padding:0;list-style:none}.kinds li{font-size:11px;padding:4px 9px;border-radius:99px;border:1px solid var(--line-2);color:var(--foreground-2)}.lead{color:var(--foreground);font-weight:500}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
@use "style/token" as *;
|
|
2
|
-
|
|
3
|
-
.cell {
|
|
4
|
-
--pointer-x: -500px;
|
|
5
|
-
--pointer-y: -500px;
|
|
6
|
-
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
background: var(--background);
|
|
10
|
-
isolation: isolate;
|
|
11
|
-
scroll-margin-top: 80px;
|
|
12
|
-
&::before {
|
|
13
|
-
content: "";
|
|
14
|
-
position: absolute;
|
|
15
|
-
inset: 0;
|
|
16
|
-
z-index: -1;
|
|
17
|
-
background: radial-gradient(460px circle at var(--pointer-x) var(--pointer-y), tint(6%), transparent 60%);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
.visual {
|
|
21
|
-
--tilt-x: 0deg;
|
|
22
|
-
--tilt-y: 0deg;
|
|
23
|
-
position: relative;
|
|
24
|
-
height: 320px;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
perspective: 1100px;
|
|
27
|
-
border-bottom: 1px dashed var(--line-2);
|
|
28
|
-
background:
|
|
29
|
-
radial-gradient(110% 90% at 50% 0%, tint(5%), transparent 70%),
|
|
30
|
-
radial-gradient(circle, var(--line-2) 1px, transparent 1.4px) 0 0 / 18px 18px;
|
|
31
|
-
@include below(600px) {
|
|
32
|
-
height: 280px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
.stage {
|
|
36
|
-
position: absolute;
|
|
37
|
-
inset: 0;
|
|
38
|
-
transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
|
|
39
|
-
transform-style: preserve-3d;
|
|
40
|
-
transition: transform 0.6s $ease;
|
|
41
|
-
}
|
|
42
|
-
.copy {
|
|
43
|
-
padding: 26px 28px 32px;
|
|
44
|
-
display: grid;
|
|
45
|
-
gap: 10px;
|
|
46
|
-
align-content: start;
|
|
47
|
-
p:not(.lead) {
|
|
48
|
-
color: var(--foreground-2);
|
|
49
|
-
max-width: 48ch;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
.meta {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
justify-content: space-between;
|
|
56
|
-
gap: 12px;
|
|
57
|
-
}
|
|
58
|
-
.number {
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
color: var(--foreground-3);
|
|
61
|
-
}
|
|
62
|
-
.kinds {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-wrap: wrap;
|
|
65
|
-
justify-content: flex-end;
|
|
66
|
-
gap: 6px;
|
|
67
|
-
margin: 0;
|
|
68
|
-
padding: 0;
|
|
69
|
-
list-style: none;
|
|
70
|
-
li {
|
|
71
|
-
font-size: 11px;
|
|
72
|
-
padding: 4px 9px;
|
|
73
|
-
border-radius: 99px;
|
|
74
|
-
border: 1px solid var(--line-2);
|
|
75
|
-
color: var(--foreground-2);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
.lead {
|
|
79
|
-
color: var(--foreground);
|
|
80
|
-
font-weight: 500;
|
|
81
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
export interface CellProperties {
|
|
3
|
-
/** Anchor id, so the service index can jump here. */
|
|
4
|
-
id: string;
|
|
5
|
-
/** The live visual on top. */
|
|
6
|
-
visual: ReactNode;
|
|
7
|
-
number: string;
|
|
8
|
-
kinds: readonly string[];
|
|
9
|
-
title: string;
|
|
10
|
-
lead: string;
|
|
11
|
-
text: string;
|
|
12
|
-
/** Calls to action under the copy. */
|
|
13
|
-
actions?: ReactNode;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/services/cell/type.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAOA;;GAEG;AACH,wBAAgB,YAAY,gCA0C3B"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { classNames } from "@sharadox/web-library/class-name";
|
|
4
|
-
import { useInView } from "@sharadox/animation-web-library/in-view";
|
|
5
|
-
import styles from "./index.module.css";
|
|
6
|
-
const SWATCHES = ["var(--foreground)", "var(--foreground-2)", "var(--foreground-3)", "var(--surface)"];
|
|
7
|
-
/**
|
|
8
|
-
* Brand assets floating in 3D: a logo being constructed on its guides, the color palette and a type specimen.
|
|
9
|
-
*/
|
|
10
|
-
export function DesignVisual() {
|
|
11
|
-
const [container, on] = useInView();
|
|
12
|
-
return (_jsx("div", { ref: container, className: classNames(styles.visual, on && styles.on), "aria-hidden": true, children: _jsxs("div", { className: styles.scene, children: [_jsx("div", { className: `${styles.card} ${styles.palette}`, children: SWATCHES.map((color, index) => (_jsx("span", { style: { background: color, animationDelay: `${0.3 + index * 0.1}s` } }, color))) }), _jsxs("div", { className: `${styles.card} ${styles.type}`, children: [_jsx("span", { className: styles.specimen, children: "Aa" }), _jsx("span", { className: `${styles.caption} monospace`, children: "Geist" }), _jsx("span", { className: `${styles.glyphs} monospace`, children: "Rr Gg 01" })] }), _jsx("div", { className: `${styles.card} ${styles.mark}`, children: _jsxs("svg", { viewBox: "0 0 120 120", children: [_jsxs("g", { className: styles.guides, children: [_jsx("line", { x1: "0", y1: "60", x2: "120", y2: "60" }), _jsx("line", { x1: "60", y1: "0", x2: "60", y2: "120" }), _jsx("circle", { cx: "60", cy: "60", r: "46" }), _jsx("circle", { cx: "60", cy: "60", r: "28" }), _jsx("line", { x1: "14", y1: "14", x2: "106", y2: "106" }), _jsx("line", { x1: "106", y1: "14", x2: "14", y2: "106" })] }), _jsx("circle", { cx: "60", cy: "60", r: "34", className: styles.outer, pathLength: 1 }), _jsx("ellipse", { cx: "60", cy: "60", rx: "18", ry: "34", className: styles.inner, pathLength: 1 }), [
|
|
13
|
-
[60, 26],
|
|
14
|
-
[94, 60],
|
|
15
|
-
[60, 94],
|
|
16
|
-
[26, 60],
|
|
17
|
-
[42, 60],
|
|
18
|
-
[78, 60],
|
|
19
|
-
].map(([x, y]) => (_jsx("rect", { x: x - 2.5, y: y - 2.5, width: "5", height: "5", className: styles.anchor }, `${x}-${y}`)))] }) })] }) }));
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/services/design-visual/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,QAAQ,GAAG,CAAC,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,gBAAgB,CAAC,CAAC;AAEvG;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAG,SAAS,EAAkB,CAAC;IACpD,OAAO,CACL,cAAK,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,EAAE,CAAC,iCACxE,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,EAAE,YAC/C,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,eAAkB,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,IAA5E,KAAK,CAA2E,CAC5F,CAAC,GACE,EACN,eAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,aAC7C,eAAM,SAAS,EAAE,MAAM,CAAC,QAAQ,mBAAW,EAC3C,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,OAAO,YAAY,sBAAc,EAC5D,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,MAAM,YAAY,yBAAiB,IAC1D,EACN,cAAK,SAAS,EAAE,GAAG,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,YAC7C,eAAK,OAAO,EAAC,aAAa,aACxB,aAAG,SAAS,EAAE,MAAM,CAAC,MAAM,aACzB,eAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,IAAI,GAAG,EACxC,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,GAAG,EACxC,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAG,EACjC,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAG,EACjC,eAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,GAAG,EAC1C,eAAM,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,GAAG,IACxC,EACJ,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,GAAI,EACzE,kBAAS,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,GAAI,EAClF;gCACC,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;gCACR,CAAC,EAAE,EAAE,EAAE,CAAC;6BACT,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAChB,eAAwB,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,CAAC,EAAE,CAAE,GAAG,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,MAAM,CAAC,MAAM,IAApF,GAAG,CAAC,IAAI,CAAC,EAAE,CAA6E,CACpG,CAAC,IACE,GACF,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.visual{position:absolute;inset:0;display:grid;place-items:center;perspective:900px}.scene{position:relative;width:150px;height:190px;transform-style:preserve-3d;animation:sway 10s ease-in-out infinite}@keyframes sway{0%,100%{transform:rotateX(12deg) rotateY(-16deg)}50%{transform:rotateX(6deg) rotateY(14deg)}}.card{position:absolute;inset:0;border-radius:14px;border:1px solid var(--line-2);background:var(--card);box-shadow:0 30px 60px -20px color-mix(in srgb, var(--background) 90%, transparent)}.palette{transform:translate3d(-110px, 6px, -70px) rotateY(24deg);display:grid;grid-template-rows:repeat(4, 1fr);padding:10px;gap:6px}.palette span{border-radius:6px;border:1px solid var(--line);transform-origin:left}.on .palette span{animation:fill-in .8s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .palette span{animation-duration:0s !important;animation-delay:0s !important}@keyframes fill-in{from{transform:scaleX(0)}}.type{transform:translate3d(110px, -6px, -50px) rotateY(-24deg);display:grid;align-content:center;justify-items:center;gap:4px}.specimen{font-size:64px;font-weight:600;letter-spacing:-0.06em;line-height:1}.caption{font-size:10px;color:var(--foreground-2)}.glyphs{margin-top:8px;font-size:10px;color:var(--foreground-3);letter-spacing:.2em}.mark{transform:translateZ(40px);display:grid;place-items:center;background:var(--background)}.mark svg{width:120px;height:120px;overflow:visible}.guides{fill:none;stroke:var(--line-2);stroke-width:.6;stroke-dasharray:2 2}.outer,.inner{fill:none;stroke:var(--foreground);stroke-width:2.4;stroke-dasharray:1;stroke-dashoffset:0}.on .outer,.on .inner{animation:draw-line 1.8s .2s cubic-bezier(0.22, 1, 0.36, 1) both}:global(:root[data-soft-navigation]) .on .outer,:global(:root[data-soft-navigation]) .on .inner{animation-duration:0s !important;animation-delay:0s !important}.inner{stroke-width:1.8}.on .inner{animation-delay:.6s}@keyframes draw-line{from{stroke-dashoffset:1}}.anchor{fill:var(--background);stroke:var(--foreground-2);stroke-width:.8}
|