Update Final: UI bersih, tanpa gembok, dan tombol Home rapi
This commit is contained in:
+2
-8
@@ -1,9 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['login'])) {
|
||||
header("Location: ../portal/login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once '../api/db.php';
|
||||
$username = $_SESSION['username'] ?? 'Warga';
|
||||
?>
|
||||
@@ -113,10 +110,7 @@ $username = $_SESSION['username'] ?? 'Warga';
|
||||
</div>
|
||||
<div style="display: flex; gap: 8px;">
|
||||
<a href="../portal/index.php" title="Kembali ke Portal Utama" style="color: #fff; background: rgba(59, 130, 246, 0.8); padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; transition: 0.3s;" onmouseover="this.style.background='rgba(37, 99, 235, 1)'" onmouseout="this.style.background='rgba(59, 130, 246, 0.8)'">
|
||||
<i class="fas fa-home"></i>
|
||||
</a>
|
||||
<a href="../portal/logout.php" title="Logout" style="color: #fff; background: rgba(239, 68, 68, 0.8); padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 0.9rem; transition: 0.3s;" onmouseover="this.style.background='rgba(220, 38, 38, 1)'" onmouseout="this.style.background='rgba(239, 68, 68, 0.8)'">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
<i class="fas fa-home"></i> Kembali ke Dashboard
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user