word-press / index.html
docto41's picture
Add 3 files
d8c004e verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WordPress Clone</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.sidebar-item:hover .submenu {
display: block;
}
.editor-toolbar button:hover {
background-color: #e2e8f0;
}
.post-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="w-64 bg-gray-900 text-white flex flex-col">
<div class="p-4 flex items-center space-x-2 border-b border-gray-700">
<i class="fab fa-wordpress text-2xl text-blue-400"></i>
<span class="text-xl font-bold">WordPress</span>
</div>
<nav class="flex-1 overflow-y-auto">
<div class="p-4">
<div class="mb-6">
<div class="text-xs uppercase text-gray-400 mb-2 px-2">Main</div>
<ul>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-tachometer-alt w-6"></i>
<span>Dashboard</span>
</a>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-pencil-alt w-6"></i>
<span>Posts</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</a>
<ul class="submenu hidden ml-6 mt-1 space-y-1">
<li><a href="#" class="block p-2 rounded hover:bg-gray-700">All Posts</a></li>
<li><a href="#" class="block p-2 rounded hover:bg-gray-700">Add New</a></li>
<li><a href="#" class="block p-2 rounded hover:bg-gray-700">Categories</a></li>
</ul>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-images w-6"></i>
<span>Media</span>
</a>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-file-alt w-6"></i>
<span>Pages</span>
<i class="fas fa-chevron-down ml-auto text-xs"></i>
</a>
<ul class="submenu hidden ml-6 mt-1 space-y-1">
<li><a href="#" class="block p-2 rounded hover:bg-gray-700">All Pages</a></li>
<li><a href="#" class="block p-2 rounded hover:bg-gray-700">Add New</a></li>
</ul>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-comment w-6"></i>
<span>Comments</span>
</a>
</li>
</ul>
</div>
<div class="mb-6">
<div class="text-xs uppercase text-gray-400 mb-2 px-2">Appearance</div>
<ul>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-paint-brush w-6"></i>
<span>Themes</span>
</a>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-sliders-h w-6"></i>
<span>Customize</span>
</a>
</li>
<li class="sidebar-item relative">
<a href="#" class="flex items-center p-2 rounded hover:bg-gray-800">
<i class="fas fa-bars w-6"></i>
<span>Menus</span>
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="p-4 border-t border-gray-700">
<div class="flex items-center space-x-3">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
<span class="text-white font-medium">AD</span>
</div>
<div>
<div class="text-sm font-medium">Admin User</div>
<div class="text-xs text-gray-400">Administrator</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Bar -->
<header class="bg-white border-b border-gray-200 py-3 px-6 flex items-center justify-between">
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-bars"></i>
</button>
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 w-64">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
</div>
<div class="flex items-center space-x-4">
<button class="text-gray-500 hover:text-gray-700 relative">
<i class="fas fa-bell"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
<button class="text-gray-500 hover:text-gray-700">
<i class="fas fa-question-circle"></i>
</button>
<div class="w-px h-6 bg-gray-200"></div>
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
<span class="text-white font-medium">AD</span>
</div>
<span class="text-sm font-medium">Admin</span>
</div>
</div>
</header>
<!-- Content Area -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<div class="mb-6 flex justify-between items-center">
<h1 class="text-2xl font-bold text-gray-800">Posts</h1>
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center space-x-2">
<i class="fas fa-plus"></i>
<span>Add New</span>
</button>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">All Posts</p>
<p class="text-2xl font-bold">24</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-file-alt"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Published</p>
<p class="text-2xl font-bold">18</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-check-circle"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Drafts</p>
<p class="text-2xl font-bold">4</p>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i class="fas fa-edit"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-4">
<div class="flex items-center justify-between">
<div>
<p class="text-sm text-gray-500">Pending</p>
<p class="text-2xl font-bold">2</p>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-600">
<i class="fas fa-clock"></i>
</div>
</div>
</div>
</div>
<!-- Posts Table -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<div class="flex items-center space-x-4">
<select class="border border-gray-300 rounded px-3 py-1 text-sm">
<option>Bulk Actions</option>
<option>Edit</option>
<option>Move to Trash</option>
</select>
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1 rounded text-sm">
Apply
</button>
</div>
<div class="flex items-center space-x-2">
<input type="text" placeholder="Filter posts..." class="border border-gray-300 rounded px-3 py-1 text-sm">
<button class="bg-gray-100 hover:bg-gray-200 text-gray-700 px-3 py-1 rounded text-sm">
Filter
</button>
</div>
</div>
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
<input type="checkbox" class="rounded text-blue-600">
</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Title</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Author</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Categories</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Tags</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded text-blue-600">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
<i class="fas fa-file-alt"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Getting Started with WordPress</div>
<div class="text-sm text-gray-500">
<span class="text-green-600">Published</span>
<span class="mx-1"></span>
<a href="#" class="text-blue-600">Edit</a>
<span class="mx-1"></span>
<a href="#" class="text-blue-600">View</a>
<span class="mx-1"></span>
<a href="#" class="text-blue-600">Quick Edit</a>
</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Admin</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Tutorials
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
beginner
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
May 15, 2023
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded text-blue-600">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
<i class="fas fa-edit"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Advanced Customization Guide</div>
<div class="text-sm text-gray-500">
<span class="text-yellow-600">Draft</span>
<span class="mx-1"></span>
<a href="#" class="text-blue-600">Edit</a>
</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Editor</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">
Development
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
customization
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
May 10, 2023
</td>
</tr>
<tr class="hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox" class="rounded text-blue-600">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-red-100 rounded-full flex items-center justify-center text-red-600">
<i class="fas fa-clock"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">Plugin Development Tutorial</div>
<div class="text-sm text-gray-500">
<span class="text-red-600">Pending</span>
<span class="mx-1"></span>
<a href="#" class="text-blue-600">Edit</a>
</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Contributor</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-indigo-100 text-indigo-800">
Plugins
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">
development
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
May 5, 2023
</td>
</tr>
</tbody>
</table>
<div class="px-6 py-4 border-t border-gray-200 flex items-center justify-between">
<div class="text-sm text-gray-500">
Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">24</span> posts
</div>
<div class="flex space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white text-gray-700 hover:bg-gray-50">
Previous
</button>
<button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white text-gray-700 hover:bg-gray-50">
1
</button>
<button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white text-gray-700 hover:bg-gray-50">
2
</button>
<button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white text-gray-700 hover:bg-gray-50">
3
</button>
<button class="px-3 py-1 border border-gray-300 rounded text-sm bg-white text-gray-700 hover:bg-gray-50">
Next
</button>
</div>
</div>
</div>
<!-- Quick Draft -->
<div class="mt-6 grid grid-cols-1 md:grid-cols-3 gap-6">
<div class="md:col-span-2 bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-medium text-gray-900 mb-4">Quick Draft</h2>
<div class="space-y-4">
<div>
<label for="draft-title" class="block text-sm font-medium text-gray-700 mb-1">Title</label>
<input type="text" id="draft-title" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<div>
<label for="draft-content" class="block text-sm font-medium text-gray-700 mb-1">Content</label>
<div class="border border-gray-300 rounded-lg overflow-hidden">
<div class="editor-toolbar border-b border-gray-300 bg-gray-50 p-2 flex flex-wrap gap-1">
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-bold"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-italic"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-underline"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-list-ul"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-list-ol"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-quote-right"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-link"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-image"></i>
</button>
<button type="button" class="p-2 rounded hover:bg-gray-200">
<i class="fas fa-code"></i>
</button>
</div>
<textarea id="draft-content" rows="6" class="w-full px-3 py-2 focus:outline-none resize-none"></textarea>
</div>
</div>
<div class="flex justify-end">
<button type="button" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg">
Save Draft
</button>
</div>
</div>
</div>
<!-- Activity Feed -->
<div class="bg-white rounded-lg shadow p-6">
<h2 class="text-lg font-medium text-gray-900 mb-4">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-user-edit"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">You published "Getting Started with WordPress"</p>
<p class="text-sm text-gray-500">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-8 w-8 rounded-full bg-green-100 flex items-center justify-center text-green-600">
<i class="fas fa-comment"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New comment on "Theme Customization Guide"</p>
<p class="text-sm text-gray-500">5 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-8 w-8 rounded-full bg-purple-100 flex items-center justify-center text-purple-600">
<i class="fas fa-plug"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Plugin "SEO Toolkit" was updated</p>
<p class="text-sm text-gray-500">1 day ago</p>
</div>
</div>
<div class="flex items-start">
<div class="flex-shrink-0">
<div class="h-8 w-8 rounded-full bg-yellow-100 flex items-center justify-center text-yellow-600">
<i class="fas fa-user-plus"></i>
</div>
</div>
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">New user "johndoe" registered</p>
<p class="text-sm text-gray-500">2 days ago</p>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle submenus
document.querySelectorAll('.sidebar-item').forEach(item => {
item.addEventListener('click', function(e) {
if(e.target.closest('a')) {
const submenu = this.querySelector('.submenu');
if(submenu) {
submenu.classList.toggle('hidden');
}
}
});
});
// Simulate loading for demo purposes
document.addEventListener('DOMContentLoaded', function() {
setTimeout(() => {
document.querySelectorAll('.animate-pulse').forEach(el => {
el.classList.remove('animate-pulse');
});
}, 2000);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/word-press" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>