@rizom/site-rizom-ai 0.2.0-alpha.263 → 0.2.0-alpha.264
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/dist/index.js +91 -77
- package/dist/index.js.map +5 -5
- package/package.json +1 -1
- package/src/opening.tsx +55 -55
- package/src/story/living-organism.tsx +8 -2
- package/src/story/story-page.tsx +2 -1
- package/src/story.css +23 -15
package/dist/index.js
CHANGED
|
@@ -39058,11 +39058,13 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39058
39058
|
width: min(100%, calc(100svh - var(--bar-height, 4.6rem) - 2rem));
|
|
39059
39059
|
aspect-ratio: 1;
|
|
39060
39060
|
}
|
|
39061
|
-
/* On a wide screen the opening's drawing
|
|
39062
|
-
|
|
39063
|
-
|
|
39064
|
-
|
|
39065
|
-
the words
|
|
39061
|
+
/* On a wide screen the opening's drawing holds the figure's place: it stands
|
|
39062
|
+
before the opening in the chapters column and sticks at the figure's centre
|
|
39063
|
+
line down the whole story (the story is a size container, so nothing in it
|
|
39064
|
+
can be fixed to the screen). It stays while the opening is read, an answer
|
|
39065
|
+
included, and the words scroll past it. Once the reading has moved the
|
|
39066
|
+
figure on, it draws into its centre point and the figure's first drawing
|
|
39067
|
+
opens out of that same point; back up the page, the other way round. */
|
|
39066
39068
|
@media not all and (max-width: 60rem) {
|
|
39067
39069
|
/* The words are the room's column (the kit scrolls it within the screen);
|
|
39068
39070
|
the bar and the opening's 4rem of padding above and below stay clear, so
|
|
@@ -39070,29 +39072,37 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39070
39072
|
.chapter--opening .opening__words {
|
|
39071
39073
|
--ask-column-clear: calc(8rem + var(--bar-height, 4.6rem));
|
|
39072
39074
|
}
|
|
39073
|
-
:where(.
|
|
39075
|
+
:where(.chapters) > .net-layer {
|
|
39074
39076
|
position: sticky;
|
|
39075
|
-
order: -1;
|
|
39076
39077
|
top: calc(
|
|
39077
39078
|
var(--bar-height, 4.6rem) + (100svh - var(--bar-height, 4.6rem)) / 2
|
|
39078
39079
|
);
|
|
39080
|
+
left: auto;
|
|
39081
|
+
right: auto;
|
|
39079
39082
|
height: 0;
|
|
39080
39083
|
margin-left: calc(var(--words) + var(--words-gap));
|
|
39081
39084
|
width: calc(
|
|
39082
39085
|
100cqi - max(0px, (100cqi - 80rem) / 2) - clamp(1rem, 5vw, 5rem) -
|
|
39083
39086
|
var(--words) - var(--words-gap) - clamp(1rem, 6vw, 7rem)
|
|
39084
39087
|
);
|
|
39085
|
-
|
|
39088
|
+
/* Back from the point, lit at once. */
|
|
39089
|
+
transition: opacity 0.3s ease;
|
|
39086
39090
|
}
|
|
39087
|
-
:where(.
|
|
39091
|
+
:where(.chapters) > .net-layer > * {
|
|
39088
39092
|
translate: 0 -50%;
|
|
39093
|
+
transition: scale 1.2s cubic-bezier(0.3, 0.7, 0.2, 1);
|
|
39094
|
+
}
|
|
39095
|
+
.story:has(.figure:not([data-stage="0"])) :where(.chapters) > .net-layer > * {
|
|
39096
|
+
scale: 0;
|
|
39089
39097
|
}
|
|
39090
|
-
.story:has(.figure:not([data-stage="0"]))
|
|
39091
|
-
:where(.chapter--opening)
|
|
39092
|
-
> .net-layer,
|
|
39098
|
+
.story:has(.figure:not([data-stage="0"])) :where(.chapters) > .net-layer,
|
|
39093
39099
|
.story:has(.figure:not([data-stage="0"])) .net-leads {
|
|
39094
39100
|
opacity: 0;
|
|
39095
39101
|
}
|
|
39102
|
+
/* Lit while it draws in; out at the point. */
|
|
39103
|
+
.story:has(.figure:not([data-stage="0"])) :where(.chapters) > .net-layer {
|
|
39104
|
+
transition: opacity 0.6s ease 0.6s;
|
|
39105
|
+
}
|
|
39096
39106
|
.net-leads {
|
|
39097
39107
|
transition: opacity 0.6s ease;
|
|
39098
39108
|
}
|
|
@@ -39734,11 +39744,9 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39734
39744
|
viewport is their frame. On a phone the opening's drawing joins the open
|
|
39735
39745
|
conversation as the first item of its scroll, a slot holding its place. */
|
|
39736
39746
|
.net-leads {
|
|
39737
|
-
position:
|
|
39747
|
+
position: absolute;
|
|
39738
39748
|
inset: 0;
|
|
39739
39749
|
z-index: 2;
|
|
39740
|
-
width: 100vw;
|
|
39741
|
-
height: 100vh;
|
|
39742
39750
|
overflow: visible;
|
|
39743
39751
|
pointer-events: none;
|
|
39744
39752
|
}
|
|
@@ -40479,7 +40487,11 @@ var livingOrganism = organism({
|
|
|
40479
40487
|
...Object.fromEntries(economy.map((_2, i) => [`E${i + 1}`, i % 3 === 0 ? "lantern" : ""]))
|
|
40480
40488
|
},
|
|
40481
40489
|
stages: [
|
|
40482
|
-
{
|
|
40490
|
+
{
|
|
40491
|
+
T1: [C3, 300, 0, 0],
|
|
40492
|
+
T2: [C3, 300, 0, 0],
|
|
40493
|
+
T3: [C3, 300, 0, 0]
|
|
40494
|
+
},
|
|
40483
40495
|
{
|
|
40484
40496
|
L: [C3, 300, 8, 1],
|
|
40485
40497
|
T1: at(team2[0], 6),
|
|
@@ -55235,6 +55247,7 @@ function StoryPage({
|
|
|
55235
55247
|
/* @__PURE__ */ jsx49(ReadingThread, {}),
|
|
55236
55248
|
/* @__PURE__ */ jsxs35("div", {
|
|
55237
55249
|
className: "story",
|
|
55250
|
+
...{ [ASK_ROOM_ATTRIBUTE]: "" },
|
|
55238
55251
|
children: [
|
|
55239
55252
|
/* @__PURE__ */ jsx49("div", {
|
|
55240
55253
|
className: "chapters",
|
|
@@ -56694,67 +56707,8 @@ function NetworkLayer({
|
|
|
56694
56707
|
function Opening(data) {
|
|
56695
56708
|
const headingLead = data.headingLead ?? DEFAULT_COPY.headingLead;
|
|
56696
56709
|
const lede = data.lede ?? DEFAULT_COPY.lede;
|
|
56697
|
-
return /* @__PURE__ */ jsxs39(
|
|
56698
|
-
id: "hero",
|
|
56699
|
-
className: "chapter chapter--opening",
|
|
56700
|
-
"data-title": "Top",
|
|
56701
|
-
...data.askBox ? { [ASK_ROOM_ATTRIBUTE]: "" } : {},
|
|
56710
|
+
return /* @__PURE__ */ jsxs39(Fragment21, {
|
|
56702
56711
|
children: [
|
|
56703
|
-
/* @__PURE__ */ jsxs39("div", {
|
|
56704
|
-
className: "opening__words",
|
|
56705
|
-
...data.askBox ? { [ASK_COLUMN_ATTRIBUTE]: "" } : {},
|
|
56706
|
-
children: [
|
|
56707
|
-
data.kicker && /* @__PURE__ */ jsx56("p", {
|
|
56708
|
-
className: "eyebrow",
|
|
56709
|
-
children: data.kicker
|
|
56710
|
-
}),
|
|
56711
|
-
/* @__PURE__ */ jsxs39("h1", {
|
|
56712
|
-
children: [
|
|
56713
|
-
headingLead,
|
|
56714
|
-
data.headingAccent && /* @__PURE__ */ jsxs39(Fragment21, {
|
|
56715
|
-
children: [
|
|
56716
|
-
" ",
|
|
56717
|
-
/* @__PURE__ */ jsx56("em", {
|
|
56718
|
-
children: data.headingAccent
|
|
56719
|
-
})
|
|
56720
|
-
]
|
|
56721
|
-
})
|
|
56722
|
-
]
|
|
56723
|
-
}),
|
|
56724
|
-
/* @__PURE__ */ jsx56("p", {
|
|
56725
|
-
className: "lede",
|
|
56726
|
-
children: lede
|
|
56727
|
-
}),
|
|
56728
|
-
data.askBox ? /* @__PURE__ */ jsxs39("div", {
|
|
56729
|
-
className: "ask",
|
|
56730
|
-
children: [
|
|
56731
|
-
/* @__PURE__ */ jsx56(AskBoxHost, {
|
|
56732
|
-
prefix: "opening",
|
|
56733
|
-
placeholder: data.prompt ?? undefined
|
|
56734
|
-
}),
|
|
56735
|
-
data.topics.length > 0 && /* @__PURE__ */ jsx56("ul", {
|
|
56736
|
-
className: "ask__topics",
|
|
56737
|
-
"aria-label": "Suggested questions",
|
|
56738
|
-
children: data.topics.map((topic) => /* @__PURE__ */ jsx56("li", {
|
|
56739
|
-
children: /* @__PURE__ */ jsx56("button", {
|
|
56740
|
-
type: "button",
|
|
56741
|
-
"data-atlas-fill": topic,
|
|
56742
|
-
children: topic
|
|
56743
|
-
})
|
|
56744
|
-
}, topic))
|
|
56745
|
-
}),
|
|
56746
|
-
/* @__PURE__ */ jsx56("script", {
|
|
56747
|
-
src: ASK_BOX_SCRIPT_PATH,
|
|
56748
|
-
defer: true
|
|
56749
|
-
})
|
|
56750
|
-
]
|
|
56751
|
-
}) : data.ctaHref && data.ctaLabel && /* @__PURE__ */ jsx56("a", {
|
|
56752
|
-
className: "opening__door",
|
|
56753
|
-
href: data.ctaHref,
|
|
56754
|
-
children: data.ctaLabel
|
|
56755
|
-
})
|
|
56756
|
-
]
|
|
56757
|
-
}),
|
|
56758
56712
|
/* @__PURE__ */ jsx56(NetworkLayer, {
|
|
56759
56713
|
...placeNetwork(data),
|
|
56760
56714
|
lendable: data.askBox
|
|
@@ -56763,6 +56717,66 @@ function Opening(data) {
|
|
|
56763
56717
|
className: "net-leads",
|
|
56764
56718
|
...{ [ASK_LEADS_ATTRIBUTE]: "" },
|
|
56765
56719
|
"aria-hidden": "true"
|
|
56720
|
+
}),
|
|
56721
|
+
/* @__PURE__ */ jsx56("section", {
|
|
56722
|
+
id: "hero",
|
|
56723
|
+
className: "chapter chapter--opening",
|
|
56724
|
+
"data-title": "Top",
|
|
56725
|
+
children: /* @__PURE__ */ jsxs39("div", {
|
|
56726
|
+
className: "opening__words",
|
|
56727
|
+
...data.askBox ? { [ASK_COLUMN_ATTRIBUTE]: "" } : {},
|
|
56728
|
+
children: [
|
|
56729
|
+
data.kicker && /* @__PURE__ */ jsx56("p", {
|
|
56730
|
+
className: "eyebrow",
|
|
56731
|
+
children: data.kicker
|
|
56732
|
+
}),
|
|
56733
|
+
/* @__PURE__ */ jsxs39("h1", {
|
|
56734
|
+
children: [
|
|
56735
|
+
headingLead,
|
|
56736
|
+
data.headingAccent && /* @__PURE__ */ jsxs39(Fragment21, {
|
|
56737
|
+
children: [
|
|
56738
|
+
" ",
|
|
56739
|
+
/* @__PURE__ */ jsx56("em", {
|
|
56740
|
+
children: data.headingAccent
|
|
56741
|
+
})
|
|
56742
|
+
]
|
|
56743
|
+
})
|
|
56744
|
+
]
|
|
56745
|
+
}),
|
|
56746
|
+
/* @__PURE__ */ jsx56("p", {
|
|
56747
|
+
className: "lede",
|
|
56748
|
+
children: lede
|
|
56749
|
+
}),
|
|
56750
|
+
data.askBox ? /* @__PURE__ */ jsxs39("div", {
|
|
56751
|
+
className: "ask",
|
|
56752
|
+
children: [
|
|
56753
|
+
/* @__PURE__ */ jsx56(AskBoxHost, {
|
|
56754
|
+
prefix: "opening",
|
|
56755
|
+
placeholder: data.prompt ?? undefined
|
|
56756
|
+
}),
|
|
56757
|
+
data.topics.length > 0 && /* @__PURE__ */ jsx56("ul", {
|
|
56758
|
+
className: "ask__topics",
|
|
56759
|
+
"aria-label": "Suggested questions",
|
|
56760
|
+
children: data.topics.map((topic) => /* @__PURE__ */ jsx56("li", {
|
|
56761
|
+
children: /* @__PURE__ */ jsx56("button", {
|
|
56762
|
+
type: "button",
|
|
56763
|
+
"data-atlas-fill": topic,
|
|
56764
|
+
children: topic
|
|
56765
|
+
})
|
|
56766
|
+
}, topic))
|
|
56767
|
+
}),
|
|
56768
|
+
/* @__PURE__ */ jsx56("script", {
|
|
56769
|
+
src: ASK_BOX_SCRIPT_PATH,
|
|
56770
|
+
defer: true
|
|
56771
|
+
})
|
|
56772
|
+
]
|
|
56773
|
+
}) : data.ctaHref && data.ctaLabel && /* @__PURE__ */ jsx56("a", {
|
|
56774
|
+
className: "opening__door",
|
|
56775
|
+
href: data.ctaHref,
|
|
56776
|
+
children: data.ctaLabel
|
|
56777
|
+
})
|
|
56778
|
+
]
|
|
56779
|
+
})
|
|
56766
56780
|
})
|
|
56767
56781
|
]
|
|
56768
56782
|
});
|
|
@@ -57968,4 +57982,4 @@ export {
|
|
|
57968
57982
|
workSections
|
|
57969
57983
|
};
|
|
57970
57984
|
|
|
57971
|
-
//# debugId=
|
|
57985
|
+
//# debugId=5C42B2A5AC99CE6264756E2164756E21
|