feat(templates): enrichUI with Tailwind styling and messaging component improvements
- 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
This commit is contained in:
50 files changed
+839
-861
No files matched your search
@@ -2,19 +2,19 @@
|
||||
{% block title %}{% if object %}Edit{% else %}New{% endif %} Project{% endblock %}
|
||||
{% block content_inner %}
|
||||
<div class="max-w-2xl mx-auto">
|
||||
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 p-6">
|
||||
<h1 class="text-xl font-bold text-gray-900 mb-1">{% if object %}Edit{% else %}New{% endif %} Project</h1>
|
||||
<p class="text-sm text-gray-500 mb-6">{% if object %}Update the project details below.{% else %}Fill in the details to create a new project.{% endif %}</p>
|
||||
<div class="card-surface p-6">
|
||||
<h1 class="text-xl font-bold text-primary mb-1">{% if object %}Edit{% else %}New{% endif %} Project</h1>
|
||||
<p class="text-sm text-tertiary mb-6">{% if object %}Update the project details below.{% else %}Fill in the details to create a new project.{% endif %}</p>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{% for field in form %}
|
||||
{% include "partials/form_field.html" %}
|
||||
{% endfor %}
|
||||
<div class="flex gap-3 pt-2">
|
||||
<button type="submit" class="btn bg-blue-600 text-white hover:bg-blue-700 border-0">
|
||||
<button type="submit" class="px-3 py-1.5 rounded-lg text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors">
|
||||
{% if object %}Save Changes{% else %}Create Project{% endif %}
|
||||
</button>
|
||||
<a href="{% url 'project_list' %}" class="btn btn-ghost">Cancel</a>
|
||||
<a href="{% url 'project_list' %}" class="px-3 py-1.5 rounded-lg text-sm font-medium text-secondary hover:bg-hover border border-soft transition-colors">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user