Files
notytex/templates/email/base_email.html

269 lines
6.6 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Notytex - Bilan d'évaluation{% endblock %}</title>
<style>
/* Reset styles pour compatibilité email */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #374151;
background-color: #f9fafb;
padding: 20px;
}
.email-container {
max-width: 800px;
margin: 0 auto;
background-color: #ffffff;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.header {
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
color: white;
padding: 30px;
text-align: center;
}
.header h1 {
font-size: 28px;
margin-bottom: 8px;
font-weight: 700;
}
.header p {
font-size: 16px;
opacity: 0.9;
}
.content {
padding: 30px;
}
.section {
margin-bottom: 30px;
padding: 20px;
background-color: #f8fafc;
border-radius: 8px;
border-left: 4px solid #3b82f6;
}
.section h2 {
color: #1f2937;
font-size: 20px;
margin-bottom: 15px;
font-weight: 600;
}
.section h3 {
color: #374151;
font-size: 16px;
margin-bottom: 10px;
font-weight: 600;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
margin: 20px 0;
}
.stat-item {
text-align: center;
padding: 15px;
background-color: white;
border-radius: 8px;
border: 2px solid #e5e7eb;
}
.stat-value {
font-size: 24px;
font-weight: 700;
color: #3b82f6;
}
.stat-label {
font-size: 12px;
color: #6b7280;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 5px;
}
.progress-bar {
width: 100%;
height: 8px;
background-color: #e5e7eb;
border-radius: 4px;
overflow: hidden;
margin: 8px 0;
}
.progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.3s ease;
}
.table {
width: 100%;
border-collapse: collapse;
margin: 15px 0;
background-color: white;
border-radius: 8px;
overflow: hidden;
}
.table th,
.table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
.table th {
background-color: #f3f4f6;
font-weight: 600;
color: #374151;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.5px;
}
.table tr:hover {
background-color: #f9fafb;
}
.badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-success {
background-color: #dcfce7;
color: #166534;
}
.badge-warning {
background-color: #fef3c7;
color: #92400e;
}
.badge-info {
background-color: #dbeafe;
color: #1e40af;
}
.competence-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
margin: 8px 0;
background-color: white;
border-radius: 6px;
border: 1px solid #e5e7eb;
}
.competence-name {
font-weight: 500;
}
.competence-score {
font-weight: 600;
color: #3b82f6;
}
.footer {
background-color: #f3f4f6;
padding: 20px 30px;
text-align: center;
border-top: 1px solid #e5e7eb;
}
.footer p {
color: #6b7280;
font-size: 12px;
margin: 5px 0;
}
.highlight {
background-color: #fef3c7;
padding: 2px 6px;
border-radius: 4px;
font-weight: 600;
}
/* Responsive pour mobile */
@media only screen and (max-width: 600px) {
body {
padding: 10px;
}
.header {
padding: 20px;
}
.header h1 {
font-size: 24px;
}
.content {
padding: 20px;
}
.section {
padding: 15px;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.table th,
.table td {
padding: 8px 10px;
font-size: 14px;
}
}
</style>
</head>
<body>
<div class="email-container">
<div class="header">
<h1>{% block header_title %}🎓 Notytex{% endblock %}</h1>
<p>{% block header_subtitle %}Système de gestion scolaire{% endblock %}</p>
</div>
<div class="content">
{% block content %}
<!-- Contenu principal de l'email -->
{% endblock %}
</div>
<div class="footer">
<p><strong>{% block school_name %}Établissement scolaire{% endblock %}</strong></p>
<p>Email généré automatiquement par Notytex</p>
<p>Pour toute question, contactez votre professeur.</p>
</div>
</div>
</body>
</html>