Skip to content

Commit 78ce76b

Browse files
committed
refactor: sidebar
1 parent ed9fbe2 commit 78ce76b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/components/Sidebar.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -344,43 +344,43 @@ const Sidebar = ({isOpen, toggleSidebar, toggleModal, setIsPaletteOpen}) => {
344344
<CaretDoubleDownIcon size={24} className="text-white"/>
345345
</div>)}
346346
</div>
347-
<div className="p-4 text-xs text-gray-300 text-left">
348-
<div className="flex gap-2 mb-4">
347+
<div className="p-4 text-gray-300 text-left relative z-10">
348+
<div className="flex flex-col gap-2 mb-4">
349349
<button
350350
onClick={() => setIsPaletteOpen(true)}
351-
className="flex items-center justify-center w-full text-sm font-normal tracking-wider focus:outline-none bg-gray-800 text-white hover:bg-gray-700 rounded-md p-2 font-sans"
351+
className="px-3 py-2 text-sm rounded-lg border border-gray-700/50 bg-gray-900/40 text-gray-300 hover:text-white hover:bg-gray-800/60 transition-colors duration-200 flex items-center justify-center gap-2 w-full font-mono"
352352
>
353+
<MagnifyingGlassIcon size={16}/>
353354
<span>Commands</span>
354-
<MagnifyingGlassIcon size={20} className="ml-2"/>
355+
</button>
356+
<button
357+
onClick={handleSettingsClick}
358+
className="px-3 py-2 text-sm rounded-lg border border-gray-700/50 bg-gray-900/40 text-gray-300 hover:text-white hover:bg-gray-800/60 transition-colors duration-200 flex items-center justify-center gap-2 w-full font-mono"
359+
>
360+
<GearSixIcon size={16}/>
361+
<span>Settings</span>
355362
</button>
356363
</div>
357-
<button
358-
onClick={handleSettingsClick}
359-
className="flex items-center justify-center w-full text-sm font-normal tracking-wider mb-4 focus:outline-none bg-gray-800 text-white hover:bg-gray-700 rounded-md p-2 font-sans"
360-
>
361-
<span>Settings</span>
362-
<GearSixIcon size={20} className="ml-3"/>
363-
</button>
364-
<hr className="border-gray-700 my-4"/>
365-
<div className="flex space-x-2 font-sans">
364+
<hr className="border-gray-800 my-4"/>
365+
<div className="flex flex-col gap-2 mb-4">
366366
<NavLink
367367
to="/random"
368-
className="flex items-center justify-center space-x-2 bg-gray-900 border border-gray-700 hover:bg-gray-800 hover:border-gray-600 text-gray-300 py-1.5 px-3 rounded-md transition-colors w-full font-sans text-center"
368+
className="px-3 py-2 text-sm rounded-lg border border-gray-700/50 bg-gray-900/40 text-gray-300 hover:text-white hover:bg-gray-800/60 transition-colors duration-200 flex items-center justify-center gap-2 w-full font-mono"
369369
>
370-
<ShuffleIcon size={20}/>
370+
<ShuffleIcon size={16}/>
371371
<span>Random</span>
372372
</NavLink>
373373
<button
374374
onClick={toggleModal}
375-
className="flex items-center justify-center space-x-2 bg-gray-900 border border-gray-700 hover:bg-gray-800 hover:border-gray-600 text-gray-300 py-1.5 px-3 rounded-md transition-colors w-full font-sans"
375+
className="px-3 py-2 text-sm rounded-lg border border-gray-700/50 bg-gray-900/40 text-gray-300 hover:text-white hover:bg-gray-800/60 transition-colors duration-200 flex items-center justify-center gap-2 w-full font-mono"
376376
>
377-
<EnvelopeSimpleIcon size={20}/>
377+
<EnvelopeSimpleIcon size={16}/>
378378
<span>Contact</span>
379379
</button>
380380
</div>
381-
<div className="flex justify-between items-center mt-4">
382-
<p>&copy; {new Date().getFullYear()} fezcode</p>
383-
<p>Version {version}</p>
381+
<hr className="border-gray-800 my-4"/>
382+
<div className="text-center text-xs text-gray-500 font-mono">
383+
<p>&copy; {new Date().getFullYear()} fezcode // v{version}</p>
384384
</div>
385385
</div>
386386
</motion.aside>

0 commit comments

Comments
 (0)