refactor : Remove intranet components along with their associated styles and logic

This commit is contained in:
Thibault Pouch
2026-02-26 16:23:48 +01:00
parent c2d94a349c
commit 6ed13d1ffc
9 changed files with 1 additions and 1943 deletions

View File

@@ -11,7 +11,7 @@ const NAV_LINKS = [
];
export function Navbar() {
const { user, isAuthenticated, isStaff, logout } = useAuth();
const { user, isAuthenticated, logout } = useAuth();
const navigate = useNavigate();
const [menuOpen, setMenuOpen] = useState(false);
@@ -90,42 +90,6 @@ export function Navbar() {
{label}
</NavLink>
))}
{/* Intranet — visually separated, highlighted button */}
{isStaff && (
<>
{/* Vertical divider */}
<span
aria-hidden="true"
style={{
display: 'inline-block',
width: '1px',
height: '18px',
background: 'var(--color-border)',
margin: '0 0.25rem',
}}
/>
<NavLink
to="/intranet"
style={({ isActive }) => ({
fontFamily: 'var(--font-mono)',
fontSize: '0.75rem',
textTransform: 'uppercase',
letterSpacing: '0.1em',
textDecoration: 'none',
background: isActive ? 'var(--color-yellow)' : 'var(--color-yellow)',
color: 'var(--color-bg)',
border: '2px solid var(--color-yellow)',
padding: '0.2rem 0.65rem',
fontWeight: 'bold',
opacity: isActive ? 1 : 0.85,
transition: 'opacity 0.1s',
})}
>
&#9646; INTRANET
</NavLink>
</>
)}
</div>
{/* Desktop Auth */}
@@ -230,32 +194,6 @@ export function Navbar() {
</>
)}
</div>
{/* Intranet button — mobile: separated at the bottom */}
{isStaff && (
<div style={{ borderTop: '2px solid var(--color-yellow)', paddingTop: '0.85rem' }}>
<NavLink
to="/intranet"
onClick={closeMenu}
style={({ isActive }) => ({
display: 'inline-block',
fontFamily: 'var(--font-mono)',
fontSize: '0.8rem',
textTransform: 'uppercase' as const,
letterSpacing: '0.1em',
textDecoration: 'none',
background: 'var(--color-yellow)',
color: 'var(--color-bg)',
border: '2px solid var(--color-yellow)',
padding: '0.3rem 0.85rem',
fontWeight: 'bold',
opacity: isActive ? 0.85 : 1,
})}
>
&#9646; INTRANET
</NavLink>
</div>
)}
</div>
</div>
)}