Skip to content

Commit

Permalink
revamp sidenav
Browse files Browse the repository at this point in the history
  • Loading branch information
ardianta committed Oct 28, 2024
1 parent fa86d63 commit 2974053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/components/Navbar/Brand.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ export function Brand({ url, onClick }) {
}, []);

return (
<div className="pr-10 lg:border-r border-solid border-grey">
<Link to={url} onClick={onClick}>
<img
className="h-7 lg:h-11"
src={isDarkBackground ? LogtengDevLogoDark : LogtengDevLogoLight}
alt="LogtengDev Logo"
/>
</Link>
</div>
);
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/Navbar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export default function Navbar() {
>

<ul className="flex flex-col pt-10 px-6">
<div className="pb-7 justify-between flex pr-10 lg:border-r border-solid border-grey">

<img width={90} src={LogtengDevLogo} />
<p onClick={toggleNavbar} className='text-xl'>X</p>
<div className="pb-7 justify-between flex lg:border-r border-solid border-grey">
<Brand to={'/'} onClick={toggleNavbar} />
<button onClick={toggleNavbar} className='text-xl'>&times;</button>
</div>

<li className="my-4">
<Link to="/" onClick={toggleNavbar} className="text-sm hover:text-blue-600">
Home
Expand Down Expand Up @@ -81,11 +81,11 @@ export default function Navbar() {
</li>
</ul>

<div className=" justify-center mt-20">
<a href="https://t.me/lotengdev" target="_blank" rel="noopener noreferrer" className="flex items-center bg-blue-600 px-4 py-3 mr-4 mx-7 my-9 rounded text-xs text-white">
<div className="px-6 flex gap-4 flex-col justify-center mt-20">
<a href="https://t.me/lotengdev" target="_blank" rel="noopener noreferrer" className="inline-flex items-center bg-blue-600 px-4 py-3 rounded text-xs text-white">
<img className="inline mr-3" width={21} onClick={toggleNavbar} src={TelegramIcon} alt="Telegram Icon" />Join Group
</a>
<a href="https://github.com/lotengdev/lotengdev-web/" target="_blank" rel="noopener noreferrer" className="flex items-center mx-7 my-9 text-xs bg-neutral-100 border border-solid border-grey px-4 py-2 rounded">
<a href="https://github.com/lotengdev/lotengdev-web/" target="_blank" rel="noopener noreferrer" className="inline-flex items-center text-xs bg-neutral-100 border border-solid border-grey px-4 py-2 rounded">
<img className="inline mr-3" width={21} onClick={toggleNavbar} src={GithubIcon} alt="GitHub Icon" />Contribute
</a>
</div>
Expand Down

0 comments on commit 2974053

Please sign in to comment.