Browse Source

Clean up the emails.

master
Zed A. Shaw 4 months ago
parent
commit
8075fcb283
  1. 4
      emails/config.js
  2. 2
      emails/invoice.html
  3. 4
      emails/invoice.txt
  4. 2
      emails/receipt.txt
  5. 4
      emails/register_email.html
  6. 4
      emails/register_email.txt
  7. 120
      emails/reset_finished.html

4
emails/config.js

@ -10,5 +10,7 @@ export const company = {
country: 'USA',
phone: '1-800-NO-WAY',
mail: 'payments@yoursite.com',
website: 'localhost:5001'
website: 'localhost:5001',
credit_line: "PRDCT",
forum: "talk.company.com"
}

2
emails/invoice.html

@ -535,7 +535,7 @@ body {
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
<tr>
<td class="content-cell" align="center">
<p class="f-fallback sub align-center">&copy; 2020 <em>Zed A. Shaw</em>. All rights reserved.</p>
<p class="f-fallback sub align-center">&copy; 2020 <em><%- company.owner %></em>. All rights reserved.</p>
<p class="f-fallback sub align-center">
<%- company.name %>
<br><%- company.street %>

4
emails/invoice.txt

@ -6,7 +6,7 @@ This is an invoice for your recent purchase on <%- purchase.date %>. No payment
Hi <%- user.full_name %>,
************
Thanks for using [Learn JS the Hard Way]. This email is the invoice for your purchase. No payment is due.
Thanks for using [<%- company.product %>]. This email is the invoice for your purchase. No payment is due.
Purchaser
=========
@ -48,7 +48,7 @@ $<%-purchase.amount %><%- purchase.currency %>
Total
[[ $<%-purchase.total %><%- purchase.currency %> ]]
[[ $<%-purchase.total %><%- purchase.currency %> ]]
==========================================
(C) <%- company.copyright_date %> <%- company.owner %>. All rights reserved.

2
emails/receipt.txt

@ -8,7 +8,7 @@ Hi <%- user.full_name %>,
Thanks for purchasing [Learn JavaScript the Hard Way]. This email is the receipt for your purchase. No payment is due.
This purchase will appear as "LJSTHW" on your credit card statement.
This purchase will appear as "<%- company.credit_line %>" on your credit card statement.
Receipt ID: <%- purchase.receipt_id %>
--------------

4
emails/register_email.html

@ -496,8 +496,8 @@ body {
</table>
<p>If you have any questions, feel free to <a href="mailto:help@<%- company.website %>/a>. (We're lightning quick at replying.) We also offer <a href="https://talk.<%- company.website %>">a help forum</a>.</p>
<p>Thanks,
<br>Zed and the <em><%- company.product %></em> Team</p>
<p><strong>P.S.</strong> Need immediate help getting started? Check out our forum <a href="https://talk.<%- company.website %>">https://talk.<%- company.website %>/</a>. Or, just reply to this email, the <em><%- company.product %></em> support team is always ready to help!</p>
<br><%- company.owner %> and the <em><%- company.product %></em> Team</p>
<p><strong>P.S.</strong> Need immediate help getting started? Check out our forum <a href="https://<%- company.forum %>"><%- company.forum %>/</a>. Or, just reply to this email, the <em><%- company.product %></em> support team is always ready to help!</p>
<!-- Sub copy -->
<table class="body-sub" role="presentation">
<tr>

4
emails/register_email.txt

@ -19,12 +19,12 @@ Login Page: https://<%- company.website %>/auth
Username: <%- user.username %>
If you have any questions, feel free to email our customer success team ( help@<%- company.website %> ). We also offer a forum ( https://talk.<%- company.website %>/ ).
If you have any questions, feel free to email our customer success team ( help@<%- company.website %> ). We also offer a forum ( https://<%- company.forum %>/ ).
Thanks,
Zed and the <%- company.product %>
P.S. Need help getting started? Check out our forum ( https://talk.<%- company.website %>/ ). Or, just reply to this email, the <%- company.product %> support team is always ready to help!
P.S. Need help getting started? Check out our forum ( https://<%- company.forum %>/ ). Or, just reply to this email, the <%- company.product %> support team is always ready to help!
Copyright (C) <%- company.copyright_date %> <%- company.owner %>. All rights reserved.

120
emails/reset_finished.html

@ -6,29 +6,29 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="color-scheme" content="light dark" />
<meta name="supported-color-schemes" content="light dark" />
<title>Learn JavaScript the Hard Way -- Reset Complete</title>
<title><%- company.product %> -- Reset Complete</title>
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
body {
width: 100% !important;
height: 100%;
margin: 0;
-webkit-text-size-adjust: none;
}
a {
color: #3869D4;
}
a img {
border: none;
}
td {
word-break: break-word;
}
.preheader {
display: none !important;
visibility: hidden;
@ -41,13 +41,13 @@
overflow: hidden;
}
/* Type ------------------------------ */
body,
td,
th {
font-family: Helvetica, Arial, sans-serif;
}
h1 {
margin-top: 0;
color: #333333;
@ -55,7 +55,7 @@
font-weight: bold;
text-align: left;
}
h2 {
margin-top: 0;
color: #333333;
@ -63,7 +63,7 @@
font-weight: bold;
text-align: left;
}
h3 {
margin-top: 0;
color: #333333;
@ -71,12 +71,12 @@
font-weight: bold;
text-align: left;
}
td,
th {
font-size: 16px;
}
p,
ul,
ol,
@ -85,25 +85,25 @@
font-size: 16px;
line-height: 1.625;
}
p.sub {
font-size: 13px;
}
/* Utilities ------------------------------ */
.align-right {
text-align: right;
}
.align-left {
text-align: left;
}
.align-center {
text-align: center;
}
/* Buttons ------------------------------ */
.button {
background-color: #3869D4;
border-top: 10px solid #3869D4;
@ -118,7 +118,7 @@
-webkit-text-size-adjust: none;
box-sizing: border-box;
}
.button--green {
background-color: #22BC66;
border-top: 10px solid #22BC66;
@ -126,7 +126,7 @@
border-bottom: 10px solid #22BC66;
border-left: 18px solid #22BC66;
}
.button--red {
background-color: #FF6136;
border-top: 10px solid #FF6136;
@ -134,7 +134,7 @@
border-bottom: 10px solid #FF6136;
border-left: 18px solid #FF6136;
}
@media only screen and (max-width: 500px) {
.button {
width: 100% !important;
@ -142,21 +142,21 @@
}
}
/* Attribute list ------------------------------ */
.attributes {
margin: 0 0 21px;
}
.attributes_content {
background-color: #F4F4F7;
padding: 16px;
}
.attributes_item {
padding: 0;
}
/* Related Items ------------------------------ */
.related {
width: 100%;
margin: 0;
@ -165,31 +165,31 @@
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.related_item {
padding: 10px 0;
color: #CBCCCF;
font-size: 15px;
line-height: 18px;
}
.related_item-title {
display: block;
margin: .5em 0 0;
}
.related_item-thumb {
display: block;
padding-bottom: 10px;
}
.related_heading {
border-top: 1px solid #CBCCCF;
text-align: center;
padding: 25px 0 10px;
}
/* Discount Code ------------------------------ */
.discount {
width: 100%;
margin: 0;
@ -200,33 +200,33 @@
background-color: #F4F4F7;
border: 2px dashed #CBCCCF;
}
.discount_heading {
text-align: center;
}
.discount_body {
text-align: center;
font-size: 15px;
}
/* Social Icons ------------------------------ */
.social {
width: auto;
}
.social td {
padding: 0;
width: auto;
}
.social_icon {
height: 20px;
margin: 0 8px 10px 8px;
padding: 0;
}
/* Data table ------------------------------ */
.purchase {
width: 100%;
margin: 0;
@ -235,7 +235,7 @@
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.purchase_content {
width: 100%;
margin: 0;
@ -244,54 +244,54 @@
-premailer-cellpadding: 0;
-premailer-cellspacing: 0;
}
.purchase_item {
padding: 10px 0;
color: #51545E;
font-size: 15px;
line-height: 18px;
}
.purchase_heading {
padding-bottom: 8px;
border-bottom: 1px solid #EAEAEC;
}
.purchase_heading p {
margin: 0;
color: #85878E;
font-size: 12px;
}
.purchase_footer {
padding-top: 15px;
border-top: 1px solid #EAEAEC;
}
.purchase_total {
margin: 0;
text-align: right;
font-weight: bold;
color: #333333;
}
.purchase_total--label {
padding: 0 15px 0 0;
}
body {
background-color: #F4F4F7;
color: #51545E;
}
p {
color: #51545E;
}
p.sub {
color: #6B6E76;
}
.email-wrapper {
width: 100%;
margin: 0;
@ -301,7 +301,7 @@
-premailer-cellspacing: 0;
background-color: #F4F4F7;
}
.email-content {
width: 100%;
margin: 0;
@ -311,16 +311,16 @@
-premailer-cellspacing: 0;
}
/* Masthead ----------------------- */
.email-masthead {
padding: 25px 0;
text-align: center;
}
.email-masthead_logo {
width: 94px;
}
.email-masthead_name {
font-size: 16px;
font-weight: bold;
@ -329,7 +329,7 @@
text-shadow: 0 1px 0 white;
}
/* Body ------------------------------ */
.email-body {
width: 100%;
margin: 0;
@ -339,7 +339,7 @@
-premailer-cellspacing: 0;
background-color: #FFFFFF;
}
.email-body_inner {
width: 570px;
margin: 0 auto;
@ -349,7 +349,7 @@
-premailer-cellspacing: 0;
background-color: #FFFFFF;
}
.email-footer {
width: 570px;
margin: 0 auto;
@ -359,11 +359,11 @@
-premailer-cellspacing: 0;
text-align: center;
}
.email-footer p {
color: #6B6E76;
}
.body-action {
width: 100%;
margin: 30px auto;
@ -373,25 +373,25 @@
-premailer-cellspacing: 0;
text-align: center;
}
.body-sub {
margin-top: 25px;
padding-top: 25px;
border-top: 1px solid #EAEAEC;
}
.content-cell {
padding: 35px;
}
/*Media Queries ------------------------------ */
@media only screen and (max-width: 600px) {
.email-body_inner,
.email-footer {
width: 100% !important;
}
}
@media (prefers-color-scheme: dark) {
body,
.email-body,
@ -420,7 +420,7 @@
text-shadow: none !important;
}
}
:root {
color-scheme: light dark;
supported-color-schemes: light dark;

Loading…
Cancel
Save