@sharadox/sharadox-web-library 0.20.1 → 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.
Files changed (102) hide show
  1. package/README.md +5 -4
  2. package/distribution/action/send-contact/index.d.ts +3 -1
  3. package/distribution/action/send-contact/index.d.ts.map +1 -1
  4. package/distribution/action/send-contact/index.js +7 -1
  5. package/distribution/action/send-contact/index.js.map +1 -1
  6. package/distribution/component/contact/form/index.d.ts +5 -1
  7. package/distribution/component/contact/form/index.d.ts.map +1 -1
  8. package/distribution/component/contact/form/index.js +39 -5
  9. package/distribution/component/contact/form/index.js.map +1 -1
  10. package/distribution/component/contact/form/index.module.css +1 -1
  11. package/distribution/component/contact/form/index.module.scss +18 -0
  12. package/distribution/component/footer/index.d.ts +2 -2
  13. package/distribution/component/footer/index.d.ts.map +1 -1
  14. package/distribution/component/footer/index.js +3 -3
  15. package/distribution/component/footer/index.js.map +1 -1
  16. package/distribution/component/footer/index.module.css +1 -1
  17. package/distribution/component/footer/index.module.scss +42 -57
  18. package/distribution/component/service-card/index.d.ts +3 -2
  19. package/distribution/component/service-card/index.d.ts.map +1 -1
  20. package/distribution/component/service-card/index.js +4 -3
  21. package/distribution/component/service-card/index.js.map +1 -1
  22. package/distribution/component/service-card/index.module.css +1 -1
  23. package/distribution/component/service-card/index.module.scss +54 -0
  24. package/distribution/component/service-card/type.d.ts +2 -0
  25. package/distribution/component/service-card/type.d.ts.map +1 -1
  26. package/distribution/component/service-object/application-programming-interface/index.d.ts +6 -0
  27. package/distribution/component/service-object/application-programming-interface/index.d.ts.map +1 -0
  28. package/distribution/component/service-object/application-programming-interface/index.js +11 -0
  29. package/distribution/component/service-object/application-programming-interface/index.js.map +1 -0
  30. package/distribution/component/service-object/application-programming-interface/index.module.css +1 -0
  31. package/distribution/component/service-object/application-programming-interface/index.module.scss +154 -0
  32. package/distribution/component/service-object/content-management-system/index.d.ts +6 -0
  33. package/distribution/component/service-object/content-management-system/index.d.ts.map +1 -0
  34. package/distribution/component/service-object/content-management-system/index.js +10 -0
  35. package/distribution/component/service-object/content-management-system/index.js.map +1 -0
  36. package/distribution/component/service-object/content-management-system/index.module.css +1 -0
  37. package/distribution/component/service-object/content-management-system/index.module.scss +181 -0
  38. package/distribution/component/service-object/index.js +4 -4
  39. package/distribution/component/service-object/index.js.map +1 -1
  40. package/distribution/component/service-object/index.module.css +1 -1
  41. package/distribution/component/service-object/index.module.scss +2 -2
  42. package/distribution/component/service-object/progressive-web-application/index.d.ts +4 -1
  43. package/distribution/component/service-object/progressive-web-application/index.d.ts.map +1 -1
  44. package/distribution/component/service-object/progressive-web-application/index.js +19 -2
  45. package/distribution/component/service-object/progressive-web-application/index.js.map +1 -1
  46. package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
  47. package/distribution/component/service-object/progressive-web-application/index.module.scss +151 -63
  48. package/distribution/component/service-object/social-media-strategy/index.d.ts +4 -1
  49. package/distribution/component/service-object/social-media-strategy/index.d.ts.map +1 -1
  50. package/distribution/component/service-object/social-media-strategy/index.js +9 -2
  51. package/distribution/component/service-object/social-media-strategy/index.js.map +1 -1
  52. package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
  53. package/distribution/component/service-object/social-media-strategy/index.module.scss +177 -53
  54. package/distribution/component/service-unlisted/index.d.ts +10 -0
  55. package/distribution/component/service-unlisted/index.d.ts.map +1 -0
  56. package/distribution/component/service-unlisted/index.js +20 -0
  57. package/distribution/component/service-unlisted/index.js.map +1 -0
  58. package/distribution/component/service-unlisted/index.module.css +1 -0
  59. package/distribution/component/service-unlisted/index.module.scss +28 -0
  60. package/distribution/component/service-unlisted/type.d.ts +5 -0
  61. package/distribution/component/service-unlisted/type.d.ts.map +1 -0
  62. package/distribution/component/service-unlisted/type.js +2 -0
  63. package/distribution/component/service-unlisted/type.js.map +1 -0
  64. package/distribution/component/services/index.d.ts +3 -2
  65. package/distribution/component/services/index.d.ts.map +1 -1
  66. package/distribution/component/services/index.js +5 -3
  67. package/distribution/component/services/index.js.map +1 -1
  68. package/distribution/component/services/index.module.css +1 -1
  69. package/distribution/component/services/index.module.scss +4 -0
  70. package/distribution/component/structured-data/index.d.ts.map +1 -1
  71. package/distribution/component/structured-data/index.js +4 -2
  72. package/distribution/component/structured-data/index.js.map +1 -1
  73. package/distribution/content/contact/index.d.ts +84 -34
  74. package/distribution/content/contact/index.d.ts.map +1 -1
  75. package/distribution/content/contact/index.js +34 -5
  76. package/distribution/content/contact/index.js.map +1 -1
  77. package/distribution/content/services/index.d.ts +103 -60
  78. package/distribution/content/services/index.d.ts.map +1 -1
  79. package/distribution/content/services/index.js +84 -49
  80. package/distribution/content/services/index.js.map +1 -1
  81. package/distribution/content/site/index.d.ts.map +1 -1
  82. package/distribution/content/site/index.js +8 -4
  83. package/distribution/content/site/index.js.map +1 -1
  84. package/distribution/style/token/index.scss +3 -1
  85. package/distribution/utility/contact-problem/index.d.ts +13 -0
  86. package/distribution/utility/contact-problem/index.d.ts.map +1 -0
  87. package/distribution/utility/contact-problem/index.js +23 -0
  88. package/distribution/utility/contact-problem/index.js.map +1 -0
  89. package/llms.txt +2 -1
  90. package/package.json +2 -2
  91. package/distribution/component/service-object/android-application/index.d.ts +0 -3
  92. package/distribution/component/service-object/android-application/index.d.ts.map +0 -1
  93. package/distribution/component/service-object/android-application/index.js +0 -8
  94. package/distribution/component/service-object/android-application/index.js.map +0 -1
  95. package/distribution/component/service-object/android-application/index.module.css +0 -1
  96. package/distribution/component/service-object/android-application/index.module.scss +0 -90
  97. package/distribution/component/service-object/ios-application/index.d.ts +0 -3
  98. package/distribution/component/service-object/ios-application/index.d.ts.map +0 -1
  99. package/distribution/component/service-object/ios-application/index.js +0 -8
  100. package/distribution/component/service-object/ios-application/index.js.map +0 -1
  101. package/distribution/component/service-object/ios-application/index.module.css +0 -1
  102. package/distribution/component/service-object/ios-application/index.module.scss +0 -93
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/utility/contact-problem/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAEzE,4GAA4G;AAC5G,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC,QAAQ,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,GAAG,cAAc,EAAE,CAWhE"}
@@ -0,0 +1,23 @@
1
+ import { isEmail, isPhone } from "@sharadox/form-web-library/contact-check";
2
+ import { CONTACT } from "@sharadox/sharadox-web-library/content/contact";
3
+ /**
4
+ * What a filled-in contact form still lacks, by the same rules the server applies: a name, an email or a phone (each
5
+ * valid when given), at least one choice, and a message of at least `CONTACT.minimumMessageLength` characters.
6
+ * Empty when it can be sent.
7
+ *
8
+ * @example
9
+ * contactProblems(new FormData(form)); // ["reach", "needs"]
10
+ */
11
+ export function contactProblems(form) {
12
+ const text = (name) => String(form.get(name) ?? "").trim();
13
+ const [email, phone] = [text("email"), text("phone")];
14
+ return [
15
+ !text("name") && "name",
16
+ !email && !phone && "reach",
17
+ email && !isEmail(email) && "email",
18
+ phone && !isPhone(phone) && "phone",
19
+ form.getAll("need").length === 0 && "needs",
20
+ text("message").length < CONTACT.minimumMessageLength && "message",
21
+ ].filter((problem) => Boolean(problem));
22
+ }
23
+ //# sourceMappingURL=index.js.map
@@ -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"}
package/llms.txt CHANGED
@@ -4,7 +4,7 @@
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)"
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
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)
@@ -23,3 +23,4 @@
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
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
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.20.1",
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.2.2",
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,3 +0,0 @@
1
- /** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
2
- export declare function AndroidApplication(): import("react").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":"AAGA,oIAAoI;AACpI,wBAAgB,kBAAkB,gCAuBjC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
3
- import styles from "./index.module.css";
4
- /** Android applications: a phone turning in the hand, its app tiles rising off the screen in a wave, the three-button bar below. */
5
- export function AndroidApplication() {
6
- return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.camera }), _jsx("span", { className: styles.tiles, children: Array.from({ length: 12 }, (_, tile) => (_jsx("i", { style: { animationDelay: `${(tile % 3) * 0.15 + Math.floor(tile / 3) * 0.2}s` } }, tile))) }), _jsxs("span", { className: styles.buttons, children: [_jsx("i", { className: styles.back }), _jsx("i", { className: styles.home }), _jsx("i", { className: styles.recent })] })] }) }) }));
7
- }
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/android-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,oIAAoI;AACpI,MAAM,UAAU,kBAAkB;IAChC,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,8BACE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,eAAM,SAAS,EAAE,MAAM,CAAC,KAAK,YAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CACvC,YAAc,KAAK,EAAE,EAAE,cAAc,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,EAAE,IAArF,IAAI,CAAqF,CAClG,CAAC,GACG,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,IAAI,GAAI,EAC7B,YAAG,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,IAC1B,IACN,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:android-turn 9s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(10deg) rotateY(-28deg)}@keyframes android-turn{0%,100%{transform:rotateX(10deg) rotateY(-32deg) rotateZ(-2deg)}50%{transform:rotateX(6deg) rotateY(24deg) rotateZ(2deg)}}.phone{--width: 88px;--height: 172px;--depth: 9px;--radius: 12px;--front-amount: 4%;--edge-amount: 55%}.camera{position:absolute;left:50%;top:8px;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 55%, transparent)}.tiles{position:absolute;inset:24px 11px 30px;display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;transform-style:preserve-3d}.tiles i{aspect-ratio:1;border-radius:6px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 14%, transparent);animation:android-rise 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.tiles i{animation:none}}@keyframes android-rise{0%,45%,100%{transform:translateZ(0);background:color-mix(in srgb, var(--foreground) 14%, transparent)}20%{transform:translateZ(16px);background:color-mix(in srgb, var(--foreground) 40%, transparent)}}.buttons{position:absolute;left:18px;right:18px;bottom:9px;display:flex;align-items:center;justify-content:space-between}.buttons i{width:8px;height:8px;border:1.5px solid color-mix(in srgb, var(--foreground) 55%, transparent)}.back{border:0 !important;width:0 !important;height:0 !important;border-top:4.5px solid rgba(0,0,0,0) !important;border-bottom:4.5px solid rgba(0,0,0,0) !important;border-right:7px solid color-mix(in srgb, var(--foreground) 55%, transparent) !important}.home{border-radius:50%}.recent{border-radius:2px}
@@ -1,90 +0,0 @@
1
- @use "style/token" as *;
2
- @use "style/object" as *;
3
-
4
- .object {
5
- @include centered(0px, 0px);
6
- @include loop(android-turn 9s ease-in-out infinite);
7
- transform: rotateX(10deg) rotateY(-28deg);
8
- }
9
- @keyframes android-turn {
10
- 0%,
11
- 100% {
12
- transform: rotateX(10deg) rotateY(-32deg) rotateZ(-2deg);
13
- }
14
- 50% {
15
- transform: rotateX(6deg) rotateY(24deg) rotateZ(2deg);
16
- }
17
- }
18
- .phone {
19
- --width: 88px;
20
- --height: 172px;
21
- --depth: 9px;
22
- --radius: 12px;
23
- --front-amount: 4%;
24
- --edge-amount: 55%;
25
- }
26
- .camera {
27
- position: absolute;
28
- left: 50%;
29
- top: 8px;
30
- width: 6px;
31
- height: 6px;
32
- margin-left: -3px;
33
- border-radius: 50%;
34
- background: tint(55%);
35
- }
36
- .tiles {
37
- position: absolute;
38
- inset: 24px 11px 30px;
39
- display: grid;
40
- grid-template-columns: repeat(3, 1fr);
41
- gap: 8px;
42
- transform-style: preserve-3d;
43
- i {
44
- aspect-ratio: 1;
45
- border-radius: 6px;
46
- border: 1px solid tint(45%);
47
- background: tint(14%);
48
- @include loop(android-rise 2.8s $ease infinite);
49
- }
50
- }
51
- @keyframes android-rise {
52
- 0%,
53
- 45%,
54
- 100% {
55
- transform: translateZ(0);
56
- background: tint(14%);
57
- }
58
- 20% {
59
- transform: translateZ(16px);
60
- background: tint(40%);
61
- }
62
- }
63
- .buttons {
64
- position: absolute;
65
- left: 18px;
66
- right: 18px;
67
- bottom: 9px;
68
- display: flex;
69
- align-items: center;
70
- justify-content: space-between;
71
- i {
72
- width: 8px;
73
- height: 8px;
74
- border: 1.5px solid tint(55%);
75
- }
76
- }
77
- .back {
78
- border: 0 !important;
79
- width: 0 !important;
80
- height: 0 !important;
81
- border-top: 4.5px solid transparent !important;
82
- border-bottom: 4.5px solid transparent !important;
83
- border-right: 7px solid tint(55%) !important;
84
- }
85
- .home {
86
- border-radius: 50%;
87
- }
88
- .recent {
89
- border-radius: 2px;
90
- }
@@ -1,3 +0,0 @@
1
- /** iOS applications: a phone with its island opening up, and widgets floating off the screen towards you. */
2
- export declare function IosApplication(): import("react").JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":"AAGA,6GAA6G;AAC7G,wBAAgB,cAAc,gCAmB7B"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Cuboid } from "@sharadox/sharadox-web-library/component/service-object/cuboid";
3
- import styles from "./index.module.css";
4
- /** iOS applications: a phone with its island opening up, and widgets floating off the screen towards you. */
5
- export function IosApplication() {
6
- return (_jsx("div", { className: styles.object, children: _jsx(Cuboid, { className: styles.phone, front: _jsxs(_Fragment, { children: [_jsx("span", { className: styles.island }), _jsxs("span", { className: styles.widgets, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: styles.indicator })] }) }) }));
7
- }
8
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/service-object/ios-application/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gEAAgE,CAAC;AACxF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,6GAA6G;AAC7G,MAAM,UAAU,cAAc;IAC5B,OAAO,CACL,cAAK,SAAS,EAAE,MAAM,CAAC,MAAM,YAC3B,KAAC,MAAM,IACL,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,KAAK,EACH,8BACE,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,GAAI,EAClC,gBAAM,SAAS,EAAE,MAAM,CAAC,OAAO,aAC7B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,SAAS,GAAI,IACpC,GAEL,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .object{position:absolute;left:50%;top:50%;width:0px;height:0px;margin:-0px 0 0 -0px;transform-style:preserve-3d;animation:ios-turn 10s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.object{animation:none}}.object{transform:rotateX(-6deg) rotateY(26deg)}@keyframes ios-turn{0%,100%{transform:rotateX(-6deg) rotateY(30deg)}50%{transform:rotateX(-2deg) rotateY(-22deg)}}.phone{--width: 88px;--height: 176px;--depth: 9px;--radius: 20px;--front-amount: 4%;--edge-amount: 55%}.island{position:absolute;left:50%;top:9px;width:28px;height:9px;border-radius:9px;background:color-mix(in srgb, var(--foreground) 70%, transparent);transform:translateX(-50%);animation:ios-island 4s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.island{animation:none}}@keyframes ios-island{0%,40%,100%{width:28px;height:9px}55%,80%{width:62px;height:16px}}.widgets{position:absolute;inset:34px 10px 26px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr 1.2fr;gap:8px;transform-style:preserve-3d}.widgets i{border-radius:9px;border:1px solid color-mix(in srgb, var(--foreground) 45%, transparent);background:color-mix(in srgb, var(--foreground) 12%, transparent);animation:ios-float 4.6s ease-in-out infinite}@media(prefers-reduced-motion: reduce){.widgets i{animation:none}}.widgets i:nth-child(1){grid-column:span 2;background:linear-gradient(135deg, color-mix(in srgb, var(--foreground) 38%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent))}.widgets i:nth-child(2){animation-delay:-1.5s}.widgets i:nth-child(3){animation-delay:-3s}@keyframes ios-float{0%,100%{transform:translateZ(4px)}50%{transform:translateZ(24px)}}.indicator{position:absolute;left:50%;bottom:8px;width:34px;height:3px;margin-left:-17px;border-radius:2px;background:color-mix(in srgb, var(--foreground) 55%, transparent)}
@@ -1,93 +0,0 @@
1
- @use "style/token" as *;
2
- @use "style/object" as *;
3
-
4
- .object {
5
- @include centered(0px, 0px);
6
- @include loop(ios-turn 10s ease-in-out infinite);
7
- transform: rotateX(-6deg) rotateY(26deg);
8
- }
9
- @keyframes ios-turn {
10
- 0%,
11
- 100% {
12
- transform: rotateX(-6deg) rotateY(30deg);
13
- }
14
- 50% {
15
- transform: rotateX(-2deg) rotateY(-22deg);
16
- }
17
- }
18
- .phone {
19
- --width: 88px;
20
- --height: 176px;
21
- --depth: 9px;
22
- --radius: 20px;
23
- --front-amount: 4%;
24
- --edge-amount: 55%;
25
- }
26
- .island {
27
- position: absolute;
28
- left: 50%;
29
- top: 9px;
30
- width: 28px;
31
- height: 9px;
32
- border-radius: 9px;
33
- background: tint(70%);
34
- transform: translateX(-50%);
35
- @include loop(ios-island 4s $ease infinite);
36
- }
37
- @keyframes ios-island {
38
- 0%,
39
- 40%,
40
- 100% {
41
- width: 28px;
42
- height: 9px;
43
- }
44
- 55%,
45
- 80% {
46
- width: 62px;
47
- height: 16px;
48
- }
49
- }
50
- .widgets {
51
- position: absolute;
52
- inset: 34px 10px 26px;
53
- display: grid;
54
- grid-template-columns: 1fr 1fr;
55
- grid-template-rows: 1fr 1fr 1.2fr;
56
- gap: 8px;
57
- transform-style: preserve-3d;
58
- i {
59
- border-radius: 9px;
60
- border: 1px solid tint(45%);
61
- background: tint(12%);
62
- @include loop(ios-float 4.6s ease-in-out infinite);
63
- &:nth-child(1) {
64
- grid-column: span 2;
65
- background: linear-gradient(135deg, tint(38%), tint(8%));
66
- }
67
- &:nth-child(2) {
68
- animation-delay: -1.5s;
69
- }
70
- &:nth-child(3) {
71
- animation-delay: -3s;
72
- }
73
- }
74
- }
75
- @keyframes ios-float {
76
- 0%,
77
- 100% {
78
- transform: translateZ(4px);
79
- }
80
- 50% {
81
- transform: translateZ(24px);
82
- }
83
- }
84
- .indicator {
85
- position: absolute;
86
- left: 50%;
87
- bottom: 8px;
88
- width: 34px;
89
- height: 3px;
90
- margin-left: -17px;
91
- border-radius: 2px;
92
- background: tint(55%);
93
- }