undefined - Initial Deployment
Browse files- README.md +7 -5
- index.html +539 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: testcms
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,539 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Modern CMS Dashboard</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.sidebar {
|
| 11 |
+
transition: all 0.3s ease;
|
| 12 |
+
}
|
| 13 |
+
.content-area {
|
| 14 |
+
transition: all 0.3s ease;
|
| 15 |
+
}
|
| 16 |
+
.sidebar-collapsed + .content-area {
|
| 17 |
+
margin-left: 5rem;
|
| 18 |
+
}
|
| 19 |
+
.dropdown:hover .dropdown-menu {
|
| 20 |
+
display: block;
|
| 21 |
+
}
|
| 22 |
+
.content-block {
|
| 23 |
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
| 24 |
+
}
|
| 25 |
+
.content-block:hover {
|
| 26 |
+
transform: translateY(-2px);
|
| 27 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 28 |
+
}
|
| 29 |
+
.wysiwyg-editor {
|
| 30 |
+
min-height: 300px;
|
| 31 |
+
border: 1px solid #e2e8f0;
|
| 32 |
+
border-radius: 0.375rem;
|
| 33 |
+
padding: 1rem;
|
| 34 |
+
}
|
| 35 |
+
.wysiwyg-toolbar {
|
| 36 |
+
border: 1px solid #e2e8f0;
|
| 37 |
+
border-bottom: none;
|
| 38 |
+
border-radius: 0.375rem 0.375rem 0 0;
|
| 39 |
+
}
|
| 40 |
+
.media-item {
|
| 41 |
+
transition: all 0.2s ease;
|
| 42 |
+
}
|
| 43 |
+
.media-item:hover {
|
| 44 |
+
transform: scale(1.02);
|
| 45 |
+
}
|
| 46 |
+
.media-item.selected {
|
| 47 |
+
border-color: #3b82f6;
|
| 48 |
+
background-color: #eff6ff;
|
| 49 |
+
}
|
| 50 |
+
@media (max-width: 768px) {
|
| 51 |
+
.sidebar {
|
| 52 |
+
position: fixed;
|
| 53 |
+
z-index: 50;
|
| 54 |
+
transform: translateX(-100%);
|
| 55 |
+
}
|
| 56 |
+
.sidebar-open {
|
| 57 |
+
transform: translateX(0);
|
| 58 |
+
}
|
| 59 |
+
.sidebar-collapsed + .content-area {
|
| 60 |
+
margin-left: 0;
|
| 61 |
+
}
|
| 62 |
+
.mobile-menu-button {
|
| 63 |
+
display: block;
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
</style>
|
| 67 |
+
</head>
|
| 68 |
+
<body class="bg-gray-50 font-sans antialiased">
|
| 69 |
+
<div class="flex h-screen overflow-hidden">
|
| 70 |
+
<!-- Sidebar -->
|
| 71 |
+
<div class="sidebar bg-gray-800 text-white w-64 flex-shrink-0">
|
| 72 |
+
<div class="flex items-center justify-between p-4 border-b border-gray-700">
|
| 73 |
+
<div class="flex items-center space-x-2">
|
| 74 |
+
<i class="fas fa-cube text-blue-400 text-xl"></i>
|
| 75 |
+
<span class="text-xl font-semibold">ContentHub</span>
|
| 76 |
+
</div>
|
| 77 |
+
<button id="sidebarToggle" class="text-gray-400 hover:text-white focus:outline-none">
|
| 78 |
+
<i class="fas fa-chevron-left"></i>
|
| 79 |
+
</button>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<div class="p-4">
|
| 83 |
+
<div class="relative">
|
| 84 |
+
<input type="text" placeholder="Search..." class="w-full bg-gray-700 text-white px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 85 |
+
<i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
|
| 89 |
+
<nav class="mt-2">
|
| 90 |
+
<div class="px-2">
|
| 91 |
+
<div class="py-2 text-gray-400 uppercase text-xs font-semibold tracking-wider">Dashboard</div>
|
| 92 |
+
<a href="#" class="flex items-center px-4 py-3 text-white bg-gray-900 rounded-lg">
|
| 93 |
+
<i class="fas fa-tachometer-alt mr-3"></i>
|
| 94 |
+
<span>Overview</span>
|
| 95 |
+
</a>
|
| 96 |
+
|
| 97 |
+
<div class="py-2 mt-4 text-gray-400 uppercase text-xs font-semibold tracking-wider">Content</div>
|
| 98 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 99 |
+
<i class="fas fa-file-alt mr-3"></i>
|
| 100 |
+
<span>Pages</span>
|
| 101 |
+
</a>
|
| 102 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 103 |
+
<i class="fas fa-newspaper mr-3"></i>
|
| 104 |
+
<span>Posts</span>
|
| 105 |
+
</a>
|
| 106 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 107 |
+
<i class="fas fa-images mr-3"></i>
|
| 108 |
+
<span>Media</span>
|
| 109 |
+
</a>
|
| 110 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 111 |
+
<i class="fas fa-tags mr-3"></i>
|
| 112 |
+
<span>Categories</span>
|
| 113 |
+
</a>
|
| 114 |
+
|
| 115 |
+
<div class="py-2 mt-4 text-gray-400 uppercase text-xs font-semibold tracking-wider">System</div>
|
| 116 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 117 |
+
<i class="fas fa-users mr-3"></i>
|
| 118 |
+
<span>Users</span>
|
| 119 |
+
</a>
|
| 120 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 121 |
+
<i class="fas fa-cog mr-3"></i>
|
| 122 |
+
<span>Settings</span>
|
| 123 |
+
</a>
|
| 124 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 125 |
+
<i class="fas fa-chart-line mr-3"></i>
|
| 126 |
+
<span>Analytics</span>
|
| 127 |
+
</a>
|
| 128 |
+
<a href="#" class="flex items-center px-4 py-3 text-gray-300 hover:text-white hover:bg-gray-700 rounded-lg">
|
| 129 |
+
<i class="fas fa-plug mr-3"></i>
|
| 130 |
+
<span>Integrations</span>
|
| 131 |
+
</a>
|
| 132 |
+
</div>
|
| 133 |
+
</nav>
|
| 134 |
+
|
| 135 |
+
<div class="absolute bottom-0 w-full p-4 border-t border-gray-700">
|
| 136 |
+
<div class="flex items-center">
|
| 137 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full">
|
| 138 |
+
<div class="ml-3">
|
| 139 |
+
<div class="text-sm font-medium">John Doe</div>
|
| 140 |
+
<div class="text-xs text-gray-400">Administrator</div>
|
| 141 |
+
</div>
|
| 142 |
+
<button class="ml-auto text-gray-400 hover:text-white">
|
| 143 |
+
<i class="fas fa-ellipsis-v"></i>
|
| 144 |
+
</button>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<!-- Content Area -->
|
| 150 |
+
<div class="content-area flex-1 flex flex-col overflow-hidden">
|
| 151 |
+
<!-- Top Navigation -->
|
| 152 |
+
<header class="bg-white shadow-sm z-10">
|
| 153 |
+
<div class="flex items-center justify-between px-6 py-4">
|
| 154 |
+
<div class="flex items-center">
|
| 155 |
+
<button id="mobileMenuButton" class="mobile-menu-button mr-4 text-gray-500 hover:text-gray-600 focus:outline-none lg:hidden">
|
| 156 |
+
<i class="fas fa-bars text-xl"></i>
|
| 157 |
+
</button>
|
| 158 |
+
<h1 class="text-xl font-semibold text-gray-800">Dashboard Overview</h1>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<div class="flex items-center space-x-4">
|
| 162 |
+
<button class="text-gray-500 hover:text-gray-600 focus:outline-none">
|
| 163 |
+
<i class="fas fa-bell text-xl"></i>
|
| 164 |
+
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
|
| 165 |
+
</button>
|
| 166 |
+
<button class="text-gray-500 hover:text-gray-600 focus:outline-none">
|
| 167 |
+
<i class="fas fa-envelope text-xl"></i>
|
| 168 |
+
</button>
|
| 169 |
+
<button class="text-gray-500 hover:text-gray-600 focus:outline-none">
|
| 170 |
+
<i class="fas fa-search text-xl"></i>
|
| 171 |
+
</button>
|
| 172 |
+
<div class="relative dropdown">
|
| 173 |
+
<button class="flex items-center space-x-2 focus:outline-none">
|
| 174 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-8 h-8 rounded-full">
|
| 175 |
+
<span class="hidden md:inline-block font-medium">John Doe</span>
|
| 176 |
+
<i class="fas fa-chevron-down hidden md:inline-block text-xs"></i>
|
| 177 |
+
</button>
|
| 178 |
+
<div class="dropdown-menu absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden">
|
| 179 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
|
| 180 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
|
| 181 |
+
<div class="border-t border-gray-200"></div>
|
| 182 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Logout</a>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</header>
|
| 188 |
+
|
| 189 |
+
<!-- Main Content -->
|
| 190 |
+
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
|
| 191 |
+
<!-- Stats Cards -->
|
| 192 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
| 193 |
+
<div class="content-block bg-white rounded-lg shadow p-6">
|
| 194 |
+
<div class="flex items-center">
|
| 195 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
|
| 196 |
+
<i class="fas fa-file-alt text-xl"></i>
|
| 197 |
+
</div>
|
| 198 |
+
<div class="ml-4">
|
| 199 |
+
<h3 class="text-gray-500 text-sm font-medium">Total Pages</h3>
|
| 200 |
+
<p class="text-2xl font-semibold">1,248</p>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="mt-4">
|
| 204 |
+
<span class="text-green-500 text-sm font-medium">+12.5%</span>
|
| 205 |
+
<span class="text-gray-500 text-sm ml-2">from last month</span>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
|
| 209 |
+
<div class="content-block bg-white rounded-lg shadow p-6">
|
| 210 |
+
<div class="flex items-center">
|
| 211 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600">
|
| 212 |
+
<i class="fas fa-newspaper text-xl"></i>
|
| 213 |
+
</div>
|
| 214 |
+
<div class="ml-4">
|
| 215 |
+
<h3 class="text-gray-500 text-sm font-medium">Total Posts</h3>
|
| 216 |
+
<p class="text-2xl font-semibold">3,567</p>
|
| 217 |
+
</div>
|
| 218 |
+
</div>
|
| 219 |
+
<div class="mt-4">
|
| 220 |
+
<span class="text-green-500 text-sm font-medium">+8.3%</span>
|
| 221 |
+
<span class="text-gray-500 text-sm ml-2">from last month</span>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div class="content-block bg-white rounded-lg shadow p-6">
|
| 226 |
+
<div class="flex items-center">
|
| 227 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
|
| 228 |
+
<i class="fas fa-users text-xl"></i>
|
| 229 |
+
</div>
|
| 230 |
+
<div class="ml-4">
|
| 231 |
+
<h3 class="text-gray-500 text-sm font-medium">Total Users</h3>
|
| 232 |
+
<p class="text-2xl font-semibold">248</p>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
<div class="mt-4">
|
| 236 |
+
<span class="text-green-500 text-sm font-medium">+5.2%</span>
|
| 237 |
+
<span class="text-gray-500 text-sm ml-2">from last month</span>
|
| 238 |
+
</div>
|
| 239 |
+
</div>
|
| 240 |
+
|
| 241 |
+
<div class="content-block bg-white rounded-lg shadow p-6">
|
| 242 |
+
<div class="flex items-center">
|
| 243 |
+
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
|
| 244 |
+
<i class="fas fa-eye text-xl"></i>
|
| 245 |
+
</div>
|
| 246 |
+
<div class="ml-4">
|
| 247 |
+
<h3 class="text-gray-500 text-sm font-medium">Total Views</h3>
|
| 248 |
+
<p class="text-2xl font-semibold">124,890</p>
|
| 249 |
+
</div>
|
| 250 |
+
</div>
|
| 251 |
+
<div class="mt-4">
|
| 252 |
+
<span class="text-green-500 text-sm font-medium">+22.7%</span>
|
| 253 |
+
<span class="text-gray-500 text-sm ml-2">from last month</span>
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
|
| 258 |
+
<!-- Recent Activity and Quick Actions -->
|
| 259 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
| 260 |
+
<!-- Recent Activity -->
|
| 261 |
+
<div class="lg:col-span-2 content-block bg-white rounded-lg shadow">
|
| 262 |
+
<div class="p-6 border-b border-gray-200">
|
| 263 |
+
<h2 class="text-lg font-semibold text-gray-800">Recent Activity</h2>
|
| 264 |
+
</div>
|
| 265 |
+
<div class="divide-y divide-gray-200">
|
| 266 |
+
<div class="p-4 hover:bg-gray-50">
|
| 267 |
+
<div class="flex items-start">
|
| 268 |
+
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full">
|
| 269 |
+
<div class="ml-3">
|
| 270 |
+
<p class="text-sm font-medium">Sarah Johnson <span class="text-gray-500">published a new post</span></p>
|
| 271 |
+
<p class="text-sm text-gray-500">"How to optimize your content for SEO"</p>
|
| 272 |
+
<p class="text-xs text-gray-400 mt-1">2 hours ago</p>
|
| 273 |
+
</div>
|
| 274 |
+
</div>
|
| 275 |
+
</div>
|
| 276 |
+
<div class="p-4 hover:bg-gray-50">
|
| 277 |
+
<div class="flex items-start">
|
| 278 |
+
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="User" class="w-10 h-10 rounded-full">
|
| 279 |
+
<div class="ml-3">
|
| 280 |
+
<p class="text-sm font-medium">Michael Chen <span class="text-gray-500">updated the homepage</span></p>
|
| 281 |
+
<p class="text-sm text-gray-500">Added new hero section and CTA buttons</p>
|
| 282 |
+
<p class="text-xs text-gray-400 mt-1">5 hours ago</p>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
<div class="p-4 hover:bg-gray-50">
|
| 287 |
+
<div class="flex items-start">
|
| 288 |
+
<img src="https://randomuser.me/api/portraits/women/68.jpg" alt="User" class="w-10 h-10 rounded-full">
|
| 289 |
+
<div class="ml-3">
|
| 290 |
+
<p class="text-sm font-medium">Emily Wilson <span class="text-gray-500">uploaded new media</span></p>
|
| 291 |
+
<p class="text-sm text-gray-500">12 product images added to the gallery</p>
|
| 292 |
+
<p class="text-xs text-gray-400 mt-1">1 day ago</p>
|
| 293 |
+
</div>
|
| 294 |
+
</div>
|
| 295 |
+
</div>
|
| 296 |
+
<div class="p-4 hover:bg-gray-50">
|
| 297 |
+
<div class="flex items-start">
|
| 298 |
+
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="User" class="w-10 h-10 rounded-full">
|
| 299 |
+
<div class="ml-3">
|
| 300 |
+
<p class="text-sm font-medium">John Doe <span class="text-gray-500">created a new user</span></p>
|
| 301 |
+
<p class="text-sm text-gray-500">Added new editor: Robert Johnson</p>
|
| 302 |
+
<p class="text-xs text-gray-400 mt-1">2 days ago</p>
|
| 303 |
+
</div>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
</div>
|
| 307 |
+
<div class="p-4 border-t border-gray-200 text-center">
|
| 308 |
+
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-800">View all activity</a>
|
| 309 |
+
</div>
|
| 310 |
+
</div>
|
| 311 |
+
|
| 312 |
+
<!-- Quick Actions -->
|
| 313 |
+
<div class="content-block bg-white rounded-lg shadow">
|
| 314 |
+
<div class="p-6 border-b border-gray-200">
|
| 315 |
+
<h2 class="text-lg font-semibold text-gray-800">Quick Actions</h2>
|
| 316 |
+
</div>
|
| 317 |
+
<div class="p-6">
|
| 318 |
+
<button class="w-full flex items-center justify-between px-4 py-3 mb-3 bg-blue-50 text-blue-600 rounded-lg hover:bg-blue-100">
|
| 319 |
+
<div class="flex items-center">
|
| 320 |
+
<i class="fas fa-file-alt mr-3"></i>
|
| 321 |
+
<span>Create New Page</span>
|
| 322 |
+
</div>
|
| 323 |
+
<i class="fas fa-chevron-right"></i>
|
| 324 |
+
</button>
|
| 325 |
+
<button class="w-full flex items-center justify-between px-4 py-3 mb-3 bg-green-50 text-green-600 rounded-lg hover:bg-green-100">
|
| 326 |
+
<div class="flex items-center">
|
| 327 |
+
<i class="fas fa-newspaper mr-3"></i>
|
| 328 |
+
<span>Create New Post</span>
|
| 329 |
+
</div>
|
| 330 |
+
<i class="fas fa-chevron-right"></i>
|
| 331 |
+
</button>
|
| 332 |
+
<button class="w-full flex items-center justify-between px-4 py-3 mb-3 bg-purple-50 text-purple-600 rounded-lg hover:bg-purple-100">
|
| 333 |
+
<div class="flex items-center">
|
| 334 |
+
<i class="fas fa-images mr-3"></i>
|
| 335 |
+
<span>Upload Media</span>
|
| 336 |
+
</div>
|
| 337 |
+
<i class="fas fa-chevron-right"></i>
|
| 338 |
+
</button>
|
| 339 |
+
<button class="w-full flex items-center justify-between px-4 py-3 bg-yellow-50 text-yellow-600 rounded-lg hover:bg-yellow-100">
|
| 340 |
+
<div class="flex items-center">
|
| 341 |
+
<i class="fas fa-user-plus mr-3"></i>
|
| 342 |
+
<span>Add New User</span>
|
| 343 |
+
</div>
|
| 344 |
+
<i class="fas fa-chevron-right"></i>
|
| 345 |
+
</button>
|
| 346 |
+
</div>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
|
| 350 |
+
<!-- Recent Content and WYSIWYG Preview -->
|
| 351 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
| 352 |
+
<!-- Recent Content -->
|
| 353 |
+
<div class="content-block bg-white rounded-lg shadow">
|
| 354 |
+
<div class="p-6 border-b border-gray-200">
|
| 355 |
+
<div class="flex justify-between items-center">
|
| 356 |
+
<h2 class="text-lg font-semibold text-gray-800">Recent Content</h2>
|
| 357 |
+
<select class="border border-gray-300 rounded-md px-3 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
|
| 358 |
+
<option>Last 7 days</option>
|
| 359 |
+
<option>Last 30 days</option>
|
| 360 |
+
<option>Last 90 days</option>
|
| 361 |
+
</select>
|
| 362 |
+
</div>
|
| 363 |
+
</div>
|
| 364 |
+
<div class="divide-y divide-gray-200">
|
| 365 |
+
<div class="p-4 hover:bg-gray-50">
|
| 366 |
+
<div class="flex items-center justify-between">
|
| 367 |
+
<div>
|
| 368 |
+
<h3 class="font-medium text-gray-800">Homepage Redesign</h3>
|
| 369 |
+
<p class="text-sm text-gray-500">Updated by Michael Chen</p>
|
| 370 |
+
</div>
|
| 371 |
+
<div class="flex items-center">
|
| 372 |
+
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Published</span>
|
| 373 |
+
<span class="ml-3 text-xs text-gray-500">2 days ago</span>
|
| 374 |
+
</div>
|
| 375 |
+
</div>
|
| 376 |
+
</div>
|
| 377 |
+
<div class="p-4 hover:bg-gray-50">
|
| 378 |
+
<div class="flex items-center justify-between">
|
| 379 |
+
<div>
|
| 380 |
+
<h3 class="font-medium text-gray-800">Summer Sale Announcement</h3>
|
| 381 |
+
<p class="text-sm text-gray-500">Created by Sarah Johnson</p>
|
| 382 |
+
</div>
|
| 383 |
+
<div class="flex items-center">
|
| 384 |
+
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Draft</span>
|
| 385 |
+
<span class="ml-3 text-xs text-gray-500">1 day ago</span>
|
| 386 |
+
</div>
|
| 387 |
+
</div>
|
| 388 |
+
</div>
|
| 389 |
+
<div class="p-4 hover:bg-gray-50">
|
| 390 |
+
<div class="flex items-center justify-between">
|
| 391 |
+
<div>
|
| 392 |
+
<h3 class="font-medium text-gray-800">Product Catalog Update</h3>
|
| 393 |
+
<p class="text-sm text-gray-500">Updated by Emily Wilson</p>
|
| 394 |
+
</div>
|
| 395 |
+
<div class="flex items-center">
|
| 396 |
+
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Published</span>
|
| 397 |
+
<span class="ml-3 text-xs text-gray-500">3 days ago</span>
|
| 398 |
+
</div>
|
| 399 |
+
</div>
|
| 400 |
+
</div>
|
| 401 |
+
<div class="p-4 hover:bg-gray-50">
|
| 402 |
+
<div class="flex items-center justify-between">
|
| 403 |
+
<div>
|
| 404 |
+
<h3 class="font-medium text-gray-800">Blog: SEO Best Practices</h3>
|
| 405 |
+
<p class="text-sm text-gray-500">Created by Sarah Johnson</p>
|
| 406 |
+
</div>
|
| 407 |
+
<div class="flex items-center">
|
| 408 |
+
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full">Pending</span>
|
| 409 |
+
<span class="ml-3 text-xs text-gray-500">5 hours ago</span>
|
| 410 |
+
</div>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
+
</div>
|
| 414 |
+
<div class="p-4 border-t border-gray-200 text-center">
|
| 415 |
+
<a href="#" class="text-sm font-medium text-blue-600 hover:text-blue-800">View all content</a>
|
| 416 |
+
</div>
|
| 417 |
+
</div>
|
| 418 |
+
|
| 419 |
+
<!-- WYSIWYG Preview -->
|
| 420 |
+
<div class="content-block bg-white rounded-lg shadow">
|
| 421 |
+
<div class="p-6 border-b border-gray-200">
|
| 422 |
+
<h2 class="text-lg font-semibold text-gray-800">Content Editor Preview</h2>
|
| 423 |
+
</div>
|
| 424 |
+
<div class="p-6">
|
| 425 |
+
<div class="wysiwyg-toolbar bg-gray-100 p-2 flex flex-wrap items-center">
|
| 426 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-bold"></i></button>
|
| 427 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-italic"></i></button>
|
| 428 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-underline"></i></button>
|
| 429 |
+
<div class="w-px h-6 bg-gray-300 mx-1"></div>
|
| 430 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-align-left"></i></button>
|
| 431 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-align-center"></i></button>
|
| 432 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-align-right"></i></button>
|
| 433 |
+
<div class="w-px h-6 bg-gray-300 mx-1"></div>
|
| 434 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-list-ul"></i></button>
|
| 435 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-list-ol"></i></button>
|
| 436 |
+
<div class="w-px h-6 bg-gray-300 mx-1"></div>
|
| 437 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-link"></i></button>
|
| 438 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-image"></i></button>
|
| 439 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-video"></i></button>
|
| 440 |
+
<div class="w-px h-6 bg-gray-300 mx-1"></div>
|
| 441 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-code"></i></button>
|
| 442 |
+
<button class="p-2 text-gray-700 hover:bg-gray-200 rounded"><i class="fas fa-table"></i></button>
|
| 443 |
+
</div>
|
| 444 |
+
<div class="wysiwyg-editor bg-white">
|
| 445 |
+
<h2>Welcome to ContentHub CMS</h2>
|
| 446 |
+
<p>This is a sample content block that demonstrates the WYSIWYG editor capabilities. You can format text, add images, embed videos, and much more.</p>
|
| 447 |
+
<p>Try creating engaging content with our intuitive editor that makes content creation a breeze.</p>
|
| 448 |
+
<ul>
|
| 449 |
+
<li>Drag and drop media</li>
|
| 450 |
+
<li>Real-time preview</li>
|
| 451 |
+
<li>Version history</li>
|
| 452 |
+
<li>SEO optimization</li>
|
| 453 |
+
</ul>
|
| 454 |
+
</div>
|
| 455 |
+
<div class="mt-4 flex justify-end space-x-3">
|
| 456 |
+
<button class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50">Save Draft</button>
|
| 457 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">Publish</button>
|
| 458 |
+
</div>
|
| 459 |
+
</div>
|
| 460 |
+
</div>
|
| 461 |
+
</div>
|
| 462 |
+
</main>
|
| 463 |
+
</div>
|
| 464 |
+
</div>
|
| 465 |
+
|
| 466 |
+
<script>
|
| 467 |
+
// Toggle sidebar collapse
|
| 468 |
+
const sidebarToggle = document.getElementById('sidebarToggle');
|
| 469 |
+
const sidebar = document.querySelector('.sidebar');
|
| 470 |
+
const contentArea = document.querySelector('.content-area');
|
| 471 |
+
|
| 472 |
+
sidebarToggle.addEventListener('click', () => {
|
| 473 |
+
sidebar.classList.toggle('sidebar-collapsed');
|
| 474 |
+
contentArea.classList.toggle('sidebar-collapsed');
|
| 475 |
+
|
| 476 |
+
// Change icon based on state
|
| 477 |
+
if (sidebar.classList.contains('sidebar-collapsed')) {
|
| 478 |
+
sidebarToggle.innerHTML = '<i class="fas fa-chevron-right"></i>';
|
| 479 |
+
} else {
|
| 480 |
+
sidebarToggle.innerHTML = '<i class="fas fa-chevron-left"></i>';
|
| 481 |
+
}
|
| 482 |
+
});
|
| 483 |
+
|
| 484 |
+
// Mobile menu toggle
|
| 485 |
+
const mobileMenuButton = document.getElementById('mobileMenuButton');
|
| 486 |
+
|
| 487 |
+
mobileMenuButton.addEventListener('click', () => {
|
| 488 |
+
sidebar.classList.toggle('sidebar-open');
|
| 489 |
+
});
|
| 490 |
+
|
| 491 |
+
// Close mobile menu when clicking outside
|
| 492 |
+
document.addEventListener('click', (e) => {
|
| 493 |
+
if (!sidebar.contains(e.target) && !mobileMenuButton.contains(e.target)) {
|
| 494 |
+
sidebar.classList.remove('sidebar-open');
|
| 495 |
+
}
|
| 496 |
+
});
|
| 497 |
+
|
| 498 |
+
// Dropdown menu functionality
|
| 499 |
+
const dropdowns = document.querySelectorAll('.dropdown');
|
| 500 |
+
|
| 501 |
+
dropdowns.forEach(dropdown => {
|
| 502 |
+
const button = dropdown.querySelector('button');
|
| 503 |
+
const menu = dropdown.querySelector('.dropdown-menu');
|
| 504 |
+
|
| 505 |
+
button.addEventListener('click', () => {
|
| 506 |
+
menu.classList.toggle('hidden');
|
| 507 |
+
});
|
| 508 |
+
|
| 509 |
+
// Close when clicking outside
|
| 510 |
+
document.addEventListener('click', (e) => {
|
| 511 |
+
if (!dropdown.contains(e.target)) {
|
| 512 |
+
menu.classList.add('hidden');
|
| 513 |
+
}
|
| 514 |
+
});
|
| 515 |
+
});
|
| 516 |
+
|
| 517 |
+
// Media selection functionality (for demo purposes)
|
| 518 |
+
const mediaItems = document.querySelectorAll('.media-item');
|
| 519 |
+
|
| 520 |
+
mediaItems.forEach(item => {
|
| 521 |
+
item.addEventListener('click', () => {
|
| 522 |
+
item.classList.toggle('selected');
|
| 523 |
+
});
|
| 524 |
+
});
|
| 525 |
+
|
| 526 |
+
// Responsive adjustments
|
| 527 |
+
function handleResize() {
|
| 528 |
+
if (window.innerWidth < 768) {
|
| 529 |
+
sidebar.classList.add('sidebar-collapsed');
|
| 530 |
+
contentArea.classList.add('sidebar-collapsed');
|
| 531 |
+
sidebarToggle.innerHTML = '<i class="fas fa-chevron-right"></i>';
|
| 532 |
+
}
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
window.addEventListener('resize', handleResize);
|
| 536 |
+
handleResize(); // Run on initial load
|
| 537 |
+
</script>
|
| 538 |
+
<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=Crazyka51/testcms" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 539 |
+
</html>
|