2026-02-17 23:03:48 -05:00

625 lines
20 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Compliance Packet — <%= config.businessName %></title>
<link rel="stylesheet" href="/public/css/form.css">
<style>
/* Results page specific styles */
.results-container {
max-width: 960px;
margin: 0 auto;
padding: 0 20px 80px;
}
.success-header {
text-align: center;
padding: 48px 20px 32px;
}
.success-icon {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #059669, #10B981);
color: white;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}
.success-header h1 {
font-size: 32px;
font-weight: 800;
color: var(--gray-900);
margin-bottom: 8px;
}
.success-header p {
color: var(--gray-500);
font-size: 16px;
}
/* Action bar */
.action-bar {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 40px;
}
.action-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
border-radius: 10px;
text-decoration: none;
transition: all 0.2s ease;
font-family: inherit;
cursor: pointer;
border: none;
}
.action-btn-primary {
background: var(--primary);
color: white;
}
.action-btn-primary:hover {
background: var(--primary-dark);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(37,99,235,0.3);
text-decoration: none;
color: white;
}
.action-btn-outline {
background: white;
color: var(--gray-700);
border: 1.5px solid var(--gray-300);
}
.action-btn-outline:hover {
border-color: var(--primary);
color: var(--primary);
text-decoration: none;
}
/* Sections */
.result-section {
background: white;
border: 1px solid var(--gray-200);
border-radius: var(--radius-lg);
margin-bottom: 24px;
overflow: hidden;
}
.result-section-header {
padding: 20px 24px;
border-bottom: 1px solid var(--gray-100);
display: flex;
align-items: center;
gap: 12px;
}
.result-section-header h2 {
font-size: 18px;
font-weight: 700;
color: var(--gray-900);
}
.section-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.section-icon-blue { background: #EFF6FF; color: #2563EB; }
.section-icon-green { background: #F0FDF4; color: #059669; }
.section-icon-purple { background: #F5F3FF; color: #7C3AED; }
.section-icon-amber { background: #FFFBEB; color: #D97706; }
.result-section-body {
padding: 24px;
}
/* Copy boxes */
.copy-box {
position: relative;
background: var(--gray-50);
border: 1px solid var(--gray-200);
border-radius: 10px;
padding: 16px;
margin-bottom: 16px;
}
.copy-box:last-child {
margin-bottom: 0;
}
.copy-box-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--gray-400);
margin-bottom: 8px;
}
.copy-box-value {
font-size: 14px;
color: var(--gray-700);
line-height: 1.6;
white-space: pre-wrap;
word-break: break-word;
}
.copy-btn {
position: absolute;
top: 12px;
right: 12px;
padding: 6px 12px;
font-size: 12px;
font-weight: 600;
font-family: inherit;
background: white;
color: var(--gray-600);
border: 1px solid var(--gray-300);
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 4px;
}
.copy-btn:hover {
background: var(--primary-light);
color: var(--primary);
border-color: var(--primary);
}
.copy-btn.copied {
background: #F0FDF4;
color: #059669;
border-color: #059669;
}
/* Screenshots grid */
.screenshots-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}
.screenshot-card {
border: 1px solid var(--gray-200);
border-radius: 10px;
overflow: hidden;
transition: all 0.2s ease;
}
.screenshot-card:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
transform: translateY(-2px);
}
.screenshot-card img {
width: 100%;
height: 160px;
object-fit: cover;
object-position: top;
display: block;
}
.screenshot-card-info {
padding: 12px;
display: flex;
justify-content: space-between;
align-items: center;
}
.screenshot-card-name {
font-size: 13px;
font-weight: 600;
color: var(--gray-700);
}
.screenshot-download {
font-size: 12px;
color: var(--primary);
text-decoration: none;
font-weight: 600;
}
/* Website preview */
.site-preview {
border: 1px solid var(--gray-200);
border-radius: 10px;
overflow: hidden;
}
.site-preview-bar {
background: var(--gray-100);
padding: 10px 16px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid var(--gray-200);
}
.site-preview-dots {
display: flex;
gap: 6px;
}
.site-preview-dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--gray-300);
}
.site-preview-url {
flex: 1;
background: white;
border: 1px solid var(--gray-200);
border-radius: 6px;
padding: 4px 12px;
font-size: 13px;
color: var(--gray-500);
}
.site-preview iframe {
width: 100%;
height: 500px;
border: none;
display: block;
}
/* URLs list */
.url-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.url-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 16px;
background: var(--gray-50);
border-radius: 8px;
border: 1px solid var(--gray-200);
}
.url-item-label {
font-size: 13px;
font-weight: 600;
color: var(--gray-700);
}
.url-item a {
font-size: 13px;
color: var(--primary);
text-decoration: none;
font-weight: 500;
}
.url-item a:hover {
text-decoration: underline;
}
/* Message cards */
.message-card {
background: #EFF6FF;
border-left: 4px solid var(--primary);
border-radius: 0 8px 8px 0;
padding: 14px 16px;
margin-bottom: 12px;
position: relative;
}
.message-card:last-child {
margin-bottom: 0;
}
.message-card-label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
color: var(--primary);
margin-bottom: 6px;
}
.message-card-text {
font-size: 14px;
color: var(--gray-700);
line-height: 1.5;
}
.message-card .copy-btn {
top: 8px;
}
@media (max-width: 640px) {
.screenshots-grid {
grid-template-columns: 1fr 1fr;
}
.action-bar {
flex-direction: column;
align-items: stretch;
}
.action-btn {
justify-content: center;
}
}
</style>
</head>
<body>
<div class="page-bg"></div>
<!-- Success Header -->
<header class="success-header">
<div class="success-icon">
<svg width="32" height="32" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M20 6L9 17l-5-5"/></svg>
</div>
<h1>Your Compliance Package is Ready</h1>
<p><%= config.businessName %> — Generated <%= new Date(config.generatedAt).toLocaleDateString() %></p>
</header>
<!-- Actions -->
<div class="action-bar">
<a href="<%= config.siteUrl %>" target="_blank" class="action-btn action-btn-primary">
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg>
View Live Website
</a>
<a href="/download/<%= clientId %>" class="action-btn action-btn-outline">
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Download All (ZIP)
</a>
<a href="/" class="action-btn action-btn-outline">
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></svg>
Generate Another
</a>
</div>
<div class="results-container">
<!-- Website Preview -->
<div class="result-section">
<div class="result-section-header">
<div class="section-icon section-icon-blue">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z"/></svg>
</div>
<h2>Generated Website</h2>
</div>
<div class="result-section-body">
<div class="site-preview">
<div class="site-preview-bar">
<div class="site-preview-dots">
<div class="site-preview-dot" style="background:#FF5F57"></div>
<div class="site-preview-dot" style="background:#FEBC2E"></div>
<div class="site-preview-dot" style="background:#28C840"></div>
</div>
<div class="site-preview-url"><%= config.siteUrl %></div>
</div>
<iframe src="<%= config.siteUrl %>" loading="lazy"></iframe>
</div>
<div style="margin-top: 16px;">
<div class="url-list">
<div class="url-item">
<span class="url-item-label">Homepage</span>
<a href="<%= config.siteUrl %>" target="_blank"><%= config.siteUrl %></a>
</div>
<div class="url-item">
<span class="url-item-label">Contact / Opt-in Form</span>
<a href="<%= config.siteUrl %>/contact" target="_blank"><%= config.siteUrl %>/contact</a>
</div>
<div class="url-item">
<span class="url-item-label">Privacy Policy</span>
<a href="<%= config.siteUrl %>/privacy-policy" target="_blank"><%= config.siteUrl %>/privacy-policy</a>
</div>
<div class="url-item">
<span class="url-item-label">Terms of Service</span>
<a href="<%= config.siteUrl %>/terms" target="_blank"><%= config.siteUrl %>/terms</a>
</div>
</div>
</div>
</div>
</div>
<!-- Campaign Description -->
<div class="result-section">
<div class="result-section-header">
<div class="section-icon section-icon-green">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/></svg>
</div>
<h2>Campaign Details</h2>
</div>
<div class="result-section-body">
<div class="copy-box">
<div class="copy-box-label">Campaign Description</div>
<div class="copy-box-value"><%= config.a2pPacket.campaignDescription %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<div class="copy-box">
<div class="copy-box-label">Opt-In Flow Description</div>
<div class="copy-box-value"><%= config.a2pPacket.optInFlowDescription %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
</div>
</div>
<!-- Sample Messages -->
<div class="result-section">
<div class="result-section-header">
<div class="section-icon section-icon-purple">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
</div>
<h2>Sample Messages</h2>
</div>
<div class="result-section-body">
<% config.a2pPacket.sampleMessages.forEach((msg, i) => { %>
<div class="message-card">
<div class="message-card-label">Sample Message <%= i + 1 %></div>
<div class="message-card-text"><%= msg %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<% }); %>
</div>
</div>
<!-- Confirmation & Help Messages -->
<div class="result-section">
<div class="result-section-header">
<div class="section-icon section-icon-amber">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<h2>Auto-Reply Messages & Keywords</h2>
</div>
<div class="result-section-body">
<div class="copy-box">
<div class="copy-box-label">Opt-In Confirmation</div>
<div class="copy-box-value"><%= config.a2pPacket.optInConfirmation %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<div class="copy-box">
<div class="copy-box-label">Opt-Out Confirmation</div>
<div class="copy-box-value"><%= config.a2pPacket.optOutConfirmation %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<div class="copy-box">
<div class="copy-box-label">Help Message</div>
<div class="copy-box-value"><%= config.a2pPacket.helpMessage %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<div class="copy-box">
<div class="copy-box-label">Consent Text (website form)</div>
<div class="copy-box-value"><%= config.a2pPacket.consentText %></div>
<button class="copy-btn" onclick="copyText(this)">
<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>
Copy
</button>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 8px;">
<div class="copy-box">
<div class="copy-box-label">Opt-In Keywords</div>
<div class="copy-box-value"><%= config.a2pPacket.optInKeywords %></div>
</div>
<div class="copy-box">
<div class="copy-box-label">Opt-Out Keywords</div>
<div class="copy-box-value"><%= config.a2pPacket.optOutKeywords %></div>
</div>
<div class="copy-box">
<div class="copy-box-label">Help Keywords</div>
<div class="copy-box-value"><%= config.a2pPacket.helpKeywords %></div>
</div>
</div>
</div>
</div>
<!-- Screenshots -->
<div class="result-section">
<div class="result-section-header">
<div class="section-icon section-icon-blue">
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
</div>
<h2>Screenshots</h2>
</div>
<div class="result-section-body">
<div class="screenshots-grid">
<div class="screenshot-card">
<img src="/data/<%= clientId %>/screenshots/homepage.png" alt="Homepage" onerror="this.style.display='none'">
<div class="screenshot-card-info">
<span class="screenshot-card-name">Homepage</span>
<a href="/data/<%= clientId %>/screenshots/homepage.png" download class="screenshot-download">Download</a>
</div>
</div>
<div class="screenshot-card">
<img src="/data/<%= clientId %>/screenshots/contact-optin.png" alt="Contact/Opt-in" onerror="this.style.display='none'">
<div class="screenshot-card-info">
<span class="screenshot-card-name">Opt-in Form</span>
<a href="/data/<%= clientId %>/screenshots/contact-optin.png" download class="screenshot-download">Download</a>
</div>
</div>
<div class="screenshot-card">
<img src="/data/<%= clientId %>/screenshots/privacy-policy.png" alt="Privacy Policy" onerror="this.style.display='none'">
<div class="screenshot-card-info">
<span class="screenshot-card-name">Privacy Policy</span>
<a href="/data/<%= clientId %>/screenshots/privacy-policy.png" download class="screenshot-download">Download</a>
</div>
</div>
<div class="screenshot-card">
<img src="/data/<%= clientId %>/screenshots/terms-of-service.png" alt="Terms of Service" onerror="this.style.display='none'">
<div class="screenshot-card-info">
<span class="screenshot-card-name">Terms of Service</span>
<a href="/data/<%= clientId %>/screenshots/terms-of-service.png" download class="screenshot-download">Download</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
A2P Compliance Wizard · Built for agencies who demand compliance
</footer>
<script>
function copyText(btn) {
const box = btn.closest('.copy-box') || btn.closest('.message-card');
const textEl = box.querySelector('.copy-box-value') || box.querySelector('.message-card-text');
const text = textEl.textContent.trim();
navigator.clipboard.writeText(text).then(() => {
btn.classList.add('copied');
btn.innerHTML = '<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path d="M20 6L9 17l-5-5"/></svg> Copied!';
setTimeout(() => {
btn.classList.remove('copied');
btn.innerHTML = '<svg width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg> Copy';
}, 2000);
});
}
</script>
</body>
</html>