Spaces:
Running
Running
create a website's administrator console (website for sudoku players) which give visibility of all users in order to administrate their status, datas, and also to make mailing campaigns, and to look at a dashboard with kpi like number of players per hour, their country with a map
Browse files- README.md +8 -5
- index.html +372 -18
- mailing.html +298 -0
- users.html +324 -0
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SudokuSage Admin Console 🧩
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
index.html
CHANGED
|
@@ -1,19 +1,373 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>SudokuSage Admin Console</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: {
|
| 15 |
+
500: '#d946ef',
|
| 16 |
+
},
|
| 17 |
+
secondary: {
|
| 18 |
+
500: '#10b981',
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
</script>
|
| 25 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 26 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 27 |
+
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
| 28 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
|
| 29 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.2/d3.min.js"></script>
|
| 30 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/3.0.2/topojson.min.js"></script>
|
| 31 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/datamaps/0.5.9/datamaps.world.min.js"></script>
|
| 32 |
+
</head>
|
| 33 |
+
<body class="bg-gray-100 font-sans">
|
| 34 |
+
<!-- Sidebar -->
|
| 35 |
+
<div class="flex h-screen">
|
| 36 |
+
<div class="w-64 bg-white shadow-lg">
|
| 37 |
+
<div class="p-4 border-b border-gray-200">
|
| 38 |
+
<h1 class="text-xl font-bold text-primary-500 flex items-center">
|
| 39 |
+
<i data-feather="grid" class="mr-2"></i> SudokuSage
|
| 40 |
+
</h1>
|
| 41 |
+
</div>
|
| 42 |
+
<nav class="p-4">
|
| 43 |
+
<ul>
|
| 44 |
+
<li class="mb-2">
|
| 45 |
+
<a href="#" class="flex items-center px-4 py-2 rounded-lg bg-primary-500 text-white">
|
| 46 |
+
<i data-feather="home" class="mr-2"></i> Dashboard
|
| 47 |
+
</a>
|
| 48 |
+
</li>
|
| 49 |
+
<li class="mb-2">
|
| 50 |
+
<a href="#" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 51 |
+
<i data-feather="users" class="mr-2"></i> Users
|
| 52 |
+
</a>
|
| 53 |
+
</li>
|
| 54 |
+
<li class="mb-2">
|
| 55 |
+
<a href="#" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 56 |
+
<i data-feather="mail" class="mr-2"></i> Mailing
|
| 57 |
+
</a>
|
| 58 |
+
</li>
|
| 59 |
+
<li class="mb-2">
|
| 60 |
+
<a href="#" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 61 |
+
<i data-feather="settings" class="mr-2"></i> Settings
|
| 62 |
+
</a>
|
| 63 |
+
</li>
|
| 64 |
+
<li class="mb-2">
|
| 65 |
+
<a href="#" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 66 |
+
<i data-feather="help-circle" class="mr-2"></i> Help
|
| 67 |
+
</a>
|
| 68 |
+
</li>
|
| 69 |
+
</ul>
|
| 70 |
+
</nav>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<!-- Main Content -->
|
| 74 |
+
<div class="flex-1 overflow-auto">
|
| 75 |
+
<!-- Header -->
|
| 76 |
+
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
|
| 77 |
+
<h2 class="text-xl font-semibold text-gray-800">Admin Dashboard</h2>
|
| 78 |
+
<div class="flex items-center space-x-4">
|
| 79 |
+
<div class="relative">
|
| 80 |
+
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
|
| 81 |
+
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 82 |
+
</div>
|
| 83 |
+
<div class="flex items-center">
|
| 84 |
+
<div class="relative">
|
| 85 |
+
<i data-feather="bell" class="text-gray-500"></i>
|
| 86 |
+
<span class="absolute -top-1 -right-1 bg-secondary-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
|
| 87 |
+
</div>
|
| 88 |
+
<div class="ml-4 flex items-center">
|
| 89 |
+
<img src="http://static.photos/technology/200x200/1" alt="Admin" class="h-8 w-8 rounded-full">
|
| 90 |
+
<span class="ml-2 text-sm font-medium">Admin User</span>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
</header>
|
| 95 |
+
|
| 96 |
+
<!-- Dashboard Content -->
|
| 97 |
+
<main class="p-6">
|
| 98 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
|
| 99 |
+
<!-- Stats Cards -->
|
| 100 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 101 |
+
<div class="flex items-center justify-between">
|
| 102 |
+
<div>
|
| 103 |
+
<p class="text-gray-500">Total Players</p>
|
| 104 |
+
<h3 class="text-2xl font-bold text-gray-800">12,345</h3>
|
| 105 |
+
<p class="text-green-500 flex items-center text-sm">
|
| 106 |
+
<i data-feather="arrow-up" class="mr-1"></i> 12% from last week
|
| 107 |
+
</p>
|
| 108 |
+
</div>
|
| 109 |
+
<div class="bg-primary-100 p-3 rounded-full">
|
| 110 |
+
<i data-feather="users" class="text-primary-500"></i>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
|
| 115 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 116 |
+
<div class="flex items-center justify-between">
|
| 117 |
+
<div>
|
| 118 |
+
<p class="text-gray-500">Active Now</p>
|
| 119 |
+
<h3 class="text-2xl font-bold text-gray-800">1,234</h3>
|
| 120 |
+
<p class="text-secondary-500 flex items-center text-sm">
|
| 121 |
+
<i data-feather="activity" class="mr-1"></i> 34 in last hour
|
| 122 |
+
</p>
|
| 123 |
+
</div>
|
| 124 |
+
<div class="bg-secondary-100 p-3 rounded-full">
|
| 125 |
+
<i data-feather="eye" class="text-secondary-500"></i>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 131 |
+
<div class="flex items-center justify-between">
|
| 132 |
+
<div>
|
| 133 |
+
<p class="text-gray-500">Avg. Session</p>
|
| 134 |
+
<h3 class="text-2xl font-bold text-gray-800">18m 45s</h3>
|
| 135 |
+
<p class="text-primary-500 flex items-center text-sm">
|
| 136 |
+
<i data-feather="clock" class="mr-1"></i> 2m longer than last month
|
| 137 |
+
</p>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="bg-gray-100 p-3 rounded-full">
|
| 140 |
+
<i data-feather="watch" class="text-gray-500"></i>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<!-- Charts and Map -->
|
| 147 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
| 148 |
+
<!-- Activity Chart -->
|
| 149 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 150 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Player Activity (Last 24 Hours)</h3>
|
| 151 |
+
<div id="activityChart" style="height: 300px;"></div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<!-- Geographical Distribution -->
|
| 155 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 156 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Player Geographical Distribution</h3>
|
| 157 |
+
<div id="worldMap" style="height: 300px;"></div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
|
| 161 |
+
<!-- Recent Users Table -->
|
| 162 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 163 |
+
<div class="p-6 border-b border-gray-200 flex justify-between items-center">
|
| 164 |
+
<h3 class="text-lg font-semibold text-gray-800">Recent Players</h3>
|
| 165 |
+
<button class="text-primary-500 hover:text-primary-700 text-sm font-medium flex items-center">
|
| 166 |
+
<i data-feather="download" class="mr-1"></i> Export
|
| 167 |
+
</button>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="overflow-x-auto">
|
| 170 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 171 |
+
<thead class="bg-gray-50">
|
| 172 |
+
<tr>
|
| 173 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Player</th>
|
| 174 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 175 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Level</th>
|
| 176 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Active</th>
|
| 177 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Country</th>
|
| 178 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 179 |
+
</tr>
|
| 180 |
+
</thead>
|
| 181 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 182 |
+
<tr>
|
| 183 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 184 |
+
<div class="flex items-center">
|
| 185 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 186 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/1" alt="">
|
| 187 |
+
</div>
|
| 188 |
+
<div class="ml-4">
|
| 189 |
+
<div class="text-sm font-medium text-gray-900">Jane Cooper</div>
|
| 190 |
+
<div class="text-sm text-gray-500">jane@example.com</div>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
</td>
|
| 194 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 195 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
| 196 |
+
</td>
|
| 197 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Expert</td>
|
| 198 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 minutes ago</td>
|
| 199 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">United States</td>
|
| 200 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 201 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Edit</a>
|
| 202 |
+
<a href="#" class="text-red-500 hover:text-red-700">Ban</a>
|
| 203 |
+
</td>
|
| 204 |
+
</tr>
|
| 205 |
+
<tr>
|
| 206 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 207 |
+
<div class="flex items-center">
|
| 208 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 209 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/2" alt="">
|
| 210 |
+
</div>
|
| 211 |
+
<div class="ml-4">
|
| 212 |
+
<div class="text-sm font-medium text-gray-900">John Smith</div>
|
| 213 |
+
<div class="text-sm text-gray-500">john@example.com</div>
|
| 214 |
+
</div>
|
| 215 |
+
</div>
|
| 216 |
+
</td>
|
| 217 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 218 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Inactive</span>
|
| 219 |
+
</td>
|
| 220 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Intermediate</td>
|
| 221 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 day ago</td>
|
| 222 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">United Kingdom</td>
|
| 223 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 224 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Edit</a>
|
| 225 |
+
<a href="#" class="text-red-500 hover:text-red-700">Ban</a>
|
| 226 |
+
</td>
|
| 227 |
+
</tr>
|
| 228 |
+
<tr>
|
| 229 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 230 |
+
<div class="flex items-center">
|
| 231 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 232 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/3" alt="">
|
| 233 |
+
</div>
|
| 234 |
+
<div class="ml-4">
|
| 235 |
+
<div class="text-sm font-medium text-gray-900">Alex Wong</div>
|
| 236 |
+
<div class="text-sm text-gray-500">alex@example.com</div>
|
| 237 |
+
</div>
|
| 238 |
+
</div>
|
| 239 |
+
</td>
|
| 240 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 241 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
| 242 |
+
</td>
|
| 243 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Beginner</td>
|
| 244 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15 minutes ago</td>
|
| 245 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Singapore</td>
|
| 246 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 247 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">Edit</a>
|
| 248 |
+
<a href="#" class="text-red-500 hover:text-red-700">Ban</a>
|
| 249 |
+
</td>
|
| 250 |
+
</tr>
|
| 251 |
+
</tbody>
|
| 252 |
+
</table>
|
| 253 |
+
</div>
|
| 254 |
+
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
|
| 255 |
+
<div class="flex-1 flex justify-between sm:hidden">
|
| 256 |
+
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
|
| 257 |
+
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
|
| 258 |
+
</div>
|
| 259 |
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
| 260 |
+
<div>
|
| 261 |
+
<p class="text-sm text-gray-700">
|
| 262 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">3</span> of <span class="font-medium">12,345</span> results
|
| 263 |
+
</p>
|
| 264 |
+
</div>
|
| 265 |
+
<div>
|
| 266 |
+
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
| 267 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 268 |
+
<span class="sr-only">Previous</span>
|
| 269 |
+
<i data-feather="chevron-left" class="h-5 w-5"></i>
|
| 270 |
+
</a>
|
| 271 |
+
<a href="#" aria-current="page" class="z-10 bg-primary-50 border-primary-500 text-primary-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
|
| 272 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
|
| 273 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
|
| 274 |
+
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">...</span>
|
| 275 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">8</a>
|
| 276 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 277 |
+
<span class="sr-only">Next</span>
|
| 278 |
+
<i data-feather="chevron-right" class="h-5 w-5"></i>
|
| 279 |
+
</a>
|
| 280 |
+
</nav>
|
| 281 |
+
</div>
|
| 282 |
+
</div>
|
| 283 |
+
</div>
|
| 284 |
+
</div>
|
| 285 |
+
</main>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<script>
|
| 290 |
+
// Initialize feather icons
|
| 291 |
+
feather.replace();
|
| 292 |
+
|
| 293 |
+
// Activity Chart
|
| 294 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 295 |
+
// Activity Chart (using Chart.js)
|
| 296 |
+
const activityCtx = document.createElement('canvas');
|
| 297 |
+
document.getElementById('activityChart').appendChild(activityCtx);
|
| 298 |
+
|
| 299 |
+
const activityChart = new Chart(activityCtx, {
|
| 300 |
+
type: 'line',
|
| 301 |
+
data: {
|
| 302 |
+
labels: Array.from({length: 24}, (_, i) => `${i}:00`),
|
| 303 |
+
datasets: [{
|
| 304 |
+
label: 'Players Online',
|
| 305 |
+
data: [120, 190, 300, 500, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1100, 1000, 900, 800, 700, 600, 500, 400, 300],
|
| 306 |
+
backgroundColor: 'rgba(217, 70, 239, 0.1)',
|
| 307 |
+
borderColor: 'rgba(217, 70, 239, 1)',
|
| 308 |
+
borderWidth: 2,
|
| 309 |
+
tension: 0.4,
|
| 310 |
+
fill: true
|
| 311 |
+
}]
|
| 312 |
+
},
|
| 313 |
+
options: {
|
| 314 |
+
responsive: true,
|
| 315 |
+
maintainAspectRatio: false,
|
| 316 |
+
plugins: {
|
| 317 |
+
legend: {
|
| 318 |
+
display: false
|
| 319 |
+
}
|
| 320 |
+
},
|
| 321 |
+
scales: {
|
| 322 |
+
y: {
|
| 323 |
+
beginAtZero: true,
|
| 324 |
+
grid: {
|
| 325 |
+
display: true,
|
| 326 |
+
color: 'rgba(0, 0, 0, 0.05)'
|
| 327 |
+
}
|
| 328 |
+
},
|
| 329 |
+
x: {
|
| 330 |
+
grid: {
|
| 331 |
+
display: false
|
| 332 |
+
}
|
| 333 |
+
}
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
});
|
| 337 |
+
|
| 338 |
+
// World Map (using DataMaps)
|
| 339 |
+
const mapContainer = document.getElementById('worldMap');
|
| 340 |
+
const worldMap = new Datamap({
|
| 341 |
+
element: mapContainer,
|
| 342 |
+
responsive: true,
|
| 343 |
+
geographyConfig: {
|
| 344 |
+
highlightFillColor: '#10b981',
|
| 345 |
+
highlightBorderColor: 'rgba(255, 255, 255, 0.2)',
|
| 346 |
+
highlightBorderWidth: 1,
|
| 347 |
+
popupOnHover: false
|
| 348 |
+
},
|
| 349 |
+
fills: {
|
| 350 |
+
defaultFill: '#e5e7eb',
|
| 351 |
+
active: '#10b981',
|
| 352 |
+
gt50: '#a7f3d0'
|
| 353 |
+
},
|
| 354 |
+
data: {
|
| 355 |
+
USA: { fillKey: 'active' },
|
| 356 |
+
GBR: { fillKey: 'gt50' },
|
| 357 |
+
IND: { fillKey: 'gt50' },
|
| 358 |
+
BRA: { fillKey: 'gt50' },
|
| 359 |
+
DEU: { fillKey: 'gt50' },
|
| 360 |
+
FRA: { fillKey: 'gt50' },
|
| 361 |
+
SGP: { fillKey: 'active' }
|
| 362 |
+
}
|
| 363 |
+
});
|
| 364 |
+
|
| 365 |
+
// Handle window resize
|
| 366 |
+
window.addEventListener('resize', function() {
|
| 367 |
+
worldMap.resize();
|
| 368 |
+
activityChart.resize();
|
| 369 |
+
});
|
| 370 |
+
});
|
| 371 |
+
</script>
|
| 372 |
+
</body>
|
| 373 |
</html>
|
mailing.html
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Mailing Campaigns | SudokuSage Admin</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: {
|
| 15 |
+
500: '#d946ef',
|
| 16 |
+
},
|
| 17 |
+
secondary: {
|
| 18 |
+
500: '#10b981',
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
</script>
|
| 25 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 26 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 27 |
+
</head>
|
| 28 |
+
<body class="bg-gray-100 font-sans">
|
| 29 |
+
<div class="flex h-screen">
|
| 30 |
+
<!-- Sidebar (same as index.html) -->
|
| 31 |
+
<div class="w-64 bg-white shadow-lg">
|
| 32 |
+
<div class="p-4 border-b border-gray-200">
|
| 33 |
+
<h1 class="text-xl font-bold text-primary-500 flex items-center">
|
| 34 |
+
<i data-feather="grid" class="mr-2"></i> SudokuSage
|
| 35 |
+
</h1>
|
| 36 |
+
</div>
|
| 37 |
+
<nav class="p-4">
|
| 38 |
+
<ul>
|
| 39 |
+
<li class="mb-2">
|
| 40 |
+
<a href="index.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 41 |
+
<i data-feather="home" class="mr-2"></i> Dashboard
|
| 42 |
+
</a>
|
| 43 |
+
</li>
|
| 44 |
+
<li class="mb-2">
|
| 45 |
+
<a href="users.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 46 |
+
<i data-feather="users" class="mr-2"></i> Users
|
| 47 |
+
</a>
|
| 48 |
+
</li>
|
| 49 |
+
<li class="mb-2">
|
| 50 |
+
<a href="mailing.html" class="flex items-center px-4 py-2 rounded-lg bg-primary-500 text-white">
|
| 51 |
+
<i data-feather="mail" class="mr-2"></i> Mailing
|
| 52 |
+
</a>
|
| 53 |
+
</li>
|
| 54 |
+
<li class="mb-2">
|
| 55 |
+
<a href="settings.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 56 |
+
<i data-feather="settings" class="mr-2"></i> Settings
|
| 57 |
+
</a>
|
| 58 |
+
</li>
|
| 59 |
+
</ul>
|
| 60 |
+
</nav>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<!-- Main Content -->
|
| 64 |
+
<div class="flex-1 overflow-auto">
|
| 65 |
+
<!-- Header (same as index.html) -->
|
| 66 |
+
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
|
| 67 |
+
<h2 class="text-xl font-semibold text-gray-800">Mailing Campaigns</h2>
|
| 68 |
+
<div class="flex items-center space-x-4">
|
| 69 |
+
<button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center">
|
| 70 |
+
<i data-feather="plus" class="mr-2"></i> New Campaign
|
| 71 |
+
</button>
|
| 72 |
+
</div>
|
| 73 |
+
</header>
|
| 74 |
+
|
| 75 |
+
<!-- Mailing Content -->
|
| 76 |
+
<main class="p-6">
|
| 77 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
| 78 |
+
<!-- Campaign Stats -->
|
| 79 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 80 |
+
<div class="flex items-center justify-between">
|
| 81 |
+
<div>
|
| 82 |
+
<p class="text-gray-500">Total Campaigns</p>
|
| 83 |
+
<h3 class="text-2xl font-bold text-gray-800">24</h3>
|
| 84 |
+
<p class="text-primary-500 flex items-center text-sm">
|
| 85 |
+
<i data-feather="trending-up" class="mr-1"></i> 3 new this month
|
| 86 |
+
</p>
|
| 87 |
+
</div>
|
| 88 |
+
<div class="bg-primary-100 p-3 rounded-full">
|
| 89 |
+
<i data-feather="mail" class="text-primary-500"></i>
|
| 90 |
+
</div>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
|
| 94 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 95 |
+
<div class="flex items-center justify-between">
|
| 96 |
+
<div>
|
| 97 |
+
<p class="text-gray-500">Avg. Open Rate</p>
|
| 98 |
+
<h3 class="text-2xl font-bold text-gray-800">42%</h3>
|
| 99 |
+
<p class="text-secondary-500 flex items-center text-sm">
|
| 100 |
+
<i data-feather="arrow-up" class="mr-1"></i> 5% from last month
|
| 101 |
+
</p>
|
| 102 |
+
</div>
|
| 103 |
+
<div class="bg-secondary-100 p-3 rounded-full">
|
| 104 |
+
<i data-feather="eye" class="text-secondary-500"></i>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
|
| 109 |
+
<div class="bg-white rounded-lg shadow p-6">
|
| 110 |
+
<div class="flex items-center justify-between">
|
| 111 |
+
<div>
|
| 112 |
+
<p class="text-gray-500">Avg. Click Rate</p>
|
| 113 |
+
<h3 class="text-2xl font-bold text-gray-800">18%</h3>
|
| 114 |
+
<p class="text-primary-500 flex items-center text-sm">
|
| 115 |
+
<i data-feather="arrow-up" class="mr-1"></i> 3% from last month
|
| 116 |
+
</p>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="bg-purple-100 p-3 rounded-full">
|
| 119 |
+
<i data-feather="mouse-pointer" class="text-purple-500"></i>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<!-- Recent Campaigns -->
|
| 126 |
+
<div class="bg-white rounded-lg shadow overflow-hidden mb-6">
|
| 127 |
+
<div class="p-6 border-b border-gray-200 flex justify-between items-center">
|
| 128 |
+
<h3 class="text-lg font-semibold text-gray-800">Recent Campaigns</h3>
|
| 129 |
+
<button class="text-primary-500 hover:text-primary-700 text-sm font-medium flex items-center">
|
| 130 |
+
<i data-feather="refresh-cw" class="mr-1"></i> Refresh
|
| 131 |
+
</button>
|
| 132 |
+
</div>
|
| 133 |
+
<div class="overflow-x-auto">
|
| 134 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 135 |
+
<thead class="bg-gray-50">
|
| 136 |
+
<tr>
|
| 137 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Campaign</th>
|
| 138 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Sent</th>
|
| 139 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Recipients</th>
|
| 140 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Open Rate</th>
|
| 141 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Click Rate</th>
|
| 142 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 143 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 144 |
+
</tr>
|
| 145 |
+
</thead>
|
| 146 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 147 |
+
<tr>
|
| 148 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 149 |
+
<div class="text-sm font-medium text-gray-900">Winter Sudoku Challenge</div>
|
| 150 |
+
<div class="text-sm text-gray-500">Promotional</div>
|
| 151 |
+
</td>
|
| 152 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-12-01</td>
|
| 153 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9,245</td>
|
| 154 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 155 |
+
<div class="flex items-center">
|
| 156 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 157 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 48%"></div>
|
| 158 |
+
</div>
|
| 159 |
+
<span>48%</span>
|
| 160 |
+
</div>
|
| 161 |
+
</td>
|
| 162 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 163 |
+
<div class="flex items-center">
|
| 164 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 165 |
+
<div class="bg-blue-500 h-2 rounded-full" style="width: 22%"></div>
|
| 166 |
+
</div>
|
| 167 |
+
<span>22%</span>
|
| 168 |
+
</div>
|
| 169 |
+
</td>
|
| 170 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 171 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
| 172 |
+
</td>
|
| 173 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 174 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">View</a>
|
| 175 |
+
<a href="#" class="text-gray-500 hover:text-gray-700">Resend</a>
|
| 176 |
+
</td>
|
| 177 |
+
</tr>
|
| 178 |
+
<tr>
|
| 179 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 180 |
+
<div class="text-sm font-medium text-gray-900">New Puzzle Collection</div>
|
| 181 |
+
<div class="text-sm text-gray-500">Product Update</div>
|
| 182 |
+
</td>
|
| 183 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-15</td>
|
| 184 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,345</td>
|
| 185 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 186 |
+
<div class="flex items-center">
|
| 187 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 188 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 38%"></div>
|
| 189 |
+
</div>
|
| 190 |
+
<span>38%</span>
|
| 191 |
+
</div>
|
| 192 |
+
</td>
|
| 193 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 194 |
+
<div class="flex items-center">
|
| 195 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 196 |
+
<div class="bg-blue-500 h-2 rounded-full" style="width: 15%"></div>
|
| 197 |
+
</div>
|
| 198 |
+
<span>15%</span>
|
| 199 |
+
</div>
|
| 200 |
+
</td>
|
| 201 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 202 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
| 203 |
+
</td>
|
| 204 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 205 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">View</a>
|
| 206 |
+
<a href="#" class="text-gray-500 hover:text-gray-700">Resend</a>
|
| 207 |
+
</td>
|
| 208 |
+
</tr>
|
| 209 |
+
<tr>
|
| 210 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 211 |
+
<div class="text-sm font-medium text-gray-900">Premium Subscription</div>
|
| 212 |
+
<div class="text-sm text-gray-500">Promotional</div>
|
| 213 |
+
</td>
|
| 214 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-11-05</td>
|
| 215 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5,678</td>
|
| 216 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 217 |
+
<div class="flex items-center">
|
| 218 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 219 |
+
<div class="bg-green-500 h-2 rounded-full" style="width: 52%"></div>
|
| 220 |
+
</div>
|
| 221 |
+
<span>52%</span>
|
| 222 |
+
</div>
|
| 223 |
+
</td>
|
| 224 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 225 |
+
<div class="flex items-center">
|
| 226 |
+
<div class="w-16 bg-gray-200 rounded-full h-2 mr-2">
|
| 227 |
+
<div class="bg-blue-500 h-2 rounded-full" style="width: 28%"></div>
|
| 228 |
+
</div>
|
| 229 |
+
<span>28%</span>
|
| 230 |
+
</div>
|
| 231 |
+
</td>
|
| 232 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 233 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
| 234 |
+
</td>
|
| 235 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 236 |
+
<a href="#" class="text-primary-500 hover:text-primary-700 mr-3">View</a>
|
| 237 |
+
<a href="#" class="text-gray-500 hover:text-gray-700">Resend</a>
|
| 238 |
+
</td>
|
| 239 |
+
</tr>
|
| 240 |
+
</tbody>
|
| 241 |
+
</table>
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
+
<!-- New Campaign Form -->
|
| 246 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 247 |
+
<div class="p-6 border-b border-gray-200">
|
| 248 |
+
<h3 class="text-lg font-semibold text-gray-800">Create New Campaign</h3>
|
| 249 |
+
</div>
|
| 250 |
+
<div class="p-6">
|
| 251 |
+
<form>
|
| 252 |
+
<div class="grid grid-cols-1 gap-6">
|
| 253 |
+
<div>
|
| 254 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Campaign Name</label>
|
| 255 |
+
<input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" placeholder="e.g. Winter Sudoku Challenge">
|
| 256 |
+
</div>
|
| 257 |
+
<div>
|
| 258 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Recipient Group</label>
|
| 259 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 260 |
+
<option>All Players</option>
|
| 261 |
+
<option>Active Players (last 30 days)</option>
|
| 262 |
+
<option>Inactive Players (30+ days)</option>
|
| 263 |
+
<option>Premium Subscribers</option>
|
| 264 |
+
<option>Free Players</option>
|
| 265 |
+
<option>Expert Level Players</option>
|
| 266 |
+
<option>Beginner Players</option>
|
| 267 |
+
</select>
|
| 268 |
+
</div>
|
| 269 |
+
<div>
|
| 270 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Subject</label>
|
| 271 |
+
<input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" placeholder="e.g. New Sudoku Challenges Await You!">
|
| 272 |
+
</div>
|
| 273 |
+
<div>
|
| 274 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Email Content</label>
|
| 275 |
+
<textarea rows="6" class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent" placeholder="Write your email content here..."></textarea>
|
| 276 |
+
</div>
|
| 277 |
+
<div class="flex justify-end">
|
| 278 |
+
<button type="button" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-4 py-2 rounded-lg mr-3">
|
| 279 |
+
Save Draft
|
| 280 |
+
</button>
|
| 281 |
+
<button type="submit" class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center">
|
| 282 |
+
<i data-feather="send" class="mr-2"></i> Send Campaign
|
| 283 |
+
</button>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
</form>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</main>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<script>
|
| 294 |
+
// Initialize feather icons
|
| 295 |
+
feather.replace();
|
| 296 |
+
</script>
|
| 297 |
+
</body>
|
| 298 |
+
</html>
|
users.html
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>User Management | SudokuSage Admin</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script>
|
| 10 |
+
tailwind.config = {
|
| 11 |
+
theme: {
|
| 12 |
+
extend: {
|
| 13 |
+
colors: {
|
| 14 |
+
primary: {
|
| 15 |
+
500: '#d946ef',
|
| 16 |
+
},
|
| 17 |
+
secondary: {
|
| 18 |
+
500: '#10b981',
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
</script>
|
| 25 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 26 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 27 |
+
</head>
|
| 28 |
+
<body class="bg-gray-100 font-sans">
|
| 29 |
+
<div class="flex h-screen">
|
| 30 |
+
<!-- Sidebar (same as index.html) -->
|
| 31 |
+
<div class="w-64 bg-white shadow-lg">
|
| 32 |
+
<div class="p-4 border-b border-gray-200">
|
| 33 |
+
<h1 class="text-xl font-bold text-primary-500 flex items-center">
|
| 34 |
+
<i data-feather="grid" class="mr-2"></i> SudokuSage
|
| 35 |
+
</h1>
|
| 36 |
+
</div>
|
| 37 |
+
<nav class="p-4">
|
| 38 |
+
<ul>
|
| 39 |
+
<li class="mb-2">
|
| 40 |
+
<a href="index.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 41 |
+
<i data-feather="home" class="mr-2"></i> Dashboard
|
| 42 |
+
</a>
|
| 43 |
+
</li>
|
| 44 |
+
<li class="mb-2">
|
| 45 |
+
<a href="users.html" class="flex items-center px-4 py-2 rounded-lg bg-primary-500 text-white">
|
| 46 |
+
<i data-feather="users" class="mr-2"></i> Users
|
| 47 |
+
</a>
|
| 48 |
+
</li>
|
| 49 |
+
<li class="mb-2">
|
| 50 |
+
<a href="mailing.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 51 |
+
<i data-feather="mail" class="mr-2"></i> Mailing
|
| 52 |
+
</a>
|
| 53 |
+
</li>
|
| 54 |
+
<li class="mb-2">
|
| 55 |
+
<a href="settings.html" class="flex items-center px-4 py-2 rounded-lg hover:bg-gray-100 text-gray-700">
|
| 56 |
+
<i data-feather="settings" class="mr-2"></i> Settings
|
| 57 |
+
</a>
|
| 58 |
+
</li>
|
| 59 |
+
</ul>
|
| 60 |
+
</nav>
|
| 61 |
+
</div>
|
| 62 |
+
|
| 63 |
+
<!-- Main Content -->
|
| 64 |
+
<div class="flex-1 overflow-auto">
|
| 65 |
+
<!-- Header (same as index.html) -->
|
| 66 |
+
<header class="bg-white shadow-sm p-4 flex justify-between items-center">
|
| 67 |
+
<h2 class="text-xl font-semibold text-gray-800">User Management</h2>
|
| 68 |
+
<div class="flex items-center space-x-4">
|
| 69 |
+
<div class="relative">
|
| 70 |
+
<i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
|
| 71 |
+
<input type="text" placeholder="Search users..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 72 |
+
</div>
|
| 73 |
+
<button class="bg-primary-500 hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center">
|
| 74 |
+
<i data-feather="plus" class="mr-2"></i> Add User
|
| 75 |
+
</button>
|
| 76 |
+
</div>
|
| 77 |
+
</header>
|
| 78 |
+
|
| 79 |
+
<!-- User Management Content -->
|
| 80 |
+
<main class="p-6">
|
| 81 |
+
<!-- Filters -->
|
| 82 |
+
<div class="bg-white rounded-lg shadow p-4 mb-6">
|
| 83 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-4">
|
| 84 |
+
<div>
|
| 85 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
|
| 86 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 87 |
+
<option>All Status</option>
|
| 88 |
+
<option>Active</option>
|
| 89 |
+
<option>Inactive</option>
|
| 90 |
+
<option>Banned</option>
|
| 91 |
+
</select>
|
| 92 |
+
</div>
|
| 93 |
+
<div>
|
| 94 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Player Level</label>
|
| 95 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 96 |
+
<option>All Levels</option>
|
| 97 |
+
<option>Beginner</option>
|
| 98 |
+
<option>Intermediate</option>
|
| 99 |
+
<option>Advanced</option>
|
| 100 |
+
<option>Expert</option>
|
| 101 |
+
</select>
|
| 102 |
+
</div>
|
| 103 |
+
<div>
|
| 104 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Registration Date</label>
|
| 105 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent">
|
| 106 |
+
<option>All Time</option>
|
| 107 |
+
<option>Last 7 Days</option>
|
| 108 |
+
<option>Last 30 Days</option>
|
| 109 |
+
<option>Last 90 Days</option>
|
| 110 |
+
</select>
|
| 111 |
+
</div>
|
| 112 |
+
<div class="flex items-end">
|
| 113 |
+
<button class="w-full bg-secondary-500 hover:bg-secondary-600 text-white px-4 py-2 rounded-lg flex items-center justify-center">
|
| 114 |
+
<i data-feather="filter" class="mr-2"></i> Apply Filters
|
| 115 |
+
</button>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
<!-- Users Table -->
|
| 121 |
+
<div class="bg-white rounded-lg shadow overflow-hidden">
|
| 122 |
+
<div class="p-6 border-b border-gray-200 flex justify-between items-center">
|
| 123 |
+
<h3 class="text-lg font-semibold text-gray-800">All Players (12,345)</h3>
|
| 124 |
+
<div class="flex space-x-2">
|
| 125 |
+
<button class="text-primary-500 hover:text-primary-700 text-sm font-medium flex items-center">
|
| 126 |
+
<i data-feather="refresh-cw" class="mr-1"></i> Refresh
|
| 127 |
+
</button>
|
| 128 |
+
<button class="text-primary-500 hover:text-primary-700 text-sm font-medium flex items-center">
|
| 129 |
+
<i data-feather="download" class="mr-1"></i> Export
|
| 130 |
+
</button>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
<div class="overflow-x-auto">
|
| 134 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 135 |
+
<thead class="bg-gray-50">
|
| 136 |
+
<tr>
|
| 137 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
|
| 138 |
+
<input type="checkbox" class="rounded text-primary-500 focus:ring-primary-500">
|
| 139 |
+
</th>
|
| 140 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Player</th>
|
| 141 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 142 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Level</th>
|
| 143 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Puzzles Solved</th>
|
| 144 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Registration</th>
|
| 145 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
| 146 |
+
</tr>
|
| 147 |
+
</thead>
|
| 148 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 149 |
+
<!-- Sample User 1 -->
|
| 150 |
+
<tr>
|
| 151 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 152 |
+
<input type="checkbox" class="rounded text-primary-500 focus:ring-primary-500">
|
| 153 |
+
</td>
|
| 154 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 155 |
+
<div class="flex items-center">
|
| 156 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 157 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/4" alt="">
|
| 158 |
+
</div>
|
| 159 |
+
<div class="ml-4">
|
| 160 |
+
<div class="text-sm font-medium text-gray-900">Sarah Johnson</div>
|
| 161 |
+
<div class="text-sm text-gray-500">sarah@example.com</div>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</td>
|
| 165 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 166 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
| 167 |
+
</td>
|
| 168 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 169 |
+
<div class="flex items-center">
|
| 170 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 171 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 172 |
+
<i data-feather="star" class="text-yellow-400"></i>
|
| 173 |
+
<span class="ml-2">Advanced</span>
|
| 174 |
+
</div>
|
| 175 |
+
</td>
|
| 176 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1,245</td>
|
| 177 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-05-15</td>
|
| 178 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 179 |
+
<div class="flex space-x-2">
|
| 180 |
+
<button class="text-primary-500 hover:text-primary-700 p-1 rounded hover:bg-primary-50">
|
| 181 |
+
<i data-feather="edit-2" class="w-4 h-4"></i>
|
| 182 |
+
</button>
|
| 183 |
+
<button class="text-green-500 hover:text-green-700 p-1 rounded hover:bg-green-50">
|
| 184 |
+
<i data-feather="mail" class="w-4 h-4"></i>
|
| 185 |
+
</button>
|
| 186 |
+
<button class="text-red-500 hover:text-red-700 p-1 rounded hover:bg-red-50">
|
| 187 |
+
<i data-feather="trash-2" class="w-4 h-4"></i>
|
| 188 |
+
</button>
|
| 189 |
+
</div>
|
| 190 |
+
</td>
|
| 191 |
+
</tr>
|
| 192 |
+
|
| 193 |
+
<!-- Sample User 2 -->
|
| 194 |
+
<tr>
|
| 195 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 196 |
+
<input type="checkbox" class="rounded text-primary-500 focus:ring-primary-500">
|
| 197 |
+
</td>
|
| 198 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 199 |
+
<div class="flex items-center">
|
| 200 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 201 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/5" alt="">
|
| 202 |
+
</div>
|
| 203 |
+
<div class="ml-4">
|
| 204 |
+
<div class="text-sm font-medium text-gray-900">Michael Chen</div>
|
| 205 |
+
<div class="text-sm text-gray-500">michael@example.com</div>
|
| 206 |
+
</div>
|
| 207 |
+
</div>
|
| 208 |
+
</td>
|
| 209 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 210 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Inactive</span>
|
| 211 |
+
</td>
|
| 212 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 213 |
+
<div class="flex items-center">
|
| 214 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 215 |
+
<i data-feather="star" class="text-gray-300 mr-1"></i>
|
| 216 |
+
<i data-feather="star" class="text-gray-300"></i>
|
| 217 |
+
<span class="ml-2">Beginner</span>
|
| 218 |
+
</div>
|
| 219 |
+
</td>
|
| 220 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">78</td>
|
| 221 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-10-22</td>
|
| 222 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 223 |
+
<div class="flex space-x-2">
|
| 224 |
+
<button class="text-primary-500 hover:text-primary-700 p-1 rounded hover:bg-primary-50">
|
| 225 |
+
<i data-feather="edit-2" class="w-4 h-4"></i>
|
| 226 |
+
</button>
|
| 227 |
+
<button class="text-green-500 hover:text-green-700 p-1 rounded hover:bg-green-50">
|
| 228 |
+
<i data-feather="mail" class="w-4 h-4"></i>
|
| 229 |
+
</button>
|
| 230 |
+
<button class="text-red-500 hover:text-red-700 p-1 rounded hover:bg-red-50">
|
| 231 |
+
<i data-feather="trash-2" class="w-4 h-4"></i>
|
| 232 |
+
</button>
|
| 233 |
+
</div>
|
| 234 |
+
</td>
|
| 235 |
+
</tr>
|
| 236 |
+
|
| 237 |
+
<!-- Sample User 3 -->
|
| 238 |
+
<tr>
|
| 239 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 240 |
+
<input type="checkbox" class="rounded text-primary-500 focus:ring-primary-500">
|
| 241 |
+
</td>
|
| 242 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 243 |
+
<div class="flex items-center">
|
| 244 |
+
<div class="flex-shrink-0 h-10 w-10">
|
| 245 |
+
<img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/6" alt="">
|
| 246 |
+
</div>
|
| 247 |
+
<div class="ml-4">
|
| 248 |
+
<div class="text-sm font-medium text-gray-900">Emma Wilson</div>
|
| 249 |
+
<div class="text-sm text-gray-500">emma@example.com</div>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
</td>
|
| 253 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 254 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Banned</span>
|
| 255 |
+
</td>
|
| 256 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
| 257 |
+
<div class="flex items-center">
|
| 258 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 259 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 260 |
+
<i data-feather="star" class="text-yellow-400 mr-1"></i>
|
| 261 |
+
<i data-feather="star" class="text-yellow-400"></i>
|
| 262 |
+
<span class="ml-2">Expert</span>
|
| 263 |
+
</div>
|
| 264 |
+
</td>
|
| 265 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,412</td>
|
| 266 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2022-11-03</td>
|
| 267 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
| 268 |
+
<div class="flex space-x-2">
|
| 269 |
+
<button class="text-primary-500 hover:text-primary-700 p-1 rounded hover:bg-primary-50">
|
| 270 |
+
<i data-feather="edit-2" class="w-4 h-4"></i>
|
| 271 |
+
</button>
|
| 272 |
+
<button class="text-green-500 hover:text-green-700 p-1 rounded hover:bg-green-50">
|
| 273 |
+
<i data-feather="mail" class="w-4 h-4"></i>
|
| 274 |
+
</button>
|
| 275 |
+
<button class="text-green-500 hover:text-green-700 p-1 rounded hover:bg-green-50">
|
| 276 |
+
<i data-feather="unlock" class="w-4 h-4"></i>
|
| 277 |
+
</button>
|
| 278 |
+
</div>
|
| 279 |
+
</td>
|
| 280 |
+
</tr>
|
| 281 |
+
</tbody>
|
| 282 |
+
</table>
|
| 283 |
+
</div>
|
| 284 |
+
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
|
| 285 |
+
<div class="flex-1 flex justify-between sm:hidden">
|
| 286 |
+
<a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a>
|
| 287 |
+
<a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a>
|
| 288 |
+
</div>
|
| 289 |
+
<div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
|
| 290 |
+
<div>
|
| 291 |
+
<p class="text-sm text-gray-700">
|
| 292 |
+
Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">12,345</span> results
|
| 293 |
+
</p>
|
| 294 |
+
</div>
|
| 295 |
+
<div>
|
| 296 |
+
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
| 297 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 298 |
+
<span class="sr-only">Previous</span>
|
| 299 |
+
<i data-feather="chevron-left" class="h-5 w-5"></i>
|
| 300 |
+
</a>
|
| 301 |
+
<a href="#" aria-current="page" class="z-10 bg-primary-50 border-primary-500 text-primary-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a>
|
| 302 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a>
|
| 303 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a>
|
| 304 |
+
<span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">...</span>
|
| 305 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">8</a>
|
| 306 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
| 307 |
+
<span class="sr-only">Next</span>
|
| 308 |
+
<i data-feather="chevron-right" class="h-5 w-5"></i>
|
| 309 |
+
</a>
|
| 310 |
+
</nav>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
</div>
|
| 314 |
+
</div>
|
| 315 |
+
</main>
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
|
| 319 |
+
<script>
|
| 320 |
+
// Initialize feather icons
|
| 321 |
+
feather.replace();
|
| 322 |
+
</script>
|
| 323 |
+
</body>
|
| 324 |
+
</html>
|