Skip to content

Commit

Permalink
DC Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tayhalla committed Feb 7, 2021
1 parent 646aa3a commit c837389
Show file tree
Hide file tree
Showing 19 changed files with 4,444 additions and 5,067 deletions.
1 change: 1 addition & 0 deletions dist/clubs/dc-otto/mailer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendPublicRSVPEmail = exports.sendMemberUnRSVPEmail = exports.buildRSVPEmail = exports.sendProviderRequestEmail = exports.buildServiceRequestEmail = exports.sendMembershipInquiryResponseEmail = exports.sendMembershipInquiryEmail = exports.sendMembershipApplicationEmail = exports.buildWelcomeEmail = exports.buildServiceEmails = exports.buildFormEmail = exports.buildOnboardingEmail = exports.buildEventEmails = void 0;
const core = require("club-hub-core");
const templates = require("./templates");
exports.buildEventEmails = (action, club, user, event) => __awaiter(void 0, void 0, void 0, function* () {
Expand Down
1 change: 1 addition & 0 deletions dist/clubs/dc-otto/mailer/templates/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as core from 'club-hub-core';
import { Model } from 'mongoose';
declare const welcomeEmailTemplate: (member: core.User.Model, club: core.Club.Model, invitation: core.Invitation.Model) => string;
declare const dcMembershipApplicationTemplate: (memberInfo: any, club: core.Club.Model) => string;
declare const ottoMembershipApplicationTemplate: (memberInfo: any, club: core.Club.Model) => string;
Expand Down
13 changes: 8 additions & 5 deletions dist/clubs/dc-otto/mailer/templates/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MembershipInquiryResponseTemplate = exports.MembershipInquiryTemplate = exports.WelcomeEmailTemplate = exports.NewProviderTemplate = exports.OttoMembershipApplicationTemplate = exports.DcMembershipApplicationTemplate = exports.ServiceRequestTemplate = exports.UnRsvpTemplate = exports.PublicRsvpTemplate = exports.RsvpTemplate = void 0;
const core = require("club-hub-core");
const ts_optchain_1 = require("ts-optchain");
const welcomeEmailTemplate = (member, club, invitation) => {
Expand Down Expand Up @@ -167,7 +168,12 @@ const membershipInquiryTemplate = (memberInfo, club) => {
exports.MembershipInquiryTemplate = membershipInquiryTemplate;
const membershipInquiryResponseTemplate = (memberFormInfo, club, url) => {
const applicationURL = `${club.baseURL}/forms/application`;
const admin = (club.name === core.Constants.Clubs.DRIVERS_CLUB) ? 'Amanda Friedman' : 'Eli Kogan';
const final = (club.name === core.Constants.Clubs.DRIVERS_CLUB) ? '' : `
<p>Sincerely,</p>
<p>Eli Kogan</p>
<p>General Manager</p>
`;
const message = `
<p>Dear ${memberFormInfo.firstName},</p>
Expand All @@ -177,10 +183,7 @@ const membershipInquiryResponseTemplate = (memberFormInfo, club, url) => {
<p>Please click <a href="${applicationURL}">this link</a> to begin the formal application process.</p>
<p>Sincerely,</p>
<p>${admin}</p>
<p>General Manager</p>
${final}
`;
return message;
};
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompileServiceEmail = exports.CompileInvalidEmailAdminNotification = exports.CompileWelcomeEmail = exports.CompileConfirmationEmail = exports.CompilePostEmail = exports.CompileEventEmail = exports.CompileGenericEmail = exports.constants = exports.transform = exports.CarClub = void 0;
const fs = require("fs");
const Handlebars = require("handlebars");
const CarClub = require("./clubs/dc-otto/mailer/index");
Expand Down
1 change: 1 addition & 0 deletions dist/services/ses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MESSAGE_REJECTED = void 0;
const aws_sdk_1 = require("aws-sdk");
const await_to_js_1 = require("await-to-js");
const CHARSET_UTF_8 = 'UTF-8';
Expand Down
2 changes: 1 addition & 1 deletion dist/templates/confirmation.html

Large diffs are not rendered by default.

52 changes: 32 additions & 20 deletions dist/templates/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,22 @@ center {
a img {
border: none; }

p {
margin: 0 0 0 0px;
Margin: 0 0 0 0px; }

table {
border-spacing: 0;
border-collapse: collapse; }

td {
td, th {
word-wrap: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
border-collapse: collapse !important; }

table, tr, td {
padding: 0;
table, tr, td, th {
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
vertical-align: top;
text-align: left; }

Expand Down Expand Up @@ -85,15 +84,20 @@ th.columns {
Margin: 0 auto;
padding-left: 16px;
padding-bottom: 16px; }
th.columns .columns {
padding-left: 0 !important;
th.columns .columns.first {
padding-left: 0 !important; }
th.columns .columns.last {
padding-right: 0 !important; }

th.columns.last {
padding-right: 16px; }

th.columns table:not(.button) {
th.columns table {
width: 100%; }
th.columns table.button {
width: auto; }
th.columns table.button.expanded {
width: 100%; }

th.large-6 {
width: 254px;
Expand Down Expand Up @@ -163,12 +167,14 @@ h1,
h6,
p,
td,
th,
a {
th {
color: #495057;
font-family: Avenir, Helvetica, Arial, sans-serif;
font-weight: normal;
padding: 0;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
margin: 0;
Margin: 0;
text-align: left;
Expand Down Expand Up @@ -204,13 +210,14 @@ p {
font-size: 20px;
line-height: 1.6; }

small {
font-size: 80%;
color: #cacaca; }

a {
color: #1d362c;
text-decoration: none; }
text-decoration: none;
font-family: Avenir, Helvetica, Arial, sans-serif;
font-weight: normal;
padding: 0;
text-align: left;
line-height: 1.75; }
a:hover {
color: #0b1511; }
a:active {
Expand Down Expand Up @@ -245,6 +252,7 @@ table.button {
font-weight: 500;
color: #fefefe;
text-decoration: none;
text-align: left;
display: inline-block;
padding: 8px 16px 8px 16px;
border: 0 solid #1d362c;
Expand All @@ -264,7 +272,7 @@ table.button.small table a {
font-size: 14px; }

table.button.expanded {
width: 100% !important; }
width: 100%; }
table.button.expanded table {
width: 100%; }
table.button.expanded table a {
Expand Down Expand Up @@ -302,7 +310,11 @@ table.menu.vertical th.menu-item {
width: 100%; }

.menu[align="center"] {
width: auto !important; }
width: auto; }

.menu.vertical .menu-item {
padding-left: 0 !important;
padding-right: 0 !important; }

@media only screen and (max-width: 556px) {
table.body img {
Expand Down
2 changes: 1 addition & 1 deletion dist/templates/event.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/templates/generic.html

Large diffs are not rendered by default.

Loading

0 comments on commit c837389

Please sign in to comment.