@sharadox/sharadox-web-library 0.44.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 (83) hide show
  1. package/README.md +1 -1
  2. package/distribution/component/portfolio/index.d.ts +2 -2
  3. package/distribution/component/portfolio/index.d.ts.map +1 -1
  4. package/distribution/component/portfolio/index.js +4 -4
  5. package/distribution/component/portfolio/index.js.map +1 -1
  6. package/distribution/component/portfolio/index.module.css +1 -1
  7. package/distribution/component/portfolio/index.module.scss +1 -10
  8. package/distribution/component/portfolio/launch-date/index.d.ts +4 -0
  9. package/distribution/component/portfolio/launch-date/index.d.ts.map +1 -0
  10. package/distribution/component/portfolio/launch-date/index.js +3 -0
  11. package/distribution/component/portfolio/launch-date/index.js.map +1 -0
  12. package/distribution/component/portfolio/project/index.d.ts +2 -2
  13. package/distribution/component/portfolio/project/index.d.ts.map +1 -1
  14. package/distribution/component/portfolio/project/index.js +6 -11
  15. package/distribution/component/portfolio/project/index.js.map +1 -1
  16. package/distribution/component/portfolio/project/index.module.css +1 -1
  17. package/distribution/component/portfolio/project/index.module.scss +1 -1
  18. package/distribution/component/portfolio/project/type.d.ts +1 -1
  19. package/distribution/component/portfolio/project/type.d.ts.map +1 -1
  20. package/distribution/component/portfolio/screens/index.d.ts +3 -3
  21. package/distribution/component/portfolio/screens/index.d.ts.map +1 -1
  22. package/distribution/component/portfolio/screens/index.js +4 -4
  23. package/distribution/component/portfolio/screens/index.js.map +1 -1
  24. package/distribution/component/portfolio/screens/index.module.css +1 -1
  25. package/distribution/component/portfolio/screens/index.module.scss +4 -21
  26. package/distribution/component/portfolio/screens/type.d.ts +3 -1
  27. package/distribution/component/portfolio/screens/type.d.ts.map +1 -1
  28. package/distribution/component/portfolio/service-name/index.d.ts +4 -0
  29. package/distribution/component/portfolio/service-name/index.d.ts.map +1 -0
  30. package/distribution/component/portfolio/service-name/index.js +6 -0
  31. package/distribution/component/portfolio/service-name/index.js.map +1 -0
  32. package/distribution/component/portfolio/type.d.ts +3 -0
  33. package/distribution/component/portfolio/type.d.ts.map +1 -1
  34. package/distribution/component/project-page/chapter/index.d.ts +7 -0
  35. package/distribution/component/project-page/chapter/index.d.ts.map +1 -0
  36. package/distribution/component/project-page/chapter/index.js +12 -0
  37. package/distribution/component/project-page/chapter/index.js.map +1 -0
  38. package/distribution/component/project-page/chapter/index.module.css +1 -0
  39. package/distribution/component/project-page/chapter/index.module.scss +80 -0
  40. package/distribution/component/project-page/chapter/type.d.ts +11 -0
  41. package/distribution/component/project-page/chapter/type.d.ts.map +1 -0
  42. package/distribution/component/project-page/chapter/type.js.map +1 -0
  43. package/distribution/component/project-page/index.d.ts +11 -0
  44. package/distribution/component/project-page/index.d.ts.map +1 -0
  45. package/distribution/component/project-page/index.js +28 -0
  46. package/distribution/component/project-page/index.js.map +1 -0
  47. package/distribution/component/project-page/index.module.css +1 -0
  48. package/distribution/component/project-page/index.module.scss +115 -0
  49. package/distribution/component/project-page/type.d.ts +10 -0
  50. package/distribution/component/project-page/type.d.ts.map +1 -0
  51. package/distribution/component/project-page/type.js.map +1 -0
  52. package/distribution/component/section-heading/index.d.ts +2 -2
  53. package/distribution/component/section-heading/index.d.ts.map +1 -1
  54. package/distribution/component/section-heading/index.js +3 -3
  55. package/distribution/component/section-heading/index.js.map +1 -1
  56. package/distribution/component/section-heading/index.module.css +1 -1
  57. package/distribution/component/section-heading/index.module.scss +14 -0
  58. package/distribution/component/section-heading/type.d.ts +3 -0
  59. package/distribution/component/section-heading/type.d.ts.map +1 -1
  60. package/distribution/content/portfolio/index.d.ts +108 -82
  61. package/distribution/content/portfolio/index.d.ts.map +1 -1
  62. package/distribution/content/portfolio/index.js +87 -36
  63. package/distribution/content/portfolio/index.js.map +1 -1
  64. package/llms.txt +2 -1
  65. package/package.json +1 -1
  66. package/distribution/component/portfolio/browser/index.d.ts +0 -7
  67. package/distribution/component/portfolio/browser/index.d.ts.map +0 -1
  68. package/distribution/component/portfolio/browser/index.js +0 -26
  69. package/distribution/component/portfolio/browser/index.js.map +0 -1
  70. package/distribution/component/portfolio/browser/index.module.css +0 -1
  71. package/distribution/component/portfolio/browser/index.module.scss +0 -147
  72. package/distribution/component/portfolio/browser/type.d.ts +0 -5
  73. package/distribution/component/portfolio/browser/type.d.ts.map +0 -1
  74. package/distribution/component/portfolio/browser/type.js.map +0 -1
  75. package/distribution/component/portfolio/select-projects/index.d.ts +0 -45
  76. package/distribution/component/portfolio/select-projects/index.d.ts.map +0 -1
  77. package/distribution/component/portfolio/select-projects/index.js +0 -30
  78. package/distribution/component/portfolio/select-projects/index.js.map +0 -1
  79. package/distribution/component/portfolio/select-projects/type.d.ts +0 -11
  80. package/distribution/component/portfolio/select-projects/type.d.ts.map +0 -1
  81. package/distribution/component/portfolio/select-projects/type.js.map +0 -1
  82. /package/distribution/component/{portfolio/browser → project-page/chapter}/type.js +0 -0
  83. /package/distribution/component/{portfolio/select-projects → project-page}/type.js +0 -0
package/llms.txt CHANGED
@@ -5,7 +5,7 @@
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
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, about (+ feed: activity, project, client, script), services (four groups of service-card, each with a service-object), capability, service-unlisted, marquee, portfolio (+ browser, project, screens, select-projects), process, faq, contact (+ form), footer, section-indicator, style-switch, structured-data, share-image (renderShareImage)
8
+ - component/*: navigation, hero (+ lazy globe), service-index, about (+ feed: activity, project, client, script), services (four groups of service-card, each with a service-object), capability, service-unlisted, marquee, portfolio (+ project, screens, service-name, launch-date), project-page (+ chapter), process, faq, 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 }
@@ -47,3 +47,4 @@
47
47
  - 0.42.0: Portfolio (component/portfolio, content/portfolio, SECTION.portfolio #portfolio, in the navigation, indicator and footer after Capabilities): each project live on a computer and a phone, both scrolling slowly through the whole page (screens: {computer, phone} {src, width, height}, kept in the site's public/portfolio/<key>/), beside its number, launch month, client, headline, text, details and service chips (card keys, named by their chips); filters by service (chips), client and year (selects), sorted newest, oldest, client or project name (select-projects: filterOptions, selectProjects, serviceName); first project: Luis Pires Decor (website, hosting, professional email, PWA, 2026-11-17). Navigation switches to the menu below 1200px (was 1100px), so seven links fit
48
48
  - 0.43.0: SOCIAL: Threads https://threads.com/@sharadoxcom, Pinterest without www, LinkedIn in lowercase, Google's mark links to the business profile (a share link, so not in sameAs); GOOGLE_REVIEW, the review form, is a text link after the complaints book in the footer's legal links
49
49
  - 0.44.0: About: the statement is "From branding, websites, apps and marketing, to tailored systems that fully automate or drastically simplify your daily operations."; its panel plays only once in view (and starts over each time): a pointer (icon-web-library ^0.5.0 pointer) clicks through Activity (a log, newest on top, each entry a picture of the action with who did it or Automatic), Project (progress, a checklist it ticks, 68% to 72%, the budget) and Client (a paid-of-quoted ring, project bars, tasks done against to do), hovering details to show labels; all one job (Ana Sousa's kitchen at Villa Mar), figures consistent across tabs; with less motion asked for it rests on the full log (feed/script: playFeed, pause)
50
+ - 0.45.0: Portfolio without filters or sorting: each project shows its first screen on a computer and a phone (still), its launch day ("17 November 2026"), place, services (Luis Pires Decor adds Rebranding and Branding Design) and "See the Project" to /portfolio/<key>; title "Work that\nspeaks for itself." with its text under it (SectionHeading takes `text`; a title with a line break keeps it). ProjectPage (component/project-page): a project's own page in the grid frame (intro with story, details, chips and screens; numbered Chapters whose windows show the client website's own components live, given by the site as `chapters`; the visit link only at the end, and the way back); content/portfolio holds the story, chapters (hero, sequence, fabric, work, process, booking) and page labels
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sharadox/sharadox-web-library",
3
- "version": "0.44.0",
3
+ "version": "0.45.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",
@@ -1,7 +0,0 @@
1
- import type { BrowserProperties } from "@sharadox/sharadox-web-library/component/portfolio/browser/type";
2
- /**
3
- * The projects with their controls: service chips, then client, year and order. The list follows at once, projects
4
- * moving into their new places, and says how many it shows; when none match, it offers to show them all.
5
- */
6
- export declare function Browser({ locale }: BrowserProperties): import("react").JSX.Element;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/browser/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iEAAiE,CAAC;AAOzG;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BA6FpD"}
@@ -1,26 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { AnimatePresence, motion } from "motion/react";
4
- import { useState } from "react";
5
- import { Icon } from "@sharadox/icon-web-library/icon";
6
- import { translate } from "@sharadox/internationalization-web-library/translate";
7
- import { Project } from "@sharadox/sharadox-web-library/component/portfolio/project";
8
- import { filterOptions, selectProjects, serviceName, } from "@sharadox/sharadox-web-library/component/portfolio/select-projects";
9
- import { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
10
- import styles from "./index.module.css";
11
- const OPTIONS = filterOptions(PORTFOLIO.projects);
12
- const EVERYTHING = { service: "", client: "", year: "", sort: "newest" };
13
- const EASE = [0.22, 1, 0.36, 1];
14
- /**
15
- * The projects with their controls: service chips, then client, year and order. The list follows at once, projects
16
- * moving into their new places, and says how many it shows; when none match, it offers to show them all.
17
- */
18
- export function Browser({ locale }) {
19
- const [choice, setChoice] = useState(EVERYTHING);
20
- const pick = (change) => setChoice((current) => ({ ...current, ...change }));
21
- const projects = selectProjects(PORTFOLIO.projects, choice, locale);
22
- const { filters } = PORTFOLIO;
23
- const [one, many] = PORTFOLIO.count[locale];
24
- return (_jsxs(_Fragment, { children: [_jsxs("div", { role: "group", "aria-label": translate(filters.label, locale), className: styles.controls, children: [_jsx("div", { role: "group", "aria-label": translate(filters.service, locale), className: styles.chips, children: ["", ...OPTIONS.services].map((service) => (_jsx("button", { type: "button", "aria-pressed": choice.service === service, onClick: () => pick({ service }), children: service ? serviceName(service, locale) : translate(filters.allServices, locale) }, service || "all"))) }), _jsxs("div", { className: styles.selects, children: [_jsxs("label", { children: [_jsx("span", { className: "monospace", children: translate(filters.client, locale) }), _jsxs("span", { className: styles.field, children: [_jsxs("select", { value: choice.client, onChange: (event) => pick({ client: event.target.value }), children: [_jsx("option", { value: "", children: translate(filters.allClients, locale) }), OPTIONS.clients.map((client) => (_jsx("option", { children: client }, client)))] }), _jsx(Icon, { name: "chevron-down", strokeWidth: 1.8 })] })] }), _jsxs("label", { children: [_jsx("span", { className: "monospace", children: translate(filters.year, locale) }), _jsxs("span", { className: styles.field, children: [_jsxs("select", { value: choice.year, onChange: (event) => pick({ year: event.target.value }), children: [_jsx("option", { value: "", children: translate(filters.allYears, locale) }), OPTIONS.years.map((year) => (_jsx("option", { children: year }, year)))] }), _jsx(Icon, { name: "chevron-down", strokeWidth: 1.8 })] })] }), _jsxs("label", { children: [_jsx("span", { className: "monospace", children: translate(filters.sort, locale) }), _jsxs("span", { className: styles.field, children: [_jsx("select", { value: choice.sort, onChange: (event) => pick({ sort: event.target.value }), children: PORTFOLIO.sorts.map((sort) => (_jsx("option", { value: sort.key, children: sort[locale] }, sort.key))) }), _jsx(Icon, { name: "chevron-down", strokeWidth: 1.8 })] })] })] }), _jsxs("p", { className: `monospace ${styles.count}`, "aria-live": "polite", children: [projects.length, " ", projects.length === 1 ? one : many] })] }), _jsxs("div", { className: styles.list, children: [_jsx(AnimatePresence, { initial: false, mode: "popLayout", children: projects.map((project, index) => (_jsx(motion.div, { layout: true, initial: { opacity: 0, y: 24 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -12 }, transition: { duration: 0.6, ease: EASE }, children: _jsx(Project, { project: project, index: index, locale: locale }) }, project.key))) }), projects.length === 0 && (_jsxs("div", { className: styles.empty, children: [_jsx("p", { children: translate(PORTFOLIO.empty, locale) }), _jsx("button", { type: "button", onClick: () => setChoice(EVERYTHING), children: translate(PORTFOLIO.reset, locale) })] }))] })] }));
25
- }
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/browser/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,4DAA4D,CAAC;AACrF,OAAO,EACL,aAAa,EACb,cAAc,EACd,WAAW,GACZ,MAAM,oEAAoE,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAIzC,MAAM,OAAO,GAAG,aAAa,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AAClD,MAAM,UAAU,GAAkB,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACxF,MAAM,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AE,CAAC,EAAE,EAC7B,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAC5B,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,YAEzC,KAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAI,IAPtD,OAAO,CAAC,GAAG,CAQL,CACd,CAAC,GACc,EACjB,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,CACxB,eAAK,SAAS,EAAE,MAAM,CAAC,KAAK,aAC1B,sBAAI,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,GAAK,EAC3C,iBAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,YACvD,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,GAC5B,IACL,CACP,IACG,IACL,CACJ,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- .controls{display:grid;grid-template-columns:minmax(0, 1fr) auto auto;align-items:end;justify-content:stretch;gap:16px 24px;padding:20px var(--padding);border-top:1px solid var(--line)}@media(max-width: 1100px){.controls{grid-template-columns:minmax(0, 1fr) auto}.controls .chips{grid-column:1/-1}}@media(max-width: 700px){.controls{grid-template-columns:minmax(0, 1fr)}.controls .selects{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));justify-content:stretch}.controls .selects label{justify-items:stretch}.controls .selects label:last-child{grid-column:1/-1}.controls .selects select{width:100%;min-width:0}.controls .count{padding-bottom:0}}.chips{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px}.chips button{padding:8px 14px;border:1px solid var(--line-2);border-radius:99px;background:none;color:var(--foreground-2);font:inherit;font-size:13.5px;cursor:pointer;transition:color .2s,background-color .2s,border-color .2s}.chips button:hover{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 50%, transparent)}.chips button[aria-pressed=true]{border-color:var(--foreground);background:var(--foreground);color:var(--background)}.selects{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px}.selects label{display:grid;justify-content:stretch;justify-items:start;gap:4px}.selects label span{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-3)}.selects .field{position:relative;display:grid;justify-content:stretch}.selects .field svg{position:absolute;right:11px;top:50%;margin-top:-7px;font-size:14px;color:var(--foreground-3);pointer-events:none}.selects select{min-width:132px;padding:8px 32px 8px 12px;border:1px solid var(--line-2);border-radius:10px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));color:var(--foreground);font:inherit;font-size:13.5px;appearance:none;cursor:pointer}.selects select option{background:var(--background);color:var(--foreground)}.count{justify-self:end;padding-bottom:10px;font-size:12px;color:var(--foreground-3);white-space:nowrap}.list{display:grid;justify-content:stretch}.empty{display:grid;justify-items:center;gap:14px;padding:64px var(--padding);border-top:1px solid var(--line);color:var(--foreground-2)}.empty button{padding:8px 16px;border:1px solid var(--line-2);border-radius:99px;background:none;color:var(--foreground);font:inherit;cursor:pointer}
@@ -1,147 +0,0 @@
1
- @use "style/token" as *;
2
- @use "style/object" as *;
3
-
4
- /* Chips on the left, the selects and the count on the right; stacked on phones. */
5
- .controls {
6
- display: grid;
7
- grid-template-columns: minmax(0, 1fr) auto auto;
8
- align-items: end;
9
- justify-content: stretch;
10
- gap: 16px 24px;
11
- padding: 20px var(--padding);
12
- border-top: 1px solid var(--line);
13
- @include below(1100px) {
14
- grid-template-columns: minmax(0, 1fr) auto;
15
- .chips {
16
- grid-column: 1 / -1;
17
- }
18
- }
19
- /* On phones client and year share a row, the order has one of its own, and the count goes under them. */
20
- @include below(700px) {
21
- grid-template-columns: minmax(0, 1fr);
22
- .selects {
23
- display: grid;
24
- grid-template-columns: repeat(2, minmax(0, 1fr));
25
- justify-content: stretch;
26
- label {
27
- justify-items: stretch;
28
- }
29
- label:last-child {
30
- grid-column: 1 / -1;
31
- }
32
- select {
33
- width: 100%;
34
- min-width: 0;
35
- }
36
- }
37
- .count {
38
- padding-bottom: 0;
39
- }
40
- }
41
- }
42
- .chips {
43
- display: flex;
44
- flex-wrap: wrap;
45
- justify-content: flex-start;
46
- gap: 8px;
47
- button {
48
- padding: 8px 14px;
49
- border: 1px solid var(--line-2);
50
- border-radius: 99px;
51
- background: none;
52
- color: var(--foreground-2);
53
- font: inherit;
54
- font-size: 13.5px;
55
- cursor: pointer;
56
- transition:
57
- color 0.2s,
58
- background-color 0.2s,
59
- border-color 0.2s;
60
- &:hover {
61
- color: var(--foreground);
62
- border-color: tint($edge);
63
- }
64
- &[aria-pressed="true"] {
65
- border-color: var(--foreground);
66
- background: var(--foreground);
67
- color: var(--background);
68
- }
69
- }
70
- }
71
- .selects {
72
- display: flex;
73
- flex-wrap: wrap;
74
- justify-content: flex-start;
75
- gap: 10px;
76
- label {
77
- display: grid;
78
- justify-content: stretch;
79
- justify-items: start;
80
- gap: 4px;
81
- span {
82
- font-size: 10.5px;
83
- letter-spacing: 0.04em;
84
- text-transform: uppercase;
85
- color: var(--foreground-3);
86
- }
87
- }
88
- /* A select with the library's chevron over its right end. */
89
- .field {
90
- position: relative;
91
- display: grid;
92
- justify-content: stretch;
93
- svg {
94
- position: absolute;
95
- right: 11px;
96
- top: 50%;
97
- margin-top: -7px;
98
- font-size: 14px;
99
- color: var(--foreground-3);
100
- pointer-events: none;
101
- }
102
- }
103
- select {
104
- min-width: 132px;
105
- padding: 8px 32px 8px 12px;
106
- border: 1px solid var(--line-2);
107
- border-radius: 10px;
108
- background: surface($hint);
109
- color: var(--foreground);
110
- font: inherit;
111
- font-size: 13.5px;
112
- appearance: none;
113
- cursor: pointer;
114
- option {
115
- background: var(--background);
116
- color: var(--foreground);
117
- }
118
- }
119
- }
120
- .count {
121
- justify-self: end;
122
- padding-bottom: 10px;
123
- font-size: 12px;
124
- color: var(--foreground-3);
125
- white-space: nowrap;
126
- }
127
- .list {
128
- display: grid;
129
- justify-content: stretch;
130
- }
131
- .empty {
132
- display: grid;
133
- justify-items: center;
134
- gap: 14px;
135
- padding: 64px var(--padding);
136
- border-top: 1px solid var(--line);
137
- color: var(--foreground-2);
138
- button {
139
- padding: 8px 16px;
140
- border: 1px solid var(--line-2);
141
- border-radius: 99px;
142
- background: none;
143
- color: var(--foreground);
144
- font: inherit;
145
- cursor: pointer;
146
- }
147
- }
@@ -1,5 +0,0 @@
1
- import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
- export interface BrowserProperties {
3
- locale: Locale;
4
- }
5
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/browser/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/portfolio/browser/type.ts"],"names":[],"mappings":""}
@@ -1,45 +0,0 @@
1
- import type { Locale } from "@sharadox/sharadox-web-library/content/locale/type";
2
- import type { Project, ProjectChoice } from "@sharadox/sharadox-web-library/component/portfolio/select-projects/type";
3
- /** A service card key's short name, as its chip says it ("Website", "Alojamento"). */
4
- export declare const serviceName: (key: string, locale: Locale) => string;
5
- /** The year a project went live. */
6
- export declare const yearOf: (project: Project) => string;
7
- /** What there is to filter by, in the services' own order, clients A to Z, and years newest first. */
8
- export declare function filterOptions(projects: readonly Project[]): {
9
- services: string[];
10
- clients: "Luis Pires Decor"[];
11
- years: string[];
12
- };
13
- /** The projects the visitor's filters keep, in the order they picked. */
14
- export declare function selectProjects(projects: readonly Project[], choice: ProjectChoice, locale: Locale): {
15
- readonly key: "luis-pires-decor";
16
- readonly client: "Luis Pires Decor";
17
- readonly name: {
18
- readonly en: "Made by hand, now online.";
19
- readonly pt: "Feito à mão, agora online.";
20
- };
21
- readonly text: {
22
- readonly en: "An upholstery and interiors workshop in the Algarve since 1996. A bilingual website with a 3D logo, its work in a filterable portfolio, booking requests that reach the workshop by email, hosting on its own domain, professional email, and an app customers can install.";
23
- readonly pt: "Uma oficina de estofos e decoração no Algarve desde 1996. Um website bilingue com um logótipo em 3D, o seu trabalho num portefólio com filtros, pedidos de visita que chegam à oficina por email, alojamento no seu próprio domínio, email profissional e uma aplicação que os clientes podem instalar.";
24
- };
25
- readonly place: {
26
- readonly en: "Algarve, Portugal";
27
- readonly pt: "Algarve, Portugal";
28
- };
29
- readonly date: "2026-11-17";
30
- readonly url: "https://luispiresdecor.com";
31
- readonly services: readonly ["website", "hosting", "professional-email", "progressive-web-application"];
32
- readonly screens: {
33
- readonly computer: {
34
- readonly src: "/portfolio/luis-pires-decor/computer.webp";
35
- readonly width: 1200;
36
- readonly height: 12309;
37
- };
38
- readonly phone: {
39
- readonly src: "/portfolio/luis-pires-decor/phone.webp";
40
- readonly width: 390;
41
- readonly height: 16000;
42
- };
43
- };
44
- }[];
45
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/select-projects/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AACjF,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,yEAAyE,CAAC;AAOtH,sFAAsF;AACtF,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,WAAgE,CAAC;AAExH,oCAAoC;AACpC,eAAO,MAAM,MAAM,GAAI,SAAS,OAAO,WAA6B,CAAC;AAErE,sGAAsG;AACtG,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE;;;;EAOzD;AAED,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcjG"}
@@ -1,30 +0,0 @@
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"). */
5
- export const serviceName = (key, locale) => CARDS.find((card) => card.key === key)?.chip[locale] ?? key;
6
- /** The year a project went live. */
7
- export const yearOf = (project) => project.date.slice(0, 4);
8
- /** What there is to filter by, in the services' own order, clients A to Z, and years newest first. */
9
- export function filterOptions(projects) {
10
- const used = new Set(projects.flatMap((project) => project.services));
11
- return {
12
- services: CARDS.map((card) => card.key).filter((key) => used.has(key)),
13
- clients: [...new Set(projects.map((project) => project.client))].sort((a, b) => a.localeCompare(b)),
14
- years: [...new Set(projects.map(yearOf))].sort().reverse(),
15
- };
16
- }
17
- /** The projects the visitor's filters keep, in the order they picked. */
18
- export function selectProjects(projects, choice, locale) {
19
- const kept = projects.filter((project) => (!choice.service || project.services.includes(choice.service)) &&
20
- (!choice.client || project.client === choice.client) &&
21
- (!choice.year || yearOf(project) === choice.year));
22
- const order = {
23
- newest: (a, b) => b.date.localeCompare(a.date),
24
- oldest: (a, b) => a.date.localeCompare(b.date),
25
- client: (a, b) => a.client.localeCompare(b.client, locale),
26
- name: (a, b) => a.name[locale].localeCompare(b.name[locale], locale),
27
- };
28
- return [...kept].sort(order[choice.sort]);
29
- }
30
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/portfolio/select-projects/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAI3E,8CAA8C;AAC9C,MAAM,KAAK,GAAiE,QAAQ,CAAC,KAAK,CAAC,OAAO,CAA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AC,IAAI,CAAC,CAAC,CAAC;AAC5C,CAAC"}
@@ -1,11 +0,0 @@
1
- import type { PORTFOLIO } from "@sharadox/sharadox-web-library/content/portfolio";
2
- export type Project = (typeof PORTFOLIO.projects)[number];
3
- export type SortKey = (typeof PORTFOLIO.sorts)[number]["key"];
4
- /** What the visitor picked: each filter empty for all. */
5
- export interface ProjectChoice {
6
- service: string;
7
- client: string;
8
- year: string;
9
- sort: SortKey;
10
- }
11
- //# sourceMappingURL=type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/portfolio/select-projects/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAElF,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1D,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;AAE9D,0DAA0D;AAC1D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/portfolio/select-projects/type.ts"],"names":[],"mappings":""}