@sharadox/sharadox-web-library 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/distribution/component/button/index.module.css +1 -1
- package/distribution/component/button/index.module.scss +2 -0
- package/distribution/component/capability/index.module.css +1 -1
- package/distribution/component/capability/index.module.scss +5 -0
- package/distribution/component/consent/index.module.css +1 -1
- package/distribution/component/consent/index.module.scss +2 -0
- package/distribution/component/contact/form/chip/index.module.css +1 -1
- package/distribution/component/contact/form/chip/index.module.scss +2 -0
- package/distribution/component/contact/form/index.d.ts +2 -1
- package/distribution/component/contact/form/index.d.ts.map +1 -1
- package/distribution/component/contact/form/index.js +3 -2
- package/distribution/component/contact/form/index.js.map +1 -1
- package/distribution/component/contact/form/index.module.css +1 -1
- package/distribution/component/contact/form/index.module.scss +30 -0
- package/distribution/component/contact/index.d.ts +1 -1
- package/distribution/component/contact/index.d.ts.map +1 -1
- package/distribution/component/contact/index.js +2 -2
- package/distribution/component/contact/index.js.map +1 -1
- package/distribution/component/contact/index.module.css +1 -1
- package/distribution/component/contact/index.module.scss +15 -5
- package/distribution/component/footer/index.d.ts +4 -3
- package/distribution/component/footer/index.d.ts.map +1 -1
- package/distribution/component/footer/index.js +5 -4
- package/distribution/component/footer/index.js.map +1 -1
- package/distribution/component/footer/index.module.css +1 -1
- package/distribution/component/footer/index.module.scss +54 -42
- package/distribution/component/hero/index.module.css +1 -1
- package/distribution/component/hero/index.module.scss +2 -0
- package/distribution/component/license/index.module.css +1 -1
- package/distribution/component/license/index.module.scss +7 -0
- package/distribution/component/navigation/index.module.css +1 -1
- package/distribution/component/navigation/index.module.scss +6 -0
- package/distribution/component/privacy-page/index.module.css +1 -1
- package/distribution/component/privacy-page/index.module.scss +7 -0
- package/distribution/component/process/index.module.css +1 -1
- package/distribution/component/process/index.module.scss +1 -0
- package/distribution/component/process/step/index.module.css +1 -1
- package/distribution/component/process/step/index.module.scss +1 -0
- package/distribution/component/section/index.module.css +1 -1
- package/distribution/component/section/index.module.scss +2 -0
- package/distribution/component/section-indicator/index.module.css +1 -1
- package/distribution/component/section-indicator/index.module.scss +2 -0
- package/distribution/component/service-card/index.module.css +1 -1
- package/distribution/component/service-card/index.module.scss +2 -0
- package/distribution/component/service-index/index.module.css +1 -1
- package/distribution/component/service-index/index.module.scss +3 -0
- package/distribution/component/service-object/android-application/index.module.css +1 -1
- package/distribution/component/service-object/android-application/index.module.scss +18 -17
- package/distribution/component/service-object/brand-awareness/index.module.css +1 -1
- package/distribution/component/service-object/brand-awareness/index.module.scss +7 -7
- package/distribution/component/service-object/branding/index.d.ts +3 -2
- package/distribution/component/service-object/branding/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding/index.js +4 -3
- package/distribution/component/service-object/branding/index.js.map +1 -1
- package/distribution/component/service-object/branding/index.module.css +1 -1
- package/distribution/component/service-object/branding/index.module.scss +136 -80
- package/distribution/component/service-object/branding-design/index.d.ts +2 -2
- package/distribution/component/service-object/branding-design/index.d.ts.map +1 -1
- package/distribution/component/service-object/branding-design/index.js +34 -11
- package/distribution/component/service-object/branding-design/index.js.map +1 -1
- package/distribution/component/service-object/branding-design/index.module.css +1 -1
- package/distribution/component/service-object/branding-design/index.module.scss +12 -12
- package/distribution/component/service-object/cuboid/index.module.css +1 -1
- package/distribution/component/service-object/cuboid/index.module.scss +3 -3
- package/distribution/component/service-object/e-commerce/index.module.css +1 -1
- package/distribution/component/service-object/e-commerce/index.module.scss +3 -7
- package/distribution/component/service-object/hosting/index.d.ts +1 -1
- package/distribution/component/service-object/hosting/index.d.ts.map +1 -1
- package/distribution/component/service-object/hosting/index.js +2 -2
- package/distribution/component/service-object/hosting/index.js.map +1 -1
- package/distribution/component/service-object/hosting/index.module.css +1 -1
- package/distribution/component/service-object/hosting/index.module.scss +5 -46
- package/distribution/component/service-object/ios-application/index.module.css +1 -1
- package/distribution/component/service-object/ios-application/index.module.scss +11 -10
- package/distribution/component/service-object/lead-generation/index.module.css +1 -1
- package/distribution/component/service-object/lead-generation/index.module.scss +5 -5
- package/distribution/component/service-object/mark/index.module.scss +2 -1
- package/distribution/component/service-object/merchandise/index.module.css +1 -1
- package/distribution/component/service-object/merchandise/index.module.scss +9 -9
- package/distribution/component/service-object/person/index.module.css +1 -1
- package/distribution/component/service-object/person/index.module.scss +2 -1
- package/distribution/component/service-object/platform/index.module.css +1 -1
- package/distribution/component/service-object/platform/index.module.scss +15 -14
- package/distribution/component/service-object/print-design/index.d.ts +1 -1
- package/distribution/component/service-object/print-design/index.js +1 -1
- package/distribution/component/service-object/print-design/index.module.css +1 -1
- package/distribution/component/service-object/print-design/index.module.scss +13 -9
- package/distribution/component/service-object/product-launch/index.d.ts +4 -4
- package/distribution/component/service-object/product-launch/index.d.ts.map +1 -1
- package/distribution/component/service-object/product-launch/index.js +33 -7
- package/distribution/component/service-object/product-launch/index.js.map +1 -1
- package/distribution/component/service-object/product-launch/index.module.css +1 -1
- package/distribution/component/service-object/product-launch/index.module.scss +184 -159
- package/distribution/component/service-object/professional-email/index.module.css +1 -1
- package/distribution/component/service-object/professional-email/index.module.scss +12 -11
- package/distribution/component/service-object/progressive-web-application/index.module.css +1 -1
- package/distribution/component/service-object/progressive-web-application/index.module.scss +10 -9
- package/distribution/component/service-object/rebranding/index.d.ts +3 -2
- package/distribution/component/service-object/rebranding/index.d.ts.map +1 -1
- package/distribution/component/service-object/rebranding/index.js +6 -3
- package/distribution/component/service-object/rebranding/index.js.map +1 -1
- package/distribution/component/service-object/rebranding/index.module.css +1 -1
- package/distribution/component/service-object/rebranding/index.module.scss +131 -82
- package/distribution/component/service-object/sales-generation/index.module.css +1 -1
- package/distribution/component/service-object/sales-generation/index.module.scss +5 -8
- package/distribution/component/service-object/social-media-strategy/index.module.css +1 -1
- package/distribution/component/service-object/social-media-strategy/index.module.scss +20 -13
- package/distribution/component/service-object/website/index.module.css +1 -1
- package/distribution/component/service-object/website/index.module.scss +12 -8
- package/distribution/component/services/index.module.css +1 -1
- package/distribution/component/services/index.module.scss +1 -0
- package/distribution/component/structured-data/index.js +1 -1
- package/distribution/component/structured-data/index.js.map +1 -1
- package/distribution/component/touchpoint/index.js +1 -1
- package/distribution/component/touchpoint/index.js.map +1 -1
- package/distribution/component/touchpoint/index.module.css +1 -1
- package/distribution/component/touchpoint/index.module.scss +1 -0
- package/distribution/component/touchpoint/plate/index.module.css +1 -1
- package/distribution/component/touchpoint/plate/index.module.scss +6 -0
- package/distribution/content/contact/index.d.ts +4 -4
- package/distribution/content/services/index.d.ts +14 -14
- package/distribution/content/services/index.js +9 -9
- package/distribution/content/services/index.js.map +1 -1
- package/distribution/content/site/index.js +4 -4
- package/distribution/content/site/index.js.map +1 -1
- package/distribution/style/object/index.scss +30 -4
- package/llms.txt +2 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
33
33
|
- `contact`, `services`, `site`, `globe`, and so on.
|
|
34
34
|
- **One source for shared copy:** text used in more than one place lives in its own content module and is imported, never retyped.
|
|
35
35
|
- **`component/`:** the page's branded parts:
|
|
36
|
-
- grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer
|
|
36
|
+
- grid frame, `Cross` marks, navigation (below 1100px its links open in a menu under the bar, in the bar's frosted background, scrolling when it doesn't fit, as on a phone held sideways) and footer (the brand with Start a Project, the services, the studio, the language and style; then a row of everything legal; then the copyright and Back to top)
|
|
37
37
|
- hero and its guides, service index, statement, and Services: four groups of cards (Web, Desktop & Mobile, Creative, Marketing), each card with its own animated 3D object (`service-object`, in CSS 3D, turning towards the pointer), a description and a button that starts that project; rows of three, with a row of two (or two rows of two) when the count needs it; then `ServiceUnlisted`, the invitation for ideas none of them name
|
|
38
|
-
- the 3D touchpoint stack, capabilities sheet, process, contact, section indicator, style switch
|
|
38
|
+
- the 3D touchpoint stack, capabilities sheet, process, contact (the invitation and the direct email over a wide form: the visitor's details, the message and Send on the left, the choices on the right), section indicator, style switch
|
|
39
39
|
- `Consent`, the Sharadox cookie panel (reopened by the footer's Cookie Preferences), and the footer's legal parts: Portugal's complaints book and the Algarve's consumer dispute notice (CIMAAL)
|
|
40
40
|
- the Sharadox wrapper around the shared globe, structured data, share image, `llmsText()` for `/llms.txt`
|
|
41
41
|
- `PrivacyPage`: the privacy policy's body (`content/privacy`, written by `@sharadox/privacy-web-library`), at `/<locale>/privacy`, linked from the footer
|
|
@@ -46,6 +46,8 @@ Everything generic comes from the open-source Sharadox libraries, configured her
|
|
|
46
46
|
- **`action/send-contact`:** `sendContact(form, ip)`, the shared contact action set up for Sharadox ("Contact · Name (Company)" subjects, sent to contact@sharadox.com as "Sharadox Web Application"), with the form's rules, 5 messages an hour per address and 50 emails a day from everyone together, so a flood can't run up the email bill.
|
|
47
47
|
- **`utility/`:** `separate()` (the Sharadox separator), `contactProblems()` (what the contact form still lacks), `requestContactNeeds()` and the share card's horizon dots.
|
|
48
48
|
- **`style/token`:** Sass helpers (`tint()`, `shade()`, `dashed()`, `on-scroll()`, `below()`, `skip-entrance()`) used by every component's styles. `skip-entrance` marks a time-based entrance animation so it shows its final state at once after a language switch.
|
|
49
|
+
- **`style/object`:** the 3D objects' helpers (`centered()`, `face()`, `loop()`) and their one palette, so every object reads alike in every style: opaque surfaces (`surface()`, `$surface`, `$raised`) with one hairline `$edge`, and details by role (`$hint`, `$faint`, `$detail`, `$strong`, `$glow`); the point of the moment is the full foreground color.
|
|
50
|
+
- **Centered by default:** sharadox-web-application's global styles start every box centered (text, free space on both axes, items across the line). Components state any other alignment (left text, items starting on the left, stretched columns), so they look the same whether or not the default is there.
|
|
49
51
|
- **Language switch:** the page is rebuilt in place without replaying entrances (hero, 404, guides, service row and visuals), the globe keeps turning from where it was, and changed text animates (the application adds `LocaleTransitionStyle` in `<head>`).
|
|
50
52
|
|
|
51
53
|
## Use in the application
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:46px;padding:0 22px;border-radius:99px;font-weight:500;font-size:15px;border:1px solid rgba(0,0,0,0);transition:background .3s,color .3s,border-color .3s,box-shadow .3s,transform .4s var(--ease);white-space:nowrap}.button:active{transform:scale(0.98)}.button:disabled{opacity:.6}.button:hover .arrow{transform:translateX(4px)}.solid{background:var(--foreground);color:var(--background);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}.solid:hover{background:color-mix(in srgb, var(--foreground) 88%, transparent);box-shadow:0 0 0 5px color-mix(in srgb, var(--foreground) 10%, transparent)}.ghost{border-color:var(--line-2);color:var(--foreground);background:color-mix(in srgb, var(--background) 40%, transparent)}.ghost:hover{background:color-mix(in srgb, var(--foreground) 6%, transparent);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.small{height:36px;padding:0 16px;font-size:14px}.block{width:100%;height:52px}.arrow{flex:none;font-size:1.1em;transition:transform .4s var(--ease)}
|
|
1
|
+
.button{text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:46px;padding:0 22px;border-radius:99px;font-weight:500;font-size:15px;border:1px solid rgba(0,0,0,0);transition:background .3s,color .3s,border-color .3s,box-shadow .3s,transform .4s var(--ease);white-space:nowrap}.button:active{transform:scale(0.98)}.button:disabled{opacity:.6}.button:hover .arrow{transform:translateX(4px)}.solid{background:var(--foreground);color:var(--background);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}.solid:hover{background:color-mix(in srgb, var(--foreground) 88%, transparent);box-shadow:0 0 0 5px color-mix(in srgb, var(--foreground) 10%, transparent)}.ghost{border-color:var(--line-2);color:var(--foreground);background:color-mix(in srgb, var(--background) 40%, transparent)}.ghost:hover{background:color-mix(in srgb, var(--foreground) 6%, transparent);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.small{height:36px;padding:0 16px;font-size:14px}.block{width:100%;height:52px}.arrow{flex:none;font-size:1.1em;transition:transform .4s var(--ease)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.heading{padding:clamp(72px,10vw,128px) var(--padding) 0}.sheet{display:grid;grid-template-columns:repeat(4, 1fr);grid-auto-rows:auto;border-top:1px solid var(--line)}@media(max-width: 960px){.sheet{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 600px){.sheet{grid-template-columns:1fr}}.column{position:relative;display:grid;grid-row:span var(--rows);grid-template-rows:subgrid}@media(max-width: 600px){.column{grid-row:auto;grid-template-rows:none}}.column:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.column ul{display:contents}.column li{position:relative;display:flex;align-items:center;padding:13px 20px;font-size:14.5px;color:var(--foreground-2);transition:color .25s}.column li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0/8px 1px repeat-x}.column li:hover{color:var(--foreground)}@media(max-width: 960px){.column{border-bottom:1px solid var(--line)}.column:nth-child(2n)::after{display:none}}@media(max-width: 600px){.column::after{display:none}}.title{display:grid;gap:6px;padding:22px 20px 18px;font-weight:600;letter-spacing:-0.02em;border-bottom:1px solid var(--line)}.title span{font-size:11.5px;font-weight:400;color:var(--foreground-3)}
|
|
1
|
+
.heading{align-content:normal;padding:clamp(72px,10vw,128px) var(--padding) 0}.sheet{display:grid;grid-template-columns:repeat(4, 1fr);grid-auto-rows:auto;border-top:1px solid var(--line)}@media(max-width: 960px){.sheet{grid-template-columns:repeat(2, 1fr)}}@media(max-width: 600px){.sheet{grid-template-columns:1fr}}.column{align-items:stretch;justify-content:stretch;position:relative;display:grid;grid-row:span var(--rows);grid-template-rows:subgrid}@media(max-width: 600px){.column{grid-row:auto;grid-template-rows:none}}.column:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.column ul{display:contents}.column li{justify-content:flex-start;position:relative;display:flex;align-items:center;padding:13px 20px;font-size:14.5px;color:var(--foreground-2);transition:color .25s}.column li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg, var(--line) 50%, transparent 0) 0 0/8px 1px repeat-x}.column li:hover{color:var(--foreground)}@media(max-width: 960px){.column{border-bottom:1px solid var(--line)}.column:nth-child(2n)::after{display:none}}@media(max-width: 600px){.column::after{display:none}}.title{justify-content:stretch;display:grid;gap:6px;padding:22px 20px 18px;font-weight:600;letter-spacing:-0.02em;border-bottom:1px solid var(--line)}.title span{font-size:11.5px;font-weight:400;color:var(--foreground-3)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
|
|
3
3
|
.heading {
|
|
4
|
+
align-content: normal;
|
|
4
5
|
padding: clamp(72px, 10vw, 128px) var(--padding) 0;
|
|
5
6
|
}
|
|
6
7
|
.sheet {
|
|
@@ -17,6 +18,8 @@
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
.column {
|
|
21
|
+
align-items: stretch;
|
|
22
|
+
justify-content: stretch;
|
|
20
23
|
position: relative;
|
|
21
24
|
display: grid;
|
|
22
25
|
grid-row: span var(--rows);
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
display: contents;
|
|
39
42
|
}
|
|
40
43
|
li {
|
|
44
|
+
justify-content: flex-start;
|
|
41
45
|
position: relative;
|
|
42
46
|
display: flex;
|
|
43
47
|
align-items: center;
|
|
@@ -71,6 +75,7 @@
|
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
.title {
|
|
78
|
+
justify-content: stretch;
|
|
74
79
|
display: grid;
|
|
75
80
|
gap: 6px;
|
|
76
81
|
padding: 22px 20px 18px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.consent{
|
|
1
|
+
.consent{text-align:left;--consent-background: var(--background);--consent-foreground: var(--foreground);--consent-muted: var(--foreground-2);--consent-line: var(--line-2);--consent-radius: 4px;--consent-font: var(--sans-serif);left:16px}.cookie{position:relative;width:18px;height:18px;border-radius:50%;border:1.4px solid var(--foreground);animation:spin 8s linear infinite}.cookie i{position:absolute;width:3px;height:3px;border-radius:50%;background:var(--foreground)}.cookie i:nth-child(1){left:4px;top:4px}.cookie i:nth-child(2){right:3px;top:8px}.cookie i:nth-child(3){left:7px;bottom:3px}@keyframes spin{to{transform:rotate(360deg)}}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/* The shared panel, in the Sharadox style: its colors, the grid's sharp corners, bottom-left of the screen. */
|
|
4
4
|
.consent {
|
|
5
|
+
/* Its text reads from the left (the page default is centered). */
|
|
6
|
+
text-align: left;
|
|
5
7
|
--consent-background: var(--background);
|
|
6
8
|
--consent-foreground: var(--foreground);
|
|
7
9
|
--consent-muted: var(--foreground-2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.chip[data-requested] span{animation:requested 1.4s .5s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes requested{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 55%, transparent)}100%{box-shadow:0 0 0 14px color-mix(in srgb, var(--foreground) 0%, transparent)}}
|
|
1
|
+
.chip{position:relative}.chip input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.chip span{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:7px;padding:8px 13px;border-radius:99px;border:1px solid var(--line-2);font-size:13.5px;color:var(--foreground-2);transition:color .2s,background .2s,border-color .2s}.chip span::before{content:"+";font-family:var(--monospace);transition:transform .3s cubic-bezier(0.22, 1, 0.36, 1)}.chip:hover span{color:var(--foreground);border-color:color-mix(in srgb, var(--foreground) 30%, transparent)}.chip input:checked+span{background:var(--foreground);border-color:var(--foreground);color:var(--background)}.chip input:checked+span::before{transform:rotate(45deg)}.chip input:focus-visible+span{outline:2px solid var(--foreground);outline-offset:2px}.chip[data-requested] span{animation:requested 1.4s .5s cubic-bezier(0.22, 1, 0.36, 1) both}@keyframes requested{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 55%, transparent)}100%{box-shadow:0 0 0 14px color-mix(in srgb, var(--foreground) 0%, transparent)}}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ContactFormProperties } from "@sharadox/sharadox-web-library/component/contact/form/type";
|
|
2
2
|
/**
|
|
3
3
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
4
|
-
* a message.
|
|
4
|
+
* a message. On wide screens, the visitor's details, the message and the send button on the left, the choices on the
|
|
5
|
+
* right. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
|
|
5
6
|
* missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
|
|
6
7
|
*/
|
|
7
8
|
export declare function ContactForm({ locale, action: sendAction }: ContactFormProperties): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAExG;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAgLhF"}
|
|
@@ -13,7 +13,8 @@ import { contactProblems } from "@sharadox/sharadox-web-library/utility/contact-
|
|
|
13
13
|
import styles from "./index.module.css";
|
|
14
14
|
/**
|
|
15
15
|
* The enquiry form: name, company, email and phone (one of them is enough), the choices grouped like the services, and
|
|
16
|
-
* a message.
|
|
16
|
+
* a message. On wide screens, the visitor's details, the message and the send button on the left, the choices on the
|
|
17
|
+
* right. It checks itself before sending (`contactProblems`, the same rules as the server) and shows what's
|
|
17
18
|
* missing under each field; honeypot and fill-time spam checks, server errors, and an animated thank-you.
|
|
18
19
|
*/
|
|
19
20
|
export function ContactForm({ locale, action: sendAction }) {
|
|
@@ -75,6 +76,6 @@ export function ContactForm({ locale, action: sendAction }) {
|
|
|
75
76
|
}, onChange: (event) => {
|
|
76
77
|
if (problems)
|
|
77
78
|
setProblems(contactProblems(new FormData(event.currentTarget)));
|
|
78
|
-
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: styles.field
|
|
79
|
+
}, className: styles.form, exit: { opacity: 0, scale: 0.98 }, children: [_jsx("input", { type: "hidden", name: "started-at", defaultValue: "0" }), _jsx("input", { type: "hidden", name: "locale", value: locale }), _jsx("div", { className: styles.honeypot, "aria-hidden": true, children: _jsxs("label", { children: ["Website", _jsx("input", { name: "website", tabIndex: -1, autoComplete: "off" })] }) }), _jsxs("div", { className: styles.about, children: [_jsxs("div", { className: styles.row, children: [_jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.name, locale) }), _jsx("input", { name: "name", required: true, autoComplete: "name", maxLength: 120, ...described("name") }), problem("name")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.company, locale) }), _jsx("input", { name: "company", autoComplete: "organization", maxLength: 160 })] })] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.email, locale) }), _jsx("input", { name: "email", type: "email", autoComplete: "email", maxLength: 200, ...described("reach", "email") }), problem("email")] }), _jsxs("label", { className: styles.field, children: [_jsx("span", { children: translate(CONTACT.phone, locale) }), _jsx("input", { name: "phone", type: "tel", autoComplete: "tel", maxLength: 40, ...described("reach", "phone") }), problem("phone")] }), has("reach") ? problem("reach") : _jsx("span", { className: styles.hint, children: translate(CONTACT.reach, locale) })] }), _jsxs("fieldset", { ref: needs, className: styles.services, "data-invalid": has("needs") || undefined, "aria-describedby": has("needs") ? "contact-needs-problem" : undefined, children: [_jsx("legend", { children: translate(CONTACT.needs.label, locale) }), CONTACT.needs.groups.map((group) => (_jsxs("div", { className: styles.group, role: "group", "aria-label": translate(group.title, locale), children: [_jsx("span", { className: "monospace", children: translate(group.title, locale) }), group.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }, group.key))), _jsxs("div", { className: styles.group, role: "group", "aria-label": translate(CONTACT.needs.unsure.title, locale), children: [_jsx("span", { className: "monospace", children: translate(CONTACT.needs.unsure.title, locale) }), CONTACT.needs.unsure.options.map((need) => (_jsx(Chip, { need: need.key, label: need[locale] }, need.key)))] }), problem("needs")] }), _jsxs("label", { className: `${styles.field} ${styles.message}`, children: [_jsx("span", { children: translate(CONTACT.message, locale) }), _jsx("textarea", { name: "message", required: true, rows: 5, minLength: CONTACT.minimumMessageLength, maxLength: 5000, ...described("message") }), problem("message")] }), _jsxs("div", { className: styles.submit, children: [state.status !== "idle" && (_jsx("p", { className: styles.error, role: "alert", children: state.status === "failed" ? (_jsxs(_Fragment, { children: [translate(CONTACT.errors.failed, locale), " ", _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email }), "."] })) : (translate(CONTACT.errors[state.status], locale)) })), _jsx(Button, { size: "block", disabled: pending, arrow: !pending, children: pending ? translate(CONTACT.sending, locale) : translate(CONTACT.send, locale) })] })] }, "form")) }));
|
|
79
80
|
}
|
|
80
81
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,4DAA4D,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAEzF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../source/component/contact/form/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,E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M,CAAC,OAAO,EAAE,aACnD,yBAAO,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,GAAQ,EACjD,mBACE,IAAI,EAAC,SAAS,EACd,QAAQ,QACR,IAAI,EAAE,CAAC,EACP,SAAS,EAAE,OAAO,CAAC,oBAAoB,EACvC,SAAS,EAAE,IAAI,KACX,SAAS,CAAC,SAAS,CAAC,GACxB,EACD,OAAO,CAAC,SAAS,CAAC,IACb,EACR,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC1B,KAAK,CAAC,MAAM,KAAK,MAAM,IAAI,CAC1B,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAC,OAAO,YACrC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC3B,8BACG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,SAC3F,CACJ,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAChD,GACC,CACL,EACD,KAAC,MAAM,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,OAAO,YACpD,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,GACxE,IACL,KAzGF,MAAM,CA0GE,CACf,GACe,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form{
|
|
1
|
+
.form{justify-content:stretch;align-items:stretch;--pointer-x: -500px;--pointer-y: -500px;position:relative;display:grid;gap:14px;padding:clamp(22px,3vw,34px);border-radius:18px;background:var(--card);border:1px solid var(--line);isolation:isolate}.form::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--foreground) 5%, transparent), transparent 60%)}@media(min-width: 1000px){.form:not(.done){grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr auto;gap:18px clamp(32px,4vw,56px)}.services{align-content:start;grid-column:2;grid-row:1/-1}.message{grid-template-rows:auto 1fr}.message textarea{height:100%;min-height:140px}}.about,.submit{justify-content:stretch;display:grid;gap:14px}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width: 860px){.row{grid-template-columns:1fr}}.field{justify-content:stretch;display:grid;align-content:start;gap:7px}.field span{font-size:13px;color:var(--foreground-2)}.field input,.field textarea{width:100%;font:inherit;font-size:15px;color:var(--foreground);background:var(--background);border:1px solid var(--line-2);border-radius:12px;padding:13px 14px;transition:border-color .25s,box-shadow .25s;resize:vertical}.field input:focus,.field textarea:focus{outline:none;border-color:color-mix(in srgb, var(--foreground) 50%, transparent);box-shadow:0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent)}.services{display:grid;gap:12px;margin:4px 0 2px;padding:0;border:0}.services legend{float:left;padding:0;width:100%;margin-bottom:9px;font-size:13px;color:var(--foreground-2)}.honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.error{font-size:14px;color:var(--error)}.error a{text-decoration:underline}.done{min-height:380px;place-items:center;text-align:center;align-content:center;gap:18px}.done p{max-width:30ch;color:var(--foreground-2)}.check{width:56px;height:56px;fill:none;stroke:var(--foreground);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.check path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .8s .2s var(--ease) forwards}@keyframes draw{to{stroke-dashoffset:0}}.group{justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.group>span{flex-basis:100%;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.problem{font-size:13px;color:var(--error) !important}.hint{margin-top:-6px;font-size:13px;color:var(--foreground-3)}.field input[aria-invalid],.field textarea[aria-invalid]{border-color:var(--error)}.services[data-invalid] .group label>span{border-color:color-mix(in srgb, var(--error) 55%, transparent)}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
|
|
3
3
|
.form {
|
|
4
|
+
justify-content: stretch;
|
|
5
|
+
align-items: stretch;
|
|
4
6
|
--pointer-x: -500px;
|
|
5
7
|
--pointer-y: -500px;
|
|
6
8
|
position: relative;
|
|
@@ -20,6 +22,32 @@
|
|
|
20
22
|
background: radial-gradient(500px circle at var(--pointer-x) var(--pointer-y), tint(5%), transparent 60%);
|
|
21
23
|
}
|
|
22
24
|
}
|
|
25
|
+
/* Wide screens: the visitor's details, the message and the send button on the left, the choices on the right. */
|
|
26
|
+
@media (min-width: 1000px) {
|
|
27
|
+
.form:not(.done) {
|
|
28
|
+
grid-template-columns: 1fr 1fr;
|
|
29
|
+
grid-template-rows: auto 1fr auto;
|
|
30
|
+
gap: 18px clamp(32px, 4vw, 56px);
|
|
31
|
+
}
|
|
32
|
+
.services {
|
|
33
|
+
align-content: start;
|
|
34
|
+
grid-column: 2;
|
|
35
|
+
grid-row: 1 / -1;
|
|
36
|
+
}
|
|
37
|
+
.message {
|
|
38
|
+
grid-template-rows: auto 1fr;
|
|
39
|
+
textarea {
|
|
40
|
+
height: 100%;
|
|
41
|
+
min-height: 140px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.about,
|
|
46
|
+
.submit {
|
|
47
|
+
justify-content: stretch;
|
|
48
|
+
display: grid;
|
|
49
|
+
gap: 14px;
|
|
50
|
+
}
|
|
23
51
|
.row {
|
|
24
52
|
display: grid;
|
|
25
53
|
grid-template-columns: 1fr 1fr;
|
|
@@ -29,6 +57,7 @@
|
|
|
29
57
|
}
|
|
30
58
|
}
|
|
31
59
|
.field {
|
|
60
|
+
justify-content: stretch;
|
|
32
61
|
display: grid;
|
|
33
62
|
align-content: start;
|
|
34
63
|
gap: 7px;
|
|
@@ -119,6 +148,7 @@
|
|
|
119
148
|
}
|
|
120
149
|
/* A row of choices for one service group, its name in front. */
|
|
121
150
|
.group {
|
|
151
|
+
justify-content: flex-start;
|
|
122
152
|
display: flex;
|
|
123
153
|
flex-wrap: wrap;
|
|
124
154
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ContactProperties } from "@sharadox/sharadox-web-library/component/contact/type";
|
|
2
|
-
/** Contact section: invitation and direct email on the
|
|
2
|
+
/** Contact section: the invitation on the left and the direct email on the right, the form across both under them. */
|
|
3
3
|
export declare function Contact({ locale, action }: ContactProperties): import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAE/F,sHAAsH;AACtH,wBAAgB,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAkB5D"}
|
|
@@ -8,8 +8,8 @@ import { translate } from "@sharadox/internationalization-web-library/translate"
|
|
|
8
8
|
import { ContactForm } from "@sharadox/sharadox-web-library/component/contact/form";
|
|
9
9
|
import { SECTION } from "@sharadox/sharadox-web-library/content/section";
|
|
10
10
|
import styles from "./index.module.css";
|
|
11
|
-
/** Contact section: invitation and direct email on the
|
|
11
|
+
/** Contact section: the invitation on the left and the direct email on the right, the form across both under them. */
|
|
12
12
|
export function Contact({ locale, action }) {
|
|
13
|
-
return (_jsxs(Section, { id: SECTION.contact.id, className: styles.contact, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs(Reveal, { className: styles.heading, children: [_jsx(Eyebrow, { children: translate(SECTION.contact, locale) }), _jsx("h2", { children: translate(CONTACT.title, locale) }), _jsx("p", { className: styles.text, children: translate(CONTACT.text, locale) }), _jsxs(
|
|
13
|
+
return (_jsxs(Section, { id: SECTION.contact.id, className: styles.contact, children: [_jsx("div", { className: styles.glow, "aria-hidden": true }), _jsxs(Reveal, { className: styles.heading, children: [_jsx(Eyebrow, { children: translate(SECTION.contact, locale) }), _jsx("h2", { children: translate(CONTACT.title, locale) }), _jsx("p", { className: styles.text, children: translate(CONTACT.text, locale) })] }), _jsxs(Reveal, { delay: 0.05, className: styles.direct, children: [_jsx("span", { className: "monospace", children: translate(CONTACT.direct, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, children: SITE.email })] }), _jsx(Reveal, { delay: 0.1, className: styles.form, children: _jsx(ContactForm, { locale: locale, action: action }) })] }));
|
|
14
14
|
}
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/contact/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,kDAAkD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,6CAA6C,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAGzC,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M,CAAC,GAAQ,EACtE,YAAG,IAAI,EAAE,UAAU,IAAI,CAAC,KAAK,EAAE,YAAG,IAAI,CAAC,KAAK,GAAK,IAC1C,EACT,KAAC,MAAM,IAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,YACxC,KAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAI,GACxC,IACD,CACX,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.contact{display:grid;grid-template-columns:1fr
|
|
1
|
+
.contact{display:grid;grid-template-columns:1fr auto;gap:clamp(32px,4vw,56px) clamp(32px,6vw,96px);align-items:end}@media(max-width: 860px){.contact{grid-template-columns:1fr}}.form{grid-column:1/-1}.glow{position:absolute;left:50%;top:40%;width:80vw;max-width:1000px;aspect-ratio:2;transform:translate(-50%, -50%);background:radial-gradient(closest-side, color-mix(in srgb, var(--foreground) 7%, transparent), transparent);pointer-events:none;z-index:-1}.heading h2{margin:16px 0 22px}.text{color:var(--foreground-2);font-size:1.1rem;max-width:34ch}.direct{justify-content:stretch;display:grid;justify-items:end;gap:6px;text-align:right}@media(max-width: 860px){.direct{justify-items:start;text-align:left}}.direct :global(.monospace){font-size:12px;color:var(--foreground-3);text-transform:uppercase;letter-spacing:.04em}.direct a{font-size:clamp(1.3rem,2.4vw,1.8rem);letter-spacing:-0.03em;width:fit-content;background:linear-gradient(var(--foreground), var(--foreground)) left bottom/0 1px no-repeat;transition:background-size .5s var(--ease)}.direct a:hover{background-size:100% 1px}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
@use "style/token" as *;
|
|
2
2
|
|
|
3
|
+
/* The heading and the direct email side by side, bottoms level; the form across the whole width under them. */
|
|
3
4
|
.contact {
|
|
4
5
|
display: grid;
|
|
5
|
-
grid-template-columns: 1fr
|
|
6
|
-
gap: clamp(
|
|
7
|
-
align-items:
|
|
6
|
+
grid-template-columns: 1fr auto;
|
|
7
|
+
gap: clamp(32px, 4vw, 56px) clamp(32px, 6vw, 96px);
|
|
8
|
+
align-items: end;
|
|
8
9
|
@include below(860px) {
|
|
9
10
|
grid-template-columns: 1fr;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
13
|
+
.form {
|
|
14
|
+
grid-column: 1 / -1;
|
|
15
|
+
}
|
|
12
16
|
.glow {
|
|
13
17
|
position: absolute;
|
|
14
18
|
left: 50%;
|
|
@@ -27,12 +31,18 @@
|
|
|
27
31
|
.text {
|
|
28
32
|
color: var(--foreground-2);
|
|
29
33
|
font-size: 1.1rem;
|
|
30
|
-
max-width:
|
|
34
|
+
max-width: 34ch;
|
|
31
35
|
}
|
|
32
36
|
.direct {
|
|
33
|
-
|
|
37
|
+
justify-content: stretch;
|
|
34
38
|
display: grid;
|
|
39
|
+
justify-items: end;
|
|
35
40
|
gap: 6px;
|
|
41
|
+
text-align: right;
|
|
42
|
+
@include below(860px) {
|
|
43
|
+
justify-items: start;
|
|
44
|
+
text-align: left;
|
|
45
|
+
}
|
|
36
46
|
:global(.monospace) {
|
|
37
47
|
font-size: 12px;
|
|
38
48
|
color: var(--foreground-3);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { FooterProperties } from "@sharadox/sharadox-web-library/component/footer/type";
|
|
2
2
|
/**
|
|
3
|
-
* The footer, in the grid frame
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The footer, in the grid frame. Four columns: the brand (slogan, email and Start a Project), the services, the
|
|
4
|
+
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the links:
|
|
5
|
+
* license, privacy, cookie preferences, Portugal's complaints book; the consumer dispute notice), and at the very
|
|
6
|
+
* bottom the copyright and the way back up.
|
|
6
7
|
*/
|
|
7
8
|
export declare function Footer({ locale, path }: FooterProperties): import("react").JSX.Element;
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AAE7F;;;;;GAKG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,IAAS,EAAE,EAAE,gBAAgB,+BA4E7D"}
|
|
@@ -28,13 +28,14 @@ import { FOUNDED, SITE } from "@sharadox/sharadox-web-library/content/site";
|
|
|
28
28
|
import { LOCALES } from "@sharadox/sharadox-web-library/content/locale";
|
|
29
29
|
import styles from "./index.module.css";
|
|
30
30
|
/**
|
|
31
|
-
* The footer, in the grid frame
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* The footer, in the grid frame. Four columns: the brand (slogan, email and Start a Project), the services, the
|
|
32
|
+
* studio's sections, and the language and style. Under them, everything legal in a row of its own (the links:
|
|
33
|
+
* license, privacy, cookie preferences, Portugal's complaints book; the consumer dispute notice), and at the very
|
|
34
|
+
* bottom the copyright and the way back up.
|
|
34
35
|
*/
|
|
35
36
|
export function Footer({ locale, path = "" }) {
|
|
36
37
|
const home = path ? `/${locale}` : "";
|
|
37
38
|
const studio = [SECTION.touchpoints, SECTION.capabilities, SECTION.process, SECTION.contact];
|
|
38
|
-
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [
|
|
39
|
+
return (_jsxs("footer", { className: styles.footer, children: [_jsx(Cross, { corner: "top-left" }), _jsx(Cross, { corner: "top-right" }), _jsxs("div", { className: styles.columns, children: [_jsxs("div", { className: styles.brand, children: [_jsx(Wordmark, { href: `/${locale}` }), _jsx("p", { className: styles.slogan, children: translate(SLOGAN, locale) }), _jsx("a", { href: `mailto:${SITE.email}`, className: styles.email, children: SITE.email }), _jsx(Button, { href: `${home}#${SECTION.contact.id}`, size: "small", arrow: true, className: styles.start, children: translate(ACTION.startProject, locale) })] }), _jsxs("nav", { "aria-label": translate(SECTION.services, locale), children: [_jsx("h2", { className: "monospace", children: translate(SECTION.services, locale) }), SERVICES.items.map((service) => (_jsx(SectionLink, { href: `${home}#${service.key}`, children: translate(service.title, locale) }, service.key)))] }), _jsxs("nav", { "aria-label": translate(FOOTER.studio, locale), children: [_jsx("h2", { className: "monospace", children: translate(FOOTER.studio, locale) }), studio.map((section) => (_jsx(SectionLink, { href: `${home}#${section.id}`, children: translate(section, locale) }, section.id)))] }), _jsxs("div", { className: styles.settings, children: [_jsx("h2", { className: "monospace", children: translate(LANGUAGE.label, locale) }), _jsx("span", { className: styles.languages, children: LOCALES.locales.map((other) => (_jsx(LocaleLink, { locale: other, href: `/${other}${path}`, current: other === locale, children: LANGUAGE.names[other] }, other))) }), _jsx("h2", { className: "monospace", children: translate(STYLE.label, locale) }), _jsx(StyleSwitch, { locale: locale, className: styles.style })] })] }), _jsxs("div", { className: styles.legal, children: [_jsxs("nav", { "aria-label": translate(FOOTER.legal, locale), className: styles.links, children: [_jsx(Link, { href: `/${locale}${LICENSE.path}`, "aria-current": path === LICENSE.path ? "page" : undefined, children: translate(LICENSE.title, locale) }), _jsx(Link, { href: `/${locale}${PRIVACY_PAGE.path}`, "aria-current": path === PRIVACY_PAGE.path ? "page" : undefined, children: translate(PRIVACY_PAGE.title, locale) }), _jsx(PreferencesLink, { label: translate(CONSENT.preferences, locale) }), _jsx(ComplaintsBookLink, { locale: locale })] }), _jsx("p", { className: styles.disputes, children: _jsx(DisputeNotice, { center: DISPUTE_RESOLUTION_CENTERS.algarve, locale: locale }) })] }), _jsxs("div", { className: styles.bottom, children: [_jsxs("p", { className: `monospace ${styles.copyright}`, children: ["\u00A9 ", _jsx(CopyrightYears, { since: FOUNDED }), " ", separate("Sharadox", translate(FOOTER.rights, locale))] }), _jsxs(SectionLink, { href: "#top", className: styles.top, children: [translate(FOOTER.top, locale), _jsx("span", { className: styles.circle, "aria-hidden": true, children: _jsx(Icon, { name: "chevron-up", strokeWidth: 1.8 }) })] })] })] }));
|
|
39
40
|
}
|
|
40
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/component/footer/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,gDAAgD,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EA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IAAI,EAAE,kBAAgB,IAAI,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,YACxG,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,GACjC,EACP,KAAC,eAAe,IAAC,KAAK,EAAE,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,GAAI,EAClE,KAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,GAAI,IAClC,EACN,YAAG,SAAS,EAAE,MAAM,CAAC,QAAQ,YAC3B,KAAC,aAAa,IAAC,MAAM,EAAE,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,GAC3E,IACA,EACN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,aAAG,SAAS,EAAE,aAAa,MAAM,CAAC,SAAS,EAAE,wBACzC,KAAC,cAAc,IAAC,KAAK,EAAE,OAAO,GAAI,OAAE,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IAC1F,EACJ,MAAC,WAAW,IAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAE,MAAM,CAAC,GAAG,aAC3C,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,EAC9B,eAAM,SAAS,EAAE,MAAM,CAAC,MAAM,iCAC5B,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,WAAW,EAAE,GAAG,GAAI,GACvC,IACK,IACV,IACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.footer{position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns
|
|
1
|
+
.footer{text-align:left;position:relative;width:min(100% - 2*var(--gutter),var(--maximum-width));margin:0 auto;border:1px solid var(--line);border-bottom:0}.columns{align-items:stretch;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;border-bottom:1px solid var(--line)}.columns>*{justify-content:stretch;position:relative;display:grid;align-content:start;gap:10px;padding:36px var(--padding) 40px;font-size:14px;color:var(--foreground-2)}.columns>*:not(:last-child)::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}.columns h2{margin-bottom:6px;font-size:11.5px;font-weight:400;letter-spacing:.05em;text-transform:uppercase;color:var(--foreground-3)}.columns a{width:fit-content}.columns a:not(.start){transition:color .2s}.columns a:not(.start):hover{color:var(--foreground)}@media(max-width: 900px){.columns{grid-template-columns:1fr 1fr}.columns>.brand,.columns>.settings{grid-column:1/-1}.columns>.brand::after,.columns>.settings::after{display:none}.columns>:nth-child(3)::after{display:none}.columns>*:not(:last-child){border-bottom:1px dashed var(--line-2)}}.legal{align-items:stretch;display:grid;grid-template-columns:1.6fr 3fr;border-bottom:1px solid var(--line);font-size:13px}.legal>*{padding:28px var(--padding)}.legal>:first-child{position:relative}.legal>:first-child::after{content:"";position:absolute;top:0;bottom:0;right:0;width:1px;background:linear-gradient(180deg, var(--line-2) 50%, transparent 0) 0 0/1px 8px repeat-y}@media(max-width: 900px){.legal{grid-template-columns:1fr}.legal>:first-child{padding-bottom:0}.legal>:first-child::after{display:none}}.bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px var(--padding);border-bottom:1px solid var(--line)}.slogan{color:var(--foreground);font-size:1.05rem;font-weight:500;letter-spacing:-0.03em;max-width:24ch}.email{color:var(--foreground-2)}.languages{display:grid;gap:10px}.languages a[aria-current]{color:var(--foreground)}.style{width:fit-content}.settings{justify-items:start}.settings h2:not(:first-child){margin-top:18px}.start{margin-top:12px}.copyright{font-size:12px;color:var(--foreground-3)}.links{align-content:flex-start;justify-content:flex-start;display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}.links a,.links [data-preferences-link]{padding:0;border:0;background:none;font:inherit;color:var(--foreground-2);text-align:left;transition:color .2s}.links a:hover,.links [data-preferences-link]:hover,.links a[aria-current]{color:var(--foreground)}@media(max-width: 640px){.links{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}}.disputes{max-width:72ch;font-size:12px;line-height:1.6;color:var(--foreground-3);text-wrap:pretty}.disputes a{color:var(--foreground-2);transition:color .2s}.disputes a:hover{color:var(--foreground)}.top{font-size:14px;display:inline-flex;align-items:center;width:fit-content;gap:10px;color:var(--foreground-2);transition:color .2s}.top:hover{color:var(--foreground)}.top:hover .circle{border-color:var(--foreground);transform:translateY(-2px)}.circle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;transition:border-color .3s,transform .4s cubic-bezier(0.22, 1, 0.36, 1)}
|