feat: add suggestion feature

This commit is contained in:
2026-02-04 19:09:28 -08:00
parent 912a8887a5
commit 9902c5ad45
22 changed files with 2666 additions and 49 deletions
@@ -32,9 +32,13 @@ import { AuthService } from '../../services/auth.service';
<div class="auth-section">
@if (authService.user(); as user) {
<span class="welcome">Welcome, {{ user.username }}!</span>
@if (!user.isAdmin) {
<a routerLink="/my-suggestions" class="user-link">My Suggestions</a>
}
@if (user.isAdmin) {
<a routerLink="/admin/users" class="admin-badge">Users</a>
<a routerLink="/admin/audit" class="admin-badge">Audit</a>
<a routerLink="/admin/suggestions" class="admin-badge">Suggestions</a>
}
<button (click)="logout()" class="btn btn-secondary">Logout</button>
} @else {
@@ -122,6 +126,20 @@ import { AuthService } from '../../services/auth.service';
transform: translateY(-2px);
}
.user-link {
color: var(--witch-lavender);
text-decoration: none;
font-size: 0.9rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
transition: all 0.3s;
}
.user-link:hover {
background-color: var(--witch-plum);
color: var(--witch-moon);
}
.btn {
padding: 0.5rem 1rem;
border: none;