Skip to content

Commit 14cbf6d

Browse files
updates
1 parent dcc7279 commit 14cbf6d

1 file changed

Lines changed: 5 additions & 41 deletions

File tree

components/Sidebar.tsx

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
'use client';
2-
3-
import { useState } from 'react';
41
import Link from 'next/link';
52
import { jobSupportLinks } from '@/data/navigation';
63

74
export default function Sidebar() {
8-
const [expanded, setExpanded] = useState(false);
9-
105
return (
11-
<aside style={{ fontSize: '0.875rem' }}>
12-
<div
13-
className="card sidebar-career-services"
14-
style={{ padding: '1.25rem', marginBottom: '1.25rem' }}
15-
>
6+
<aside className="post-layout-sidebar" style={{ fontSize: '0.875rem' }}>
7+
<div className="card" style={{ padding: '1.25rem', marginBottom: '1.25rem' }}>
168
<h3 style={{ fontSize: '0.95rem', fontWeight: 700, color: 'var(--pts-text)', marginBottom: '0.75rem' }}>
179
Career Support Services
1810
</h3>
@@ -31,33 +23,7 @@ export default function Sidebar() {
3123
Job Support by Technology
3224
</h3>
3325

34-
<button
35-
type="button"
36-
className="sidebar-toggle"
37-
onClick={() => setExpanded(!expanded)}
38-
style={{
39-
display: 'none',
40-
width: '100%',
41-
background: 'rgba(0, 223, 130, 0.1)',
42-
border: '1px solid var(--pts-border)',
43-
borderRadius: '6px',
44-
padding: '0.5rem 0.75rem',
45-
cursor: 'pointer',
46-
fontFamily: 'inherit',
47-
fontSize: '0.875rem',
48-
color: 'var(--pts-forest)',
49-
fontWeight: 600,
50-
marginBottom: '0.5rem',
51-
textAlign: 'left',
52-
}}
53-
>
54-
{expanded ? '▲ Hide Categories' : '▼ View Job Support Categories'}
55-
</button>
56-
57-
<div
58-
className={expanded ? 'sidebar-links expanded' : 'sidebar-links'}
59-
style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}
60-
>
26+
<div style={{ display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
6127
{jobSupportLinks.map((link) => (
6228
<Link key={link.href} href={link.href} className="sidebar-nav-link">
6329
{link.label}
@@ -78,12 +44,10 @@ export default function Sidebar() {
7844
color: var(--pts-accent-hover);
7945
}
8046
@media (max-width: 768px) {
81-
/* Inner pages: redundant on small screens (long pages + bottom CTAs); keep Job Support categories */
82-
.sidebar-career-services {
47+
/* Detailed pages (PostLayout): whole aside is duplicated vs nav/footer; hide on small screens */
48+
.post-layout-sidebar {
8349
display: none !important;
8450
}
85-
.sidebar-toggle { display: block !important; }
86-
.sidebar-links:not(.expanded) { display: none !important; }
8751
}
8852
`}</style>
8953
</aside>

0 commit comments

Comments
 (0)