Tonne of updates to influence, the configs, update the homepage, and generally just did more bug testing with Influence
This commit is contained in:
132
influence/app/templates/email/campaign-email.html
Normal file
132
influence/app/templates/email/campaign-email.html
Normal file
@@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{CAMPAIGN_TITLE}} - Campaign Message</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 2px solid #e74c3c;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.logo {
|
||||
color: #e74c3c;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.campaign-badge {
|
||||
background: linear-gradient(135deg, #e74c3c, #c0392b);
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 25px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
border-left: 4px solid #e74c3c;
|
||||
}
|
||||
.message-body {
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
margin: 20px 0;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.sender-info {
|
||||
background-color: #fff5f5;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #fecaca;
|
||||
}
|
||||
.info-item {
|
||||
margin: 8px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.info-label {
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
color: #7f1d1d;
|
||||
}
|
||||
.info-value {
|
||||
color: #2c3e50;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
}
|
||||
.app-branding {
|
||||
color: #e74c3c;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
<div class="campaign-badge">{{CAMPAIGN_TITLE}}</div>
|
||||
<p style="margin: 10px 0 0 0; color: #6c757d;">Constituent Advocacy Campaign</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="message-body">
|
||||
{{MESSAGE}}
|
||||
</div>
|
||||
|
||||
<div class="sender-info">
|
||||
<h4 style="margin: 0 0 10px 0; color: #7f1d1d;">Campaign Participant Information:</h4>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Name:</span>
|
||||
<span class="info-value">{{USER_NAME}}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Email:</span>
|
||||
<span class="info-value">{{USER_EMAIL}}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Postal Code:</span>
|
||||
<span class="info-value">{{POSTAL_CODE}}</span>
|
||||
</div>
|
||||
{{#if RECIPIENT_NAME}}
|
||||
<div class="info-item">
|
||||
<span class="info-label">To:</span>
|
||||
<span class="info-value">{{RECIPIENT_NAME}} ({{RECIPIENT_LEVEL}})</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>This message was sent via the <span class="app-branding">{{APP_NAME}}</span> as part of the "<strong>{{CAMPAIGN_TITLE}}</strong>" campaign at {{TIMESTAMP}}</p>
|
||||
<p>This platform enables constituents to participate in organized advocacy campaigns to communicate with their elected representatives.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
16
influence/app/templates/email/campaign-email.txt
Normal file
16
influence/app/templates/email/campaign-email.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
{{CAMPAIGN_TITLE}} - Campaign Message
|
||||
|
||||
{{MESSAGE}}
|
||||
|
||||
---
|
||||
Campaign Participant Information:
|
||||
Name: {{USER_NAME}}
|
||||
Email: {{USER_EMAIL}}
|
||||
Postal Code: {{POSTAL_CODE}}
|
||||
{{#if RECIPIENT_NAME}}
|
||||
To: {{RECIPIENT_NAME}} ({{RECIPIENT_LEVEL}})
|
||||
{{/if}}
|
||||
|
||||
---
|
||||
This message was sent via the {{APP_NAME}} as part of the "{{CAMPAIGN_TITLE}}" campaign at {{TIMESTAMP}}
|
||||
This platform enables constituents to participate in organized advocacy campaigns to communicate with their elected representatives.
|
||||
115
influence/app/templates/email/representative-contact.html
Normal file
115
influence/app/templates/email/representative-contact.html
Normal file
@@ -0,0 +1,115 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Message from Constituent</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #f9f9f9;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 1px solid #e0e0e0;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 2px solid #3498db;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.logo {
|
||||
color: #3498db;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 25px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
border-left: 4px solid #3498db;
|
||||
}
|
||||
.message-body {
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
margin: 20px 0;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.sender-info {
|
||||
background-color: #f8f9fa;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #e9ecef;
|
||||
}
|
||||
.info-item {
|
||||
margin: 8px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.info-label {
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
color: #495057;
|
||||
}
|
||||
.info-value {
|
||||
color: #2c3e50;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
}
|
||||
.app-branding {
|
||||
color: #3498db;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
<p style="margin: 5px 0 0 0; color: #6c757d;">Constituent Communication Platform</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="message-body">
|
||||
{{MESSAGE}}
|
||||
</div>
|
||||
|
||||
<div class="sender-info">
|
||||
<h4 style="margin: 0 0 10px 0; color: #495057;">Constituent Information:</h4>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Name:</span>
|
||||
<span class="info-value">{{SENDER_NAME}}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Email:</span>
|
||||
<span class="info-value">{{SENDER_EMAIL}}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="info-label">Postal Code:</span>
|
||||
<span class="info-value">{{POSTAL_CODE}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>This message was sent via the <span class="app-branding">{{APP_NAME}}</span> at {{TIMESTAMP}}</p>
|
||||
<p>This platform enables constituents to communicate directly with their elected representatives.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
influence/app/templates/email/representative-contact.txt
Normal file
13
influence/app/templates/email/representative-contact.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Message from Constituent - {{APP_NAME}}
|
||||
|
||||
{{MESSAGE}}
|
||||
|
||||
---
|
||||
Constituent Information:
|
||||
Name: {{SENDER_NAME}}
|
||||
Email: {{SENDER_EMAIL}}
|
||||
Postal Code: {{POSTAL_CODE}}
|
||||
|
||||
---
|
||||
This message was sent via the {{APP_NAME}} at {{TIMESTAMP}}
|
||||
This platform enables constituents to communicate directly with their elected representatives.
|
||||
101
influence/app/templates/email/test-email.html
Normal file
101
influence/app/templates/email/test-email.html
Normal file
@@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Test Email - {{APP_NAME}}</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.container {
|
||||
background-color: #fff3cd;
|
||||
border-radius: 8px;
|
||||
padding: 30px;
|
||||
border: 2px solid #ffc107;
|
||||
}
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
border-bottom: 2px solid #ffc107;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
.logo {
|
||||
color: #856404;
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.test-badge {
|
||||
background: #dc3545;
|
||||
color: white;
|
||||
padding: 8px 16px;
|
||||
border-radius: 20px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
margin-top: 10px;
|
||||
}
|
||||
.content {
|
||||
background-color: white;
|
||||
padding: 25px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
border-left: 4px solid #ffc107;
|
||||
}
|
||||
.message-body {
|
||||
font-size: 16px;
|
||||
line-height: 1.7;
|
||||
margin: 20px 0;
|
||||
color: #2c3e50;
|
||||
}
|
||||
.test-info {
|
||||
background-color: #f8d7da;
|
||||
padding: 15px;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
border: 1px solid #f5c6cb;
|
||||
}
|
||||
.footer {
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: #6c757d;
|
||||
margin-top: 30px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #e9ecef;
|
||||
}
|
||||
.app-branding {
|
||||
color: #856404;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="logo">{{APP_NAME}}</div>
|
||||
<div class="test-badge">TEST EMAIL</div>
|
||||
<p style="margin: 10px 0 0 0; color: #856404;">Email System Test</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="test-info">
|
||||
<h4 style="margin: 0 0 10px 0; color: #721c24;">⚠️ This is a test email</h4>
|
||||
<p style="margin: 0; color: #721c24;">This email was sent to verify the email system is working correctly.</p>
|
||||
</div>
|
||||
|
||||
<div class="message-body">
|
||||
{{MESSAGE}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p><strong>TEST EMAIL</strong> sent from <span class="app-branding">{{APP_NAME}}</span> at {{TIMESTAMP}}</p>
|
||||
<p>If you received this email, the email system is functioning properly.</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
10
influence/app/templates/email/test-email.txt
Normal file
10
influence/app/templates/email/test-email.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
TEST EMAIL - {{APP_NAME}}
|
||||
|
||||
⚠️ This is a test email
|
||||
This email was sent to verify the email system is working correctly.
|
||||
|
||||
{{MESSAGE}}
|
||||
|
||||
---
|
||||
TEST EMAIL sent from {{APP_NAME}} at {{TIMESTAMP}}
|
||||
If you received this email, the email system is functioning properly.
|
||||
Reference in New Issue
Block a user