Update Project 3 files

This commit is contained in:
2026-06-10 22:26:03 +07:00
parent 0ca1af7ede
commit 7bb07f3335
17 changed files with 2169 additions and 79 deletions
+234 -1
View File
@@ -95,6 +95,22 @@ html, body { height: 100%; font-family: var(--font); background: var(--bg); over
font-size: 12px; font-weight: 600;
}
.user-name-pill {
display: flex; align-items: center; gap: 6px;
background: white; border: 1.5px solid var(--border);
border-radius: 20px; padding: 5px 12px;
font-size: 12px; font-weight: 700; color: var(--primary);
}
.btn-logout {
padding: 6px 14px; background: #fee2e2; color: #dc2626;
border: 1px solid #fca5a5; border-radius: 20px; font-family: var(--font);
font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
text-decoration: none; display: inline-flex; align-items: center;
}
.btn-logout:hover { background: #dc2626; color: white; border-color: #dc2626; }
#roleSwitchBtn {
padding: 6px 14px; background: var(--primary); color: white;
border: none; border-radius: 20px; font-family: var(--font);
@@ -554,4 +570,221 @@ html, body { height: 100%; font-family: var(--font); background: var(--bg); over
/* ============================================
ANIMATIONS
============================================ */
@keyframes fadeIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
@keyframes fadeIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
/* ============================================
USER NAME PILL & LOGOUT
============================================ */
.user-name-pill {
display: flex; align-items: center; gap: 6px;
background: var(--primary-light); border: 1.5px solid #99f6e4;
border-radius: 20px; padding: 5px 12px;
font-size: 12px; font-weight: 600; color: var(--primary);
}
.btn-logout {
padding: 6px 14px; background: white; color: var(--danger);
border: 1.5px solid #fca5a5; border-radius: 20px; font-family: var(--font);
font-size: 11px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-logout:hover { background: var(--danger-light); border-color: var(--danger); }
/* ============================================
PAGE: HISTORY PELAPORAN
============================================ */
#pageHistory { display: none; background: var(--bg); }
#pageHistory.active-page { display: block; overflow-y: auto; }
.history-page {
max-width: 900px;
margin: 0 auto;
padding: 0 20px;
min-height: calc(100vh - var(--nav-h));
}
.history-header {
background: white;
border-radius: 0 0 var(--radius-md) var(--radius-md);
padding: 24px 28px 20px;
border: 1px solid var(--border);
border-top: none;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
box-shadow: var(--shadow);
}
.history-title {
font-size: 18px;
font-weight: 700;
margin-bottom: 3px;
}
.history-sub {
font-size: 12px;
color: var(--text-muted);
}
.history-stats {
display: flex;
gap: 12px;
flex-shrink: 0;
}
.history-stat {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 16px;
text-align: center;
min-width: 80px;
transition: all .2s;
}
.history-stat:hover {
transform: translateY(-1px);
box-shadow: var(--shadow);
}
.history-stat-num {
display: block;
font-size: 20px;
font-weight: 700;
font-family: var(--mono);
color: var(--primary);
line-height: 1;
}
.history-stat-label {
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .6px;
color: var(--text-muted);
margin-top: 3px;
display: block;
}
.history-toolbar {
display: flex;
gap: 8px;
margin-bottom: 16px;
}
.history-toolbar .search-input {
padding: 10px 14px;
font-size: 13px;
border-radius: var(--radius-md);
box-shadow: var(--shadow);
}
.history-list {
display: flex;
flex-direction: column;
gap: 10px;
padding-bottom: 30px;
}
/* History card — read-only version of report card */
.history-card {
background: white;
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 16px 18px;
transition: all .2s;
animation: fadeIn .3s;
position: relative;
}
.history-card:hover {
box-shadow: var(--shadow);
transform: translateY(-1px);
border-color: var(--primary);
}
.history-card-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 8px;
gap: 10px;
}
.history-card-name {
font-size: 13px;
font-weight: 700;
}
.history-card-time {
font-size: 10px;
color: var(--text-muted);
font-family: var(--mono);
flex-shrink: 0;
background: var(--bg);
padding: 2px 8px;
border-radius: 12px;
}
.history-card-text {
font-size: 13px;
color: var(--text);
line-height: 1.6;
margin-bottom: 10px;
}
.history-card-img {
width: 100%;
max-height: 240px;
object-fit: cover;
border-radius: var(--radius-sm);
margin-bottom: 10px;
border: 1px solid var(--border);
}
.history-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 10px;
border-top: 1px solid var(--border);
}
.history-card-status {
font-size: 10px;
font-weight: 700;
padding: 3px 10px;
border-radius: 12px;
}
.history-card-status.baru { background: #eff6ff; color: #1d4ed8; }
.history-card-status.ditangani { background: var(--warning-light); color: var(--warning); }
.history-card-status.selesai { background: var(--success-light); color: var(--success); }
.history-card-readonly {
font-size: 10px;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 4px;
}
/* ============================================
RESPONSIVE — History
============================================ */
@media (max-width: 768px) {
.history-header {
flex-direction: column;
align-items: flex-start;
}
.history-stats {
width: 100%;
justify-content: space-between;
}
.history-stat {
min-width: 0;
flex: 1;
padding: 8px 10px;
}
}