core/components/Footer.tsx
2021-03-04 16:58:38 +09:00

114 lines
3.4 KiB
TypeScript

import Link from 'next/link'
import Container from '@components/Container'
import Wave from '@components/Wave'
import Toggle from './Toggle'
import { Theme } from '@types'
const Footer = ({ color, theme, setTheme }: FooterProps): JSX.Element => {
return (
<div className='releative z-30'>
<Wave
color='currentColor'
className={`${color ??
'dark:text-discord-dark text-white bg-discord-black'} hidden md:block`}
/>
<div className='bottom-0 text-white bg-discord-black'>
<Container className='pb-20 pt-10 w-11/12 lg:flex lg:pt-0 lg:w-4/5' ignoreColor>
<div className='w-full md:w-2/5'>
<h1 className='text-koreanbots-blue text-3xl font-extrabold'> .</h1>
<span className='text-base'>2020-2021 Koreanbots, All rights reserved.</span>
<div className='text-2xl'>
<Link href='/discord'>
<a className='mr-2'>
<i className='fab fa-discord' />
</a>
</Link>
<a href='https://github.com/koreanbots' className='mr-2'>
<i className='fab fa-github' />
</a>
<a href='https://twitter.com/koreanbots' className='mr-2'>
<i className='fab fa-twitter' />
</a>
</div>
</div>
<div className='grid flex-grow gap-2 grid-cols-2 md:grid-cols-7'>
<div className='col-span-2 mb-2'>
<h2 className='text-koreanbots-blue text-base font-bold'> </h2>
<ul className='text-sm'>
<li>
<Link href='/about'>
<a className='hover:text-gray-300'></a>
</Link>
</li>
<li>
<Link href='/api'>
<a className='hover:text-gray-300'>API</a>
</Link>
</li>
</ul>
</div>
<div className='col-span-2 mb-2'>
<h2 className='text-koreanbots-blue text-base font-bold'></h2>
<ul className='text-sm'>
<li>
<Link href='/privacy'>
<a className='hover:text-gray-300'></a>
</Link>
</li>
<li>
<Link href='/guidelines'>
<a className='hover:text-gray-300'></a>
</Link>
</li>
<li>
<Link href='/license'>
<a className='hover:text-gray-300'> </a>
</Link>
</li>
</ul>
</div>
<div className='col-span-1 mb-2'>
<h2 className='text-koreanbots-blue text-base font-bold'></h2>
<ul className='text-sm'>
<li>
<Link href='/partners'>
<a className='hover:text-gray-300'></a>
</Link>
</li>
<li>
<Link href='/verification'>
<a className='hover:text-gray-300'></a>
</Link>
</li>
</ul>
</div>
<div className='col-span-2 mb-2'>
<h2 className='text-koreanbots-blue text-base font-bold'></h2>
<div className='flex'>
<a className='mr-2 hover:text-gray-300'></a>
<Toggle
checked={theme === 'dark'}
onChange={() => {
const t = theme === 'dark' ? 'light' : 'dark'
setTheme(t)
localStorage.setItem('theme', t)
}}
/>
</div>
</div>
</div>
</Container>
</div>
</div>
)
}
interface FooterProps {
color?: string
theme: Theme
setTheme(value: Theme): void
}
export default Footer