scoutsync-tracker / index.html
daveiswan98's picture
create page to visulize this data ,First Last Unit Attending SATURDAY Attending SUNDAY contacted Questions / notes Accommodation // Transportation Dietary Req / ALLERGIES
e25da40 verified
Raw History Blame Contribute Delete
15.6 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ScoutSync Tracker</title>
<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>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
scout: {
orange: '#F97316',
light: '#FFF7ED',
dark: '#C2410C'
}
}
}
}
}
</script>
<style>
.attending-yes {
background-color: rgba(134, 239, 172, 0.3);
}
.attending-no {
background-color: rgba(252, 165, 165, 0.3);
}
.attending-maybe {
background-color: rgba(253, 230, 138, 0.3);
}
.notes-highlight {
border-left: 4px solid #F97316;
padding-left: 8px;
}
.dietary-allergy {
background-color: rgba(239, 68, 68, 0.2);
color: #DC2626;
}
.dietary-own {
background-color: rgba(34, 197, 94, 0.2);
color: #16A34A;
}
@media (max-width: 768px) {
.responsive-table {
display: block;
overflow-x: auto;
}
}
</style>
</head>
<body class="bg-scout-light">
<div class="min-h-screen">
<!-- Header -->
<header class="bg-scout-orange text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i data-feather="compass" class="w-8 h-8 mr-3"></i>
<h1 class="text-2xl md:text-3xl font-bold">ScoutSync Tracker</h1>
</div>
<div class="flex space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="px-4 py-2 rounded-full bg-white bg-opacity-20 placeholder-white focus:outline-none focus:ring-2 focus:ring-white">
<i data-feather="search" class="absolute right-3 top-2.5 text-white"></i>
</div>
<button class="bg-white text-scout-orange px-4 py-2 rounded-full font-semibold hover:bg-opacity-90 transition">
<i data-feather="filter" class="inline mr-1 w-4 h-4"></i> Filter
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Filters -->
<div class="bg-white rounded-lg shadow-md p-4 mb-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Unit</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-scout-orange">
<option>All Units</option>
<option>Unit 1</option>
<option>Unit 2</option>
<option>Unit 3</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Attendance</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-scout-orange">
<option>All Statuses</option>
<option>Attending</option>
<option>Not Attending</option>
<option>Maybe</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Dietary</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-scout-orange">
<option>All Dietary</option>
<option>Allergies</option>
<option>Bringing Own</option>
</select>
</div>
</div>
</div>
<!-- Table -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="responsive-table">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-scout-orange text-white">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">First Name</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Last Name</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Unit</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">SAT</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">SUN</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Contacted</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Notes</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Accommodation</th>
<th class="px-6 py-3 text-left text-xs font-medium uppercase tracking-wider">Dietary</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Sample Row 1 -->
<tr class="attending-yes hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">John</td>
<td class="px-6 py-4 whitespace-nowrap">Doe</td>
<td class="px-6 py-4 whitespace-nowrap">Unit 1</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
<i data-feather="check" class="w-3 h-3 mr-1"></i> Yes
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
<i data-feather="check" class="w-3 h-3 mr-1"></i> Yes
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check" class="w-3 h-3 mr-1"></i> Yes
</span>
</td>
<td class="px-6 py-4">
<div class="notes-highlight text-sm text-gray-600">Needs early arrival</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Mercure Inn</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="dietary-allergy px-2 py-1 text-xs rounded-full">Nut allergy</span>
</td>
</tr>
<!-- Sample Row 2 -->
<tr class="attending-maybe hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">Jane</td>
<td class="px-6 py-4 whitespace-nowrap">Smith</td>
<td class="px-6 py-4 whitespace-nowrap">Unit 2</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
<i data-feather="help-circle" class="w-3 h-3 mr-1"></i> Maybe
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<i data-feather="x" class="w-3 h-3 mr-1"></i> No
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800">
<i data-feather="check" class="w-3 h-3 mr-1"></i> Yes
</span>
</td>
<td class="px-6 py-4">
<div class="notes-highlight text-sm text-gray-600">REQ sent to Daryl for Approval 18/09</div>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="dietary-own px-2 py-1 text-xs rounded-full">Bringing own lunch</span>
</td>
</tr>
<!-- Sample Row 3 -->
<tr class="attending-no hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap font-medium">Mike</td>
<td class="px-6 py-4 whitespace-nowrap">Johnson</td>
<td class="px-6 py-4 whitespace-nowrap">Unit 3</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<i data-feather="x" class="w-3 h-3 mr-1"></i> No
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800">
<i data-feather="x" class="w-3 h-3 mr-1"></i> No
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800">
<i data-feather="alert-circle" class="w-3 h-3 mr-1"></i> No
</span>
</td>
<td class="px-6 py-4 text-sm text-gray-500">-</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">-</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Stats -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-6">
<div class="bg-white rounded-lg shadow-md p-4">
<div class="flex items-center">
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
<i data-feather="users" class="w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-500">Attending</p>
<p class="text-2xl font-bold">24</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4">
<div class="flex items-center">
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4">
<i data-feather="help-circle" class="w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-500">Pending</p>
<p class="text-2xl font-bold">5</p>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4">
<div class="flex items-center">
<div class="p-3 rounded-full bg-red-100 text-red-600 mr-4">
<i data-feather="x" class="w-6 h-6"></i>
</div>
<div>
<p class="text-sm text-gray-500">Not Attending</p>
<p class="text-2xl font-bold">8</p>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-scout-orange text-white py-6 mt-8">
<div class="container mx-auto px-4 text-center">
<p class="text-sm">© 2023 ScoutSync Tracker. All rights reserved.</p>
<div class="flex justify-center space-x-4 mt-2">
<a href="#" class="hover:text-scout-light"><i data-feather="mail"></i></a>
<a href="#" class="hover:text-scout-light"><i data-feather="phone"></i></a>
<a href="#" class="hover:text-scout-light"><i data-feather="settings"></i></a>
</div>
</div>
</footer>
</div>
<script>
feather.replace();
// Simple filter functionality (would be expanded in a real implementation)
document.querySelectorAll('select').forEach(select => {
select.addEventListener('change', function() {
// In a real app, this would filter the table
console.log(`Filter by ${this.previousElementSibling.textContent}: ${this.value}`);
});
});
</script>
</body>
</html>