- Add custom border, background, and spacing utilities to base template - Enhance message notification styling and layout - Update delete modal button appearance and behavior - Refine comment card component with Tailwind classes and responsive behavior - Adjust sidebar responsiveness for mobile view
39 lines
2.0 KiB
HTML
39 lines
2.0 KiB
HTML
{% extends "base_authenticated.html" %}
|
|
{% block title %}Profile{% endblock %}
|
|
{% block content_inner %}
|
|
<div class="max-w-2xl mx-auto">
|
|
<div class="card-surface overflow-hidden">
|
|
<div class="bg-blue-600 px-6 py-12">
|
|
<div class="flex items-center gap-4">
|
|
<div class="w-16 h-16 rounded-full bg-white/20 flex items-center justify-center text-white text-2xl font-bold">
|
|
{{ profile_user.get_initials }}
|
|
</div>
|
|
<div class="text-white">
|
|
<h1 class="text-xl font-bold">{{ profile_user.get_full_name|default:profile_user.username }}</h1>
|
|
<p class="text-white/80 text-sm">{{ profile_user.get_role_display }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-6">
|
|
<div class="grid grid-cols-2 gap-3">
|
|
<div class="p-4 bg-hover rounded-xl">
|
|
<p class="text-xs text-muted font-semibold uppercase tracking-wider">Username</p>
|
|
<p class="text-sm font-semibold text-primary mt-1">{{ profile_user.username }}</p>
|
|
</div>
|
|
<div class="p-4 bg-hover rounded-xl">
|
|
<p class="text-xs text-muted font-semibold uppercase tracking-wider">Email</p>
|
|
<p class="text-sm font-semibold text-primary mt-1">{{ profile_user.email|default:"-" }}</p>
|
|
</div>
|
|
<div class="p-4 bg-hover rounded-xl">
|
|
<p class="text-xs text-muted font-semibold uppercase tracking-wider">Role</p>
|
|
<p class="text-sm font-semibold text-primary mt-1">{{ profile_user.get_role_display }}</p>
|
|
</div>
|
|
<div class="p-4 bg-hover rounded-xl">
|
|
<p class="text-xs text-muted font-semibold uppercase tracking-wider">Member Since</p>
|
|
<p class="text-sm font-semibold text-primary mt-1">{{ profile_user.date_joined|date:"M Y" }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |