0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-23 12:40:11 +09:00
yude.jp/pages/components/Footer.js

29 lines
1.1 KiB
JavaScript
Raw Normal View History

2021-05-23 14:02:27 +09:00
import "tailwindcss/tailwind.css";
import Link from 'next/link';
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
export default function Footer(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("common")
const footer = t('footer')
const source = t('source')
const tos = t('tos')
return (
<>
<div className="container mx-auto px-6">
2021-05-30 11:16:22 +09:00
<div className="flex flex-col items-center">
2021-05-23 14:02:27 +09:00
<div className="sm:w-full text-center py-6">
<p className="text-sm font-bold mb-2">
2021-05-23 16:27:51 +09:00
{footer} / <Link href="https://github.com/yudejp/yude.jp"><a className="hover:underline">{source}</a></Link>
2021-05-23 14:02:27 +09:00
</p>
<p className="text-sm font-bold mb-2">
2021-05-23 16:27:51 +09:00
<Link href="/tos"><a className="hover:underline">{tos}</a></Link>
2021-05-23 14:02:27 +09:00
</p>
</div>
</div>
</div>
</>
);
}