2021-12-11 18:17:20 +09:00
|
|
|
// Tailwind CSS
|
2021-02-06 10:38:30 +09:00
|
|
|
import "tailwindcss/tailwind.css";
|
2021-12-11 18:17:20 +09:00
|
|
|
|
|
|
|
// Next.js
|
2021-02-06 10:38:30 +09:00
|
|
|
import Link from 'next/link';
|
2021-12-11 18:17:20 +09:00
|
|
|
|
|
|
|
// Components
|
2021-02-06 10:38:30 +09:00
|
|
|
import LangSelector from "./LangSelector"
|
2021-05-23 10:37:23 +09:00
|
|
|
import ThemeSelector from "./ThemeSelector"
|
2021-02-06 10:38:30 +09:00
|
|
|
|
2021-12-11 18:17:20 +09:00
|
|
|
// i18n
|
|
|
|
import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n';
|
|
|
|
|
2021-02-06 10:38:30 +09:00
|
|
|
const Navbar = () => {
|
2021-12-11 18:17:20 +09:00
|
|
|
const { t } = useTranslation();
|
|
|
|
const [query] = useLanguageQuery();
|
|
|
|
|
2021-02-06 10:38:30 +09:00
|
|
|
return (
|
|
|
|
<>
|
2021-02-06 14:55:35 +09:00
|
|
|
<nav className='flex items-center flex-wrap p-3'>
|
2021-02-06 10:38:30 +09:00
|
|
|
<Link href='/'>
|
2021-05-26 07:53:02 +09:00
|
|
|
<a className='inline-flex items-center p-2'>
|
2021-03-06 01:46:16 +09:00
|
|
|
<span className='text-xl text-black font-bold tracking-wide dark:text-white font-mono animate-heartbeat'>
|
2021-02-06 10:38:30 +09:00
|
|
|
yude.jp
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</Link>
|
2021-05-26 08:01:02 +09:00
|
|
|
<div className="absolute right-0">
|
2021-05-23 10:37:23 +09:00
|
|
|
<ThemeSelector />
|
2021-12-11 18:07:22 +09:00
|
|
|
{/* <LangSelector /> */}
|
|
|
|
<LanguageSwitcher lang="ja" />
|
2021-02-06 10:38:30 +09:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
export default Navbar
|