Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update backend/templates/emails/scan_completed.html
Browse files
backend/templates/emails/scan_completed.html
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Scan Completed Successfully</title>
|
| 7 |
+
<style>
|
| 8 |
+
|
| 9 |
+
/* LarShield Premium Email Design System */
|
| 10 |
+
body { margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: #f8fafc; color: #0f172a; -webkit-font-smoothing: antialiased; }
|
| 11 |
+
.wrapper { width: 100%; table-layout: fixed; background-color: #f8fafc; padding: 40px 0; }
|
| 12 |
+
.main { background-color: #ffffff; margin: 0 auto; width: 100%; max-width: 600px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01); overflow: hidden; }
|
| 13 |
+
.header { padding: 40px 30px; text-align: center; color: white; position: relative; overflow: hidden; }
|
| 14 |
+
.header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); z-index: 1; }
|
| 15 |
+
.header-content { position: relative; z-index: 2; }
|
| 16 |
+
.header.blue { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
|
| 17 |
+
.header.green { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }
|
| 18 |
+
.header.red { background: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%); }
|
| 19 |
+
.header.purple { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); }
|
| 20 |
+
|
| 21 |
+
.header h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
|
| 22 |
+
.logo { max-height: 48px; width: auto; margin-bottom: 24px; display: block; margin-left: auto; margin-right: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
|
| 23 |
+
|
| 24 |
+
.content { padding: 40px 40px 30px; }
|
| 25 |
+
.content p { font-size: 16px; line-height: 1.7; color: #334155; margin-bottom: 24px; }
|
| 26 |
+
.content strong { color: #0f172a; font-weight: 600; }
|
| 27 |
+
|
| 28 |
+
.alert-box { background-color: #fef2f2; border-left: 4px solid #ef4444; padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 24px; }
|
| 29 |
+
.alert-box p { color: #991b1b; margin: 0; font-size: 15px; font-weight: 500; }
|
| 30 |
+
|
| 31 |
+
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
|
| 32 |
+
.stat-card { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: center; }
|
| 33 |
+
.stat-card.full-width { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
|
| 34 |
+
.stat-label { display: block; color: #64748b; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
|
| 35 |
+
.stat-value { display: block; color: #0f172a; font-size: 20px; font-weight: 700; }
|
| 36 |
+
.stat-value.critical { color: #dc2626; }
|
| 37 |
+
.stat-value.high { color: #ea580c; }
|
| 38 |
+
.stat-value.medium { color: #d97706; }
|
| 39 |
+
.stat-value.low { color: #2563eb; }
|
| 40 |
+
|
| 41 |
+
.btn-wrapper { text-align: center; margin: 36px 0; }
|
| 42 |
+
.btn { display: inline-block; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #ffffff !important; text-decoration: none; font-weight: 600; font-size: 16px; padding: 16px 32px; border-radius: 12px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); transition: transform 0.2s, box-shadow 0.2s; }
|
| 43 |
+
.btn.red { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2); }
|
| 44 |
+
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
|
| 45 |
+
|
| 46 |
+
.signature { margin-top: 40px; margin-bottom: 0; padding-top: 24px; border-top: 1px solid #e2e8f0; }
|
| 47 |
+
.footer { text-align: center; padding: 24px 30px; color: #94a3b8; font-size: 13px; line-height: 1.6; }
|
| 48 |
+
.footer a { color: #64748b; text-decoration: underline; }
|
| 49 |
+
|
| 50 |
+
@media (prefers-color-scheme: dark) {
|
| 51 |
+
body, .wrapper { background-color: #020617; color: #f8fafc; }
|
| 52 |
+
.main { background-color: #0f172a; border-color: #1e293b; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5); }
|
| 53 |
+
.content p { color: #cbd5e1; }
|
| 54 |
+
.content strong { color: #f8fafc; }
|
| 55 |
+
.stat-card { background-color: #1e293b; border-color: #334155; }
|
| 56 |
+
.stat-label { color: #94a3b8; }
|
| 57 |
+
.stat-value { color: #f8fafc; }
|
| 58 |
+
.signature { border-color: #334155; }
|
| 59 |
+
.alert-box { background-color: #450a0a; border-color: #dc2626; }
|
| 60 |
+
.alert-box p { color: #fecaca; }
|
| 61 |
+
}
|
| 62 |
+
@media (max-width: 600px) {
|
| 63 |
+
.stats-grid { grid-template-columns: 1fr; }
|
| 64 |
+
.content { padding: 30px 20px; }
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
</style>
|
| 68 |
+
</head>
|
| 69 |
+
<body>
|
| 70 |
+
<div class="wrapper">
|
| 71 |
+
<div class="main">
|
| 72 |
+
<div class="header green">
|
| 73 |
+
<div class="header-content">
|
| 74 |
+
<img src="{{ logo_url }}" alt="LarShield Logo" class="logo">
|
| 75 |
+
<h1>Scan Completed</h1>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
<div class="content">
|
| 79 |
+
<p>Hello <strong>{{ user_name }}</strong>,</p>
|
| 80 |
+
<p>The security scan on your application has finished successfully. The LarShield engine has compiled a comprehensive security report detailing all findings.</p>
|
| 81 |
+
|
| 82 |
+
<div class="stat-card full-width" style="margin-bottom: 16px;">
|
| 83 |
+
<div>
|
| 84 |
+
<span class="stat-label">Target Analyzed</span>
|
| 85 |
+
<span class="stat-value" style="font-size: 16px;"><a href="{{ target_url }}" style="color: #10b981; text-decoration: none;">{{ target_url }}</a></span>
|
| 86 |
+
</div>
|
| 87 |
+
<div style="text-align: right;">
|
| 88 |
+
<span class="stat-label">Duration</span>
|
| 89 |
+
<span class="stat-value" style="font-size: 16px;">{{ duration }}</span>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div class="stats-grid">
|
| 94 |
+
<div class="stat-card">
|
| 95 |
+
<span class="stat-label">Critical</span>
|
| 96 |
+
<span class="stat-value critical">{{ crit_count }}</span>
|
| 97 |
+
</div>
|
| 98 |
+
<div class="stat-card">
|
| 99 |
+
<span class="stat-label">High</span>
|
| 100 |
+
<span class="stat-value high">{{ high_count }}</span>
|
| 101 |
+
</div>
|
| 102 |
+
<div class="stat-card">
|
| 103 |
+
<span class="stat-label">Medium</span>
|
| 104 |
+
<span class="stat-value medium">{{ med_count }}</span>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="stat-card">
|
| 107 |
+
<span class="stat-label">Low</span>
|
| 108 |
+
<span class="stat-value low">{{ low_count }}</span>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
|
| 112 |
+
<div class="stat-card full-width" style="background-color: transparent; border: 2px dashed #e2e8f0; justify-content: center; margin-bottom: 24px;">
|
| 113 |
+
<div style="text-align: center;">
|
| 114 |
+
<span class="stat-label">Total Vulnerabilities Detected</span>
|
| 115 |
+
<span class="stat-value" style="font-size: 24px;">{{ vulns_count }}</span>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<p>Please review the full report to access actionable remediation steps and secure your application against these threats.</p>
|
| 120 |
+
|
| 121 |
+
<div class="btn-wrapper">
|
| 122 |
+
<a href="{{ report_link }}" class="btn" style="background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);">View Security Report</a>
|
| 123 |
+
</div>
|
| 124 |
+
<p class="signature">Securely yours,<br><strong>The LarShield Defense Team</strong></p>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="footer">
|
| 128 |
+
© {{ year }} LarShield Security. All rights reserved.<br>
|
| 129 |
+
Automated platform notification. For assistance, contact <a href="mailto:{{ support_email }}">{{ support_email }}</a>.
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
</body>
|
| 133 |
+
</html>
|