164 lines
6.7 KiB
PHP
164 lines
6.7 KiB
PHP
<!doctype html>
|
|
<html lang="id">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Admin Panel</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
|
|
<style>
|
|
body {
|
|
background-color: #f1f5f9;
|
|
font-family: 'Poppins', sans-serif;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
height: 100vh;
|
|
background: #fff;
|
|
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.submenu {
|
|
display: none;
|
|
}
|
|
|
|
.submenu.show {
|
|
display: block;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="flex">
|
|
<div class="sidebar flex flex-col">
|
|
<div class="text-center py-4 border-b">
|
|
<img src="https://via.placeholder.com/150x50.png?text=Logo" alt="Logo" class="mx-auto mb-2" style="max-height: 80px;">
|
|
</div>
|
|
|
|
<div class="flex-1 overflow-y-auto">
|
|
<p class="text-gray-500 uppercase text-xs font-semibold px-3 mt-4 mb-2">Menu Utama</p>
|
|
<ul class="px-2 space-y-1">
|
|
<li>
|
|
<a href="#" class="flex items-center py-2 px-3 rounded hover:bg-blue-50 bg-blue-100 text-blue-600">
|
|
<i class="bi bi-house-door me-2"></i> Dasbor
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="flex items-center py-2 px-3 rounded hover:bg-blue-50 text-gray-700">
|
|
<i class="bi bi-diagram-3 me-2"></i> Kategori
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<button class="w-full flex items-center justify-between py-2 px-3 text-gray-700 rounded hover:bg-blue-50" id="manajemenFiturBtn">
|
|
<span><i class="bi bi-grid me-2"></i>Manajemen Fitur</span>
|
|
<i class="bi bi-chevron-down transition-transform" id="manajemenFiturIcon"></i>
|
|
</button>
|
|
<ul class="submenu pl-6 space-y-1 mt-2" id="manajemenFiturSubmenu">
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Kategori Fitur
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Fitur
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
|
|
<li>
|
|
<button class="w-full flex items-center justify-between py-2 px-3 text-gray-700 rounded hover:bg-blue-50" id="templatBtn">
|
|
<span><i class="bi bi-card-list me-2"></i>Manajemen Templat</span>
|
|
<i class="bi bi-chevron-down transition-transform" id="templatIcon"></i>
|
|
</button>
|
|
<ul class="submenu pl-6 space-y-1" id="templatSubmenu">
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Semua Template
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Undangan Pernikahan
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Kartu Ulang Tahun
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="block py-2 px-2 rounded text-gray-500 hover:text-blue-600 hover:bg-blue-50">
|
|
Poster Acara
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<a href="#" class="flex items-center py-2 px-3 rounded hover:bg-blue-50 text-gray-700">
|
|
<i class="bi bi-people me-2"></i> Pelanggan
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="#" class="flex items-center py-2 px-3 rounded hover:bg-blue-50 text-gray-700">
|
|
<i class="bi bi-chat-dots me-2"></i> Ulasan
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<p class="text-gray-500 uppercase text-xs font-semibold px-3 mt-4 mb-2">Akun</p>
|
|
<ul class="px-2 space-y-1">
|
|
<li>
|
|
<a href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();" class="flex items-center py-2 px-3 text-red-600 font-semibold hover:bg-red-50 rounded">
|
|
<i class="bi bi-box-arrow-right me-2"></i> Keluar
|
|
</a>
|
|
<form id="logout-form" action="#" method="POST" class="hidden">
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex-1 ml-[250px] p-6">
|
|
<h1 class="text-2xl font-bold mb-4">Dasbor</h1>
|
|
<div class="bg-white p-6 rounded-lg shadow">
|
|
<p>Selamat datang di panel admin. Ini adalah area konten utama.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Dropdown Templat
|
|
const templatBtn = document.getElementById('templatBtn');
|
|
const templatSubmenu = document.getElementById('templatSubmenu');
|
|
const templatIcon = document.getElementById('templatIcon');
|
|
|
|
templatBtn.addEventListener('click', () => {
|
|
templatSubmenu.classList.toggle('show');
|
|
templatIcon.classList.toggle('rotate-180');
|
|
});
|
|
|
|
// Dropdown Manajemen Fitur
|
|
const manajemenFiturBtn = document.getElementById('manajemenFiturBtn');
|
|
const manajemenFiturSubmenu = document.getElementById('manajemenFiturSubmenu');
|
|
const manajemenFiturIcon = document.getElementById('manajemenFiturIcon');
|
|
|
|
manajemenFiturBtn.addEventListener('click', () => {
|
|
manajemenFiturSubmenu.classList.toggle('show');
|
|
manajemenFiturIcon.classList.toggle('rotate-180');
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html> |