autoverse-exotics / admin.html
Wavetype's picture
That looks like a design for a full-stack web application. Based on the uploaded diagrams, the app called https://www.Godsrods.online appears to use a client-server architecture to manage user logins, display a front-end interface, handle backend logic, and interact with a database.
3aeaee2 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel | GodsRods</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
</head>
<body class="bg-gray-100">
<custom-navbar username="Admin"></custom-navbar>
<main class="container mx-auto px-4 py-8">
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h1 class="text-3xl font-bold text-gray-800 mb-6">Admin Dashboard</h1>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-blue-50 p-4 rounded-lg">
<h3 class="text-lg font-semibold text-blue-800 mb-2">Total Listings</h3>
<p class="text-2xl font-bold" id="total-listings">0</p>
</div>
<div class="bg-green-50 p-4 rounded-lg">
<h3 class="text-lg font-semibold text-green-800 mb-2">Active Users</h3>
<p class="text-2xl font-bold" id="active-users">0</p>
</div>
<div class="bg-purple-50 p-4 rounded-lg">
<h3 class="text-lg font-semibold text-purple-800 mb-2">Revenue (7d)</h3>
<p class="text-2xl font-bold" id="weekly-revenue">$0</p>
</div>
</div>
<h2 class="text-2xl font-bold text-gray-800 mb-4">Manage Listings</h2>
<div class="overflow-x-auto">
<table class="min-w-full bg-white rounded-lg overflow-hidden">
<thead class="bg-gray-100">
<tr>
<th class="py-3 px-4 text-left">ID</th>
<th class="py-3 px-4 text-left">Model</th>
<th class="py-3 px-4 text-left">Price</th>
<th class="py-3 px-4 text-left">Tokens</th>
<th class="py-3 px-4 text-left">Status</th>
<th class="py-3 px-4 text-left">Actions</th>
</tr>
</thead>
<tbody id="listings-table" class="divide-y divide-gray-200">
<!-- Listings will be loaded here -->
</tbody>
</table>
</div>
<div class="mt-8">
<h2 class="text-2xl font-bold text-gray-800 mb-4">Add New Listing</h2>
<form id="add-listing-form" class="space-y-4">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-700 mb-2">Model Name</label>
<input type="text" name="title" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div>
<label class="block text-gray-700 mb-2">Price ($)</label>
<input type="number" name="price" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div>
<label class="block text-gray-700 mb-2">Token Cost</label>
<input type="number" name="tokens" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div>
<label class="block text-gray-700 mb-2">Model URL (.glb)</label>
<input type="text" name="modelUrl" class="w-full px-4 py-2 border rounded-lg" required>
</div>
<div class="md:col-span-2">
<label class="block text-gray-700 mb-2">Preview Image URL</label>
<input type="text" name="imageUrl" class="w-full px-4 py-2 border rounded-lg" required>
</div>
</div>
<button type="submit" class="bg-blue-600 text-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-700 transition">
Add Listing
</button>
</form>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script>
feather.replace();
</script>
<script src="script.js"></script>
</body>
</html>