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

107 lines
4.0 KiB
HTML

{% load static i18n %}
{% 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, maximum-scale=5.0, user-scalable=yes, viewport-fit=cover">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="description" content="{% trans 'King Abdullah Academic University Hospital - Sign Out' %}">
<title>{% trans "Sign Out" %}</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;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html {
scroll-behavior: smooth;
}
* {
-webkit-tap-highlight-color: rgba(157, 34, 53, 0.1);
}
.touch-target {
min-height: 48px;
display: inline-flex;
align-items: center;
justify-content: center;
}
button {
-webkit-user-select: none;
user-select: none;
}
</style>
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'image/favicon/apple-touch-icon.png'%}">
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'image/favicon/favicon-32x32.png'%}">
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'image/favicon/favicon-16x16.png'%}">
<link rel="manifest" href="{% static 'image/favicon/site.webmanifest'%}">
{% block customCSS %}{% endblock %}
</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">
<div class="inline-flex items-center justify-center w-20 h-20 rounded-full bg-temple-red/10 mb-6">
<i data-lucide="log-out" class="w-10 h-10 text-temple-red"></i>
</div>
<h1 class="text-2xl font-bold text-gray-900 mb-4">
{% trans "Sign Out" %}
</h1>
<p class="text-sm text-gray-500">
{% trans "Are you sure you want to sign out?" %}
</p>
<form method="post" action="{% url 'account_logout' %}" class="space-y-3">
{% 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="log-out" class="w-5 h-5"></i>
{% trans "Yes, Sign Out" %}
</button>
</form>
<a href="{% url 'dashboard' %}"
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="x" class="w-5 h-5"></i>
{% trans "Cancel" %}
</a>
</div>
</div>
<script>
lucide.createIcons();
</script>
</body>
</html>