Spaces:
Running

glassvault / dashboard.html
DeepMDLQC's picture
não da nem pra ver o botão de actions, mude todo olayout
697643b verified
Raw History Blame Contribute Delete
20 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GlassVault - Dashboard</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');
:root {
--primary: 147 51 234;
--secondary: 59 130 246;
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
min-height: 100vh;
backdrop-filter: blur(10px);
}
.glass-card {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}
.primary-glass-btn {
background: rgba(var(--primary), 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.18);
}
.primary-glass-btn:hover {
background: rgba(var(--primary), 0.95);
box-shadow: 0 4px 20px rgba(var(--primary), 0.3);
}
.table-container {
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.18);
}
.table-header {
background: rgba(255, 255, 255, 0.3);
}
.table-row {
background: rgba(255, 255, 255, 0.15);
transition: all 0.2s ease;
}
.table-row:hover {
background: rgba(255, 255, 255, 0.25);
}
.action-btn {
background: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.15);
}
.action-btn:hover {
background: rgba(255, 255, 255, 0.3);
}
</style>
</head>
<body class="p-4 md:p-8">
<div class="max-w-7xl mx-auto">
<!-- Header -->
<header class="glass-card rounded-2xl p-6 mb-8">
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
<div class="flex items-center mb-4 md:mb-0">
<div class="w-12 h-12 rounded-lg glass-card flex items-center justify-center mr-4">
<i data-feather="folder" class="text-white w-6 h-6"></i>
</div>
<div>
<h1 class="text-2xl font-bold text-gray-800">GlassVault</h1>
<p class="text-gray-600">Welcome back, John Doe</p>
</div>
</div>
<div class="flex items-center space-x-4">
<button class="action-btn rounded-lg p-2">
<i data-feather="upload" class="w-5 h-5 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="settings" class="w-5 h-5 text-gray-700"></i>
</button>
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-medium mr-3">
JD
</div>
<div>
<p class="text-sm font-medium text-gray-800">John Doe</p>
<p class="text-xs text-gray-600">Administrator</p>
</div>
</div>
</div>
</div>
</header>
<!-- Stats -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="glass-card rounded-xl p-6">
<div class="flex items-center">
<div class="w-12 h-12 rounded-lg bg-blue-100 flex items-center justify-center mr-4">
<i data-feather="file" class="text-blue-600 w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-600">Total Files</p>
<p class="text-2xl font-bold text-gray-800">142</p>
</div>
</div>
</div>
<div class="glass-card rounded-xl p-6">
<div class="flex items-center">
<div class="w-12 h-12 rounded-lg bg-green-100 flex items-center justify-center mr-4">
<i data-feather="hard-drive" class="text-green-600 w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-600">Storage Used</p>
<p class="text-2xl font-bold text-gray-800">24.5 GB</p>
</div>
</div>
</div>
<div class="glass-card rounded-xl p-6">
<div class="flex items-center">
<div class="w-12 h-12 rounded-lg bg-purple-100 flex items-center justify-center mr-4">
<i data-feather="users" class="text-purple-600 w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-600">Users</p>
<p class="text-2xl font-bold text-gray-800">12</p>
</div>
</div>
</div>
<div class="glass-card rounded-xl p-6">
<div class="flex items-center">
<div class="w-12 h-12 rounded-lg bg-yellow-100 flex items-center justify-center mr-4">
<i data-feather="activity" class="text-yellow-600 w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-600">Recent Activity</p>
<p class="text-2xl font-bold text-gray-800">24</p>
</div>
</div>
</div>
</div>
<!-- File Table -->
<div class="glass-card rounded-2xl overflow-hidden">
<div class="table-container rounded-2xl overflow-hidden">
<div class="table-header p-4">
<h2 class="text-xl font-bold text-gray-800">File Repository</h2>
<p class="text-gray-600">Manage your files and documents</p>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="table-header">
<th class="text-left p-4 font-medium text-gray-700">File Name</th>
<th class="text-left p-4 font-medium text-gray-700">Type</th>
<th class="text-left p-4 font-medium text-gray-700">Owner</th>
<th class="text-left p-4 font-medium text-gray-700">Date</th>
<th class="text-left p-4 font-medium text-gray-700">Size</th>
<th class="text-left p-4 font-medium text-gray-700">Actions</th>
</tr>
</thead>
<tbody>
<tr class="table-row border-b border-gray-200/20">
<td class="p-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-lg bg-blue-100 flex items-center justify-center mr-3">
<i data-feather="file-text" class="text-blue-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Annual Report 2023.pdf</p>
<p class="text-sm text-gray-600">Document</p>
</div>
</div>
</td>
<td class="p-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800">PDF</span>
</td>
<td class="p-4 text-gray-700">John Doe</td>
<td class="p-4 text-gray-700">Oct 12, 2023</td>
<td class="p-4 text-gray-700">2.4 MB</td>
<td class="p-4">
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="download" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="eye" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="trash-2" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</td>
</tr>
<tr class="table-row border-b border-gray-200/20">
<td class="p-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-lg bg-green-100 flex items-center justify-center mr-3">
<i data-feather="image" class="text-green-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Product Mockup.png</p>
<p class="text-sm text-gray-600">Image</p>
</div>
</div>
</td>
<td class="p-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-green-100 text-green-800">PNG</span>
</td>
<td class="p-4 text-gray-700">Sarah Johnson</td>
<td class="p-4 text-gray-700">Oct 10, 2023</td>
<td class="p-4 text-gray-700">5.7 MB</td>
<td class="p-4">
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="download" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="eye" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="trash-2" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</td>
</tr>
<tr class="table-row border-b border-gray-200/20">
<td class="p-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-lg bg-red-100 flex items-center justify-center mr-3">
<i data-feather="film" class="text-red-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Marketing Video.mp4</p>
<p class="text-sm text-gray-600">Video</p>
</div>
</div>
</td>
<td class="p-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-red-100 text-red-800">MP4</span>
</td>
<td class="p-4 text-gray-700">Michael Chen</td>
<td class="p-4 text-gray-700">Oct 8, 2023</td>
<td class="p-4 text-gray-700">124.8 MB</td>
<td class="p-4">
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="download" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="eye" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="trash-2" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</td>
</tr>
<tr class="table-row border-b border-gray-200/20">
<td class="p-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-lg bg-yellow-100 flex items-center justify-center mr-3">
<i data-feather="file" class="text-yellow-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Financial Data.xlsx</p>
<p class="text-sm text-gray-600">Spreadsheet</p>
</div>
</div>
</td>
<td class="p-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">XLSX</span>
</td>
<td class="p-4 text-gray-700">John Doe</td>
<td class="p-4 text-gray-700">Oct 5, 2023</td>
<td class="p-4 text-gray-700">1.2 MB</td>
<td class="p-4">
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="download" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="eye" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="trash-2" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</td>
</tr>
<tr class="table-row">
<td class="p-4">
<div class="flex items-center">
<div class="w-10 h-10 rounded-lg bg-purple-100 flex items-center justify-center mr-3">
<i data-feather="archive" class="text-purple-600 w-5 h-5"></i>
</div>
<div>
<p class="font-medium text-gray-800">Project Archive.zip</p>
<p class="text-sm text-gray-600">Archive</p>
</div>
</div>
</td>
<td class="p-4">
<span class="px-3 py-1 rounded-full text-xs font-medium bg-purple-100 text-purple-800">ZIP</span>
</td>
<td class="p-4 text-gray-700">Emma Wilson</td>
<td class="p-4 text-gray-700">Oct 1, 2023</td>
<td class="p-4 text-gray-700">45.3 MB</td>
<td class="p-4">
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="download" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="eye" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="trash-2" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p-4 border-t border-gray-200/20 flex items-center justify-between">
<p class="text-sm text-gray-600">Showing 1 to 5 of 142 files</p>
<div class="flex space-x-2">
<button class="action-btn rounded-lg p-2">
<i data-feather="chevron-left" class="w-4 h-4 text-gray-700"></i>
</button>
<button class="action-btn rounded-lg p-2">
<i data-feather="chevron-right" class="w-4 h-4 text-gray-700"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html>