File tree 10 files changed +24
-17
lines changed
public/email/images_no-svgs 10 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 4
4
<link rel =" stylesheet" type =" text/css" href =" email/style.css" />
5
5
</head >
6
6
7
- <body class =" font" >
7
+ <body style =" background: white; width: 600px; min-height: 80vh; font-family: 'Nunito';
8
+ font-style: normal" >
8
9
{{> header }}
9
10
10
11
{{> bills }}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const registerHelpers = () => {
10
10
handlebars . registerHelper ( "addCounts" , helpers . addCounts )
11
11
handlebars . registerHelper ( "ifGreaterThan" , helpers . ifGreaterThan )
12
12
handlebars . registerHelper ( "isDefined" , helpers . isDefined )
13
+ handlebars . registerHelper ( "formatDate" , helpers . formatDate )
13
14
handlebars . registerHelper ( "minusFour" , helpers . minusFour )
14
15
handlebars . registerHelper ( "noUpdatesFormat" , helpers . noUpdatesFormat )
15
16
handlebars . registerHelper ( "toLowerCase" , helpers . toLowerCase )
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ export function isDefined(v: unknown) {
22
22
return v !== undefined
23
23
}
24
24
25
+ export function formatDate ( timestamp : Date ) {
26
+ const date = new Date ( timestamp )
27
+
28
+ return date . toLocaleDateString ( )
29
+ }
30
+
25
31
export function minusFour ( value : number ) {
26
32
const result = value - 4
27
33
return result
Original file line number Diff line number Diff line change 1
1
<section style =" margin-left: 47.5px; margin-right: 47.5px; padding-bottom: 20px" >
2
2
<div style =" margin-bottom: 20px;" >
3
- <h5 style =" display: inline-block; font-weight: 600; font-size: 25px; line-height: 125%; margin-right: 20px ; margin-bottom: 0px;
3
+ <h5 style =" display: inline-block; font-weight: 600; font-size: 25px; line-height: 125%; margin-right: 30px ; margin-bottom: 0px;
4
4
color: #C71E32;" >
5
5
Bills
6
6
</h5 >
Original file line number Diff line number Diff line change 1
- <footer style =" margin: 20px 47.5px 0 47.5px " >
1
+ <footer style =" width: 600px " >
2
2
<hr style =" height: 3px; border-width: 0; color: #101010; background-color: #101010" >
3
3
<p style =" font-weight: 600; font-size: 12px; line-height: 125%; letter-spacing: 0.03em;
4
4
color: #000000; margin-top: 36px" >
Original file line number Diff line number Diff line change 1
1
<div id =" logo" style =" background-color: #1a3185; padding: 16px 20px 16px 50px" >
2
- <img src =" email\images_no-svgs\Logo.png" alt =" Maple Logo" />
3
- {{!-- On prod, replace with: --}}
4
- {{!-- <img src="https://mapletestimony.org/email/images_no-svgs/Logo.png" alt="Maple Logo" /> --}}
2
+ <img src =" https://mapletestimony.org/email/images_no-svgs/Logo.png" alt =" Maple Logo" />
5
3
</div >
6
4
7
5
<header style =" background-color: #FFFFFF; padding: 24px 0px 12px;
16
14
of the Bills and Users you follow!
17
15
</h2 >
18
16
<p class =" subheadline blue center" style =" font-weight: 600; font-size: 12px; line-height: 125%;
19
- color: #1a3185; display: block; margin: auto; width: 30%; " >
20
- {{ startDate }} - {{ endDate }}
17
+ color: #1a3185; display: block; margin: auto; width: 30%" >
18
+ {{ formatDate startDate }} - {{ formatDate endDate }}
21
19
</p >
22
20
</div >
23
- <img src =" email\images_no-svgs\Mail Report.png" alt =" Report" style =" display: block; margin: auto; width: 32%;" />
24
- {{!-- On prod, replace with: --}}
25
- {{!-- <img src="https://mapletestimony.org/email/images_no-svgs/Mail Report.png" alt="Report" style="display: block; margin: auto; width: 32%;" /> --}}
21
+ <img src =" https://mapletestimony.org/email/images_no-svgs/Mail Report.png" alt =" Report" style =" display: block; margin: auto; width: 32%" />
26
22
</header >
Original file line number Diff line number Diff line change 1
- <nav style =" background-color: #1a3185; color: #FFFFFF" >
1
+ <div id = " nav" style =" background-color: #1a3185; color: #FFFFFF; width: 600px " >
2
2
<div style =" display: block; margin: auto; width: 43%" >
3
3
<p style =" display: inline-block; font-weight: 500; font-size: 16px; line-height: 125%;
4
- letter-spacing: 0.015em; margin-right: 4px; margin-bottom: 0px; "
4
+ letter-spacing: 0.015em; margin-right: 4px; margin-bottom: 0px"
5
5
>
6
6
see more at your
7
7
</p >
18
18
</a >
19
19
</p >
20
20
</div >
21
- </nav >
21
+ </div >
Original file line number Diff line number Diff line change 1
- <div class = " noUpdatesIcon " >
2
- <img src =" / empty mail.svg " alt =" Empty Mail" />
1
+ <div style = " padding-top: 12px; padding-bottom: 20px; display: block; margin: auto; width: 65% " >
2
+ <img src =" https://mapletestimony.org/email/images_no-svgs/ empty- mail.png " alt =" Empty Mail" />
3
3
</div >
4
- <h5 class =" noUpdatesTitle" >No updates for
4
+ <h5 style =" font-weight: 600; font-size: 25px; line-height: 125%; margin-bottom: 0px;
5
+ display: block; margin: auto; width: 65%; color: #000000"
6
+ >No updates for
5
7
{{ noUpdatesFormat notificationFrequency }} !
6
8
</h5 >
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const EMAIL_TEMPLATE_PATH = "./functions/src/email/digestEmail.handlebars"
22
22
handlebars . registerHelper ( "addCounts" , helpers . addCounts )
23
23
handlebars . registerHelper ( "ifGreaterThan" , helpers . ifGreaterThan )
24
24
handlebars . registerHelper ( "isDefined" , helpers . isDefined )
25
+ handlebars . registerHelper ( "formatDate" , helpers . formatDate )
25
26
handlebars . registerHelper ( "minusFour" , helpers . minusFour )
26
27
handlebars . registerHelper ( "noUpdatesFormat" , helpers . noUpdatesFormat )
27
28
handlebars . registerHelper ( "toLowerCase" , helpers . toLowerCase )
You can’t perform that action at this time.
0 commit comments