@@ -6,7 +6,7 @@ import logo_dark from "../../assets/logo/logo_dark.png";
66import { useTheme } from '../../context/theme/ThemeContext'
77import logo from "../../assets/logo/crackcode_logo.svg"
88import Navbar from './Navbar'
9- import { Bell } from 'lucide-react' ;
9+ import { Bell , Gamepad2 } from 'lucide-react' ;
1010import Avatar from './Avatar' ;
1111import HQBtn from './HQBtn' ;
1212import BackBtn from './BackBtn' ;
@@ -115,28 +115,23 @@ const Header = ({ variant = "default", showBackBtn = true, showHQ = true }) => {
115115 { showHeaderActions && (
116116 < div className = 'flex items-center gap-4' >
117117
118- { /* Search Bar */ }
119- < input
120- name = 'search-bar'
121- type = "text"
122- placeholder = 'Search Cases...'
123- className = 'w-24 sm:w-32 text-xs sm:text-sm rounded-md px-2 py-1
124- focus:outline-none focus:ring-1 focus:w-32 sm:focus:w-40
125- transition-all duration-300 ease-in-out'
126- style = { {
127- background : 'rgba(255, 165, 0, 0.1)' ,
128- color : 'var(--text)' ,
129- border : '1px solid var(--border)'
130- } }
131- onFocus = { ( e ) => {
132- e . target . style . boxShadow = '0 0 0 1px var(--brand)' ;
133- e . target . style . background = 'rgba(255, 165, 0, 0.15)' ;
134- } }
135- onBlur = { ( e ) => {
136- e . target . style . boxShadow = 'none' ;
137- e . target . style . background = 'rgba(255, 165, 0, 0.1)' ;
118+ { /* Games Button */ }
119+ < Button
120+ variant = "ghost"
121+ size = "sm"
122+ onClick = { ( ) => {
123+ navigate ( '/home#brain-breaker' ) ;
124+ setTimeout ( ( ) => {
125+ const element = document . getElementById ( 'brain-breaker' ) ;
126+ element ?. scrollIntoView ( { behavior : 'smooth' , block : 'start' } ) ;
127+ } , 100 ) ;
138128 } }
139- />
129+ className = 'flex items-center gap-2 text-xs sm:text-sm font-semibold hover:bg-opacity-80'
130+ title = "Brain Breaker Games"
131+ >
132+ < Gamepad2 className = 'w-4 h-4 sm:w-5 sm:h-5' />
133+ Games
134+ </ Button >
140135
141136 { /* Settings Dropdown */ }
142137 < SettingsDropdown />
0 commit comments