Spaces:
Running
Running
| <html lang="tr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>PiliçBox Admin Paneli</title> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| :root { | |
| --primary: #FF6B00; | |
| --dark: #333333; | |
| --light: #F8F9FA; | |
| } | |
| body { | |
| font-family: 'Open Sans', sans-serif; | |
| background-color: var(--light); | |
| } | |
| h1, h2, h3 { | |
| font-family: 'Poppins', sans-serif; | |
| } | |
| .sidebar { | |
| min-height: 100vh; | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen"> | |
| <div class="flex"> | |
| <!-- Sidebar --> | |
| <aside class="w-64 bg-dark text-white sidebar"> | |
| <div class="p-4"> | |
| <div class="flex items-center mb-8"> | |
| <img src="http://static.photos/food/200x200/1" alt="PiliçBox Logo" class="h-10"> | |
| <h1 class="ml-3 text-xl font-bold">PiliçBox Admin</h1> | |
| </div> | |
| <nav> | |
| <ul class="space-y-2"> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-tachometer-alt mr-2"></i> Dashboard | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-list-alt mr-2"></i> Kategoriler | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-hamburger mr-2"></i> Ürünler | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-qrcode mr-2"></i> QR Kodlar | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-palette mr-2"></i> Tema Ayarları | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center p-2 rounded hover:bg-primary transition"> | |
| <i class="fas fa-cog mr-2"></i> Ayarlar | |
| </a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| </aside> | |
| <!-- Main Content --> | |
| <main class="flex-1"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex justify-between items-center p-4"> | |
| <h2 class="text-xl font-bold text-dark">Admin Paneli</h2> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i> | |
| <input type="text" placeholder="Ara..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary"> | |
| </div> | |
| <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-opacity-90 transition"> | |
| <i class="fas fa-sign-out-alt mr-1"></i> Çıkış Yap | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Content --> | |
| <div class="p-6"> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h3 class="text-lg font-bold mb-4 text-dark">Sisteme Hoş Geldiniz</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <div class="bg-light p-4 rounded-lg border border-gray-200"> | |
| <h4 class="font-bold text-dark mb-2">Toplam Kategori</h4> | |
| <p class="text-3xl font-bold text-primary">8</p> | |
| </div> | |
| <div class="bg-light p-4 rounded-lg border border-gray-200"> | |
| <h4 class="font-bold text-dark mb-2">Toplam Ürün</h4> | |
| <p class="text-3xl font-bold text-primary">42</p> | |
| </div> | |
| <div class="bg-light p-4 rounded-lg border border-gray-200"> | |
| <h4 class="font-bold text-dark mb-2">Aktif QR Kod</h4> | |
| <p class="text-3xl font-bold text-primary">15</p> | |
| </div> | |
| </div> | |
| <div class="mb-6"> | |
| <h4 class="font-bold text-dark mb-3">Son Eklenen Ürünler</h4> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full bg-white"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Ürün Adı</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Kategori</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fiyat</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Durum</th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-dark">Büyük Tavuk Menü</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Menüler</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">₺59.90</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Aktif</span> | |
| </td> | |
| </tr> | |
| <!-- More products... --> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="font-bold text-dark mb-3">QR Kod Oluştur</h4> | |
| <div class="bg-light p-4 rounded-lg border border-gray-200 flex flex-col md:flex-row items-center justify-between"> | |
| <div class="mb-4 md:mb-0"> | |
| <div class="flex items-center mb-2"> | |
| <label class="mr-2 text-dark font-medium">QR Boyutu:</label> | |
| <select class="border border-gray-200 rounded px-2 py-1"> | |
| <option>200x200</option> | |
| <option>300x300</option> | |
| <option>400x400</option> | |
| </select> | |
| </div> | |
| <div class="flex items-center"> | |
| <label class="mr-2 text-dark font-medium">QR Rengi:</label> | |
| <input type="color" value="#FF6B00" class="h-8 w-8 cursor-pointer"> | |
| </div> | |
| </div> | |
| <div class="bg-white p-4 border border-gray-200 rounded-lg"> | |
| <img src="http://static.photos/abstract/200x200/500" alt="QR Code Preview" class="h-32 w-32"> | |
| </div> | |
| <button class="bg-primary text-white px-4 py-2 rounded-lg hover:bg-opacity-90 transition mt-4 md:mt-0"> | |
| <i class="fas fa-download mr-1"></i> İndir (PNG) | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| // CSRF Token for security | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const csrfToken = document.createElement('meta'); | |
| csrfToken.name = 'csrf-token'; | |
| csrfToken.content = '{{csrf_token}}'; | |
| document.head.appendChild(csrfToken); | |
| }); | |
| </script> | |
| </body> | |
| </html> |