@@ -549,26 +549,26 @@ const GraphVisualizer = ({ darkMode, setDarkMode }) => {
549549 : 'bg-white/20 border-white/50'
550550 } `} >
551551 < div className = "bg-gradient-to-r from-blue-600 via-purple-600 to-pink-600 p-6" >
552- < div className = "flex justify-between items-center" >
553- < div className = "flex-1" >
554- < h1 className = "text-4xl font-bold mb-2 text-white" >
552+ < div className = "flex flex-col sm:flex-row justify-between items-start sm:items- center gap-4 sm:gap-0 " >
553+ < div className = "w-full sm: flex-1" >
554+ < h1 className = "text-2xl sm:text- 4xl font-bold mb-2 text-white" >
555555 Graph Algorithm Visualizer
556556 </ h1 >
557- < p className = "text-blue-100" >
557+ < p className = "text-sm sm:text-base text- blue-100" >
558558 Interactive graph algorithm visualization platform
559559 </ p >
560560 </ div >
561561
562- < div className = "flex items-center space-x-4 " >
562+ < div className = "flex items-center space-x-2 sm:space-x-4 w-full sm:w-auto justify-start sm:justify-end " >
563563 { /* Search Bar */ }
564- < div className = "relative" >
564+ < div className = "relative flex-1 sm:flex-none " >
565565 < Search className = "absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400" />
566566 < input
567567 type = "text"
568568 placeholder = "Search algorithms..."
569569 value = { searchTerm }
570570 onChange = { ( e ) => setSearchTerm ( e . target . value ) }
571- className = { `pl-10 pr-4 py-2 rounded-lg backdrop-blur-md border transition-all ${
571+ className = { `w-full sm:w-auto pl-10 pr-4 py-2 rounded-lg backdrop-blur-md border transition-all ${
572572 darkMode
573573 ? 'bg-gray-800/50 border-gray-600 text-white'
574574 : 'bg-white/50 border-white/30 text-gray-800'
0 commit comments