gearza's picture
must have login system: username=admin pass=pp888
5cbad2a verified
Raw History Blame Contribute Delete
2.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard - OpenCartify</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
</head>
<body class="bg-gray-100">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<h1 class="text-3xl font-bold mb-6">Admin Dashboard</h1>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-xl font-semibold mb-4">Logo Settings</h2>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700">Current Logo</label>
<img id="current-logo" src="" class="h-20 mt-2">
</div>
<div>
<label class="block text-sm font-medium text-gray-700">Upload New Logo</label>
<input type="file" id="logo-upload" class="mt-1 block w-full">
</div>
<button id="save-logo" class="bg-primary-500 text-white px-4 py-2 rounded hover:bg-primary-600">
Save Logo
</button>
</div>
</div>
<div class="bg-white p-6 rounded-lg shadow">
<h2 class="text-xl font-semibold mb-4">Footer Content</h2>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700">Select Section</label>
<select id="footer-section" class="mt-1 block w-full">
<option value="information">Information</option>
<option value="customer">Customer Service</option>
<option value="extras">Extras</option>
<option value="account">My Account</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700">Edit Content (HTML)</label>
<textarea id="footer-content" rows="6" class="mt-1 block w-full border border-gray-300 rounded-md"></textarea>
</div>
<button id="save-footer" class="bg-primary-500 text-white px-4 py-2 rounded hover:bg-primary-600">
Save Changes
</button>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
</body>
</html>