-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from timlrx/update/next-13
Update package dependencies
- Loading branch information
Showing
6 changed files
with
1,108 additions
and
436 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import siteMetadata from '@/data/siteMetadata' | ||
import headerNavLinks from '@/data/headerNavLinks' | ||
import Logo from '@/data/logo.svg' | ||
import Link from './Link' | ||
import MobileNav from './MobileNav' | ||
import ThemeSwitch from './ThemeSwitch' | ||
|
||
const Header = () => { | ||
return ( | ||
<header className="flex items-center justify-between py-10"> | ||
<div> | ||
<Link href="/" aria-label={siteMetadata.headerTitle}> | ||
<div className="flex items-center justify-between"> | ||
<div className="mr-3"> | ||
<Logo /> | ||
</div> | ||
{typeof siteMetadata.headerTitle === 'string' ? ( | ||
<div className="hidden h-6 text-2xl font-semibold sm:block"> | ||
{siteMetadata.headerTitle} | ||
</div> | ||
) : ( | ||
siteMetadata.headerTitle | ||
)} | ||
</div> | ||
</Link> | ||
</div> | ||
<div className="flex items-center text-base leading-5"> | ||
<div className="hidden sm:block"> | ||
{headerNavLinks.map((link) => ( | ||
<Link | ||
key={link.title} | ||
href={link.href} | ||
className="p-1 font-medium text-gray-900 dark:text-gray-100 sm:p-4" | ||
> | ||
{link.title} | ||
</Link> | ||
))} | ||
</div> | ||
<ThemeSwitch /> | ||
<MobileNav /> | ||
</div> | ||
</header> | ||
) | ||
} | ||
|
||
export default Header |
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
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
Oops, something went wrong.