email_validation.html 164 lignes · 5764 octets
<!DOCTYPE html>
<html lang="{{ locale }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% if locale == "fr" %}Vérification de votre adresse email{% else %}Verify Your Email Address{% endif %}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f4f4f4;
        }
        .email-container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
            margin-bottom: 10px;
        }
        h1 {
            color: #1f2937;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .content {
            margin-bottom: 30px;
        }
        .button-container {
            text-align: center;
            margin: 30px 0;
        }
        .button {
            display: inline-block;
            padding: 12px 30px;
            background-color: #10b981;
            color: #ffffff !important;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 16px;
        }
        .button:hover {
            background-color: #059669;
        }
        .link-fallback {
            margin-top: 20px;
            padding: 15px;
            background-color: #f3f4f6;
            border-radius: 6px;
            word-break: break-all;
            font-size: 14px;
            color: #6b7280;
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
            font-size: 14px;
            color: #6b7280;
            text-align: center;
        }
        .info {
            margin-top: 20px;
            padding: 15px;
            background-color: #dbeafe;
            border-left: 4px solid #3b82f6;
            border-radius: 4px;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="email-container">
        <div class="header">
            <div class="logo">{{ app_name }}</div>
        </div>

        <h1>
            {% if locale == "fr" %}
                Vérification de votre adresse email
            {% else %}
                Verify Your Email Address
            {% endif %}
        </h1>

        <div class="content">
            {% if locale == "fr" %}
                <p>Bonjour {{ username }},</p>
                <p>Merci de vous être inscrit sur <strong>{{ app_name }}</strong>.</p>
                <p>Pour activer votre compte, veuillez vérifier votre adresse email en cliquant sur le bouton ci-dessous :</p>
            {% else %}
                <p>Hello {{ username }},</p>
                <p>Thank you for signing up for <strong>{{ app_name }}</strong>.</p>
                <p>To activate your account, please verify your email address by clicking the button below:</p>
            {% endif %}
        </div>

        <div class="button-container">
            <a href="{{ validation_url }}" class="button">
                {% if locale == "fr" %}
                    Vérifier mon email
                {% else %}
                    Verify My Email
                {% endif %}
            </a>
        </div>

        <div class="link-fallback">
            {% if locale == "fr" %}
                <p><strong>Le bouton ne fonctionne pas ?</strong></p>
                <p>Copiez et collez ce lien dans votre navigateur :</p>
            {% else %}
                <p><strong>Button not working?</strong></p>
                <p>Copy and paste this link into your browser:</p>
            {% endif %}
            <p style="margin-top: 10px; word-break: break-all;">{{ validation_url }}</p>
        </div>

        <div class="info">
            {% if locale == "fr" %}
                <p><strong>ℹ️ Important :</strong></p>
                <ul style="margin: 10px 0; padding-left: 20px;">
                    <li>Ce lien est valide pendant <strong>24 heures</strong></li>
                    <li>Si vous n'avez pas créé de compte, ignorez cet email</li>
                    <li>Vous devez vérifier votre email avant de pouvoir vous connecter</li>
                </ul>
            {% else %}
                <p><strong>ℹ️ Important:</strong></p>
                <ul style="margin: 10px 0; padding-left: 20px;">
                    <li>This link is valid for <strong>24 hours</strong></li>
                    <li>If you did not create an account, please ignore this email</li>
                    <li>You must verify your email before you can log in</li>
                </ul>
            {% endif %}
        </div>

        <div class="footer">
            {% if locale == "fr" %}
                <p>Cet email a été envoyé automatiquement, merci de ne pas y répondre.</p>
                <p>Si vous avez des questions, contactez le support technique.</p>
            {% else %}
                <p>This email was sent automatically, please do not reply.</p>
                <p>If you have any questions, please contact technical support.</p>
            {% endif %}
            <p style="margin-top: 10px; font-size: 12px; color: #9ca3af;">
                © {{ current_year }} {{ app_name }}. Tous droits réservés.
            </p>
        </div>
    </div>
</body>
</html>