Files
project-managment/templates/base.html
T
sankalp 7f99d55252 feat(templates): add defer to external scripts and improve button cursor styling
Add defer to external script tags for better async loading and add CSS rule to set cursor to pointer for enabled buttons.

- New Features:
  - None
- Enhancements:
  - Added `defer` attribute to htmx, SortableJS, Chart.js, easymde, and Quill scripts.
  - Added `button:not(:disabled) { cursor: pointer; }` CSS rule.
- Bug Fixes:
  - None
2026-05-28 00:53:46 +05:45

60 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}ProMan{% endblock %}</title>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script src="https://unpkg.com/htmx.org@1.9.12" defer></script>
<script src="https://cdn.jsdelivr.net/npm/sortablejs@1.15.0/Sortable.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/easymde@2.18.0/dist/easymde.min.css">
<script src="https://cdn.jsdelivr.net/npm/easymde@2.18.0/dist/easymde.min.js" defer></script>
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.snow.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.min.js" defer></script>
{% load static tailwind_cli %}
{% tailwind_css %}
<style>
[x-cloak] { display: none !important; }
button:not(:disabled) { cursor: pointer; }
.border-subtle { border-color: rgba(0,0,0,0.06); }
.border-soft { border-color: rgba(0,0,0,0.10); }
.border-emphasis { border-color: rgba(0,0,0,0.18); }
.bg-canvas { background-color: #f6f8fa; }
.bg-elevated { background-color: #ffffff; }
.bg-hover { background-color: rgba(0,0,0,0.03); }
.stat-card {
background: #fff;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 12px;
padding: 20px;
transition: border-color 0.15s;
}
.stat-card:hover { border-color: rgba(59,130,246,0.25); }
.card-surface {
background: #fff;
border: 1px solid rgba(0,0,0,0.06);
border-radius: 12px;
}
.text-primary { color: #0b1c33; }
.text-secondary { color: #3c4a5c; }
.text-tertiary { color: #6b7a8e; }
.text-muted { color: #9ca3af; }
@media (max-width: 1023px) {
.sidebar-mobile { transform: translateX(-100%); }
.sidebar-mobile.mobile-open { transform: translateX(0); }
}
</style>
{% block extra_head %}{% endblock %}
</head>
<body class="min-h-screen bg-canvas antialiased" x-data="{ sidebarOpen: false }">
{% block content %}{% endblock %}
{% block extra_scripts %}{% endblock %}
</body>
</html>