Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,41 +166,11 @@ const matchEvents = [
];

const crowdZones = [
{
zone: "Northern Stand",
capacity: 15000,
current: 13200,
density: 88,
trend: "up",
},
{
zone: "Southern Stand",
capacity: 12000,
current: 11400,
density: 95,
trend: "stable",
},
{
zone: "Eastern Wing",
capacity: 8000,
current: 6800,
density: 85,
trend: "down",
},
{
zone: "Western Wing",
capacity: 8000,
current: 7600,
density: 95,
trend: "up",
},
{
zone: "Premium Seating",
capacity: 3000,
current: 2850,
density: 95,
trend: "stable",
},
{ zone: "Northern Stand", capacity: 15000, current: 13200, density: 88, trend: "up", avgTimeSpent: 42 },
{ zone: "Southern Stand", capacity: 12000, current: 11400, density: 95, trend: "stable", avgTimeSpent: 38 },
{ zone: "Eastern Wing", capacity: 8000, current: 6800, density: 85, trend: "down", avgTimeSpent: 55 },
{ zone: "Western Wing", capacity: 8000, current: 7600, density: 95, trend: "up", avgTimeSpent: 61 },
{ zone: "Premium Seating", capacity: 3000, current: 2850, density: 95, trend: "stable", avgTimeSpent: 112 },
];
const safestZone = crowdZones.reduce((min, zone) => zone.density < min.density ? zone : min, crowdZones[0]);

Expand Down Expand Up @@ -1538,6 +1508,14 @@ Export ID: ${Date.now()}-${Math.random().toString(36).substr(2, 9)}
<LogOut className="w-4 h-4 mr-2" />
Logout
</Button>
<Button
variant="outline"
size="sm"
onClick={() => window.open("https://redback-operations.github.io/redback-documentation/", "_blank")}
className="bg-red-600 hover:bg-red-700 text-white border-red-600"
>
Redback Operations
</Button>
</div>
</div>
</div>
Expand Down Expand Up @@ -1642,7 +1620,6 @@ Export ID: ${Date.now()}-${Math.random().toString(36).substr(2, 9)}
</div>
</CardContent>
</Card>

{/* Player Statistics */}
<div className="lg:w-2/3 space-y-6">
<Card>
Expand Down Expand Up @@ -2109,6 +2086,37 @@ Export ID: ${Date.now()}-${Math.random().toString(36).substr(2, 9)}
</div>
</CardContent>
</Card>
<Card>
<CardHeader>
<CardTitle className="flex items-center gap-2">
<Clock className="w-5 h-5" />
Avg Time Spent Per Zone
</CardTitle>
<CardDescription>
Average minutes visitors spend in each zone
</CardDescription>
</CardHeader>
<CardContent>
<div className="space-y-3">
{crowdZones.map((zone, index) => (
<div key={index} className="flex items-center justify-between p-2 bg-gray-50 rounded-lg">
<span className="text-sm font-medium">{zone.zone}</span>
<div className="flex items-center gap-2">
<div className="w-24 bg-gray-200 rounded-full h-2">
<div
className="bg-blue-500 h-2 rounded-full"
style={{ width: `${Math.min((zone.avgTimeSpent / 120) * 100, 100)}%` }}
/>
</div>
<span className="text-sm font-bold text-blue-600 w-16 text-right">
{zone.avgTimeSpent} min
</span>
</div>
</div>
))}
</div>
</CardContent>
</Card>
</TabsContent>

{/* Analytics Report Download */}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"folders": [],
"settings": {}
}
Loading