Spaces:
Running
Running
File size: 14,902 Bytes
c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d c1b00b7 dcaa83d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - CharacterVerse Nexus</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>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
}
.glass-card {
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background-color: rgba(255, 255, 255, 0.75);
border-radius: 12px;
border: 1px solid rgba(209, 213, 219, 0.3);
}
.gradient-text {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.project-card {
transition: all 0.3s ease;
border: 1px solid rgba(209, 213, 219, 0.3);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.stats-card {
transition: all 0.3s ease;
}
.stats-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Mobile Menu Button -->
<div class="md:hidden fixed top-4 left-4 z-50">
<button id="menuToggle" class="bg-white p-2 rounded-lg shadow-lg">
<i data-feather="menu" class="h-6 w-6 text-gray-700"></i>
</button>
</div>
<!-- Sidebar -->
<div id="sidebar" class="sidebar fixed inset-y-0 left-0 z-40 w-64 bg-white shadow-xl">
<div class="flex flex-col h-full">
<!-- Logo -->
<div class="flex items-center justify-center h-16 border-b border-gray-200">
<i data-feather="users" class="h-8 w-8 text-purple-600"></i>
<span class="ml-2 text-xl font-bold gradient-text">CharacterVerse Nexus</span>
</div>
<!-- Navigation -->
<nav class="flex-1 px-4 py-6 space-y-2">
<a href="dashboard.html" class="flex items-center px-4 py-3 text-purple-600 bg-purple-50 rounded-lg">
<i data-feather="home" class="h-5 w-5 mr-3"></i>
Dashboard
</a>
<a href="characters.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="user" class="h-5 w-5 mr-3"></i>
Characters
</a>
<a href="relationships.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="git-branch" class="h-5 w-5 mr-3"></i>
Relationships
</a>
<a href="timeline.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="calendar" class="h-5 w-5 mr-3"></i>
Timeline
</a>
<a href="ai-studio.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="zap" class="h-5 w-5 mr-3"></i>
AI Studio
</a>
<a href="search.html" class="flex items-center px-4 py-3 text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="search" class="h-5 w-5 mr-3"></i>
Search
</a>
</nav>
<!-- User Section -->
<div class="border-t border-gray-200 p-4">
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" alt="User" class="h-8 w-8 rounded-full">
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">Sarah Writer</p>
<p class="text-xs text-gray-500">sarah@example.com</p>
</div>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="md:ml-64">
<!-- Header -->
<header class="bg-white shadow-sm border-b border-gray-200">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div>
<h1 class="text-2xl font-bold text-gray-900">Dashboard</h1>
<p class="text-gray-600">Welcome back! Here's an overview of your projects.</p>
</div>
<div class="flex items-center space-x-4">
<button id="newProjectBtn" class="bg-purple-600 text-white px-4 py-2 rounded-lg hover:bg-purple-700 transition-colors">
<i data-feather="plus" class="h-4 w-4 inline mr-2"></i>
New Project
</button>
</div>
</div>
</header>
<!-- Main Content Area -->
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Stats Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="stats-card bg-white rounded-xl p-6 shadow-sm">
<div class="flex items-center">
<div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center">
<i data-feather="folder" class="h-6 w-6 text-purple-600"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-600">Active Projects</p>
<p class="text-2xl font-bold text-gray-900">3</p>
</div>
</div>
<div class="stats-card bg-white rounded-xl p-6 shadow-sm">
<div class="flex items-center">
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center">
<i data-feather="users" class="h-6 w-6 text-blue-600"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-600">Total Characters</p>
<p class="text-2xl font-bold text-gray-900">27</p>
</div>
</div>
<div class="stats-card bg-white rounded-xl p-6 shadow-sm">
<div class="flex items-center">
<div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center">
<i data-feather="git-branch" class="h-6 w-6 text-green-600"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-600">Relationships</p>
<p class="text-2xl font-bold text-gray-900">42</p>
</div>
</div>
<div class="stats-card bg-white rounded-xl p-6 shadow-sm">
<div class="flex items-center">
<div class="w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center">
<i data-feather="zap" class="h-6 w-6 text-yellow-600"></i>
</div>
<div class="ml-4">
<p class="text-sm text-gray-600">AI Generations</p>
<p class="text-2xl font-bold text-gray-900">156</p>
</div>
</div>
</div>
<!-- Recent Projects -->
<div class="glass-card p-6 mb-8">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-semibold text-gray-900">Recent Projects</h2>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Project 1 -->
<div class="project-card bg-white rounded-xl p-6 shadow-sm cursor-pointer" onclick="window.location.href='characters.html'">
<div class="flex items-center justify-between mb-3">
<span class="px-2 py-1 bg-purple-100 text-purple-800 text-xs rounded-full">Active</span>
<span class="text-xs text-gray-500">Updated 2 hours ago</span>
</div>
<h3 class="font-medium text-gray-900 mb-2">The Shadow Prophecy</h3>
<p class="text-sm text-gray-600 mb-3">Epic fantasy novel following Elara's journey to uncover ancient secrets.</p>
<div class="flex items-center justify-between text-sm">
<span class="text-gray-600">12 characters</span>
<button class="text-purple-600 hover:text-purple-700">View Details</button>
</div>
</div>
<!-- Project 2 -->
<div class="project-card bg-white rounded-xl p-6 shadow-sm cursor-pointer" onclick="window.location.href='characters.html'">
<div class="flex items-center justify-between mb-3">
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Draft</span>
<span class="text-xs text-gray-500">Updated yesterday</span>
</div>
<h3 class="font-medium text-gray-900 mb-2">Neon Requiem</span>
<p class="text-sm text-gray-600 mb-3">Cyberpunk detective story set in 2087 Neo-Tokyo.</h3>
<div class="flex items-center justify-between text-sm">
<span class="text-gray-600">8 characters</span>
<button class="text-purple-600 hover:text-purple-700">View Details</button>
</div>
</div>
<!-- Project 3 -->
<div class="project-card bg-white rounded-xl p-6 shadow-sm cursor-pointer" onclick="window.location.href='characters.html'">
<div class="flex items-center justify-between mb-3">
<span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">Archived</span>
<span class="text-xs text-gray-500">Updated 1 week ago</span>
</div>
<h3 class="font-medium text-gray-900 mb-2">Whispers in the Mist</span>
<p class="text-sm text-gray-600 mb-3">Gothic horror novella about a haunted English manor.</h3>
<div class="flex items-center justify-between text-sm">
<span class="text-gray-600">7 characters</span>
<button class="text-purple-600 hover:text-purple-700">View Details</button>
</div>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="glass-card p-6">
<h2 class="text-xl font-semibold text-gray-900 mb-6">Quick Actions</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
<a href="characters.html" class="bg-white border border-gray-200 rounded-lg p-4 text-center hover:bg-gray-50 transition-colors">
<i data-feather="user-plus" class="h-6 w-6 text-purple-600 mx-auto mb-2"></i>
<span class="text-sm font-medium text-gray-900">Add Character</span>
</a>
<a href="relationships.html" class="bg-white border border-gray-200 rounded-lg p-4 text-center hover:bg-gray-50 transition-colors">
<i data-feather="git-branch" class="h-6 w-6 text-purple-600 mx-auto mb-2"></i>
<span class="text-sm font-medium text-gray-900">Map Relationships</span>
</a>
<a href="timeline.html" class="bg-white border border-gray-200 rounded-lg p-4 text-center hover:bg-gray-50 transition-colors">
<i data-feather="calendar" class="h-6 w-6 text-purple-600 mx-auto mb-2"></i>
<span class="text-sm font-medium text-gray-900">Add Timeline Beat</span>
</a>
<a href="ai-studio.html" class="bg-white border border-gray-200 rounded-lg p-4 text-center hover:bg-gray-50 transition-colors">
<i data-feather="zap" class="h-6 w-6 text-purple-600 mx-auto mb-2"></i>
<span class="text-sm font-medium text-gray-900">AI Generation</span>
</a>
</div>
</div>
</main>
</div>
<script>
// Mobile menu toggle
document.getElementById('menuToggle').addEventListener('click', function() {
document.getElementById('sidebar').classList.toggle('open');
});
// New Project button
document.getElementById('newProjectBtn').addEventListener('click', function() {
const projectName = prompt('Enter project name:');
if (projectName && projectName.trim()) {
alert(`Project "${projectName}" created successfully!`);
}
});
// Initialize Feather Icons
feather.replace();
</script>
</body>
</html> |