From 5ddf5f270c85ded704a2997561f52d1bed559340 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Wed, 8 Nov 2023 11:06:33 -0600 Subject: [PATCH 1/5] Create rsna & rsna preview templates --- tenants/all/templates/am-rsna-preview.marko | 1 + tenants/all/templates/am-rsna.marko | 1 + 2 files changed, 2 insertions(+) create mode 100644 tenants/all/templates/am-rsna-preview.marko create mode 100644 tenants/all/templates/am-rsna.marko diff --git a/tenants/all/templates/am-rsna-preview.marko b/tenants/all/templates/am-rsna-preview.marko new file mode 100644 index 0000000..1026c10 --- /dev/null +++ b/tenants/all/templates/am-rsna-preview.marko @@ -0,0 +1 @@ + diff --git a/tenants/all/templates/am-rsna.marko b/tenants/all/templates/am-rsna.marko new file mode 100644 index 0000000..1026c10 --- /dev/null +++ b/tenants/all/templates/am-rsna.marko @@ -0,0 +1 @@ + From 531532186c46ff5a417d66a28245f9cb10547e35 Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Wed, 8 Nov 2023 11:06:45 -0600 Subject: [PATCH 2/5] Create emailx ad slot --- tenants/all/config/email-x.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tenants/all/config/email-x.js b/tenants/all/config/email-x.js index 29909ec..421aa6b 100644 --- a/tenants/all/config/email-x.js +++ b/tenants/all/config/email-x.js @@ -161,6 +161,22 @@ config height: 250, }, ]) + .setAdUnits('am-rsna', [ + { + name: 'ad-slot-1', + id: '654bbc997ed2851ec164a656', + width: 300, + height: 250, + }, + ]) + .setAdUnits('am-rsna-preview', [ + { + name: 'ad-slot-1', + id: '654bbcb87ed28543e664a684', + width: 300, + height: 250, + }, + ]) .setAdUnits('sab', [ { name: 'ad-slot-1', From e8d8cbf929043fae45be0996841704c0ab9f04df Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Wed, 8 Nov 2023 11:07:00 -0600 Subject: [PATCH 3/5] Add am-rsna & am-rsna-preview to core.js --- tenants/all/config/core.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tenants/all/config/core.js b/tenants/all/config/core.js index 97e7c08..6b07b9c 100644 --- a/tenants/all/config/core.js +++ b/tenants/all/config/core.js @@ -157,6 +157,24 @@ const config = { }, preferenceCenter: 'https://www.auntminnie.com/user/subscribe', }, + 'am-rsna': { + ...brands.am, + name: 'AuntMinnie-RSNA', + logo: { + src: '/files/base/smg/all/image/static/am/AM__RSNA__header.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.auntminnie.com/user/subscribe', + }, + 'am-rsna-preview': { + ...brands.am, + name: 'AuntMinnie-RSNA Preview', + logo: { + src: '/files/base/smg/all/image/static/am/AM__RSNA_Preview_header.png', + footerWidth: 200, + }, + preferenceCenter: 'https://www.auntminnie.com/user/subscribe', + }, 'ame-senl': { ...brands.ame, name: 'AuntMinnieEurope-SENL', From f0e6bca739957e7f572e73a7f90dfaccd463fa9a Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Wed, 8 Nov 2023 11:07:07 -0600 Subject: [PATCH 4/5] Create layout for RSNA --- packages/common/components/layouts/rsna.marko | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 packages/common/components/layouts/rsna.marko diff --git a/packages/common/components/layouts/rsna.marko b/packages/common/components/layouts/rsna.marko new file mode 100644 index 0000000..aa79fc0 --- /dev/null +++ b/packages/common/components/layouts/rsna.marko @@ -0,0 +1,68 @@ +import { get } from "@parameter1/base-cms-object-path"; +import { parseBooleanHeader } from "@parameter1/base-cms-utils"; +import queryFragment from "@science-medicine-group/package-common/graphql/fragments/content-list"; + +$ const { website, config, req } = out.global; +$ const { newsletter, date } = input.data; + +$ const emailX = config.get("emailX"); +$ const nativeX = config.getAsObject("nativeX"); + + + <@head> + + + <@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> + + <@body> + + + + + + + + + + + + + + + + + From 66d59deb4934bdda4a56787fe5fea65221452d3a Mon Sep 17 00:00:00 2001 From: Jessica Wade Date: Wed, 8 Nov 2023 11:07:17 -0600 Subject: [PATCH 5/5] Add layout to marko.json --- packages/common/components/layouts/marko.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/common/components/layouts/marko.json b/packages/common/components/layouts/marko.json index dc51985..f5f5334 100644 --- a/packages/common/components/layouts/marko.json +++ b/packages/common/components/layouts/marko.json @@ -16,5 +16,8 @@ }, "": { "template": "./senl.marko" + }, + "": { + "template": "./rsna.marko" } }