Spaces:
Running

leadsync-navigator / index.html
om24485's picture
create a simple lead management app like salesforce where user can manage everything related to a sales process
8dd2768 verified
Raw History Blame Contribute Delete
29.7 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LeadSync Navigator - Sales Management</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.lead-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);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.7s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-indigo-700 text-white w-64 flex-shrink-0 hidden md:block">
<div class="p-4 flex items-center border-b border-indigo-600">
<i data-feather="navigation" class="mr-2"></i>
<h1 class="text-xl font-bold">LeadSync</h1>
</div>
<nav class="p-4">
<div class="mb-6">
<h2 class="text-xs uppercase text-indigo-300 font-semibold mb-2">Dashboard</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded bg-indigo-800">
<i data-feather="home" class="mr-2"></i>
<span>Overview</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="activity" class="mr-2"></i>
<span>Analytics</span>
</a>
</li>
</ul>
</div>
<div class="mb-6">
<h2 class="text-xs uppercase text-indigo-300 font-semibold mb-2">Sales</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="users" class="mr-2"></i>
<span>Leads</span>
<span class="ml-auto bg-indigo-600 text-xs px-2 py-1 rounded-full">24</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="briefcase" class="mr-2"></i>
<span>Opportunities</span>
<span class="ml-auto bg-indigo-600 text-xs px-2 py-1 rounded-full">8</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="dollar-sign" class="mr-2"></i>
<span>Deals</span>
<span class="ml-auto bg-indigo-600 text-xs px-2 py-1 rounded-full">5</span>
</a>
</li>
</ul>
</div>
<div class="mb-6">
<h2 class="text-xs uppercase text-indigo-300 font-semibold mb-2">Tools</h2>
<ul>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="calendar" class="mr-2"></i>
<span>Calendar</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="mail" class="mr-2"></i>
<span>Campaigns</span>
</a>
</li>
<li class="mb-1">
<a href="#" class="flex items-center p-2 rounded hover:bg-indigo-800">
<i data-feather="settings" class="mr-2"></i>
<span>Settings</span>
</a>
</li>
</ul>
</div>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Top Navigation -->
<header class="bg-white shadow-sm">
<div class="flex items-center justify-between p-4">
<div class="flex items-center">
<button class="md:hidden mr-4">
<i data-feather="menu"></i>
</button>
<h1 class="text-xl font-semibold">Lead Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500">
<i data-feather="search" class="absolute left-3 top-2.5 text-gray-400"></i>
</div>
<div class="relative">
<button class="p-2 rounded-full bg-gray-100">
<i data-feather="bell"></i>
<span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span>
</button>
</div>
<div class="flex items-center">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-8 h-8 rounded-full">
<span class="ml-2 hidden md:inline">John Doe</span>
</div>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Total Leads</p>
<h3 class="text-2xl font-bold mt-1">124</h3>
<p class="text-green-500 text-sm flex items-center mt-2">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>12% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
<i data-feather="users"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Opportunities</p>
<h3 class="text-2xl font-bold mt-1">24</h3>
<p class="text-green-500 text-sm flex items-center mt-2">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>8% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i data-feather="briefcase"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Closed Won</p>
<h3 class="text-2xl font-bold mt-1">8</h3>
<p class="text-green-500 text-sm flex items-center mt-2">
<i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
<span>23% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i data-feather="check-circle"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Avg. Deal Size</p>
<h3 class="text-2xl font-bold mt-1">$12,450</h3>
<p class="text-red-500 text-sm flex items-center mt-2">
<i data-feather="trending-down" class="w-4 h-4 mr-1"></i>
<span>3% from last month</span>
</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i data-feather="dollar-sign"></i>
</div>
</div>
</div>
</div>
<!-- Lead Pipeline -->
<div class="bg-white rounded-lg shadow mb-6">
<div class="flex items-center justify-between p-6 border-b">
<h2 class="text-lg font-semibold">Lead Pipeline</h2>
<button class="text-indigo-600 hover:text-indigo-800 flex items-center">
<i data-feather="plus" class="w-4 h-4 mr-1"></i>
<span>Add Lead</span>
</button>
</div>
<div class="p-6">
<div class="flex overflow-x-auto pb-4">
<div class="flex space-x-4">
<div class="min-w-[280px]">
<div class="bg-gray-100 p-3 rounded-t-lg flex justify-between items-center">
<h3 class="font-medium">New Leads</h3>
<span class="bg-gray-200 text-xs px-2 py-1 rounded-full">12</span>
</div>
<div class="space-y-3 mt-3">
<div class="lead-card bg-white p-4 rounded-lg shadow border-l-4 border-blue-500 transition duration-300 ease-in-out">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Acme Corp</h4>
<p class="text-sm text-gray-500">Michael Scott</p>
</div>
<div class="flex space-x-1">
<button class="text-gray-400 hover:text-blue-500">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-red-500">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="text-xs text-gray-500">Created: 2 days ago</div>
<div class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full">New</div>
</div>
</div>
<div class="lead-card bg-white p-4 rounded-lg shadow border-l-4 border-blue-500 transition duration-300 ease-in-out">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Dunder Mifflin</h4>
<p class="text-sm text-gray-500">Pam Beesly</p>
</div>
<div class="flex space-x-1">
<button class="text-gray-400 hover:text-blue-500">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-red-500">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="text-xs text-gray-500">Created: 1 day ago</div>
<div class="text-xs px-2 py-1 bg-blue-100 text-blue-800 rounded-full">New</div>
</div>
</div>
</div>
</div>
<div class="min-w-[280px]">
<div class="bg-gray-100 p-3 rounded-t-lg flex justify-between items-center">
<h3 class="font-medium">Contacted</h3>
<span class="bg-gray-200 text-xs px-2 py-1 rounded-full">8</span>
</div>
<div class="space-y-3 mt-3">
<div class="lead-card bg-white p-4 rounded-lg shadow border-l-4 border-purple-500 transition duration-300 ease-in-out">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Sabre Inc</h4>
<p class="text-sm text-gray-500">Jan Levinson</p>
</div>
<div class="flex space-x-1">
<button class="text-gray-400 hover:text-blue-500">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-red-500">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="text-xs text-gray-500">Last contact: Today</div>
<div class="text-xs px-2 py-1 bg-purple-100 text-purple-800 rounded-full">Scheduled</div>
</div>
</div>
</div>
</div>
<div class="min-w-[280px]">
<div class="bg-gray-100 p-3 rounded-t-lg flex justify-between items-center">
<h3 class="font-medium">Negotiation</h3>
<span class="bg-gray-200 text-xs px-2 py-1 rounded-full">3</span>
</div>
<div class="space-y-3 mt-3">
<div class="lead-card bg-white p-4 rounded-lg shadow border-l-4 border-yellow-500 transition duration-300 ease-in-out">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Wernham Hogg</h4>
<p class="text-sm text-gray-500">David Brent</p>
</div>
<div class="flex space-x-1">
<button class="text-gray-400 hover:text-blue-500">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-red-500">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="text-xs text-gray-500">Value: $24,500</div>
<div class="text-xs px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full">Critical</div>
</div>
</div>
</div>
</div>
<div class="min-w-[280px]">
<div class="bg-gray-100 p-3 rounded-t-lg flex justify-between items-center">
<h3 class="font-medium">Closed Won</h3>
<span class="bg-gray-200 text-xs px-2 py-1 rounded-full">5</span>
</div>
<div class="space-y-3 mt-3">
<div class="lead-card bg-white p-4 rounded-lg shadow border-l-4 border-green-500 transition duration-300 ease-in-out">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Michael Scott Paper Co.</h4>
<p class="text-sm text-gray-500">Michael Scott</p>
</div>
<div class="flex space-x-1">
<button class="text-gray-400 hover:text-blue-500">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
<button class="text-gray-400 hover:text-red-500">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="mt-3 flex justify-between items-center">
<div class="text-xs text-gray-500">Closed: Yesterday</div>
<div class="text-xs px-2 py-1 bg-green-100 text-green-800 rounded-full">$18,250</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Activity & Performance Chart -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<div class="lg:col-span-2 bg-white rounded-lg shadow">
<div class="p-6 border-b">
<h2 class="text-lg font-semibold">Sales Performance</h2>
</div>
<div class="p-6">
<div class="h-64 bg-gray-50 rounded-lg flex items-center justify-center">
<div class="text-center">
<div class="w-24 h-24 mx-auto mb-4 relative">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#4f46e5"
stroke-width="3"
stroke-dasharray="75, 100"
class="progress-ring__circle"
/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-xl font-bold">75%</span>
</div>
</div>
<p class="text-gray-500">Quarterly Target</p>
<h3 class="text-xl font-semibold mt-1">$124,500 / $165,000</h3>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow">
<div class="p-6 border-b">
<h2 class="text-lg font-semibold">Recent Activity</h2>
</div>
<div class="p-6">
<div class="space-y-4">
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="p-2 bg-blue-100 text-blue-600 rounded-full">
<i data-feather="phone" class="w-4 h-4"></i>
</div>
</div>
<div>
<p class="text-sm">
<span class="font-medium">You</span> had a call with
<span class="font-medium">Acme Corp</span>
</p>
<p class="text-xs text-gray-500 mt-1">30 minutes ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="p-2 bg-green-100 text-green-600 rounded-full">
<i data-feather="check-circle" class="w-4 h-4"></i>
</div>
</div>
<div>
<p class="text-sm">
<span class="font-medium">Dunder Mifflin</span> deal closed for
<span class="font-medium">$18,250</span>
</p>
<p class="text-xs text-gray-500 mt-1">2 hours ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="p-2 bg-purple-100 text-purple-600 rounded-full">
<i data-feather="mail" class="w-4 h-4"></i>
</div>
</div>
<div>
<p class="text-sm">
<span class="font-medium">You</span> sent a proposal to
<span class="font-medium">Wernham Hogg</span>
</p>
<p class="text-xs text-gray-500 mt-1">5 hours ago</p>
</div>
</div>
<div class="flex">
<div class="flex-shrink-0 mr-3">
<div class="p-2 bg-yellow-100 text-yellow-600 rounded-full">
<i data-feather="calendar" class="w-4 h-4"></i>
</div>
</div>
<div>
<p class="text-sm">
Meeting scheduled with
<span class="font-medium">Sabre Inc</span> for tomorrow
</p>
<p class="text-xs text-gray-500 mt-1">Yesterday</p>
</div>
</div>
</div>
<button class="mt-4 text-indigo-600 hover:text-indigo-800 flex items-center text-sm">
<span>View all activity</span>
<i data-feather="chevron-right" class="w-4 h-4 ml-1"></i>
</button>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
feather.replace();
// Simple animation for the progress ring
document.addEventListener('DOMContentLoaded', function() {
const circle = document.querySelector('.progress-ring__circle');
const radius = circle.r.baseVal.value;
const circumference = radius * 2 * Math.PI;
circle.style.strokeDasharray = `${circumference} ${circumference}`;
circle.style.strokeDashoffset = circumference;
const offset = circumference - (75 / 100) * circumference;
circle.style.strokeDashoffset = offset;
});
</script>
</body>
</html>