Spaces:
Running

blogmaster-pro / admin.html
xoproject1's picture
create a complete backend for me webapp of personal blog + admin control + blog posting
8522965 verified
Raw History Blame Contribute Delete
4.6 kB
<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel - BlogMaster Pro</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
secondary: {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
}
}
}
}
}
</script>
<style>
.sidebar-item {
transition: all 0.3s ease;
}
.sidebar-item:hover {
background-color: rgba(14, 165, 233, 0.1);
border-left: 4px solid #0ea5e9;
}
.sidebar-item.active {
background-color: rgba(14, 165, 233, 0.1);
border-left: 4px solid #0ea5e9;
color: #0ea5e9;
}
.stat-card {
transition: transform 0.3s ease;
}
.stat-card:hover {
transform: translateY(-2px);
}
</style>
</head>
<body class="h-full bg-gray-50">
<!-- Admin Layout -->
<div class="flex h-screen">
<!-- Sidebar -->
<div class="admin-sidebar bg-white shadow-lg w-64 fixed inset-y-0 left-0 z-50">
<div class="p-4 border-b border-gray-200">
<h1 class="text-xl font-bold text-primary-600">BlogMaster<span class="text-secondary-500">Pro</span></h1>
<p class="text-sm text-gray-500">Admin Panel</p>
</div>
<nav class="mt-6">
<div class="px-4 space-y-2">
<a href="#" class="sidebar-item active flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="grid"></i>
<span>Dashboard</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="edit-3"></i>
<span>Posts</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="folder"></i>
<span>Categories</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="tag"></i>
<span>Tags</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="message-square"></i>
<span>Comments</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="users"></i>
<span>Users</span>
</a>
<a href="#" class="sidebar-item flex items-center space-x-3 px-4 py-3 text-gray-700 rounded-lg">
<i data-feather="settings"></i>
<span>Settings</span>
</a>
</div>
</nav>
</div>
<!-- Main Content -->
</body>
</html>