244 lines
5.9 KiB
HTML
244 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="uz">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{% block title %}Xvatayka{% endblock %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
|
|
<style>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
|
|
background: #f4f5f7;
|
|
color: #1f2937;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
background: #4f46e5;
|
|
color: #fff;
|
|
padding: 16px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
header .logo {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* Home Button */
|
|
.home-btn {
|
|
position: absolute;
|
|
left: 24px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: #fff;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.home-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: translateY(-50%) scale(1.05);
|
|
}
|
|
|
|
.home-btn svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
stroke: #fff;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
/* Logout Button */
|
|
.logout-btn {
|
|
position: absolute;
|
|
right: 24px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: none;
|
|
color: #fff;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: #ef4444;
|
|
transform: translateY(-50%) scale(1.05);
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
padding: 20px;
|
|
background: #f4f5f7;
|
|
min-height: calc(100vh - 64px);
|
|
}
|
|
|
|
/* Cards */
|
|
.cards-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 16px 20px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.card-row {
|
|
margin-bottom: 8px;
|
|
font-size: 14px;
|
|
color: #374151;
|
|
}
|
|
|
|
.card-row strong {
|
|
color: #111827;
|
|
}
|
|
|
|
.card-actions {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.card-actions .btn {
|
|
display: inline-block;
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
text-decoration: none;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
font-size: 13px;
|
|
margin-right: 6px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.card-actions .btn.edit {
|
|
background: #4f46e5;
|
|
}
|
|
|
|
.card-actions .btn.confirm {
|
|
background: #10b981;
|
|
}
|
|
|
|
.card-actions .btn.decline {
|
|
background: #ef4444;
|
|
}
|
|
|
|
.card-actions .btn:hover {
|
|
opacity: 0.85;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 640px) {
|
|
.cards-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.card {
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.card-row {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.card-actions .btn {
|
|
font-size: 12px;
|
|
padding: 5px 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
header {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.logo {
|
|
font-size: 18px;
|
|
}
|
|
|
|
main {
|
|
padding: 16px;
|
|
}
|
|
|
|
.home-btn {
|
|
left: 16px;
|
|
width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.home-btn svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.logout-btn {
|
|
right: 16px;
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<a href="{% url 'dashboard' %}" class="home-btn" title="Dashboard">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
|
|
<polyline points="9 22 9 12 15 12 15 22"></polyline>
|
|
</svg>
|
|
</a>
|
|
<div class="logo">Xvatayka</div>
|
|
<form method="post" action="{% url 'logout' %}" style="margin: 0;">
|
|
{% csrf_token %}
|
|
<button type="submit" class="logout-btn" title="Chiqish">🚪</button>
|
|
</form>
|
|
</header>
|
|
|
|
<main id="main-content">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
</body>
|
|
</html> |