cosmic-bio-explorer / dashboard.html
iamcrash's picture
buttons does not work . u just write index ??
2807afa verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard | Cosmic Bio Explorer</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 src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
cosmic: {
100: '#e0e7ff',
200: '#c7d2fe',
300: '#a5b4fc',
400: '#818cf8',
500: '#6366f1',
600: '#4f46e5',
700: '#4338ca',
800: '#3730a3',
900: '#312e81',
},
nebula: {
100: '#f0f9ff',
200: '#e0f2fe',
300: '#bae6fd',
400: '#7dd3fc',
500: '#38bdf8',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
}
}
}
}
}
</script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover: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);
}
</style>
</head>
<body class="gradient-bg text-gray-100 min-h-screen">
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
<div class="relative z-10">
<!-- Navigation -->
<nav class="bg-black bg-opacity-50 backdrop-blur-lg border-b border-gray-800">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0">
<div class="flex items-center">
<i data-feather="activity" class="text-cosmic-400 h-8 w-8"></i>
<span class="ml-2 text-xl font-bold bg-gradient-to-r from-cosmic-400 to-nebula-500 bg-clip-text text-transparent">Cosmic Bio Explorer</span>
</div>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="dashboard.html" class="bg-cosmic-600 text-white px-3 py-2 rounded-md text-sm font-medium">Dashboard</a>
<a href="publications.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Publications</a>
<a href="knowledge-graph.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Knowledge Graph</a>
<a href="trends.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Trends</a>
</div>
</div>
</div>
<div class="hidden md:block">
<div class="ml-4 flex items-center md:ml-6">
<a href="search.html" class="bg-gray-800 p-1 rounded-full text-gray-400 hover:text-white focus:outline-none">
<i data-feather="search" class="h-5 w-5"></i>
</a>
<a href="notifications.html" class="ml-3 bg-gray-800 p-1 rounded-full text-gray-400 hover:text-white focus:outline-none">
<i data-feather="bell" class="h-5 w-5"></i>
</a>
<div class="ml-3 relative">
<div>
<a href="profile.html" class="max-w-xs bg-gray-800 rounded-full flex items-center text-sm focus:outline-none">
<span class="sr-only">Open user menu</span>
<img class="h-8 w-8 rounded-full" src="http://static.photos/space/200x200/42" alt="">
</a>
</div>
</div>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button type="button" class="bg-gray-800 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none" aria-controls="mobile-menu" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<i data-feather="menu" class="h-6 w-6"></i>
</button>
</div>
</div>
</div>
</nav>
<main class="py-10 px-4 sm:px-6 lg:px-8">
<div class="max-w-7xl mx-auto">
<h1 class="text-3xl font-bold text-white mb-8">Dashboard Overview</h1>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="bg-gray-800 bg-opacity-50 backdrop-blur-md rounded-xl p-6 card-hover border border-gray-700">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Total Studies</p>
<h2 class="text-3xl font-bold text-white mt-2">608</h2>
<p class="text-green-400 text-sm mt-1 flex items-center">
<i data-feather="trending-up" class="h-4 w-4 mr-1"></i> 12% from last month
</p>
</div>
<div class="bg-cosmic-600 p-3 rounded-lg">
<i data-feather="book" class="h-6 w-6 text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 bg-opacity-50 backdrop-blur-md rounded-xl p-6 card-hover border border-gray-700">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Organisms</p>
<h2 class="text-3xl font-bold text-white mt-2">7</h2>
<p class="text-gray-400 text-sm mt-1">Human, Mouse, Plant, Microbial, etc.</p>
</div>
<div class="bg-nebula-600 p-3 rounded-lg">
<i data-feather="dna" class="h-6 w-6 text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 bg-opacity-50 backdrop-blur-md rounded-xl p-6 card-hover border border-gray-700">
<div class="flex justify-between items-start">
<div>
<p class="text-gray-400">Research Areas</p>
<h2 class="text-3xl font-bold text-white mt-2">15+</h2>
<p class="text-gray-400 text-sm mt-1">Muscle, Bone, Vision, Behavior, etc.</p>
</div>
<div class="bg-cosmic-500 p-3 rounded-lg">
<i data-feather="clipboard" class="h-6 w-6 text-white"></i>
</div>
</div>
</div>
</div>
<div class="bg-gray-800 bg-opacity-50 backdrop-blur-md rounded-xl p-6 card-hover border border-gray-700 mb-8">
<h2 class="text-xl font-semibold text-white mb-4">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-center justify-between p-3 bg-gray-700 rounded-lg">
<div class="flex items-center">
<div class="bg-cosmic-500 p-2 rounded-full mr-3">
<i data-feather="file-plus" class="h-4 w-4 text-white"></i>
</div>
<div>
<p class="text-sm font-medium text-white">New study added</p>
<p class="text-xs text-gray-400">Effects of radiation on plant growth</p>
</div>
</div>
<p class="text-xs text-gray-400">2 hours ago</p>
</div>
<div class="flex items-center justify-between p-3 bg-gray-700 rounded-lg">
<div class="flex items-center">
<div class="bg-nebula-500 p-2 rounded-full mr-3">
<i data-feather="download" class="h-4 w-4 text-white"></i>
</div>
<div>
<p class="text-sm font-medium text-white">Dataset downloaded</p>
<p class="text-xs text-gray-400">Muscle atrophy in microgravity</p>
</div>
</div>
<p class="text-xs text-gray-400">1 day ago</p>
</div>
</div>
</div>
</div>
</main>
</div>
<script>
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x6366f1,
backgroundColor: 0x0f172a,
points: 12.00,
maxDistance: 20.00,
spacing: 16.00
});
// Initialize feather icons
feather.replace();
</script>
</body>
</html>