@sharadox/sharadox-web-library 0.37.0 → 0.38.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 +1 -1
- package/distribution/component/about/brand-parts/index.d.ts +7 -0
- package/distribution/component/about/brand-parts/index.d.ts.map +1 -0
- package/distribution/component/about/brand-parts/index.js +12 -0
- package/distribution/component/about/brand-parts/index.js.map +1 -0
- package/distribution/component/about/brand-parts/index.module.css +1 -0
- package/distribution/component/about/brand-parts/index.module.scss +225 -0
- package/distribution/component/about/{feed → brand-parts}/type.d.ts +1 -1
- package/distribution/component/about/brand-parts/type.d.ts.map +1 -0
- package/distribution/component/about/brand-parts/type.js.map +1 -0
- package/distribution/component/about/index.d.ts +3 -4
- package/distribution/component/about/index.d.ts.map +1 -1
- package/distribution/component/about/index.js +10 -7
- package/distribution/component/about/index.js.map +1 -1
- package/distribution/component/about/index.module.css +1 -1
- package/distribution/component/about/index.module.scss +42 -130
- package/distribution/component/about/platform-flow/index.d.ts +8 -0
- package/distribution/component/about/platform-flow/index.d.ts.map +1 -0
- package/distribution/component/about/platform-flow/index.js +17 -0
- package/distribution/component/about/platform-flow/index.js.map +1 -0
- package/distribution/component/about/platform-flow/index.module.css +1 -0
- package/distribution/component/about/platform-flow/index.module.scss +341 -0
- package/distribution/component/about/platform-flow/type.d.ts +5 -0
- package/distribution/component/about/platform-flow/type.d.ts.map +1 -0
- package/distribution/component/about/platform-flow/type.js +2 -0
- package/distribution/component/about/platform-flow/type.js.map +1 -0
- package/distribution/content/about/index.d.ts +129 -63
- package/distribution/content/about/index.d.ts.map +1 -1
- package/distribution/content/about/index.js +76 -50
- package/distribution/content/about/index.js.map +1 -1
- package/llms.txt +2 -1
- package/package.json +1 -1
- package/distribution/component/about/feed/index.d.ts +0 -9
- package/distribution/component/about/feed/index.d.ts.map +0 -1
- package/distribution/component/about/feed/index.js +0 -17
- package/distribution/component/about/feed/index.js.map +0 -1
- package/distribution/component/about/feed/index.module.css +0 -1
- package/distribution/component/about/feed/index.module.scss +0 -206
- package/distribution/component/about/feed/type.d.ts.map +0 -1
- package/distribution/component/about/feed/type.js.map +0 -1
- /package/distribution/component/about/{feed → brand-parts}/type.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* "About", between the hero and the services: the sentence that lights up as it scrolls, then
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* "About", between the hero and the services: the sentence that lights up as it scrolls, then Sharadox's two halves,
|
|
3
|
+
* each told in one picture. 01, the brand: everything customers see, from one identity. 02, the platform that runs
|
|
4
|
+
* the business, as a flow anyone can follow left to right: customers order and book, the platform does the paperwork
|
|
5
|
+
* on its own, the team gets each job on their phone, and the owner sees it all from anywhere.
|
|
6
6
|
*/
|
|
7
7
|
export const ABOUT = {
|
|
8
8
|
statement: {
|
|
@@ -10,67 +10,93 @@ export const ABOUT = {
|
|
|
10
10
|
pt: "Levamos a sua marca a todo o lado online, e construímos o sistema que gere o seu negócio por trás dela.",
|
|
11
11
|
},
|
|
12
12
|
brand: {
|
|
13
|
+
number: "01",
|
|
13
14
|
eyebrow: { en: "Brand", pt: "Marca" },
|
|
14
|
-
title: { en: "Your whole brand, online.", pt: "Toda a sua marca, online." },
|
|
15
|
+
title: { en: "Your whole brand, everywhere online.", pt: "Toda a sua marca, em todo o lado online." },
|
|
15
16
|
text: {
|
|
16
|
-
en: "
|
|
17
|
-
pt: "
|
|
18
|
-
},
|
|
19
|
-
parts: {
|
|
20
|
-
en: ["Identity", "Website", "Apps", "Social media", "Campaigns"],
|
|
21
|
-
pt: ["Identidade", "Website", "Aplicações", "Redes sociais", "Campanhas"],
|
|
17
|
+
en: "One identity, designed once and carried the same way through everything your customers see.",
|
|
18
|
+
pt: "Uma identidade, desenhada uma vez e levada da mesma forma a tudo o que os seus clientes veem.",
|
|
22
19
|
},
|
|
20
|
+
/** What the brand reaches, each drawn small: its key names the drawing. */
|
|
21
|
+
parts: [
|
|
22
|
+
{
|
|
23
|
+
key: "identity",
|
|
24
|
+
title: { en: "Identity", pt: "Identidade" },
|
|
25
|
+
note: { en: "Logo, colors and voice", pt: "Logótipo, cores e tom" },
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "website",
|
|
29
|
+
title: { en: "Website", pt: "Website" },
|
|
30
|
+
note: { en: "Found, fast, in every language", pt: "Encontrado, rápido, em todas as línguas" },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "apps",
|
|
34
|
+
title: { en: "Apps", pt: "Aplicações" },
|
|
35
|
+
note: { en: "On every phone and computer", pt: "Em todos os telemóveis e computadores" },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "social",
|
|
39
|
+
title: { en: "Social media", pt: "Redes sociais" },
|
|
40
|
+
note: { en: "A feed that looks like you", pt: "Um feed com a sua cara" },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "campaigns",
|
|
44
|
+
title: { en: "Campaigns", pt: "Campanhas" },
|
|
45
|
+
note: { en: "The right people, at the right time", pt: "As pessoas certas, no momento certo" },
|
|
46
|
+
},
|
|
47
|
+
],
|
|
23
48
|
},
|
|
24
|
-
|
|
49
|
+
platform: {
|
|
50
|
+
number: "02",
|
|
25
51
|
eyebrow: { en: "Platforms", pt: "Plataformas" },
|
|
26
|
-
title: { en: "Your business, run
|
|
52
|
+
title: { en: "Your business, run by one system.", pt: "O seu negócio, gerido por um só sistema." },
|
|
27
53
|
text: {
|
|
28
|
-
en: "
|
|
29
|
-
pt: "
|
|
54
|
+
en: "Your customers order and book online. The platform does the paperwork on its own. Your team gets each job on their phone. And you see it all, from anywhere.",
|
|
55
|
+
pt: "Os seus clientes encomendam e reservam online. A plataforma trata da papelada sozinha. A sua equipa recebe cada trabalho no telemóvel. E você vê tudo, a partir de qualquer lugar.",
|
|
30
56
|
},
|
|
31
|
-
|
|
57
|
+
/** The flow, left to right: who does what, and the steps that tick off in turn. */
|
|
58
|
+
lanes: [
|
|
32
59
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
60
|
+
key: "customers",
|
|
61
|
+
title: { en: "Your customers", pt: "Os seus clientes" },
|
|
62
|
+
note: { en: "Online, any time", pt: "Online, a qualquer hora" },
|
|
63
|
+
steps: [
|
|
64
|
+
{ en: "Order online", pt: "Encomendam online" },
|
|
65
|
+
{ en: "Book a visit", pt: "Marcam uma visita" },
|
|
66
|
+
{ en: "Pay securely", pt: "Pagam em segurança" },
|
|
67
|
+
],
|
|
38
68
|
},
|
|
39
69
|
{
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
70
|
+
key: "platform",
|
|
71
|
+
title: { en: "Your platform", pt: "A sua plataforma" },
|
|
72
|
+
note: { en: "Runs on its own", pt: "Trabalha sozinha" },
|
|
73
|
+
steps: [
|
|
74
|
+
{ en: "Invoice issued and sent", pt: "Fatura emitida e enviada" },
|
|
75
|
+
{ en: "Stock updated", pt: "Stock atualizado" },
|
|
76
|
+
{ en: "Customer notified", pt: "Cliente avisado" },
|
|
77
|
+
{ en: "Job sent to the team", pt: "Trabalho enviado à equipa" },
|
|
78
|
+
],
|
|
45
79
|
},
|
|
46
80
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
81
|
+
key: "team",
|
|
82
|
+
title: { en: "Your team", pt: "A sua equipa" },
|
|
83
|
+
note: { en: "On their phone", pt: "No telemóvel" },
|
|
84
|
+
steps: [
|
|
85
|
+
{ en: "Pack order #1048", pt: "Embalar encomenda #1048" },
|
|
86
|
+
{ en: "Load the van", pt: "Carregar a carrinha" },
|
|
87
|
+
{ en: "Visit at 3 pm", pt: "Visita às 15h" },
|
|
88
|
+
],
|
|
52
89
|
},
|
|
53
90
|
],
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
live: { en: "Live", pt: "Em direto" },
|
|
60
|
-
events: [
|
|
61
|
-
{ en: "New order received", pt: "Nova encomenda recebida" },
|
|
62
|
-
{ en: "Invoice issued and sent", pt: "Fatura emitida e enviada" },
|
|
63
|
-
{ en: "John packed the order", pt: "O João embalou a encomenda", by: "J" },
|
|
64
|
-
{ en: "Mary loaded the van", pt: "A Maria carregou a carrinha", by: "M" },
|
|
65
|
-
{ en: "Customer told it's on its way", pt: "Cliente avisado: vai a caminho" },
|
|
66
|
-
{ en: "Stock updated", pt: "Stock atualizado" },
|
|
67
|
-
],
|
|
68
|
-
/** Where it's being looked at from, one after another. */
|
|
69
|
-
places: {
|
|
70
|
-
en: ["Lisbon", "London", "New York", "Tokyo"],
|
|
71
|
-
pt: ["Lisboa", "Londres", "Nova Iorque", "Tóquio"],
|
|
91
|
+
you: {
|
|
92
|
+
title: { en: "You", pt: "Você" },
|
|
93
|
+
text: {
|
|
94
|
+
en: "See and run it all, live, from your phone, tablet or computer.",
|
|
95
|
+
pt: "Veja e gira tudo, ao vivo, no telemóvel, tablet ou computador.",
|
|
72
96
|
},
|
|
73
|
-
|
|
97
|
+
live: { en: "Live", pt: "Ao vivo" },
|
|
98
|
+
/** Where it's being looked at from, one after another. */
|
|
99
|
+
places: { en: ["Lisbon", "London", "New York", "Tokyo"], pt: ["Lisboa", "Londres", "Nova Iorque", "Tóquio"] },
|
|
74
100
|
},
|
|
75
101
|
},
|
|
76
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/content/about/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,SAAS,EAAE;QACT,EAAE,EAAE,+FAA+F;QACnG,EAAE,EAAE,yGAAyG;KAC9G;IACD,KAAK,EAAE;QACL,OAAO,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE;QACrC,K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,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,kBAAkB,EAAE;oBAC/C,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,iBAAiB,EAAE;oBAClD,EAAE,EAAE,EAAE,sBAAsB,EAAE,EAAE,EAAE,2BAA2B,EAAE;iBAChE;aACF;YACD;gBACE,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,cAAc,EAAE;gBAC9C,IAAI,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,EAAE,cAAc,EAAE;gBAClD,KAAK,EAAE;oBACL,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE,yBAAyB,EAAE;oBACzD,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE,qBAAqB,EAAE;oBACjD,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,eAAe,EAAE;iBAC7C;aACF;SACF;QACD,GAAG,EAAE;YACH,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE;YAChC,IAAI,EAAE;gBACJ,EAAE,EAAE,gEAAgE;gBACpE,EAAE,EAAE,gEAAgE;aACrE;YACD,IAAI,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE;YACnC,0DAA0D;YAC1D,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,CAAC,EAAE;SAC9G;KACF;CACO,CAAC"}
|
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 (+
|
|
8
|
+
- component/*: navigation, hero (+ lazy globe), service-index, about (+ brand-parts, platform-flow), services (four groups of service-card, each with a service-object), capability, service-unlisted, marquee, 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 }
|
|
@@ -40,3 +40,4 @@
|
|
|
40
40
|
- 0.35.0: component/social-image renderSocialImage({ locale, name }) (metadata-web-library ^0.6.0 SOCIAL_IMAGES: landscape 1920×1080 and portrait 1080×1920, each also with the headline): the mark on black (half the shorter side), with the headline the hero's three lines in Geist (the last fading) beside it (landscape) or under it (portrait); content/mark MARK_SVG and MARK_DATA_URL (the mark alone, edge to edge). Hero: the copy sits in the middle of the space between the bar and the hero's bottom line, and the globe is centered on it. Capabilities: the lines between columns run over the sticky headings. About: one row per half: the brand (what it is, then its five parts in a numbered row), then the business (what it is beside the live feed, its three promises in a row under both)
|
|
41
41
|
- 0.36.0: Contact emails (form-web-library ^0.4.1): from "Sharadox Web Application" (CONTACT.sender "Sharadox"), subject "Sharadox Web Application · Contact · Name (Company)", the logo (content/email-logo EMAIL_LOGO, the app icon as base64 since 0.36.1) on black at the top, every detail, the message, then the form's page (hidden "page" field, location.href), language, time and IP; visitors who left an email get an automatic reply in English or Portuguese (CONTACT.acknowledgement) with their message, replying to which reaches contact@sharadox.com. Footer: the line between the columns and the legal row is dashed. Capabilities: solid lines between columns, and no dashed line over the sheet's bottom line
|
|
42
42
|
- 0.37.0: component/service-shortcut ServiceShortcut (number, name, kinds, chevron on hover, glow): the service index under the hero and the sticky capability column headings use the same shortcut. Dashed lines between the hero shortcuts and between capability columns; the footer's line under its columns is solid again. "Drag to explore" sits right under the globe body, clear of the shortcuts
|
|
43
|
+
- 0.38.0: About redesigned as two numbered chapters, each words then one picture: 01 Brand, five tiles drawn in CSS (identity, website, apps, social media, campaigns) with a line each (about/brand-parts); 02 Platforms, a flow read left to right (top to bottom on phones): your customers (order, book, pay) → your platform, lit (invoice, stock, customer notified, job sent) → your team on their phone (pack, load, visit), steps ticking off in turn with pulses running between lanes, and "You" under it all, live from anywhere (about/platform-flow). content/about rewritten (brand.parts, platform.lanes, platform.you); about/feed removed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sharadox/sharadox-web-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.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,9 +0,0 @@
|
|
|
1
|
-
import type { FeedProperties } from "@sharadox/sharadox-web-library/component/about/feed/type";
|
|
2
|
-
/**
|
|
3
|
-
* The platform at work, as a live feed: what has just happened ticking in one by one. Some of it done on its own (an
|
|
4
|
-
* order in, the invoice sent, the customer told, the stock updated), some by people through it (John packed the
|
|
5
|
-
* order, Mary loaded the van; their initials stand in for the tick). Meanwhile the place it's being looked at from
|
|
6
|
-
* changes (Lisbon, London, New York, Tokyo). A picture, so it's hidden from assistive technology.
|
|
7
|
-
*/
|
|
8
|
-
export declare function Feed({ locale }: FeedProperties): import("react").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAK/F;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,+BA6B9C"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { translate } from "@sharadox/internationalization-web-library/translate";
|
|
3
|
-
import { ABOUT } from "@sharadox/sharadox-web-library/content/about";
|
|
4
|
-
import styles from "./index.module.css";
|
|
5
|
-
/** The minute each event happened at, after the first one. */
|
|
6
|
-
const minute = (index) => `09:${String(41 + index).padStart(2, "0")}`;
|
|
7
|
-
/**
|
|
8
|
-
* The platform at work, as a live feed: what has just happened ticking in one by one. Some of it done on its own (an
|
|
9
|
-
* order in, the invoice sent, the customer told, the stock updated), some by people through it (John packed the
|
|
10
|
-
* order, Mary loaded the van; their initials stand in for the tick). Meanwhile the place it's being looked at from
|
|
11
|
-
* changes (Lisbon, London, New York, Tokyo). A picture, so it's hidden from assistive technology.
|
|
12
|
-
*/
|
|
13
|
-
export function Feed({ locale }) {
|
|
14
|
-
const { feed } = ABOUT.business;
|
|
15
|
-
return (_jsxs("div", { className: styles.feed, "aria-hidden": true, children: [_jsxs("div", { className: styles.header, children: [_jsxs("span", { className: styles.live, children: [_jsx("i", {}), translate(feed.live, locale)] }), _jsxs("span", { className: styles.viewing, children: [translate(feed.viewing, locale), _jsx("span", { className: styles.places, children: feed.places[locale].map((place) => (_jsx("b", { children: place }, place))) })] })] }), _jsx("ol", { className: styles.events, children: feed.events.map((event, index) => (_jsxs("li", { children: ["by" in event ? _jsx("i", { className: styles.person, children: event.by }) : _jsx("i", { className: styles.check }), _jsx("span", { children: event[locale] }), _jsx("time", { className: "monospace", children: minute(index) })] }, event.en))) })] }));
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot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,CAAC,CAAC,CAAC,YAAG,SAAS,EAAE,MAAM,CAAC,KAAK,GAAI,EAC7F,yBAAO,KAAK,CAAC,MAAM,CAAC,GAAQ,EAC5B,eAAM,SAAS,EAAC,WAAW,YAAE,MAAM,CAAC,KAAK,CAAC,GAAQ,KAH3C,KAAK,CAAC,EAAE,CAIZ,CACN,CAAC,GACC,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed{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);display:grid;justify-content:stretch;gap:14px;padding:18px;border-radius:14px;box-shadow:0 30px 60px -30px color-mix(in srgb, var(--foreground) 35%, transparent)}.header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-bottom:12px;border-bottom:1px dashed var(--line-2);font-family:var(--monospace);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--foreground-2)}.live{display:inline-flex;align-items:center;gap:8px}.live i{width:7px;height:7px;border-radius:50%;background:var(--foreground);box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 60%, transparent);animation:feed-live 2.4s infinite}@media(prefers-reduced-motion: reduce){.live i{animation:none}}@keyframes feed-live{70%{box-shadow:0 0 0 8px color-mix(in srgb, var(--foreground) 0%, transparent)}100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--foreground) 0%, transparent)}}.viewing{display:inline-flex;align-items:center;gap:6px}.places{display:inline-grid;justify-items:start}.places b{grid-area:1/1;font-weight:400;color:var(--foreground);opacity:0}.places b:nth-child(1){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 0s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(1){animation:none}}.places b:nth-child(2){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 3s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(2){animation:none}}.places b:nth-child(3){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 6s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(3){animation:none}}.places b:nth-child(4){animation:feed-place 12s cubic-bezier(0.22, 1, 0.36, 1) infinite 9s backwards}@media(prefers-reduced-motion: reduce){.places b:nth-child(4){animation:none}}@media(prefers-reduced-motion: reduce){.places b:first-child{opacity:1}}@keyframes feed-place{0%{opacity:0;transform:translateY(6px)}6%,22%{opacity:1;transform:none}28%,100%{opacity:0;transform:translateY(-6px)}}.events{display:grid;justify-content:stretch;gap:8px;margin:0;padding:0;list-style:none}.events li{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:color-mix(in srgb, var(--foreground) 10%, var(--background));font-size:14px}.events li:nth-child(1){animation:feed-event-1 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(1){animation:none}}.events li:nth-child(1) .check,.events li:nth-child(1) .person{animation:feed-check-1 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(1) .check,.events li:nth-child(1) .person{animation:none}}.events li:nth-child(2){animation:feed-event-2 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(2){animation:none}}.events li:nth-child(2) .check,.events li:nth-child(2) .person{animation:feed-check-2 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(2) .check,.events li:nth-child(2) .person{animation:none}}.events li:nth-child(3){animation:feed-event-3 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(3){animation:none}}.events li:nth-child(3) .check,.events li:nth-child(3) .person{animation:feed-check-3 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(3) .check,.events li:nth-child(3) .person{animation:none}}.events li:nth-child(4){animation:feed-event-4 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(4){animation:none}}.events li:nth-child(4) .check,.events li:nth-child(4) .person{animation:feed-check-4 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(4) .check,.events li:nth-child(4) .person{animation:none}}.events li:nth-child(5){animation:feed-event-5 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(5){animation:none}}.events li:nth-child(5) .check,.events li:nth-child(5) .person{animation:feed-check-5 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(5) .check,.events li:nth-child(5) .person{animation:none}}.events li:nth-child(6){animation:feed-event-6 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(6){animation:none}}.events li:nth-child(6) .check,.events li:nth-child(6) .person{animation:feed-check-6 10s cubic-bezier(0.22, 1, 0.36, 1) infinite}@media(prefers-reduced-motion: reduce){.events li:nth-child(6) .check,.events li:nth-child(6) .person{animation:none}}.events span{flex:1}.events time{font-size:11px;color:var(--foreground-3)}@keyframes feed-event-1{0%,4%{opacity:.25;transform:translateX(-8px)}9%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-1{0%,8%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}12%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}@keyframes feed-event-2{0%,16%{opacity:.25;transform:translateX(-8px)}21%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-2{0%,20%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}24%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}@keyframes feed-event-3{0%,28%{opacity:.25;transform:translateX(-8px)}33%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-3{0%,32%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}36%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}@keyframes feed-event-4{0%,40%{opacity:.25;transform:translateX(-8px)}45%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-4{0%,44%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}48%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}@keyframes feed-event-5{0%,52%{opacity:.25;transform:translateX(-8px)}57%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-5{0%,56%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}60%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}@keyframes feed-event-6{0%,64%{opacity:.25;transform:translateX(-8px)}69%,90%{opacity:1;transform:none}97%,100%{opacity:.25;transform:none}}@keyframes feed-check-6{0%,68%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}72%,90%{background:var(--foreground);color:var(--background)}97%,100%{background:rgba(0,0,0,0);color:rgba(0,0,0,0)}}.check{position:relative;flex:none;width:18px;height:18px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:50%;color:var(--background);background:var(--foreground)}.check::after{content:"";position:absolute;left:5.5px;top:3px;width:4px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}.person{display:grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid color-mix(in srgb, var(--foreground) 50%, transparent);border-radius:50%;font-family:var(--monospace);font-size:10px;font-style:normal;font-weight:600;line-height:1}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
@use "style/token" as *;
|
|
2
|
-
@use "style/object" as *;
|
|
3
|
-
|
|
4
|
-
/* One round: the events tick in one after another, hold, and clear for the next round. */
|
|
5
|
-
$round: 10s;
|
|
6
|
-
$events: 6;
|
|
7
|
-
/* The places it's viewed from, one after another. */
|
|
8
|
-
$places: 4;
|
|
9
|
-
$place: 3s;
|
|
10
|
-
|
|
11
|
-
.feed {
|
|
12
|
-
@include face;
|
|
13
|
-
display: grid;
|
|
14
|
-
justify-content: stretch;
|
|
15
|
-
gap: 14px;
|
|
16
|
-
padding: 18px;
|
|
17
|
-
border-radius: 14px;
|
|
18
|
-
box-shadow: 0 30px 60px -30px tint($glow);
|
|
19
|
-
}
|
|
20
|
-
.header {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
gap: 8px 16px;
|
|
26
|
-
padding-bottom: 12px;
|
|
27
|
-
border-bottom: 1px dashed var(--line-2);
|
|
28
|
-
font-family: var(--monospace);
|
|
29
|
-
font-size: 11.5px;
|
|
30
|
-
letter-spacing: 0.04em;
|
|
31
|
-
text-transform: uppercase;
|
|
32
|
-
color: var(--foreground-2);
|
|
33
|
-
}
|
|
34
|
-
.live {
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
gap: 8px;
|
|
38
|
-
i {
|
|
39
|
-
width: 7px;
|
|
40
|
-
height: 7px;
|
|
41
|
-
border-radius: 50%;
|
|
42
|
-
background: var(--foreground);
|
|
43
|
-
box-shadow: 0 0 0 0 tint(60%);
|
|
44
|
-
@include loop(feed-live 2.4s infinite);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
@keyframes feed-live {
|
|
48
|
-
70% {
|
|
49
|
-
box-shadow: 0 0 0 8px tint(0%);
|
|
50
|
-
}
|
|
51
|
-
100% {
|
|
52
|
-
box-shadow: 0 0 0 0 tint(0%);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
.viewing {
|
|
56
|
-
display: inline-flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: 6px;
|
|
59
|
-
}
|
|
60
|
-
/* The places share one spot, each showing in turn. */
|
|
61
|
-
.places {
|
|
62
|
-
display: inline-grid;
|
|
63
|
-
justify-items: start;
|
|
64
|
-
b {
|
|
65
|
-
grid-area: 1 / 1;
|
|
66
|
-
font-weight: 400;
|
|
67
|
-
color: var(--foreground);
|
|
68
|
-
opacity: 0;
|
|
69
|
-
@for $index from 1 through $places {
|
|
70
|
-
&:nth-child(#{$index}) {
|
|
71
|
-
@include loop(feed-place ($place * $places) $ease infinite ($place * ($index - 1)) backwards);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
@media (prefers-reduced-motion: reduce) {
|
|
76
|
-
b:first-child {
|
|
77
|
-
opacity: 1;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
@keyframes feed-place {
|
|
82
|
-
0% {
|
|
83
|
-
opacity: 0;
|
|
84
|
-
transform: translateY(6px);
|
|
85
|
-
}
|
|
86
|
-
6%,
|
|
87
|
-
22% {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
transform: none;
|
|
90
|
-
}
|
|
91
|
-
28%,
|
|
92
|
-
100% {
|
|
93
|
-
opacity: 0;
|
|
94
|
-
transform: translateY(-6px);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
.events {
|
|
98
|
-
display: grid;
|
|
99
|
-
justify-content: stretch;
|
|
100
|
-
gap: 8px;
|
|
101
|
-
margin: 0;
|
|
102
|
-
padding: 0;
|
|
103
|
-
list-style: none;
|
|
104
|
-
li {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: flex-start;
|
|
108
|
-
gap: 12px;
|
|
109
|
-
padding: 10px 12px;
|
|
110
|
-
border: 1px solid var(--line-2);
|
|
111
|
-
border-radius: 10px;
|
|
112
|
-
background: surface($hint);
|
|
113
|
-
font-size: 14px;
|
|
114
|
-
@for $index from 1 through $events {
|
|
115
|
-
&:nth-child(#{$index}) {
|
|
116
|
-
@include loop(feed-event-#{$index} $round $ease infinite);
|
|
117
|
-
.check,
|
|
118
|
-
.person {
|
|
119
|
-
@include loop(feed-check-#{$index} $round $ease infinite);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
span {
|
|
125
|
-
flex: 1;
|
|
126
|
-
}
|
|
127
|
-
time {
|
|
128
|
-
font-size: 11px;
|
|
129
|
-
color: var(--foreground-3);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
/* Each event slides in at its turn, its tick filling a moment later; they all clear together at the end. */
|
|
133
|
-
@for $index from 1 through $events {
|
|
134
|
-
$start: 4% + ($index - 1) * 12%;
|
|
135
|
-
@keyframes feed-event-#{$index} {
|
|
136
|
-
0%,
|
|
137
|
-
#{$start} {
|
|
138
|
-
opacity: 0.25;
|
|
139
|
-
transform: translateX(-8px);
|
|
140
|
-
}
|
|
141
|
-
#{$start + 5%},
|
|
142
|
-
90% {
|
|
143
|
-
opacity: 1;
|
|
144
|
-
transform: none;
|
|
145
|
-
}
|
|
146
|
-
97%,
|
|
147
|
-
100% {
|
|
148
|
-
opacity: 0.25;
|
|
149
|
-
transform: none;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
@keyframes feed-check-#{$index} {
|
|
153
|
-
0%,
|
|
154
|
-
#{$start + 4%} {
|
|
155
|
-
background: transparent;
|
|
156
|
-
color: transparent;
|
|
157
|
-
}
|
|
158
|
-
#{$start + 8%},
|
|
159
|
-
90% {
|
|
160
|
-
background: var(--foreground);
|
|
161
|
-
color: var(--background);
|
|
162
|
-
}
|
|
163
|
-
97%,
|
|
164
|
-
100% {
|
|
165
|
-
background: transparent;
|
|
166
|
-
color: transparent;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
/* A tick in a circle: the circle fills and the tick shows once the event is done. */
|
|
171
|
-
.check {
|
|
172
|
-
position: relative;
|
|
173
|
-
flex: none;
|
|
174
|
-
width: 18px;
|
|
175
|
-
height: 18px;
|
|
176
|
-
border: 1px solid tint($edge);
|
|
177
|
-
border-radius: 50%;
|
|
178
|
-
color: var(--background);
|
|
179
|
-
background: var(--foreground);
|
|
180
|
-
&::after {
|
|
181
|
-
content: "";
|
|
182
|
-
position: absolute;
|
|
183
|
-
left: 5.5px;
|
|
184
|
-
top: 3px;
|
|
185
|
-
width: 4px;
|
|
186
|
-
height: 8px;
|
|
187
|
-
border-right: 1.5px solid currentColor;
|
|
188
|
-
border-bottom: 1.5px solid currentColor;
|
|
189
|
-
transform: rotate(45deg);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
/* A person's initial in a circle, in place of the tick: this one was done by hand, and ticked off on a phone. */
|
|
193
|
-
.person {
|
|
194
|
-
display: grid;
|
|
195
|
-
place-items: center;
|
|
196
|
-
flex: none;
|
|
197
|
-
width: 18px;
|
|
198
|
-
height: 18px;
|
|
199
|
-
border: 1px solid tint($edge);
|
|
200
|
-
border-radius: 50%;
|
|
201
|
-
font-family: var(--monospace);
|
|
202
|
-
font-size: 10px;
|
|
203
|
-
font-style: normal;
|
|
204
|
-
font-weight: 600;
|
|
205
|
-
line-height: 1;
|
|
206
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../source/component/about/feed/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oDAAoD,CAAC;AAEjF,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../source/component/about/feed/type.ts"],"names":[],"mappings":""}
|
|
File without changes
|