215 lines
5.8 KiB
PHP
215 lines
5.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Pustaka Nawasena Bakorwil III Malang</title>
|
|
<link rel="icon" href="{{ asset('images/pustaka.jpeg') }}" type="image/png">
|
|
|
|
{{-- Bootstrap 5 --}}
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
|
|
|
|
{{-- Bootstrap Icons --}}
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
|
|
|
|
{{-- Font --}}
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
|
|
|
|
@yield('styles')
|
|
|
|
<style>
|
|
:root {
|
|
--primary-orange: #f97316;
|
|
--light-orange: #fff4e6;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background-color: #f4f7f9;
|
|
color: #374151;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* === 🔸 HEADER NAVBAR === */
|
|
.dashboard-header {
|
|
background-color: #ffffff;
|
|
color: #333;
|
|
border-bottom: 4px solid var(--primary-orange);
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
padding: 1rem 1.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.dashboard-header .title {
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--primary-orange);
|
|
}
|
|
|
|
.dashboard-header .title img {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-right: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.menu a {
|
|
color: #333;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
margin-left: 20px;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.menu a:hover {
|
|
color: var(--primary-orange);
|
|
background-color: var(--light-orange);
|
|
}
|
|
|
|
/* 🔹 Tombol Hamburger */
|
|
.menu-toggle {
|
|
display: none;
|
|
font-size: 1.8rem;
|
|
color: #333;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* === 🔸 AREA KONTEN === */
|
|
.content-area {
|
|
background-color: #ffffff;
|
|
border-top-left-radius: 25px;
|
|
border-top-right-radius: 25px;
|
|
box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
|
|
margin-top: 1rem;
|
|
padding: 2rem;
|
|
min-height: calc(100vh - 80px);
|
|
}
|
|
|
|
.main-content {
|
|
max-width: 1300px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* === 🔹 FOOTER === */
|
|
footer {
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
color: #6b7280;
|
|
background-color: #ffffff;
|
|
border-top: 1px solid #e5e7eb;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* === 📱 RESPONSIF === */
|
|
@media (max-width: 768px) {
|
|
.menu-toggle {
|
|
display: block;
|
|
}
|
|
|
|
.menu {
|
|
display: none;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
background-color: #ffffff;
|
|
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
|
|
border-radius: 0 0 15px 15px;
|
|
position: absolute;
|
|
top: 70px;
|
|
left: 0;
|
|
z-index: 999;
|
|
padding: 0.75rem 1rem;
|
|
animation: fadeDown 0.3s ease-out;
|
|
}
|
|
|
|
.menu a {
|
|
margin: 8px 0;
|
|
display: block;
|
|
padding: 10px;
|
|
}
|
|
|
|
.menu.show {
|
|
display: flex;
|
|
}
|
|
|
|
@keyframes fadeDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.content-area {
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
margin-top: 0;
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
{{-- 🔶 HEADER --}}
|
|
<header class="dashboard-header">
|
|
<div class="title">
|
|
<img src="{{ asset('images/kartu.png') }}" alt="Logo">
|
|
<span>Layanan Pustaka Nawasena</span>
|
|
</div>
|
|
|
|
<!-- 🔸 Tombol Hamburger -->
|
|
<button class="menu-toggle" id="menu-toggle">
|
|
<i class="bi bi-list"></i>
|
|
</button>
|
|
|
|
<nav class="menu" id="menu">
|
|
|
|
</nav>
|
|
</header>
|
|
|
|
{{-- 📦 KONTEN DINAMIS --}}
|
|
<main class="content-area">
|
|
<div class="main-content">
|
|
@yield('content')
|
|
</div>
|
|
</main>
|
|
|
|
{{-- 🔸 FOOTER --}}
|
|
<footer>
|
|
© {{ date('Y') }} <span class="fw-semibold text-orange-500">Pustaka Nawasena Bakorwil III Malang</span>. Hak Cipta Dilindungi.
|
|
</footer>
|
|
|
|
{{-- Bootstrap JS --}}
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
|
|
|
|
{{-- Script Toggle Menu --}}
|
|
<script>
|
|
const toggleButton = document.getElementById('menu-toggle');
|
|
const menu = document.getElementById('menu');
|
|
|
|
toggleButton.addEventListener('click', () => {
|
|
menu.classList.toggle('show');
|
|
});
|
|
</script>
|
|
|
|
@yield('scripts')
|
|
</body>
|
|
</html>
|
|
|