datasaffron-dashboard / index.html
Ohm1998's picture
dude i want to create website that has login screen like this https://ohmasadataanalyst.github.io/SC-dashboard/login/ oncethe user login it opens a page of sidebar excatly like the one in this code
fb766c5 verified
<!DOCTYPE html>
<html lang="en" class="h-full">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DataVista Dashboard</title>
<link rel="stylesheet" href="style.css">
<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="components/navbar.js"></script>
<script src="components/sidebar.js"></script>
</head>
<body class="bg-gray-50 h-full flex flex-col">
<custom-navbar></custom-navbar>
<div class="flex flex-1 overflow-hidden">
<custom-sidebar></custom-sidebar>
<main class="flex-1 overflow-y-auto p-6 bg-gray-100">
<div class="max-w-7xl mx-auto">
<div class="flex justify-between items-center mb-8">
<h1 class="text-3xl font-bold text-gray-800">Dashboard Overview</h1>
<div class="flex space-x-4">
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center">
<i data-feather="plus" class="mr-2"></i> New Report
</button>
<button class="px-4 py-2 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition flex items-center">
<i data-feather="filter" class="mr-2"></i> Filter
</button>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Total Users</p>
<h3 class="text-2xl font-bold mt-1">12,345</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="users"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1"></i> 12.5% from last month
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Revenue</p>
<h3 class="text-2xl font-bold mt-1">$48,234</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1"></i> 8.2% from last month
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Conversion</p>
<h3 class="text-2xl font-bold mt-1">3.42%</h3>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="bar-chart-2"></i>
</div>
</div>
<p class="text-red-500 text-sm mt-2 flex items-center">
<i data-feather="trending-down" class="mr-1"></i> 1.1% from last month
</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-500 text-sm">Active Now</p>
<h3 class="text-2xl font-bold mt-1">1,234</h3>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i data-feather="activity"></i>
</div>
</div>
<p class="text-green-500 text-sm mt-2 flex items-center">
<i data-feather="trending-up" class="mr-1"></i> 4.3% from last hour
</p>
</div>
</div>
<!-- Charts Section -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">Revenue Overview</h3>
<select class="bg-gray-100 border-0 rounded-lg px-3 py-1 text-sm">
<option>Last 7 days</option>
<option>Last 30 days</option>
<option selected>Last 90 days</option>
</select>
</div>
<div class="h-64">
<!-- Chart placeholder -->
<div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
<i data-feather="bar-chart" class="w-12 h-12"></i>
</div>
</div>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex justify-between items-center mb-4">
<h3 class="font-semibold text-lg">User Acquisition</h3>
<select class="bg-gray-100 border-0 rounded-lg px-3 py-1 text-sm">
<option>Last 7 days</option>
<option selected>Last 30 days</option>
<option>Last 90 days</option>
</select>
</div>
<div class="h-64">
<!-- Chart placeholder -->
<div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
<i data-feather="pie-chart" class="w-12 h-12"></i>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex justify-between items-center mb-6">
<h3 class="font-semibold text-lg">Recent Activity</h3>
<a href="#" class="text-blue-600 text-sm hover:underline">View all</a>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 bg-blue-100 rounded-full mr-4">
<i data-feather="user-plus" class="text-blue-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">New user registered</p>
<p class="text-gray-500 text-sm">John Doe signed up for a new account</p>
<p class="text-gray-400 text-xs mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 bg-green-100 rounded-full mr-4">
<i data-feather="shopping-cart" class="text-green-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">New order received</p>
<p class="text-gray-500 text-sm">Order #12345 for $129.99</p>
<p class="text-gray-400 text-xs mt-1">4 hours ago</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 bg-purple-100 rounded-full mr-4">
<i data-feather="message-square" class="text-purple-600"></i>
</div>
<div class="flex-1">
<p class="font-medium">New message</p>
<p class="text-gray-500 text-sm">Sarah Johnson sent you a message</p>
<p class="text-gray-400 text-xs mt-1">1 day ago</p>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<script>
feather.replace();
</script>
<script src="script.js"></script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>