91 lines
4.5 KiB
PHP
91 lines
4.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>TeamSync Dashboard</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css?v=<?php echo time(); ?>">
|
|
</head>
|
|
<body>
|
|
|
|
<?php
|
|
// --- Static Data ---
|
|
$team_name = "Frontend Engineers";
|
|
$current_user = [
|
|
'full_name' => 'Alex Doe',
|
|
'avatar_url' => 'https://i.pravatar.cc/40?u=alex'
|
|
];
|
|
$team_members = [
|
|
['full_name' => 'Samantha Bright', 'avatar_url' => 'https://i.pravatar.cc/40?u=samantha', 'status' => 'submitted'],
|
|
['full_name' => 'Leo Valdez', 'avatar_url' => 'https://i.pravatar.cc/40?u=leo', 'status' => 'pending', 'detail' => '2h 15m remaining'],
|
|
['full_name' => 'Mei Lin', 'avatar_url' => 'https://i.pravatar.cc/40?u=mei', 'status' => 'missed'],
|
|
['full_name' => 'Kenji Tanaka', 'avatar_url' => 'https://i.pravatar.cc/40?u=kenji', 'status' => 'ooo'],
|
|
['full_name' => 'Fatima Ahmed', 'avatar_url' => 'https://i.pravatar.cc/40?u=fatima', 'status' => 'submitted'],
|
|
];
|
|
|
|
function getStatusIndicator($status) {
|
|
$icon_path = __DIR__ . '/assets/icons/';
|
|
switch ($status) {
|
|
case 'submitted':
|
|
return '<span class="status-icon submitted">' . file_get_contents($icon_path . "check.svg") . '</span>';
|
|
case 'pending':
|
|
return '<span class="status-icon pending">' . file_get_contents($icon_path . "clock.svg") . '</span>';
|
|
case 'missed':
|
|
return '<span class="status-icon missed">' . file_get_contents($icon_path . "x.svg") . '</span>';
|
|
case 'ooo':
|
|
return '<span class="status-icon ooo">' . file_get_contents($icon_path . "palm.svg") . '</span>';
|
|
default:
|
|
return '';
|
|
}
|
|
}
|
|
?>
|
|
|
|
<header class="app-header">
|
|
<div class="container-fluid d-flex justify-content-between align-items-center">
|
|
<div class="logo">TeamSync</div>
|
|
<div class="user-profile">
|
|
<img src="<?php echo htmlspecialchars($current_user['avatar_url']); ?>" alt="<?php echo htmlspecialchars($current_user['full_name']); ?>" class="avatar">
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container mt-5">
|
|
<div class="d-flex justify-content-between align-items-center mb-4 flex-wrap">
|
|
<h1 class="h2 team-name"><?php echo htmlspecialchars($team_name); ?></h1>
|
|
<button class="btn btn-primary btn-lg record-btn" disabled>
|
|
<?php echo file_get_contents(__DIR__ . "/assets/icons/video.svg"); ?>
|
|
Record Update
|
|
</button>
|
|
</div>
|
|
|
|
<div class="card status-board-card">
|
|
<div class="card-header">
|
|
Daily Standup Status
|
|
</div>
|
|
<ul class="list-group list-group-flush">
|
|
<?php foreach ($team_members as $member): ?>
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
<img src="<?php echo htmlspecialchars($member['avatar_url']); ?>" alt="<?php echo htmlspecialchars($member['full_name']); ?>" class="avatar me-3">
|
|
<span class="member-name"><?php echo htmlspecialchars($member['full_name']); ?></span>
|
|
</div>
|
|
<div class="d-flex align-items-center">
|
|
<?php if (!empty($member['detail'])): ?>
|
|
<small class="text-muted me-3"><?php echo htmlspecialchars($member['detail']); ?></small>
|
|
<?php endif; ?>
|
|
<?php echo getStatusIndicator($member['status']); ?>
|
|
</div>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="assets/js/main.js?v=<?php echo time(); ?>"></script>
|
|
</body>
|
|
</html>
|