uhppoted-db-web/views/dashboard.ejs

67 lines
1.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard</title>
<style>
body {
font-family: Arial, sans-serif;
background: #f5f5f5;
margin: 0;
padding: 0;
}
.dashboard-container {
max-width: 400px;
margin: 60px auto;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 32px 24px;
text-align: center;
}
.dashboard-title {
font-size: 1.5em;
margin-bottom: 24px;
color: #333;
}
.dashboard-buttons button {
display: block;
width: 100%;
margin: 12px 0;
padding: 12px;
font-size: 1em;
border: none;
border-radius: 4px;
background: #1976d2;
color: #fff;
cursor: pointer;
transition: background 0.2s;
}
.dashboard-buttons button:hover {
background: #1565c0;
}
</style>
</head>
<body>
<div class="dashboard-container">
<div class="dashboard-title">Dashboard</div>
<div style="margin-bottom: 16px; color: #555;">
Logged in as <strong><%= sessionData.user.username %></strong>
</div>
<div class="dashboard-buttons">
<form action="/event-logs" method="get">
<button type="submit">Event Logs</button>
</form>
<form action="/acl" method="get">
<button type="submit">Access Control List</button>
</form>
<form action="/audit-logs" method="get">
<button type="submit">Audit Logs</button>
</form>
<form action="/logout" method="post">
<button type="submit" style="background: #d32f2f;">Logout</button>
</form>
</div>
</div>
</body>
</html>