66 .header-auth-group {
77 display : flex;
88 align-items : center;
9- gap : 1.1rem ; /* 요소 간 간격 */
9+ gap : 1.1rem ;
1010 }
1111 .btn-chat-pill {
1212 display : inline-flex;
1313 align-items : center;
1414 gap : 0.4rem ;
1515 padding : 0.4rem 1.1rem ;
16- border : 1px solid # 3a4256 ;
16+ border : 1px solid transparent ;
1717 border-radius : 999px ;
1818 color : # e5e7eb ;
1919 text-decoration : none;
2020 font-size : 0.9rem ;
2121 font-weight : 500 ;
2222 transition : all 0.2s ease;
2323 }
24- .btn-chat-pill : hover {
24+ .btn-chat-pill : hover ,
25+ .btn-chat-pill .active {
2526 background-color : # 1e2433 ;
2627 border-color : # 4b5563 ;
2728 color : # fff ;
5859 .role-badge-junior {
5960 border : 1px solid rgba (59 , 130 , 246 , 0.4 );
6061 background-color : rgba (59 , 130 , 246 , 0.08 );
61- color : # 60a5fa ; /* 파란색 톤 */
62+ color : # 60a5fa ;
6263 }
6364 .role-badge-senior {
6465 border : 1px solid rgba (0 , 207 , 232 , 0.4 );
6566 background-color : rgba (0 , 207 , 232 , 0.08 );
66- color : # 00CFE8 ;
67+ color : # 00CFE8 ;
6768 }
6869 .status-dot {
6970 width : 5px ;
120121
121122 < div class ="header-auth-group " sec:authorize ="isAuthenticated() ">
122123
123- < a th:href ="@{/chat/rooms} " class ="btn-chat-pill ">
124+ < a th:href ="@{/chat/rooms} " class ="btn-chat-pill " id =" nav-chat-btn " >
124125 < svg width ="16 " height ="16 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round ">
125126 < path d ="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z "> </ path >
126127 </ svg >
154155 </ div >
155156 </ div >
156157 </ nav >
158+
159+ < script >
160+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
161+ if ( window . location . pathname . startsWith ( '/chat' ) ) {
162+ const chatBtn = document . getElementById ( 'nav-chat-btn' ) ;
163+ if ( chatBtn ) {
164+ chatBtn . classList . add ( 'active' ) ;
165+ }
166+ }
167+ } ) ;
168+ </ script >
157169</ header >
158170</ html >
0 commit comments