Programming
3.tempresult_html
{% extends "base.html" %}
{% block content %}
<style>
.dashboard-wrapper {
padding: 40px 20px;
max-width: 1100px;
margin: 0 auto;
}
/* --- Beautiful Header Area --- */
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
background: white;
padding: 20px 30px;
border-radius: 15px;
box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.date-pill {
background: var(--bs-primary);
color: white;
padding: 8px 20px;
border-radius: 50px;
font-weight: 600;
letter-spacing: 0.5px;
display: inline-block;
margin-top: 10px;
}
/* --- Grid Layout --- */
.grid-layout {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
position: relative;
}
/* Central Hub Styling */
.center-hub {
grid-column: 1 / -1;
justify-self: center;
width: 180px;
height: 180px;
background: white;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
border: 4px solid #fff;
z-index: 2;
transition: transform 0.3s ease;
text-decoration: none;
color: var(--bs-dark);
margin: -25px 0;
}
.center-hub:hover { transform: scale(1.08); color: var(--bs-primary); }
.center-hub i { font-size: 2.2rem; margin-bottom: 8px; color: var(--bs-warning); }
/* --- KPI Card Styling --- */
.card-link { text-decoration: none; color: inherit; }
.custom-card {
border-radius: 20px;
padding: 25px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
background: white;
border: 1px solid rgba(0,0,0,0.03);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.custom-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-title-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.card-title-row h5 { margin: 0; font-weight: 700; color: #2c3e50; }
.card-title-row i { font-size: 1.5rem; opacity: 0.8; }
/* KPI pure CSS Elements */
.kpi-text { font-size: 0.85rem; color: #7f8c8d; font-weight: 600; margin-bottom: 5px; }
.kpi-value { font-size: 1.4rem; font-weight: 800; color: #2c3e50; }
.custom-progress { height: 8px; border-radius: 10px; background: rgba(0,0,0,0.05); margin-top: 10px; }
.custom-progress-bar { height: 100%; border-radius: 10px; }
/* Gradients */
.grad-1 { border-top: 5px solid #5a7be2; }
.grad-2 { border-top: 5px solid #ee5f52; }
.grad-4 { border-top: 5px solid #32d49a; }
.grad-5 { border-top: 5px solid #42c2d4; }
@media (max-width: 768px) {
.grid-layout { grid-template-columns: 1fr; }
.center-hub { order: -1; margin: 20px 0; }
.dashboard-header { flex-direction: column; text-align: center; gap: 15px; }
}
</style>
<div class="dashboard-wrapper">
<!-- Redesigned Header -->
<div class="dashboard-header">
<div>
<h2 class="m-0 fw-bold">Ежедневный мониторинг</h2>
<div class="date-pill shadow-sm">
<i class="fas fa-calendar-alt me-2"></i> {{ balans_date_str }}
</div>
</div>
<div>
<a href="{% url 'risk-home' %}" class="btn btn-outline-dark fw-bold rounded-pill px-4 shadow-sm">
<i class="fas fa-search me-2"></i> Сменить дату
</a>
</div>
</div>
<!-- Cards Grid -->
<div class="grid-layout">
<!-- АКР -->
<a href="{% url 'risk-appetite-home' %}" class="card-link">
<div class="custom-card grad-1">
<div class="card-title-row">
<h5>АКР</h5>
<i class="fas text-primary fa-chart-line"></i>
</div>
<div>
<div class="kpi-text">Выполнение лимита</div>
<div class="d-flex justify-content-between align-items-end">
<span class="kpi-value">82%</span>
<span class="badge bg-success bg-opacity-25 text-success">В норме</span>
</div>
<div class="custom-progress"><div class="custom-progress-bar bg-primary" style="width: 82%;"></div></div>
</div>
</div>
</a>
<!-- Лимит по паспортам -->
<a href="{% url 'risk-limit-home' %}" class="card-link">
<div class="custom-card grad-2">
<div class="card-title-row">
<h5>Лимит по паспортам</h5>
<i class="fas text-danger fa-id-card"></i>
</div>
<div>
<div class="kpi-text">Уровень риска</div>
<div class="d-flex justify-content-between align-items-end">
<span class="kpi-value text-danger">Высокий</span>
<span class="badge bg-danger bg-opacity-25 text-danger">Внимание</span>
</div>
<div class="custom-progress"><div class="custom-progress-bar bg-danger" style="width: 90%;"></div></div>
</div>
</div>
</a>
<!-- Central Hub -->
<a href="{% url 'risk-combined-home' %}" class="center-hub shadow">
<i class="fas fa-layer-group"></i>
<span style="font-size: 1.1rem; font-weight: 800;">Свод Все</span>
<small class="text-muted mt-1">Генеральный отчет</small>
</a>
<!-- Бизнес план -->
<a href="{% url 'risk-plan-home' %}" class="card-link">
<div class="custom-card grad-4">
<div class="card-title-row">
<h5>Бизнес план</h5>
<i class="fas text-success fa-briefcase"></i>
</div>
<div>
<div class="kpi-text">Выполнение плана (Год)</div>
<div class="d-flex justify-content-between align-items-end">
<span class="kpi-value">64%</span>
<span class="text-muted small">от 100%</span>
</div>
<div class="custom-progress"><div class="custom-progress-bar bg-success" style="width: 64%;"></div></div>
</div>
</div>
</a>
<!-- С Блок -->
<a href="{% url 'risk-blockc-home' %}" class="card-link">
<div class="custom-card grad-5">
<div class="card-title-row">
<h5>С Блок</h5>
<i class="fas text-info fa-shield-alt"></i>
</div>
<div>
<div class="kpi-text">Адекватность капитала</div>
<div class="d-flex justify-content-between align-items-end">
<span class="kpi-value">137.1%</span>
<span class="badge bg-info bg-opacity-25 text-info">Стабильно</span>
</div>
<div class="custom-progress"><div class="custom-progress-bar bg-info" style="width: 100%;"></div></div>
</div>
</div>
</a>
</div>
</div>
{% endblock %}
PO
powerty
Muallif
· Staff
Sen. 15, 2026
Sen. 15, 2026
2
Ko'rishlar
0
Yoqishlar
3m
O'qildi