1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-05-29 22:37:44 +02:00

chore: use the right resume.json

This commit is contained in:
Divlo
2022-07-28 23:01:19 +02:00
parent 1f4aa54211
commit 9351edf626
8 changed files with 15 additions and 128 deletions

View File

@ -4,7 +4,13 @@ import Image from 'next/image'
import { Language } from './Language'
import { SwitchTheme } from './SwitchTheme'
export const Header: React.FC = () => {
export interface HeaderProps {
showLanguage?: boolean
}
export const Header: React.FC<HeaderProps> = (props) => {
const { showLanguage = false } = props
return (
<header className='sticky top-0 z-50 flex w-full justify-between border-b-2 border-gray-600 bg-white px-6 py-2 dark:border-gray-400 dark:bg-black'>
<Link href='/'>
@ -34,7 +40,7 @@ export const Header: React.FC = () => {
</a>
</Link>
</div>
<Language />
{showLanguage && <Language />}
<SwitchTheme />
</div>
</header>