diff --git a/src/lib/gam.ts b/src/lib/gam.ts index 65aeba76..3ac15690 100644 --- a/src/lib/gam.ts +++ b/src/lib/gam.ts @@ -1,9 +1,9 @@ const CLICK_MACRO = '%%CLICK_URL_UNESC%%'; const CACHE_BUST = '%%CACHEBUSTER%%'; -type GAMVariable = `[%${T}%]` | ''; +type GAMVariable = T; -const gamVar = (s: T): GAMVariable => `[%${s}%]`; +const gamVar = (s: T): `[%${GAMVariable}%]` => `[%${s}%]`; const replaceGAMVariables = ( input: string, diff --git a/src/templates/components/ManualCard.svelte b/src/templates/components/ManualCard.svelte index ff0f5105..3b587a7a 100644 --- a/src/templates/components/ManualCard.svelte +++ b/src/templates/components/ManualCard.svelte @@ -9,9 +9,15 @@ export let callToAction: string; export let buttonColour: string; export let direction = 'row'; + export let isProminent = false; - +
@@ -127,7 +133,7 @@ margin: 10px 0px; } - :global(.is-prominent) .card:nth-child(1) { + .is-prominent.card:nth-child(1) { display: flex; flex-direction: row; align-items: stretch; diff --git a/src/templates/csr/manual-multiple/index.svelte b/src/templates/csr/manual-multiple/index.svelte index f318eaf6..50919634 100644 --- a/src/templates/csr/manual-multiple/index.svelte +++ b/src/templates/csr/manual-multiple/index.svelte @@ -64,6 +64,8 @@ }, ]; + const isProminent = IsProminent === 'true'; + offers = offers.filter((offer) => offer.title !== ''); let height: number = -1; @@ -81,13 +83,14 @@ {Explainer} -
- {#each offers as offer} +
+ {#each offers as offer, i} {offer.title}