feat: add reviews, notifications, notes and account hardening
All checks were successful
CI / Validate frontend and API (push) Successful in 59s
CI / Build and publish Docker images (push) Successful in 23s

This commit is contained in:
Cauê Faleiros
2026-11-05 17:27:36 -03:00
parent 21085e887d
commit fff63f5efa
32 changed files with 1109 additions and 84 deletions

View File

@@ -898,3 +898,52 @@ a.m-row:active, button.m-row:active { background: var(--bg-3) }
.auth { margin-top: 0; min-height: calc(100svh - 170px); display: flex; flex-direction: column; justify-content: center }
.auth form { width: 100% }
}
/* ---------- course reviews ---------- */
.reviews { margin-top: 40px }
.reviews-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px }
.reviews-header h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em }
.reviews-header .count { color: var(--fg-2); font-size: 14px }
.reviews-layout { display: grid; grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px }
.review-summary { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px }
.review-average { font-size: 44px; font-weight: 700; letter-spacing: -.05em; line-height: 1 }
.review-summary small { color: var(--fg-2); font-size: 13px }
.review-stars { display: inline-flex; align-items: center; gap: 2px; color: var(--blue) }
.review-stars svg { width: 16px; height: 16px }
.review-form { display: grid; gap: 12px }
.review-form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px }
.review-rating { display: flex; align-items: center; gap: 2px }
.review-rating button { display: inline-flex; padding: 2px; border-radius: 6px; color: var(--fg-3); transition: color .15s, transform .15s }
.review-rating button svg { width: 24px; height: 24px }
.review-rating button:hover, .review-rating button[aria-pressed="true"] { color: var(--blue) }
.review-rating button:active { transform: scale(.92) }
.review-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.review-signin { display: flex; flex-direction: column; align-items: flex-start; gap: 8px }
.review-list { display: grid; gap: 8px }
.review-item { padding: 14px 16px; border-radius: var(--r-s); background: var(--bg-2) }
.review-item header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px }
.review-item header b { font-size: 14px; font-weight: 600 }
.review-item header small { color: var(--fg-3); font-size: 12px; flex: none }
.review-item p { font-size: 14px; color: var(--fg-2); white-space: pre-line }
.week-goal { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px 16px; align-items: center; margin-top: 16px }
.week-goal .prog { grid-column: 1 / -1; display: block; margin: 0 }
/* ---------- notifications ---------- */
.side-top .notif { position: relative; margin-left: auto; color: var(--fg-2) }
:root.collapsed .side-top .notif { margin-left: 0 }
.notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center }
.notification-list { display: grid; gap: 8px; max-width: 860px }
.notification { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-s); background: var(--bg-2); transition: background-color .2s, transform .15s }
@media (hover: hover) { .notification:hover { background: var(--bg-3); transform: translateY(-1px) } }
.notification.unread { background: var(--bg-3); box-shadow: inset 3px 0 0 var(--blue) }
.notification .n-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue) }
.notification .n-copy { flex: 1; min-width: 0 }
.notification b { display: block; font-size: 15px; font-weight: 600 }
.notification p { margin-top: 3px; color: var(--fg-2); font-size: 14px }
.notification small { flex: none; color: var(--fg-3); font-size: 12px; white-space: nowrap }
.notification-empty .ph { width: 36px; height: 36px; color: var(--fg-3); margin-bottom: 8px }
.notification-empty h2 { font-size: 20px; margin-bottom: 6px }
@media (max-width: 760px) {
.reviews-layout { grid-template-columns: 1fr }
.review-average { font-size: 36px }
}