You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB
JavaScript

import Link from "next/link"
import {DateTime} from 'luxon'
import React from "react"
5 years ago
import useIsAdminPage from '~/hooks/useIsAdminPage'
import styles from './style.module.css'
5 years ago
const Footer = () => {
const isAdminPage = useIsAdminPage()
if(isAdminPage)
return null
return (
<footer className={styles.container}>
<div>
<h1 className={styles.title}>
<Link href="/"><a>Society <span>of</span> Socks</a></Link>
</h1>
<div className={styles.footerInfo}>
<p>© 2015 - {DateTime.utc().year} Society of Socks</p>
</div>
<ul className={styles.footerNav}>
<li><Link href="#mailingList"><a onClick={(ev)=>{if(ev) ev.preventDefault(); console.log('mailing list')}}>Mailing List</a></Link></li>
<li><Link href="/contact"><a>Contact Us</a></Link></li>
<li><Link href="/privacy"><a>Privacy</a></Link></li>
</ul>
</div>
5 years ago
</footer>
)
}
Footer.propTypes = {
}
Footer.defaultProps = {
}
export default Footer