New public shifts system

This commit is contained in:
2025-08-22 14:45:40 -06:00
parent d96d76d104
commit a8edcf8592
24 changed files with 2236 additions and 65 deletions

View File

@@ -0,0 +1,182 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shift Signup Confirmation</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #f8f9fa;
}
.container {
background: white;
border-radius: 8px;
padding: 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
border-bottom: 3px solid #28a745;
padding-bottom: 20px;
margin-bottom: 30px;
}
.header h1 {
color: #28a745;
margin: 0;
font-size: 28px;
}
.welcome-message {
background: #d4edda;
padding: 20px;
border-radius: 6px;
border-left: 4px solid #28a745;
margin: 20px 0;
}
.shift-details {
background: #f8f9fa;
padding: 20px;
border-radius: 6px;
margin: 20px 0;
}
.shift-details h2 {
color: #28a745;
margin-top: 0;
margin-bottom: 15px;
font-size: 22px;
}
.detail-row {
display: flex;
margin: 8px 0;
align-items: center;
}
.detail-label {
font-weight: bold;
min-width: 100px;
color: #666;
}
.actions {
text-align: center;
margin: 30px 0;
}
.button {
display: inline-block;
background: #28a745;
color: white;
padding: 12px 30px;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
margin: 10px;
}
.button:hover {
background: #218838;
}
.secondary-link {
color: #28a745;
text-decoration: none;
}
.secondary-link:hover {
text-decoration: underline;
}
.footer {
text-align: center;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #dee2e6;
color: #666;
font-size: 14px;
}
.important {
background: #d1ecf1;
border: 1px solid #bee5eb;
border-radius: 4px;
padding: 15px;
margin: 20px 0;
color: #0c5460;
}
.important strong {
color: #0c5460;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>✅ Shift Signup Confirmed!</h1>
</div>
<div class="welcome-message">
<p><strong>Hi {{USER_NAME}},</strong></p>
<p>Great news! You've been successfully signed up for another volunteer shift with {{APP_NAME}}.</p>
</div>
<div class="shift-details">
<h2>📅 {{SHIFT_TITLE}}</h2>
<div class="detail-row">
<span class="detail-label">📅 Date:</span>
<span>{{SHIFT_DATE}}</span>
</div>
<div class="detail-row">
<span class="detail-label">⏰ Time:</span>
<span>{{SHIFT_TIME}}</span>
</div>
<div class="detail-row">
<span class="detail-label">📍 Location:</span>
<span>{{SHIFT_LOCATION}}</span>
</div>
{{#if SHIFT_DESCRIPTION}}
<div style="margin-top: 15px;">
<strong>Details:</strong><br>
{{SHIFT_DESCRIPTION}}
</div>
{{/if}}
</div>
<div class="important">
<strong>What's Next?</strong>
<ul style="margin: 10px 0; padding-left: 20px;">
<li>Mark your calendar for {{SHIFT_DATE}} at {{SHIFT_TIME}}</li>
<li>Login to your existing account using your current credentials</li>
<li>You can view or cancel your signup anytime from your account</li>
<li>We'll send you reminder details closer to the shift date</li>
</ul>
</div>
<div class="actions">
<a href="{{LOGIN_URL}}" class="button">🔐 Login to Your Account</a>
<br>
<p style="margin-top: 15px;">
Once logged in, visit <a href="{{SHIFTS_URL}}" class="secondary-link">My Shifts</a> to manage all your volunteer signups.
</p>
</div>
<div class="footer">
<p>Thank you for continuing to volunteer with {{APP_NAME}}!</p>
<p>Questions? Reply to this email and we'll help you out.</p>
<p><small>Sent on {{TIMESTAMP}}</small></p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,29 @@
Hi {{USER_NAME}},
✅ SHIFT SIGNUP CONFIRMED!
Great news! You've been successfully signed up for another volunteer shift with {{APP_NAME}}.
📅 SHIFT DETAILS
▸ Event: {{SHIFT_TITLE}}
▸ Date: {{SHIFT_DATE}}
▸ Time: {{SHIFT_TIME}}
▸ Location: {{SHIFT_LOCATION}}
{{#if SHIFT_DESCRIPTION}}
▸ Details: {{SHIFT_DESCRIPTION}}
{{/if}}
You can use your existing account credentials to:
• Login at: {{LOGIN_URL}}
• View all your shift signups at: {{SHIFTS_URL}}
• Cancel or modify your signups anytime from your account
Need help? Reply to this email or contact our volunteer coordinator.
Thank you for your continued support!
---
{{APP_NAME}} Volunteer Team
Sent: {{TIMESTAMP}}
This is an automated message. Please do not reply directly to this email.

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<style>
/* ...email styles... */
</style>
</head>
<body>
<div class="container">
<h1>Welcome & Shift Confirmation</h1>
<p>Hi {{USER_NAME}},</p>
<p>Thank you for signing up to volunteer! Your account has been created and you're confirmed for:</p>
<div class="shift-details">
<h2>{{SHIFT_TITLE}}</h2>
<p><strong>Date:</strong> {{SHIFT_DATE}}</p>
<p><strong>Time:</strong> {{SHIFT_TIME}}</p>
<p><strong>Location:</strong> {{SHIFT_LOCATION}}</p>
</div>
<div class="credentials">
<h3>Your Login Details</h3>
<p><strong>Email:</strong> {{USER_EMAIL}}</p>
<p><strong>Temporary Password:</strong> <code>{{TEMP_PASSWORD}}</code></p>
<p class="note">This is a temporary account that expires after your shift.</p>
</div>
<div class="actions">
<a href="{{LOGIN_URL}}" class="button">Login to Your Account</a>
<p>Once logged in, visit <a href="{{SHIFTS_URL}}">My Shifts</a> to view or cancel your signup.</p>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,33 @@
Hi {{USER_NAME}},
✅ SHIFT SIGNUP CONFIRMATION
Thank you for signing up to volunteer with {{APP_NAME}}! Your account has been created and you're confirmed for:
📅 SHIFT DETAILS
▸ Event: {{SHIFT_TITLE}}
▸ Date: {{SHIFT_DATE}}
▸ Time: {{SHIFT_TIME}}
▸ Location: {{SHIFT_LOCATION}}
{{#if SHIFT_DESCRIPTION}}
▸ Details: {{SHIFT_DESCRIPTION}}
{{/if}}
🔑 YOUR LOGIN CREDENTIALS
▸ Email: {{USER_EMAIL}}
▸ Temporary Password: {{TEMP_PASSWORD}}
This is a temporary account that expires after your shift. Keep these credentials safe!
WHAT'S NEXT:
• Mark your calendar for {{SHIFT_DATE}} at {{SHIFT_TIME}}
• Login at: {{LOGIN_URL}}
• Manage your signups at: {{SHIFTS_URL}}
• We'll send reminder details closer to the shift date
Questions? Reply to this email and we'll help you out.
Thank you for volunteering with {{APP_NAME}}!
---
Sent on {{TIMESTAMP}}