38233-vm/core/templates/base.html
2026-02-05 22:10:08 +00:00

173 lines
6.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Fatura Yönetim Sistemi{% endblock %}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css">
{% load static %}
<style>
:root {
--primary-color: #2563eb;
--sidebar-bg: #1e293b;
--sidebar-hover: #334155;
--bg-body: #f8fafc;
--text-main: #1e293b;
--text-muted: #64748b;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-body);
color: var(--text-main);
overflow-x: hidden;
}
#wrapper {
display: flex;
width: 100%;
align-items: stretch;
}
#sidebar {
min-width: 260px;
max-width: 260px;
background: var(--sidebar-bg);
color: #fff;
transition: all 0.3s;
min-height: 100vh;
z-index: 1000;
}
#sidebar .sidebar-header {
padding: 20px;
background: rgba(0,0,0,0.1);
}
#sidebar ul.components {
padding: 20px 0;
}
#sidebar ul li {
padding: 0 10px;
}
#sidebar ul li a {
padding: 12px 15px;
display: block;
color: #cbd5e1;
text-decoration: none;
border-radius: 8px;
margin-bottom: 5px;
font-weight: 500;
transition: 0.2s;
}
#sidebar ul li a:hover, #sidebar ul li.active > a {
color: #fff;
background: var(--sidebar-hover);
}
#sidebar ul li a i {
margin-right: 10px;
font-size: 1.1rem;
}
#content {
width: 100%;
padding: 30px;
transition: all 0.3s;
}
.navbar {
background: #fff;
border-bottom: 1px solid #e2e8f0;
margin-bottom: 30px;
border-radius: 12px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card {
border: none;
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
margin-bottom: 24px;
}
.stat-card {
padding: 24px;
display: flex;
align-items: center;
}
.stat-icon {
width: 48px;
height: 48px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
margin-right: 16px;
}
.bg-primary-soft { background-color: #dbeafe; color: #2563eb; }
.bg-success-soft { background-color: #d1fae5; color: #10b981; }
.bg-warning-soft { background-color: #fef3c7; color: #f59e0b; }
.table thead th {
background-color: #f8fafc;
border-bottom: 2px solid #e2e8f0;
text-transform: uppercase;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.05em;
color: var(--text-muted);
}
</style>
{% block extra_css %}{% endblock %}
</head>
<body>
<div id="wrapper">
<!-- Sidebar -->
<nav id="sidebar">
<div class="sidebar-header">
<h4 class="mb-0 fw-bold"><i class="bi bi-receipt-cutoff me-2"></i>FaturaYol</h4>
</div>
<ul class="list-unstyled components">
<li class="{% if active_menu == 'dashboard' %}active{% endif %}">
<a href="{% url 'home' %}"><i class="bi bi-speedometer2"></i> Gösterge Paneli</a>
</li>
<li class="{% if active_menu == 'archive' %}active{% endif %}">
<a href="#"><i class="bi bi-archive"></i> Fatura Arşivi</a>
</li>
<li class="{% if active_menu == 'reports' %}active{% endif %}">
<a href="#"><i class="bi bi-graph-up"></i> İstatistik & Raporlar</a>
</li>
<li class="mt-4 px-3">
<span class="text-muted small text-uppercase fw-bold">Yönetim</span>
</li>
<li>
<a href="/admin/"><i class="bi bi-gear"></i> Sistem Ayarları</a>
</li>
</ul>
</nav>
<!-- Page Content -->
<div id="content">
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<span class="navbar-text fw-semibold">Hoş geldiniz!</span>
<div class="ms-auto d-flex align-items-center">
<div class="dropdown">
<button class="btn btn-link text-dark text-decoration-none dropdown-toggle" type="button" data-bs-toggle="dropdown">
<i class="bi bi-person-circle me-1"></i> Yönetici
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#">Profil</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Çıkış Yap</a></li>
</ul>
</div>
</div>
</div>
</nav>
{% block content %}{% endblock %}
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
{% block extra_js %}{% endblock %}
</body>
</html>