Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ModeToggle component from Sidebar #126

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refactor Sidebar layout for improved button alignment and spacing
  • Loading branch information
TheCoderAdi committed Feb 1, 2025
commit 21efb1cc1df0a82e28633451b3b05a06441da0f3
30 changes: 14 additions & 16 deletions app/dashboard/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -59,22 +59,20 @@ const Sidebar = () => {
))}
</div>
<Separator className=' dark:bg-gray-100/30 bg-gray-500 ' />
<div className=' w-full flex flex-col gap-2 items-center justify-center p-4 '>
<div className=' w-full flex items-center justify-center gap-2 '>
<Button variant="outline" className=' flex justify-center items-center gap-2 w-full bg-gray-3 border-gray-500 dark:border-gray-800 ' >
<IoLogoGithub />
<a href="https://github.com/harsh3dev/DevMatchups" target="_blank" rel="noopener noreferrer">GitHub</a>
</Button>
<Button variant="outline" className=' flex justify-center items-center gap-2 w-full bg-gray-3 border-gray-500 dark:border-gray-800 ' >
<MdEmail />
<a href="mailto:harshpandey.tech@gmail.com" target="_blank" rel="noopener noreferrer">Support</a>
</Button>
</div>
<Button onClick={handleLogout} variant="ghost" className=' w-full flex justify-center items-center gap-2 bg-transparent border border-gray-500 dark:border-gray-800 ' >
Logout
<IoMdLogOut />
</Button>
</div>
<div className=' w-full flex items-center justify-center gap-2 p-3.5'>
<Button variant="outline" className=' flex justify-center items-center gap-2 w-full bg-gray-3 border-gray-500 dark:border-gray-800 ' >
<IoLogoGithub />
<a href="https://github.com/harsh3dev/DevMatchups" target="_blank" rel="noopener noreferrer">GitHub</a>
</Button>
<Button variant="outline" className=' flex justify-center items-center gap-2 w-full bg-gray-3 border-gray-500 dark:border-gray-800 ' >
<MdEmail />
<a href="mailto:harshpandey.tech@gmail.com" target="_blank" rel="noopener noreferrer">Support</a>
</Button>
</div>
<Button onClick={handleLogout} variant="ghost" className=' w-[92%] flex justify-center items-center gap-2 bg-transparent border border-gray-500 dark:border-gray-800 mb-4' >
Logout
<IoMdLogOut />
</Button>
</div>
)
}
Loading