From f2d30b6cb0f60e2399494c3aa0d15b6255f0fdb8 Mon Sep 17 00:00:00 2001 From: Blundell Date: Mon, 4 Dec 2017 23:44:51 +0100 Subject: [PATCH] copy resources to amazon module --- .../aws-runner/src/main/resources/README.md | 2 + .../resources/mailchimp-template-article.html | 48 ++ .../resources/mailchimp-template-head.html | 12 + .../mailchimp-template-post-articles.html | 112 +++++ .../mailchimp-template-pre-articles.html | 192 ++++++++ .../resources/mailchimp-template-style.css | 466 ++++++++++++++++++ 6 files changed, 832 insertions(+) create mode 100644 enews/enews-java/aws-runner/src/main/resources/README.md create mode 100644 enews/enews-java/aws-runner/src/main/resources/mailchimp-template-article.html create mode 100644 enews/enews-java/aws-runner/src/main/resources/mailchimp-template-head.html create mode 100644 enews/enews-java/aws-runner/src/main/resources/mailchimp-template-post-articles.html create mode 100644 enews/enews-java/aws-runner/src/main/resources/mailchimp-template-pre-articles.html create mode 100644 enews/enews-java/aws-runner/src/main/resources/mailchimp-template-style.css diff --git a/enews/enews-java/aws-runner/src/main/resources/README.md b/enews/enews-java/aws-runner/src/main/resources/README.md new file mode 100644 index 000000000..e401326b5 --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/README.md @@ -0,0 +1,2 @@ +These files are here as it was the quickest way for the Lambda to see them when loading from resources. +(the original copies are in the html-generator module). \ No newline at end of file diff --git a/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-article.html b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-article.html new file mode 100644 index 000000000..bb52016b6 --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-article.html @@ -0,0 +1,48 @@ + + + + + + +
+ + + + + + +
+ + + + + + +
+ + + +
+ + + + + + +
+ + + + ${articleTitle} + + +
+ + ${articleText} + +
+
+   +
+
+
\ No newline at end of file diff --git a/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-head.html b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-head.html new file mode 100644 index 000000000..51b8d03b8 --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-head.html @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-post-articles.html b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-post-articles.html new file mode 100644 index 000000000..d4184575c --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-post-articles.html @@ -0,0 +1,112 @@ + + + + + + +
+ + + + + + +
+ +
+ +
+ + + + + + +
+ + + + + + +
+ +
+ +
+ + + + + + +
+ + + + + + + + + + +
+ +
This newsletter was created with Java 8, and is available as open source.
+ +
+ + + +
+ + + + + + + + + + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-pre-articles.html b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-pre-articles.html new file mode 100644 index 000000000..ee96ff2f2 --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-pre-articles.html @@ -0,0 +1,192 @@ + + + +
+ + +
+ + + + + + +
+ + + + + +
+ +
+ + + +
+ + + + + + +
+ + + + + + +
+ + + + + +
+
+ + + + + + +
+ + + + + + + + + + +
+ +

Welcome to the latest edition!

+ +
+ + + +
+ + + + + + +
+ + + + + + + + + + +
+ + Each day the whole of Novoda come together to share project updates, insights and exciting opportunities. One of these snippets is #enews where we + share interesting things we've read or viewed. Our serverless technology peon then takes this knowledge and curates it as a summary. The text below is + exactly as shared by the author on slack, apologies for fast finger spelling mistakes or slightly missing context. :-) +
+ + + +
+ + + + + + +
+ + + + + + +
+ +
+ +
+ + + + + + +
+ + + + + + + + + + +
+ +

Enews of the Week

+ +
+ + + +
\ No newline at end of file diff --git a/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-style.css b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-style.css new file mode 100644 index 000000000..b6a95e040 --- /dev/null +++ b/enews/enews-java/aws-runner/src/main/resources/mailchimp-template-style.css @@ -0,0 +1,466 @@ +p{ + margin:10px 0; + padding:0; + } + table{ + border-collapse:collapse; + } + h1,h2,h3,h4,h5,h6{ + display:block; + margin:0; + padding:0; + } + img,a img{ + border:0; + height:auto; + outline:none; + text-decoration:none; + } + body,#bodyTable,#bodyCell{ + height:100%; + margin:0; + padding:0; + width:100%; + } + .mcnPreviewText{ + display:none !important; + } + #outlook a{ + padding:0; + } + img{ + -ms-interpolation-mode:bicubic; + } + table{ + mso-table-lspace:0pt; + mso-table-rspace:0pt; + } + .ReadMsgBody{ + width:100%; + } + .ExternalClass{ + width:100%; + } + p,a,li,td,blockquote{ + mso-line-height-rule:exactly; + } + a[href^=tel],a[href^=sms]{ + color:inherit; + cursor:default; + text-decoration:none; + } + p,a,li,td,body,table,blockquote{ + -ms-text-size-adjust:100%; + -webkit-text-size-adjust:100%; + } + .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ + line-height:100%; + } + a[x-apple-data-detectors]{ + color:inherit !important; + text-decoration:none !important; + font-size:inherit !important; + font-family:inherit !important; + font-weight:inherit !important; + line-height:inherit !important; + } + .templateContainer{ + max-width:600px !important; + } + a.mcnButton{ + display:block; + } + .mcnImage{ + vertical-align:bottom; + } + .mcnTextContent{ + word-break:break-word; + } + .mcnTextContent img{ + height:auto !important; + } + .mcnDividerBlock{ + table-layout:fixed !important; + } + /* + @tab Page + @section Heading 1 + @style heading 1 + */ + h1{ + /*@editable*/color:#57b7e0; + /*@editable*/font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + /*@editable*/font-size:30px; + /*@editable*/font-style:normal; + /*@editable*/font-weight:bold; + /*@editable*/line-height:200%; + /*@editable*/letter-spacing:normal; + /*@editable*/text-align:center; + } + /* + @tab Page + @section Heading 2 + @style heading 2 + */ + h2{ + /*@editable*/color:#222222; + /*@editable*/font-family:Helvetica; + /*@editable*/font-size:34px; + /*@editable*/font-style:normal; + /*@editable*/font-weight:bold; + /*@editable*/line-height:150%; + /*@editable*/letter-spacing:normal; + /*@editable*/text-align:left; + } + /* + @tab Page + @section Heading 3 + @style heading 3 + */ + h3{ + /*@editable*/color:#444444; + /*@editable*/font-family:Helvetica; + /*@editable*/font-size:22px; + /*@editable*/font-style:normal; + /*@editable*/font-weight:bold; + /*@editable*/line-height:150%; + /*@editable*/letter-spacing:normal; + /*@editable*/text-align:left; + } + /* + @tab Page + @section Heading 4 + @style heading 4 + */ + h4{ + /*@editable*/color:#999999; + /*@editable*/font-family:Georgia; + /*@editable*/font-size:20px; + /*@editable*/font-style:italic; + /*@editable*/font-weight:normal; + /*@editable*/line-height:125%; + /*@editable*/letter-spacing:normal; + /*@editable*/text-align:left; + } + /* + @tab Header + @section Header Container Style + */ + #templateHeader{ + /*@editable*/background-color:#ffffff; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:top; + /*@editable*/background-size:auto; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:0px; + /*@editable*/padding-bottom:0px; + } + /* + @tab Header + @section Header Interior Style + */ + .headerContainer{ + /*@editable*/background-color:#transparent; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:center; + /*@editable*/background-size:cover; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:0px; + /*@editable*/padding-bottom:0px; + } + /* + @tab Header + @section Header Text + */ + .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ + /*@editable*/color:#808080; + /*@editable*/font-family:Helvetica; + /*@editable*/font-size:16px; + /*@editable*/line-height:150%; + /*@editable*/text-align:left; + } + /* + @tab Header + @section Header Link + */ + .headerContainer .mcnTextContent a,.headerContainer .mcnTextContent p a{ + /*@editable*/color:#00ADD8; + /*@editable*/font-weight:normal; + /*@editable*/text-decoration:underline; + } + /* + @tab Body + @section Body Container Style + */ + #templateBody{ + /*@editable*/background-color:#f7f7f7; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:center; + /*@editable*/background-size:cover; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:0px; + /*@editable*/padding-bottom:24px; + } + /* + @tab Body + @section Body Interior Style + */ + .bodyContainer{ + /*@editable*/background-color:#ffffff; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:center; + /*@editable*/background-size:cover; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:8px; + /*@editable*/padding-bottom:24px; + } + /* + @tab Body + @section Body Text + */ + .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ + /*@editable*/color:#808080; + /*@editable*/font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; + /*@editable*/font-size:16px; + /*@editable*/line-height:200%; + /*@editable*/text-align:left; + } + /* + @tab Body + @section Body Link + */ + .bodyContainer .mcnTextContent a,.bodyContainer .mcnTextContent p a{ + /*@editable*/color:#57b7e0; + /*@editable*/font-weight:normal; + /*@editable*/text-decoration:underline; + } + /* + @tab Footer + @section Footer Style + */ + #templateFooter{ + /*@editable*/background-color:#f7f7f7; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:center; + /*@editable*/background-size:cover; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:24px; + /*@editable*/padding-bottom:24px; + } + /* + @tab Footer + @section Footer Interior Style + */ + .footerContainer{ + /*@editable*/background-color:#transparent; + /*@editable*/background-image:none; + /*@editable*/background-repeat:no-repeat; + /*@editable*/background-position:center; + /*@editable*/background-size:cover; + /*@editable*/border-top:0; + /*@editable*/border-bottom:0; + /*@editable*/padding-top:0; + /*@editable*/padding-bottom:0; + } + /* + @tab Footer + @section Footer Text + */ + .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ + /*@editable*/color:#FFFFFF; + /*@editable*/font-family:Helvetica; + /*@editable*/font-size:12px; + /*@editable*/line-height:150%; + /*@editable*/text-align:center; + } + /* + @tab Footer + @section Footer Link + */ + .footerContainer .mcnTextContent a,.footerContainer .mcnTextContent p a{ + /*@editable*/color:#4caad8; + /*@editable*/font-weight:normal; + /*@editable*/text-decoration:none; + } + @media only screen and (min-width:768px){ + .templateContainer{ + width:600px !important; + } + +} @media only screen and (max-width: 480px){ + body,table,td,p,a,li,blockquote{ + -webkit-text-size-adjust:none !important; + } + +} @media only screen and (max-width: 480px){ + body{ + width:100% !important; + min-width:100% !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImage{ + width:100% !important; + } + +} @media only screen and (max-width: 480px){ + .mcnCartContainer,.mcnCaptionTopContent,.mcnRecContentContainer,.mcnCaptionBottomContent,.mcnTextContentContainer,.mcnBoxedTextContentContainer,.mcnImageGroupContentContainer,.mcnCaptionLeftTextContentContainer,.mcnCaptionRightTextContentContainer,.mcnCaptionLeftImageContentContainer,.mcnCaptionRightImageContentContainer,.mcnImageCardLeftTextContentContainer,.mcnImageCardRightTextContentContainer{ + max-width:100% !important; + width:100% !important; + } + +} @media only screen and (max-width: 480px){ + .mcnBoxedTextContentContainer{ + min-width:100% !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageGroupContent{ + padding:9px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnCaptionLeftContentOuter .mcnTextContent,.mcnCaptionRightContentOuter .mcnTextContent{ + padding-top:9px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageCardTopImageContent,.mcnCaptionBlockInner .mcnCaptionTopContent:last-child .mcnTextContent{ + padding-top:18px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageCardBottomImageContent{ + padding-bottom:9px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageGroupBlockInner{ + padding-top:0 !important; + padding-bottom:0 !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageGroupBlockOuter{ + padding-top:9px !important; + padding-bottom:9px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnTextContent,.mcnBoxedTextContentColumn{ + padding-right:18px !important; + padding-left:18px !important; + } + +} @media only screen and (max-width: 480px){ + .mcnImageCardLeftImageContent,.mcnImageCardRightImageContent{ + padding-right:18px !important; + padding-bottom:0 !important; + padding-left:18px !important; + } + +} @media only screen and (max-width: 480px){ + .mcpreview-image-uploader{ + display:none !important; + width:100% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Heading 1 + @tip Make the first-level headings larger in size for better readability on small screens. + */ + h1{ + /*@editable*/font-size:28px !important; + /*@editable*/line-height:150% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Heading 2 + @tip Make the second-level headings larger in size for better readability on small screens. + */ + h2{ + /*@editable*/font-size:26px !important; + /*@editable*/line-height:125% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Heading 3 + @tip Make the third-level headings larger in size for better readability on small screens. + */ + h3{ + /*@editable*/font-size:20px !important; + /*@editable*/line-height:125% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Heading 4 + @tip Make the fourth-level headings larger in size for better readability on small screens. + */ + h4{ + /*@editable*/font-size:18px !important; + /*@editable*/line-height:125% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Boxed Text + @tip Make the boxed text larger in size for better readability on small screens. We recommend a font size of at least 16px. + */ + .mcnBoxedTextContentContainer .mcnTextContent,.mcnBoxedTextContentContainer .mcnTextContent p{ + /*@editable*/font-size:14px !important; + /*@editable*/line-height:100% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Header Text + @tip Make the header text larger in size for better readability on small screens. + */ + .headerContainer .mcnTextContent,.headerContainer .mcnTextContent p{ + /*@editable*/font-size:16px !important; + /*@editable*/line-height:125% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Body Text + @tip Make the body text larger in size for better readability on small screens. We recommend a font size of at least 16px. + */ + .bodyContainer .mcnTextContent,.bodyContainer .mcnTextContent p{ + /*@editable*/font-size:16px !important; + /*@editable*/line-height:150% !important; + } + +} @media only screen and (max-width: 480px){ + /* + @tab Mobile Styles + @section Footer Text + @tip Make the footer content text larger in size for better readability on small screens. + */ + .footerContainer .mcnTextContent,.footerContainer .mcnTextContent p{ + /*@editable*/font-size:14px !important; + /*@editable*/line-height:150% !important; + } + +} \ No newline at end of file