ATS/templates/account/email_confirm.html
2026-01-29 14:19:03 +03:00

98 lines
4.1 KiB
HTML

{% load static i18n %}
{% load account %}
{% get_current_language_bidi as LANGUAGE_BIDI %}
{% get_current_language as LANGUAGE_CODE %}
<!DOCTYPE html>
<html lang="{{LANGUAGE_CODE}}" dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{% trans "Confirm Email Address" %}{% endblock %}</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'temple-red': '#9d2235',
'temple-dark': '#1a1a1a',
'temple-cream': '#f8f7f2',
}
}
}
}
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
body { font-family: 'Inter', sans-serif; }
</style>
</head>
<body class="bg-temple-cream min-h-screen flex items-center justify-center p-6">
<div class="w-full max-w-md">
<div class="bg-white rounded-2xl shadow-xl border border-gray-100 p-8 text-center">
{% with email as email %}
{% if confirmation %}
<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-temple-red/10 mb-6">
<i data-lucide="check-circle" class="w-10 h-10 text-temple-red"></i>
</div>
<h1 class="text-2xl font-bold text-gray-900 mb-4">
{% trans "Confirm Your Email Address" %}
</h1>
<p class="text-gray-600 mb-6">
{% blocktrans with email as email %}Please confirm that **{{ email }}** is the correct email address for your account.{% endblocktrans %}
</p>
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}" class="space-y-4">
{% csrf_token %}
<button type="submit"
class="w-full bg-temple-red hover:bg-[#7a1a29] text-white font-semibold py-4 rounded-xl text-sm transition shadow-md hover:shadow-lg flex items-center justify-center gap-2">
<i data-lucide="check" class="w-5 h-5"></i>
{% trans "Confirm & Activate" %}
</button>
</form>
{% else %}
<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-red-50 mb-6">
<i data-lucide="alert-circle" class="w-10 h-10 text-red-600"></i>
</div>
<h1 class="text-2xl font-bold text-gray-900 mb-4">
{% trans "Verification Failed" %}
</h1>
<p class="text-gray-600 mb-2">
{% trans "The email confirmation link is expired or invalid." %}
</p>
<p class="text-gray-500 text-sm mb-6">
{% trans "If you recently requested a link, please ensure you use the newest one. You can request a new verification email from your account settings." %}
</p>
<a href="{% url 'account_email' %}"
class="inline-flex items-center justify-center gap-2 w-full bg-gray-100 hover:bg-gray-200 text-gray-700 font-semibold py-4 rounded-xl text-sm transition flex items-center justify-center gap-2">
<i data-lucide="settings" class="w-5 h-5"></i>
{% trans "Go to Settings" %}
</a>
{% endif %}
{% endwith %}
</div>
</div>
<script>
lucide.createIcons();
</script>
</body>
</html>