Mustavi's picture
bro this is so incomplete and please follow our design system attached
4c5c9a2 verified
Raw History Blame Contribute Delete
10.5 kB
<!DOCTYPE html>
<html lang="en" class="h-full bg-gray-50">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlowForge Admin Portal</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>
<!-- Custom tailwind config -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
secondary: {
50: '#f5f3ff',
100: '#ede9fe',
200: '#ddd6fe',
300: '#c4b5fd',
400: '#a78bfa',
500: '#8b5cf6',
600: '#7c3aed',
700: '#6d28d9',
800: '#5b21b6',
900: '#4c1d95',
}
}
}
}
}
</script>
<!-- Components -->
<script src="components/navbar.js"></script>
<script src="components/sidebar.js"></script>
<script src="components/flow-card.js"></script>
<script src="components/permission-badge.js"></script>
</head>
<body class="h-full">
<div class="flex h-full">
<!-- Sidebar -->
<custom-sidebar current-page="dashboard"></custom-sidebar>
<!-- Main content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Navbar -->
<custom-navbar></custom-navbar>
<!-- Main content area -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<div class="max-w-7xl mx-auto">
<!-- Header -->
<div class="flex items-center justify-between mb-8">
<div>
<h1 class="text-3xl font-bold text-gray-900">Dashboard</h1>
<p class="mt-1 text-gray-500">Welcome back, Super Admin</p>
</div>
<div class="flex space-x-3">
<button class="flex items-center px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors">
<i data-feather="plus" class="mr-2 w-4 h-4"></i>
Create Flow
</button>
<button class="flex items-center px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors">
<i data-feather="upload" class="mr-2 w-4 h-4"></i>
Import
</button>
</div>
</div>
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-3 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">
<h3 class="text-gray-500 font-medium">Total Flows</h3>
<i data-feather="git-branch" class="text-primary-500"></i>
</div>
<p class="mt-2 text-3xl font-bold text-gray-900">142</p>
<p class="mt-1 text-sm text-gray-500">+12% 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">
<h3 class="text-gray-500 font-medium">Active Users</h3>
<i data-feather="users" class="text-secondary-500"></i>
</div>
<p class="mt-2 text-3xl font-bold text-gray-900">24</p>
<p class="mt-1 text-sm text-gray-500">+3 new this week</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-200">
<div class="flex items-center justify-between">
<h3 class="text-gray-500 font-medium">API Requests</h3>
<i data-feather="activity" class="text-green-500"></i>
</div>
<p class="mt-2 text-3xl font-bold text-gray-900">1.2M</p>
<p class="mt-1 text-sm text-gray-500">+3.4% from last week</p>
</div>
</div>
<!-- Quick Access -->
<div class="mb-8">
<h2 class="text-xl font-semibold text-gray-900 mb-4">Quick Access</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<a href="#" class="bg-white p-4 rounded-xl shadow-sm border border-gray-200 hover:border-primary-300 transition-colors flex flex-col items-center">
<div class="w-10 h-10 rounded-full bg-primary-100 flex items-center justify-center mb-2">
<i data-feather="users" class="text-primary-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Users</span>
</a>
<a href="#" class="bg-white p-4 rounded-xl shadow-sm border border-gray-200 hover:border-primary-300 transition-colors flex flex-col items-center">
<div class="w-10 h-10 rounded-full bg-secondary-100 flex items-center justify-center mb-2">
<i data-feather="layers" class="text-secondary-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Groups</span>
</a>
<a href="#" class="bg-white p-4 rounded-xl shadow-sm border border-gray-200 hover:border-primary-300 transition-colors flex flex-col items-center">
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mb-2">
<i data-feather="key" class="text-yellow-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Roles</span>
</a>
<a href="#" class="bg-white p-4 rounded-xl shadow-sm border border-gray-200 hover:border-primary-300 transition-colors flex flex-col items-center">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mb-2">
<i data-feather="settings" class="text-green-600"></i>
</div>
<span class="text-sm font-medium text-gray-700">Settings</span>
</a>
</div>
</div>
<!-- Recent Flows -->
<div>
<div class="flex items-center justify-between mb-4">
<h2 class="text-xl font-semibold text-gray-900">Recent Flows</h2>
<div class="flex space-x-2">
<button class="px-3 py-1.5 text-sm font-medium rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors">
My Flows
</button>
<button class="px-3 py-1.5 text-sm font-medium rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors">
Shared With Me
</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<custom-flow-card
title="Customer Onboarding"
description="Automated customer onboarding workflow"
is-owner="true"
last-updated="2 hours ago"
access="private">
</custom-flow-card>
<custom-flow-card
title="Payment Processing"
description="Handles all payment transactions"
is-owner="false"
last-updated="1 day ago"
access="team">
</custom-flow-card>
<custom-flow-card
title="Data Sync"
description="Syncs data between CRM and database"
is-owner="false"
last-updated="3 days ago"
access="public">
</custom-flow-card>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
feather.replace();
</script>
<script src="components/alert.js"></script>
<script src="script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
feather.replace();
</script>
</body>
</html>