Merged features tied to Royal Gold funding goal

This commit is contained in:
squidfunk
2022-07-20 17:25:55 +02:00
parent 5a9c295822
commit de438d5d9d
55 changed files with 1205 additions and 120 deletions

View File

@@ -56,7 +56,9 @@ import {
import {
getComponentElement,
getComponentElements,
mountAnnounce,
mountBackToTop,
mountConsent,
mountContent,
mountDialog,
mountHeader,
@@ -177,6 +179,10 @@ const main$ = document$
/* Set up control component observables */
const control$ = merge(
/* Consent */
...getComponentElements("consent")
.map(el => mountConsent(el, { target$ })),
/* Dialog */
...getComponentElements("dialog")
.map(el => mountDialog(el, { alert$ })),
@@ -201,6 +207,10 @@ const control$ = merge(
/* Set up content component observables */
const content$ = defer(() => merge(
/* Announcement bar */
...getComponentElements("announce")
.map(el => mountAnnounce(el)),
/* Content */
...getComponentElements("content")
.map(el => mountContent(el, { target$, print$ })),