2024-07-03 13:20:39 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<?php include 'partials/head.php'; ?>
|
2024-07-03 20:28:13 +00:00
|
|
|
<title><?= get_string('page.dashboard') ?> ~> ByeCorps ID</title>
|
|
|
|
<link rel="stylesheet" href="/styles/dashboard.css" />
|
2024-07-03 13:20:39 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php include 'partials/header.php'; ?>
|
|
|
|
<main>
|
|
|
|
<h1><?= get_string('page.dashboard') ?></h1>
|
2024-07-03 20:28:13 +00:00
|
|
|
<div class="grid">
|
2024-07-05 11:04:46 +00:00
|
|
|
<div class="id-card">
|
2024-07-27 12:07:27 +00:00
|
|
|
<img src="<?= get_user_avatar($_SESSION['id']); ?>" alt="<?= get_user_display_name($_SESSION['id']) ?>'s avatar" />
|
2024-07-05 11:04:46 +00:00
|
|
|
<div class="info">
|
|
|
|
<div class="display_name"><?= get_user_display_name($_SESSION['id']) ?></div>
|
|
|
|
<div class="id"><?= format_bcid($_SESSION['id']) ?></div>
|
|
|
|
<div class="join-date"><?= get_string('idcard.joined', ['date' => $user['created_date']]) ?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-03 20:28:13 +00:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="/profile" class="item">
|
|
|
|
<div class="icon"><span class="fa-fw fa-solid fa-id-card"></span></div>
|
|
|
|
<div class="label"><?= get_string('page.profile') ?></div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/settings" class="item">
|
|
|
|
<div class="icon"><span class="fa-fw fa-solid fa-cog"></span></div>
|
|
|
|
<div class="label"><?= get_string('page.settings') ?></div>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/auth/signout" class="item">
|
|
|
|
<div class="icon"><span class="fa-fw fa-solid fa-right-to-bracket"></span></div>
|
|
|
|
<span class="label"><?= get_string('auth.signout') ?></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2024-07-03 13:20:39 +00:00
|
|
|
</main>
|
|
|
|
<?php include 'partials/footer.php'; ?>
|
|
|
|
</body>
|
|
|
|
</html>
|