@sharadox/sharadox-web-library 0.43.0 → 0.45.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 (134) hide show
  1. package/README.md +1 -1
  2. package/distribution/component/about/feed/activity/index.d.ts +8 -0
  3. package/distribution/component/about/feed/activity/index.d.ts.map +1 -0
  4. package/distribution/component/about/feed/activity/index.js +23 -0
  5. package/distribution/component/about/feed/activity/index.js.map +1 -0
  6. package/distribution/component/about/feed/activity/index.module.css +1 -0
  7. package/distribution/component/about/feed/activity/index.module.scss +91 -0
  8. package/distribution/component/about/feed/activity/type.d.ts +7 -0
  9. package/distribution/component/about/feed/activity/type.d.ts.map +1 -0
  10. package/distribution/component/about/feed/activity/type.js.map +1 -0
  11. package/distribution/component/about/feed/client/index.d.ts +7 -0
  12. package/distribution/component/about/feed/client/index.d.ts.map +1 -0
  13. package/distribution/component/about/feed/client/index.js +18 -0
  14. package/distribution/component/about/feed/client/index.js.map +1 -0
  15. package/distribution/component/about/feed/client/index.module.css +1 -0
  16. package/distribution/component/about/feed/client/index.module.scss +183 -0
  17. package/distribution/component/{portfolio/browser → about/feed/client}/type.d.ts +1 -1
  18. package/distribution/component/about/feed/client/type.d.ts.map +1 -0
  19. package/distribution/component/about/feed/client/type.js.map +1 -0
  20. package/distribution/component/about/feed/euros/index.d.ts +4 -0
  21. package/distribution/component/about/feed/euros/index.d.ts.map +1 -0
  22. package/distribution/component/about/feed/euros/index.js +7 -0
  23. package/distribution/component/about/feed/euros/index.js.map +1 -0
  24. package/distribution/component/about/feed/index.d.ts +5 -10
  25. package/distribution/component/about/feed/index.d.ts.map +1 -1
  26. package/distribution/component/about/feed/index.js +98 -21
  27. package/distribution/component/about/feed/index.js.map +1 -1
  28. package/distribution/component/about/feed/index.module.css +1 -1
  29. package/distribution/component/about/feed/index.module.scss +81 -340
  30. package/distribution/component/about/feed/project/index.d.ts +7 -0
  31. package/distribution/component/about/feed/project/index.d.ts.map +1 -0
  32. package/distribution/component/about/feed/project/index.js +18 -0
  33. package/distribution/component/about/feed/project/index.js.map +1 -0
  34. package/distribution/component/about/feed/project/index.module.css +1 -0
  35. package/distribution/component/about/feed/project/index.module.scss +129 -0
  36. package/distribution/component/about/feed/project/type.d.ts +7 -0
  37. package/distribution/component/about/feed/project/type.d.ts.map +1 -0
  38. package/distribution/component/about/feed/project/type.js +2 -0
  39. package/distribution/component/about/feed/project/type.js.map +1 -0
  40. package/distribution/component/about/feed/script/index.d.ts +14 -0
  41. package/distribution/component/about/feed/script/index.d.ts.map +1 -0
  42. package/distribution/component/about/feed/script/index.js +60 -0
  43. package/distribution/component/about/feed/script/index.js.map +1 -0
  44. package/distribution/component/about/feed/script/type.d.ts +16 -0
  45. package/distribution/component/about/feed/script/type.d.ts.map +1 -0
  46. package/distribution/component/about/feed/script/type.js +2 -0
  47. package/distribution/component/about/feed/script/type.js.map +1 -0
  48. package/distribution/component/portfolio/index.d.ts +2 -2
  49. package/distribution/component/portfolio/index.d.ts.map +1 -1
  50. package/distribution/component/portfolio/index.js +4 -4
  51. package/distribution/component/portfolio/index.js.map +1 -1
  52. package/distribution/component/portfolio/index.module.css +1 -1
  53. package/distribution/component/portfolio/index.module.scss +1 -10
  54. package/distribution/component/portfolio/launch-date/index.d.ts +4 -0
  55. package/distribution/component/portfolio/launch-date/index.d.ts.map +1 -0
  56. package/distribution/component/portfolio/launch-date/index.js +3 -0
  57. package/distribution/component/portfolio/launch-date/index.js.map +1 -0
  58. package/distribution/component/portfolio/project/index.d.ts +2 -2
  59. package/distribution/component/portfolio/project/index.d.ts.map +1 -1
  60. package/distribution/component/portfolio/project/index.js +6 -11
  61. package/distribution/component/portfolio/project/index.js.map +1 -1
  62. package/distribution/component/portfolio/project/index.module.css +1 -1
  63. package/distribution/component/portfolio/project/index.module.scss +1 -1
  64. package/distribution/component/portfolio/project/type.d.ts +1 -1
  65. package/distribution/component/portfolio/project/type.d.ts.map +1 -1
  66. package/distribution/component/portfolio/screens/index.d.ts +3 -3
  67. package/distribution/component/portfolio/screens/index.d.ts.map +1 -1
  68. package/distribution/component/portfolio/screens/index.js +4 -4
  69. package/distribution/component/portfolio/screens/index.js.map +1 -1
  70. package/distribution/component/portfolio/screens/index.module.css +1 -1
  71. package/distribution/component/portfolio/screens/index.module.scss +4 -21
  72. package/distribution/component/portfolio/screens/type.d.ts +3 -1
  73. package/distribution/component/portfolio/screens/type.d.ts.map +1 -1
  74. package/distribution/component/portfolio/service-name/index.d.ts +4 -0
  75. package/distribution/component/portfolio/service-name/index.d.ts.map +1 -0
  76. package/distribution/component/portfolio/service-name/index.js +6 -0
  77. package/distribution/component/portfolio/service-name/index.js.map +1 -0
  78. package/distribution/component/portfolio/type.d.ts +3 -0
  79. package/distribution/component/portfolio/type.d.ts.map +1 -1
  80. package/distribution/component/project-page/chapter/index.d.ts +7 -0
  81. package/distribution/component/project-page/chapter/index.d.ts.map +1 -0
  82. package/distribution/component/project-page/chapter/index.js +12 -0
  83. package/distribution/component/project-page/chapter/index.js.map +1 -0
  84. package/distribution/component/project-page/chapter/index.module.css +1 -0
  85. package/distribution/component/project-page/chapter/index.module.scss +80 -0
  86. package/distribution/component/project-page/chapter/type.d.ts +11 -0
  87. package/distribution/component/project-page/chapter/type.d.ts.map +1 -0
  88. package/distribution/component/project-page/chapter/type.js +2 -0
  89. package/distribution/component/project-page/chapter/type.js.map +1 -0
  90. package/distribution/component/project-page/index.d.ts +11 -0
  91. package/distribution/component/project-page/index.d.ts.map +1 -0
  92. package/distribution/component/project-page/index.js +28 -0
  93. package/distribution/component/project-page/index.js.map +1 -0
  94. package/distribution/component/project-page/index.module.css +1 -0
  95. package/distribution/component/project-page/index.module.scss +115 -0
  96. package/distribution/component/project-page/type.d.ts +10 -0
  97. package/distribution/component/project-page/type.d.ts.map +1 -0
  98. package/distribution/component/project-page/type.js +2 -0
  99. package/distribution/component/project-page/type.js.map +1 -0
  100. package/distribution/component/section-heading/index.d.ts +2 -2
  101. package/distribution/component/section-heading/index.d.ts.map +1 -1
  102. package/distribution/component/section-heading/index.js +3 -3
  103. package/distribution/component/section-heading/index.js.map +1 -1
  104. package/distribution/component/section-heading/index.module.css +1 -1
  105. package/distribution/component/section-heading/index.module.scss +14 -0
  106. package/distribution/component/section-heading/type.d.ts +3 -0
  107. package/distribution/component/section-heading/type.d.ts.map +1 -1
  108. package/distribution/content/about/index.d.ts +144 -79
  109. package/distribution/content/about/index.d.ts.map +1 -1
  110. package/distribution/content/about/index.js +95 -43
  111. package/distribution/content/about/index.js.map +1 -1
  112. package/distribution/content/portfolio/index.d.ts +108 -82
  113. package/distribution/content/portfolio/index.d.ts.map +1 -1
  114. package/distribution/content/portfolio/index.js +87 -36
  115. package/distribution/content/portfolio/index.js.map +1 -1
  116. package/llms.txt +3 -1
  117. package/package.json +2 -2
  118. package/distribution/component/portfolio/browser/index.d.ts +0 -7
  119. package/distribution/component/portfolio/browser/index.d.ts.map +0 -1
  120. package/distribution/component/portfolio/browser/index.js +0 -26
  121. package/distribution/component/portfolio/browser/index.js.map +0 -1
  122. package/distribution/component/portfolio/browser/index.module.css +0 -1
  123. package/distribution/component/portfolio/browser/index.module.scss +0 -147
  124. package/distribution/component/portfolio/browser/type.d.ts.map +0 -1
  125. package/distribution/component/portfolio/browser/type.js.map +0 -1
  126. package/distribution/component/portfolio/select-projects/index.d.ts +0 -45
  127. package/distribution/component/portfolio/select-projects/index.d.ts.map +0 -1
  128. package/distribution/component/portfolio/select-projects/index.js +0 -30
  129. package/distribution/component/portfolio/select-projects/index.js.map +0 -1
  130. package/distribution/component/portfolio/select-projects/type.d.ts +0 -11
  131. package/distribution/component/portfolio/select-projects/type.d.ts.map +0 -1
  132. package/distribution/component/portfolio/select-projects/type.js.map +0 -1
  133. /package/distribution/component/{portfolio/browser → about/feed/activity}/type.js +0 -0
  134. /package/distribution/component/{portfolio/select-projects → about/feed/client}/type.js +0 -0
@@ -0,0 +1,129 @@
1
+ @use "style/token" as *;
2
+ @use "style/object" as *;
3
+
4
+ .project {
5
+ display: grid;
6
+ justify-content: stretch;
7
+ align-content: start;
8
+ gap: 16px;
9
+ text-align: left;
10
+ }
11
+ .title {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ gap: 10px;
16
+ b {
17
+ font-weight: 600;
18
+ letter-spacing: -0.02em;
19
+ }
20
+ }
21
+ .chip {
22
+ flex: none;
23
+ padding: 3px 9px;
24
+ border: 1px solid var(--line-2);
25
+ border-radius: 99px;
26
+ font-size: 11.5px;
27
+ color: var(--foreground-2);
28
+ }
29
+ /* The progress: label and a big number on one line, the bar under them, the task count beneath. */
30
+ .progress {
31
+ display: grid;
32
+ grid-template-columns: 1fr auto;
33
+ align-items: end;
34
+ gap: 8px;
35
+ font-size: 12.5px;
36
+ color: var(--foreground-2);
37
+ i {
38
+ grid-column: 1 / -1;
39
+ height: 8px;
40
+ border-radius: 99px;
41
+ background:
42
+ linear-gradient(var(--foreground), var(--foreground)) 0 0 / var(--to) 100% no-repeat,
43
+ tint($faint);
44
+ transition: background-size 0.9s $ease;
45
+ }
46
+ small {
47
+ grid-column: 1 / -1;
48
+ font-size: 11px;
49
+ color: var(--foreground-3);
50
+ }
51
+ }
52
+ .percent {
53
+ font-size: 26px;
54
+ font-weight: 600;
55
+ line-height: 1;
56
+ letter-spacing: -0.04em;
57
+ color: var(--foreground);
58
+ }
59
+ /* The checklist: a box that fills with a tick when done. */
60
+ .checklist {
61
+ display: grid;
62
+ justify-content: stretch;
63
+ gap: 2px;
64
+ margin: 0;
65
+ padding: 0;
66
+ list-style: none;
67
+ li {
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: flex-start;
71
+ gap: 10px;
72
+ padding: 7px 8px;
73
+ border-radius: 8px;
74
+ font-size: 13.5px;
75
+ color: var(--foreground-2);
76
+ transition: color 0.3s;
77
+ i {
78
+ display: grid;
79
+ place-items: center;
80
+ width: 18px;
81
+ height: 18px;
82
+ border: 1.5px solid tint($edge);
83
+ border-radius: 5px;
84
+ font-size: 12px;
85
+ color: transparent;
86
+ transition:
87
+ background-color 0.3s,
88
+ border-color 0.3s,
89
+ color 0.3s;
90
+ }
91
+ &[data-done] {
92
+ color: var(--foreground-3);
93
+ text-decoration: line-through;
94
+ text-decoration-color: tint($detail);
95
+ i {
96
+ border-color: var(--foreground);
97
+ background: var(--foreground);
98
+ color: var(--background);
99
+ }
100
+ }
101
+ }
102
+ }
103
+ /* The budget: one bar, paid filling it, the two amounts under it. */
104
+ .budget {
105
+ display: grid;
106
+ grid-template-columns: 1fr auto;
107
+ gap: 8px;
108
+ padding: 12px;
109
+ border: 1px solid var(--line-2);
110
+ border-radius: 12px;
111
+ background: surface($hint);
112
+ font-size: 12px;
113
+ color: var(--foreground-3);
114
+ i {
115
+ grid-column: 1 / -1;
116
+ height: 6px;
117
+ border-radius: 99px;
118
+ background:
119
+ linear-gradient(var(--foreground), var(--foreground)) 0 0 / var(--to) 100% no-repeat,
120
+ tint($faint);
121
+ }
122
+ b {
123
+ color: var(--foreground);
124
+ font-weight: 600;
125
+ }
126
+ span:last-child {
127
+ text-align: right;
128
+ }
129
+ }
@@ -0,0 +1,7 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
+ export interface ProjectProperties {
3
+ locale: Locale;
4
+ /** Whether the next task on the checklist has been ticked. */
5
+ ticked: boolean;
6
+ }
7
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../source/component/about/feed/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../source/component/about/feed/project/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { FeedStage } from "@sharadox/sharadox-web-library/component/about/feed/script/type";
2
+ /** Waits, unless the script is stopped first: then it throws, ending the script where it is. */
3
+ export declare const pause: (milliseconds: number, signal: AbortSignal) => Promise<void>;
4
+ /**
5
+ * The panel's little film, over and over until stopped: the activity log fills one entry at a time and the pointer
6
+ * hovers one to read its detail; it clicks Project, reads the budget, ticks the next task (the progress goes up);
7
+ * it clicks Client, reads the paid share and a past project; then it clicks Activity, and it starts again.
8
+ *
9
+ * @example
10
+ * const stop = new AbortController();
11
+ * playFeed(stage, 6, stop.signal).catch(() => {});
12
+ */
13
+ export declare function playFeed(stage: FeedStage, events: number, signal: AbortSignal): Promise<void>;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../source/component/about/feed/script/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iEAAiE,CAAC;AAEjG,gGAAgG;AAChG,eAAO,MAAM,KAAK,GAAI,cAAc,MAAM,EAAE,QAAQ,WAAW,kBAO3D,CAAC;AAEL;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,iBAyCnF"}
@@ -0,0 +1,60 @@
1
+ /** Waits, unless the script is stopped first: then it throws, ending the script where it is. */
2
+ export const pause = (milliseconds, signal) => new Promise((resolve, reject) => {
3
+ const timer = setTimeout(resolve, milliseconds);
4
+ signal.addEventListener("abort", () => {
5
+ clearTimeout(timer);
6
+ reject(signal.reason);
7
+ });
8
+ });
9
+ /**
10
+ * The panel's little film, over and over until stopped: the activity log fills one entry at a time and the pointer
11
+ * hovers one to read its detail; it clicks Project, reads the budget, ticks the next task (the progress goes up);
12
+ * it clicks Client, reads the paid share and a past project; then it clicks Activity, and it starts again.
13
+ *
14
+ * @example
15
+ * const stop = new AbortController();
16
+ * playFeed(stage, 6, stop.signal).catch(() => {});
17
+ */
18
+ export async function playFeed(stage, events, signal) {
19
+ const wait = (milliseconds) => pause(milliseconds, signal);
20
+ const read = async (target, milliseconds = 1800) => {
21
+ stage.point(target);
22
+ await wait(850);
23
+ stage.tip(target);
24
+ await wait(milliseconds);
25
+ stage.tip(null);
26
+ };
27
+ const click = async (target, then) => {
28
+ stage.point(target);
29
+ await wait(850);
30
+ stage.press(true);
31
+ then();
32
+ await wait(220);
33
+ stage.press(false);
34
+ };
35
+ for (;;) {
36
+ stage.tab(0);
37
+ stage.tick(false);
38
+ stage.show(0);
39
+ stage.point(null);
40
+ await wait(500);
41
+ for (let count = 1; count <= events; count++) {
42
+ stage.show(count);
43
+ await wait(1000);
44
+ }
45
+ await read("event-2");
46
+ await click("tab-1", () => stage.tab(1));
47
+ await wait(900);
48
+ await read("budget");
49
+ await click("task-3", () => stage.tick(true));
50
+ await wait(1500);
51
+ await click("tab-2", () => stage.tab(2));
52
+ await wait(900);
53
+ await read("donut");
54
+ await read("project-0", 1500);
55
+ await read("tasks", 1500);
56
+ await click("tab-0", () => stage.tab(0));
57
+ await wait(400);
58
+ }
59
+ }
60
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../source/component/about/feed/script/index.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,YAAoB,EAAE,MAAmB,EAAE,EAAE,CACjE,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IACpC,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAChD,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;QACpC,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,MAAM,CAAC,MAAM,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EAAE,KAAK,EAAE,EAAE,CAAC;YAC7C,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAClB,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;QACnB,CAAC;QACD,MAAM,IAAI,CAAC,SAAS,CAAC,CAAC;QACtB,MAAM,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrB,MAAM,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9C,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;QAChB,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC;QACpB,MAAM,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC1B,MAAM,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,MAAM,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** What the script moves on the stage. Targets are the `data-target` names of the things in the panel. */
2
+ export interface FeedStage {
3
+ /** Shows the tab with this index. */
4
+ tab: (index: number) => void;
5
+ /** How many log entries have come in. */
6
+ show: (count: number) => void;
7
+ /** Whether the pointer has ticked the next task. */
8
+ tick: (ticked: boolean) => void;
9
+ /** Moves the pointer onto a target, or hides it. */
10
+ point: (target: string | null) => void;
11
+ /** Presses or releases the pointer's button. */
12
+ press: (pressed: boolean) => void;
13
+ /** Shows the label of a target, or hides it. */
14
+ tip: (target: string | null) => void;
15
+ }
16
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../source/component/about/feed/script/type.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,MAAM,WAAW,SAAS;IACxB,qCAAqC;IACrC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,yCAAyC;IACzC,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,oDAAoD;IACpD,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,oDAAoD;IACpD,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvC,gDAAgD;IAChD,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,gDAAgD;IAChD,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../source/component/about/feed/script/type.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import type { PortfolioProperties } from "@sharadox/sharadox-web-library/component/portfolio/type";
2
2
  /**
3
- * "Portfolio": the work we've made, each project live on a computer and a phone beside its story and the services we
4
- * made for it, with filters by service, client and year, and a choice of order.
3
+ * "Portfolio": the work we've made, newest first. Each project shows its first screen on a computer and a phone
4
+ * beside its story, its details and the services we made for it, and leads to its own page.
5
5
  */
6
6
  export declare function Portfolio({ locale }: PortfolioProperties): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/portfolio/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEnG;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BAYxD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/portfolio/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAEnG;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BAiBxD"}
@@ -1,17 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Reveal } from "@sharadox/animation-web-library/reveal";
3
3
  import { translate } from "@sharadox/internationalization-web-library/translate";
4
+ import { Project } from "@sharadox/sharadox-web-library/component/portfolio/project";
4
5
  import { Section } from "@sharadox/sharadox-web-library/component/section";
5
6
  import { SectionHeading } from "@sharadox/sharadox-web-library/component/section-heading";
6
- import { Browser } from "@sharadox/sharadox-web-library/component/portfolio/browser";
7
7
  import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
8
8
  import { SECTION } from "@sharadox/sharadox-web-library/content/section";
9
9
  import styles from "./index.module.css";
10
10
  /**
11
- * "Portfolio": the work we've made, each project live on a computer and a phone beside its story and the services we
12
- * made for it, with filters by service, client and year, and a choice of order.
11
+ * "Portfolio": the work we've made, newest first. Each project shows its first screen on a computer and a phone
12
+ * beside its story, its details and the services we made for it, and leads to its own page.
13
13
  */
14
14
  export function Portfolio({ locale }) {
15
- return (_jsxs(Section, { id: SECTION.portfolio.id, padded: false, children: [_jsxs("div", { className: styles.heading, children: [_jsx(SectionHeading, { eyebrow: translate(SECTION.portfolio, locale), title: translate(PORTFOLIO.title, locale) }), _jsx(Reveal, { children: _jsx("p", { className: styles.text, children: translate(PORTFOLIO.text, locale) }) })] }), _jsx(Browser, { locale: locale })] }));
15
+ return (_jsxs(Section, { id: SECTION.portfolio.id, padded: false, children: [_jsx("div", { className: styles.heading, children: _jsx(SectionHeading, { eyebrow: translate(SECTION.portfolio, locale), title: translate(PORTFOLIO.title, locale), text: translate(PORTFOLIO.text, locale) }) }), PORTFOLIO.projects.map((project, index) => (_jsx(Reveal, { children: _jsx(Project, { project: project, index: index, locale: locale }) }, project.key)))] }));
16
16
  }
17
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/portfolio/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,MAAM,EAAuB;IACvD,OAAO,CACL,MAAC,OAAO,IAAC,EAAE,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,aAC9C,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,aAC5B,KAAC,cAAc,IAAC,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,GAAI,EAC5G,KAAC,MAAM,cACL,YA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O,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI,IADhD,OAAO,CAAC,GAAG,CAEf,CACV,CAAC,IACM,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .heading{display:grid;justify-content:stretch;gap:18px;padding:clamp(72px,10vw,128px) var(--padding) clamp(32px,4vw,48px)}.text{max-width:56ch;text-align:left;color:var(--foreground-2);line-height:1.6}
1
+ .heading{padding:clamp(72px,10vw,128px) var(--padding) 0}
@@ -1,14 +1,5 @@
1
1
  @use "style/token" as *;
2
2
 
3
3
  .heading {
4
- display: grid;
5
- justify-content: stretch;
6
- gap: 18px;
7
- padding: clamp(72px, 10vw, 128px) var(--padding) clamp(32px, 4vw, 48px);
8
- }
9
- .text {
10
- max-width: 56ch;
11
- text-align: left;
12
- color: var(--foreground-2);
13
- line-height: 1.6;
4
+ padding: clamp(72px, 10vw, 128px) var(--padding) 0;
14
5
  }
@@ -0,0 +1,4 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
+ /** The day a project went live, the way the language says it: "17 November 2026", "17 de novembro de 2026". */
3
+ export declare const launchDate: (date: string, locale: Locale) => string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/launch-date/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,+GAA+G;AAC/G,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,EAAE,QAAQ,MAAM,WAGpD,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** The day a project went live, the way the language says it: "17 November 2026", "17 de novembro de 2026". */
2
+ export const launchDate = (date, locale) => new Intl.DateTimeFormat(locale === "pt" ? "pt-PT" : "en-GB", { dateStyle: "long", timeZone: "UTC" }).format(new Date(date));
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/launch-date/index.ts"],"names":[],"mappings":"AAEA,+GAA+G;AAC/G,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CACzD,IAAI,IAAI,CAAC,cAAc,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CACzG,IAAI,IAAI,CAAC,IAAI,CAAC,CACf,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ProjectProperties } from "@sharadox/sharadox-web-library/component/portfolio/project/type";
2
2
  /**
3
- * One project: the live site on a computer and a phone beside its story: number, launch month, client, headline,
4
- * what it is, its details, chips of the services we made for it, and a link to visit it.
3
+ * One project: its first screen on a computer and a phone beside its story: number, launch day, client, headline,
4
+ * what it is, its details, chips of the services we made for it, and the way to its own page.
5
5
  */
6
6
  export declare function Project({ project, index, locale }: ProjectProperties): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAUzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA4CpE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/index.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA4CpE"}
@@ -2,22 +2,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { translate } from "@sharadox/internationalization-web-library/translate";
3
3
  import { Button } from "@sharadox/sharadox-web-library/component/button";
4
4
  import { Screens } from "@sharadox/sharadox-web-library/component/portfolio/screens";
5
- import { serviceName } from "@sharadox/sharadox-web-library/component/portfolio/select-projects";
5
+ import { launchDate } from "@sharadox/sharadox-web-library/component/portfolio/launch-date";
6
+ import { serviceName } from "@sharadox/sharadox-web-library/component/portfolio/service-name";
6
7
  import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
7
8
  import styles from "./index.module.css";
8
- /** The month a project went live, the way the language says it ("November 2026", "novembro de 2026"). */
9
- const month = (date, locale) => new Intl.DateTimeFormat(locale === "pt" ? "pt-PT" : "en-GB", {
10
- month: "long",
11
- year: "numeric",
12
- timeZone: "UTC",
13
- }).format(new Date(date));
14
9
  /**
15
- * One project: the live site on a computer and a phone beside its story: number, launch month, client, headline,
16
- * what it is, its details, chips of the services we made for it, and a link to visit it.
10
+ * One project: its first screen on a computer and a phone beside its story: number, launch day, client, headline,
11
+ * what it is, its details, chips of the services we made for it, and the way to its own page.
17
12
  */
18
13
  export function Project({ project, index, locale }) {
19
14
  const { details } = PORTFOLIO;
20
- const launched = month(project.date, locale);
21
- return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children: String(index + 1).padStart(2, "0") }), _jsx("time", { dateTime: project.date, children: launched })] }), _jsxs("h3", { id: `project-${project.key}`, children: [_jsx("span", { className: styles.client, children: project.client }), translate(project.name, locale)] }), _jsx("p", { className: styles.text, children: translate(project.text, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launched })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: `monospace ${styles.label}`, children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] }), _jsx(Button, { href: project.url, variant: "ghost", arrow: true, className: styles.visit, children: translate(PORTFOLIO.visit, locale) })] })] }));
15
+ const launched = launchDate(project.date, locale);
16
+ return (_jsxs("article", { className: styles.project, "aria-labelledby": `project-${project.key}`, children: [_jsx(Screens, { project: project, label: `${project.client} ${translate(PORTFOLIO.screens, locale)}` }), _jsxs("div", { className: styles.story, children: [_jsxs("p", { className: `monospace ${styles.top}`, children: [_jsx("span", { children: String(index + 1).padStart(2, "0") }), _jsx("time", { dateTime: project.date, children: launched })] }), _jsxs("h3", { id: `project-${project.key}`, children: [_jsx("span", { className: styles.client, children: project.client }), translate(project.name, locale)] }), _jsx("p", { className: styles.text, children: translate(project.text, locale) }), _jsxs("dl", { className: styles.details, children: [_jsxs("div", { children: [_jsx("dt", { children: translate(details.client, locale) }), _jsx("dd", { children: project.client })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.place, locale) }), _jsx("dd", { children: translate(project.place, locale) })] }), _jsxs("div", { children: [_jsx("dt", { children: translate(details.launched, locale) }), _jsx("dd", { children: launched })] })] }), _jsxs("div", { className: styles.services, children: [_jsx("span", { className: `monospace ${styles.label}`, children: translate(details.services, locale) }), _jsx("ul", { children: project.services.map((service) => (_jsx("li", { children: serviceName(service, locale) }, service))) })] }), _jsx(Button, { href: `/${locale}${PORTFOLIO.path}/${project.key}`, arrow: true, className: styles.open, children: translate(PORTFOLIO.open, locale) })] })] }));
22
17
  }
23
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","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AAI,OAAO,CAAC,GAAG,EAAE,EAAE,KAAK,QAAC,SAAS,EAAE,MAAM,CAAC,IAAI,YACrF,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC,GAC3B,IACL,IACE,CACX,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .project{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);align-items:stretch;justify-content:stretch;border-top:1px solid var(--line)}@media(max-width: 960px){.project{grid-template-columns:minmax(0, 1fr)}}.story{display:grid;justify-content:stretch;align-content:center;gap:22px;padding:clamp(28px,4vw,56px) var(--padding);border-left:1px solid var(--line);text-align:left}@media(max-width: 960px){.story{border-left:0;border-top:1px dashed var(--line-2)}}.top{display:flex;justify-content:space-between;font-size:12px;color:var(--foreground-3);text-transform:uppercase;letter-spacing:.04em}.project h3{display:grid;justify-content:stretch;gap:8px;font-size:clamp(1.7rem,3vw,2.4rem);font-weight:600;line-height:1.1;letter-spacing:-0.04em;text-wrap:balance}.client{font-size:13.5px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.text{color:var(--foreground-2);line-height:1.65;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));justify-content:stretch;margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.visit{justify-self:start}
1
+ .project{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);align-items:stretch;justify-content:stretch;border-top:1px solid var(--line)}@media(max-width: 960px){.project{grid-template-columns:minmax(0, 1fr)}}.story{display:grid;justify-content:stretch;align-content:center;gap:22px;padding:clamp(28px,4vw,56px) var(--padding);border-left:1px solid var(--line);text-align:left}@media(max-width: 960px){.story{border-left:0;border-top:1px dashed var(--line-2)}}.top{display:flex;justify-content:space-between;font-size:12px;color:var(--foreground-3);text-transform:uppercase;letter-spacing:.04em}.project h3{display:grid;justify-content:stretch;gap:8px;font-size:clamp(1.7rem,3vw,2.4rem);font-weight:600;line-height:1.1;letter-spacing:-0.04em;text-wrap:balance}.client{font-size:13.5px;font-weight:500;letter-spacing:0;color:var(--foreground-2)}.text{color:var(--foreground-2);line-height:1.65;text-wrap:pretty}.details{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));justify-content:stretch;margin:0;border-block:1px dashed var(--line-2)}.details>div{display:grid;justify-content:stretch;align-content:start;gap:4px;padding:14px 12px 14px 0}.details>div+div{padding-left:12px;border-left:1px dashed var(--line-2)}.details dt{font-family:var(--monospace);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.details dd{margin:0;font-size:14px}.services{display:grid;justify-content:stretch;gap:10px}.services ul{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}.services li{padding:6px 12px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:13px}.label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.open{justify-self:start}
@@ -111,6 +111,6 @@
111
111
  text-transform: uppercase;
112
112
  color: var(--foreground-3);
113
113
  }
114
- .visit {
114
+ .open {
115
115
  justify-self: start;
116
116
  }
@@ -1,4 +1,4 @@
1
- import type { Project } from "@sharadox/sharadox-web-library/component/portfolio/select-projects/type";
1
+ import type { Project } from "@sharadox/sharadox-web-library/component/portfolio/type";
2
2
  import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
3
3
  export interface ProjectProperties {
4
4
  project: Project;
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AACvG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1,7 +1,7 @@
1
1
  import type { ScreensProperties } from "@sharadox/sharadox-web-library/component/portfolio/screens/type";
2
2
  /**
3
- * The project live, on a computer and on a phone: a browser window and a phone in front of it, each scrolling slowly
4
- * through the whole page and back (paused while pointed at, and still for visitors who prefer less motion).
3
+ * The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
4
+ * in front of it; both face the visitor under the pointer.
5
5
  */
6
- export declare function Screens({ project, label }: ScreensProperties): import("react").JSX.Element;
6
+ export declare function Screens({ project, label, priority }: ScreensProperties): import("react").JSX.Element;
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,iBAAiB,+BAwC5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAEzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAyCtE"}
@@ -2,12 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import Image from "next/image";
3
3
  import styles from "./index.module.css";
4
4
  /**
5
- * The project live, on a computer and on a phone: a browser window and a phone in front of it, each scrolling slowly
6
- * through the whole page and back (paused while pointed at, and still for visitors who prefer less motion).
5
+ * The project's first screen, on a computer and on a phone: a browser window, slightly turned, with a phone standing
6
+ * in front of it; both face the visitor under the pointer.
7
7
  */
8
- export function Screens({ project, label }) {
8
+ export function Screens({ project, label, priority }) {
9
9
  const { computer, phone } = project.screens;
10
10
  const domain = new URL(project.url).host;
11
- return (_jsxs("div", { className: styles.stage, role: "img", "aria-label": label, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs("div", { className: styles.browser, "aria-hidden": true, children: [_jsxs("div", { className: styles.bar, children: [_jsxs("span", { className: styles.dots, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: `monospace ${styles.address}`, children: domain })] }), _jsx("div", { className: styles.viewport, children: _jsx(Image, { src: computer.src, width: computer.width, height: computer.height, alt: "", sizes: "(min-width: 960px) 720px, 100vw", className: styles.page }) })] }), _jsx("div", { className: styles.phone, "aria-hidden": true, children: _jsx("div", { className: styles.viewport, children: _jsx(Image, { src: phone.src, width: phone.width, height: phone.height, alt: "", sizes: "220px", className: styles.page }) }) })] }));
11
+ return (_jsxs("div", { className: styles.stage, role: "img", "aria-label": label, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs("div", { className: styles.browser, "aria-hidden": true, children: [_jsxs("div", { className: styles.bar, children: [_jsxs("span", { className: styles.dots, children: [_jsx("i", {}), _jsx("i", {}), _jsx("i", {})] }), _jsx("span", { className: `monospace ${styles.address}`, children: domain })] }), _jsx("div", { className: styles.viewport, children: _jsx(Image, { src: computer.src, width: computer.width, height: computer.height, alt: "", sizes: "(min-width: 960px) 760px, 100vw", priority: priority, className: styles.page }) })] }), _jsx("div", { className: styles.phone, "aria-hidden": true, children: _jsx("div", { className: styles.viewport, children: _jsx(Image, { src: phone.src, width: phone.width, height: phone.height, alt: "", sizes: "220px", className: styles.page }) }) })] }));
12
12
  }
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/index.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAqB;IAC3D,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,OAAO,CACL,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,KAAK,gBAAa,KAAK,aACxD,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,wBAAgB,EAC3C,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,kCAC5B,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,aAAK,EACL,aAAK,EACL,aAAK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I,wBAAgB,EAC3C,eAAK,SAAS,EAAE,MAAM,CAAC,OAAO,kCAC5B,eAAK,SAAS,EAAE,MAAM,CAAC,GAAG,aACxB,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aAC1B,aAAK,EACL,aAAK,EACL,aAAK,IACA,EACP,eAAM,SAAS,EAAE,aAAa,MAAM,CAAC,OAAO,EAAE,YAAG,MAAM,GAAQ,IAC3D,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC7B,KAAC,KAAK,IACJ,GAAG,EAAE,QAAQ,CAAC,GAAG,EACjB,KAAK,EAAE,QAAQ,CAAC,KAAK,EACrB,MAAM,EAAE,QAAQ,CAAC,MAAM,EACvB,GAAG,EAAC,EAAE,EACN,KAAK,EAAC,iCAAiC,EACvC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,MAAM,CAAC,IAAI,GACtB,GACE,IACF,EACN,cAAK,SAAS,EAAE,MAAM,CAAC,KAAK,iCAC1B,cAAK,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC7B,KAAC,KAAK,IACJ,GAAG,EAAE,KAAK,CAAC,GAAG,EACd,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,GAAG,EAAC,EAAE,EACN,KAAK,EAAC,OAAO,EACb,SAAS,EAAE,MAAM,CAAC,IAAI,GACtB,GACE,GACF,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- .stage{position:relative;display:grid;justify-content:stretch;padding:clamp(28px,5vw,64px) clamp(28px,7vw,96px) clamp(48px,7vw,88px) clamp(20px,4vw,48px);perspective:1600px}.glow{position:absolute;inset:10% 6% 0;background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 35%, transparent), transparent);filter:blur(40px);opacity:.55;pointer-events:none}.browser,.phone{position:relative;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);overflow:hidden;box-shadow:0 40px 80px -40px color-mix(in srgb, var(--foreground) 35%, transparent),0 1px 0 color-mix(in srgb, var(--foreground) 20%, transparent) inset;transition:transform .9s cubic-bezier(0.22, 1, 0.36, 1)}.browser{display:grid;grid-template-rows:auto 1fr;justify-content:stretch;border-radius:14px;transform:rotateY(8deg) rotateX(2deg);transform-origin:left center}.browser .viewport{aspect-ratio:16/10}.stage:hover .browser,.stage:hover .phone{transform:none}.bar{display:grid;grid-template-columns:auto 1fr auto;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line-2)}.bar::after{content:"";width:42px}.dots{display:flex;gap:6px}.dots i{width:9px;height:9px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.address{justify-self:center;padding:4px 14px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:11px;color:var(--foreground-2)}.phone{position:absolute;right:clamp(8px,3vw,40px);bottom:clamp(12px,3vw,36px);width:clamp(104px,22%,200px);padding:5px;border-radius:26px;transform:rotateY(-10deg) translateZ(40px)}.phone .viewport{aspect-ratio:9/19.5;border-radius:21px}.viewport{position:relative;overflow:hidden;container-type:size;background:var(--background)}.page{display:block;width:100%;height:auto;animation:screen-scroll 48s ease-in-out infinite alternate}@media(prefers-reduced-motion: reduce){.page{animation:none}}.phone .page{animation-duration:60s}.stage:hover .page{animation-play-state:paused}@keyframes screen-scroll{0%,4%{transform:translateY(0)}96%,100%{transform:translateY(calc(-100% + 100cqh))}}
1
+ .stage{position:relative;display:grid;justify-content:stretch;padding:clamp(28px,5vw,64px) clamp(28px,7vw,96px) clamp(48px,7vw,88px) clamp(20px,4vw,48px);perspective:1600px}.glow{position:absolute;inset:10% 6% 0;background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 35%, transparent), transparent);filter:blur(40px);opacity:.55;pointer-events:none}.browser,.phone{position:relative;box-sizing:border-box;background:color-mix(in srgb, var(--foreground) 9%, var(--background));border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);overflow:hidden;box-shadow:0 40px 80px -40px color-mix(in srgb, var(--foreground) 35%, transparent),0 1px 0 color-mix(in srgb, var(--foreground) 20%, transparent) inset;transition:transform .9s cubic-bezier(0.22, 1, 0.36, 1)}.browser{display:grid;grid-template-rows:auto 1fr;justify-content:stretch;border-radius:14px;transform:rotateY(8deg) rotateX(2deg);transform-origin:left center}.browser .viewport{aspect-ratio:16/10}.stage:hover .browser,.stage:hover .phone{transform:none}.bar{display:grid;grid-template-columns:auto 1fr auto;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line-2)}.bar::after{content:"";width:42px}.dots{display:flex;gap:6px}.dots i{width:9px;height:9px;border-radius:50%;background:color-mix(in srgb, var(--foreground) 20%, transparent)}.address{justify-self:center;padding:4px 14px;border:1px solid var(--line-2);border-radius:99px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:11px;color:var(--foreground-2)}.phone{position:absolute;right:clamp(8px,3vw,40px);bottom:clamp(12px,3vw,36px);width:clamp(104px,22%,200px);padding:5px;border-radius:26px;transform:rotateY(-10deg) translateZ(40px)}.phone .viewport{aspect-ratio:9/19.5;border-radius:21px}.viewport{position:relative;overflow:hidden;background:var(--background)}.page{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
@@ -86,33 +86,16 @@
86
86
  border-radius: 21px;
87
87
  }
88
88
  }
89
- /* The page inside a screen glides from its top to its bottom and back: the viewport is its container, so the image
90
- stops exactly as its end comes into view. */
89
+ /* The screen: the site's first screen, filling it. */
91
90
  .viewport {
92
91
  position: relative;
93
92
  overflow: hidden;
94
- container-type: size;
95
93
  background: var(--background);
96
94
  }
97
95
  .page {
98
96
  display: block;
99
97
  width: 100%;
100
- height: auto;
101
- @include loop(screen-scroll 48s ease-in-out infinite alternate);
102
- .phone & {
103
- animation-duration: 60s;
104
- }
105
- .stage:hover & {
106
- animation-play-state: paused;
107
- }
108
- }
109
- @keyframes screen-scroll {
110
- 0%,
111
- 4% {
112
- transform: translateY(0);
113
- }
114
- 96%,
115
- 100% {
116
- transform: translateY(calc(-100% + 100cqh));
117
- }
98
+ height: 100%;
99
+ object-fit: cover;
100
+ object-position: top;
118
101
  }
@@ -1,7 +1,9 @@
1
- import type { Project } from "@sharadox/sharadox-web-library/component/portfolio/select-projects/type";
1
+ import type { Project } from "@sharadox/sharadox-web-library/component/portfolio/type";
2
2
  export interface ScreensProperties {
3
3
  project: Project;
4
4
  /** What the screens show, for screen readers. */
5
5
  label: string;
6
+ /** Loads the screens first, when they open the page. */
7
+ priority?: boolean;
6
8
  }
7
9
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yEAAyE,CAAC;AAEvG,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/screens/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yDAAyD,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -0,0 +1,4 @@
1
+ import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
+ /** A service card key's short name, as its chip says it ("Website", "Alojamento"); the key itself if unknown. */
3
+ export declare const serviceName: (key: string, locale: Locale) => string;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/service-name/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAOjF,iHAAiH;AACjH,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,WAAgE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { SERVICES } from "@sharadox/sharadox-web-library/content/services";
2
+ /** Every service card's key and chip name. */
3
+ const CARDS = SERVICES.items.flatMap((group) => group.cards.map(({ key, chip }) => ({ key, chip })));
4
+ /** A service card key's short name, as its chip says it ("Website", "Alojamento"); the key itself if unknown. */
5
+ export const serviceName = (key, locale) => CARDS.find((card) => card.key === key)?.chip[locale] ?? key;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/service-name/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAG3E,8CAA8C;AAC9C,MAAM,KAAK,GAAiE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAC3G,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,CACpD,CAAC;AAEF,iHAAiH;AACjH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,MAAc,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC"}
@@ -1,4 +1,7 @@
1
1
  import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
+ import type { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
3
+ /** One project of the portfolio. */
4
+ export type Project = (typeof PORTFOLIO.projects)[number];
2
5
  export interface PortfolioProperties {
3
6
  locale: Locale;
4
7
  }