-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a84b43
commit 26b59a9
Showing
6 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from 'react'; | ||
import { Link } from 'gatsby'; | ||
import Theme from 'src/assets/theme.svg'; | ||
|
||
function NavLink({ to, children }) { | ||
console.log(children); | ||
return ( | ||
<Link className={`text-white text-lg font-bold`} to={to}> | ||
{children} | ||
</Link> | ||
); | ||
} | ||
|
||
function NavButton({ children }) { | ||
return ( | ||
<button className={`bg-primary-600 px-6 py-2 rounded`}>{children}</button> | ||
); | ||
} | ||
|
||
function NavBar(props) { | ||
return ( | ||
<nav | ||
className={`bg-base-900 px-30 py-8 flex justify-between items-center font-mulish`} | ||
> | ||
<Theme className={`h-18 w-auto`} /> | ||
<ul className={`flex items-center space-x-12`}> | ||
<li> | ||
<NavLink to={'/overview'}>Academy</NavLink> | ||
</li> | ||
<li> | ||
<NavLink to={'/overview'}>Marketplace</NavLink> | ||
</li> | ||
<li> | ||
<NavButton> | ||
<NavLink to={'/auth'}>Sign in</NavLink> | ||
</NavButton> | ||
</li> | ||
</ul> | ||
</nav> | ||
); | ||
} | ||
|
||
export default NavBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters