mirror of https://github.com/sgoudham/carbon.git
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.
94 lines
2.0 KiB
JavaScript
94 lines
2.0 KiB
JavaScript
import React from 'react'
|
|
import Link from 'next/link'
|
|
import dynamic from 'next/dynamic'
|
|
|
|
import { COLORS } from '../lib/constants'
|
|
|
|
const EmailSubscribe = dynamic(() => import('./EmailSubscribe'), {
|
|
loading: () => null,
|
|
})
|
|
|
|
const Footer = () => (
|
|
<footer role="contentinfo" className="mt3">
|
|
<nav className="mt3">
|
|
<Link href="/about" prefetch={false}>
|
|
<a className="link" href="/about">
|
|
about
|
|
</a>
|
|
</Link>
|
|
<a className="link" href="https://github.com/carbon-app/carbon">
|
|
source
|
|
</a>
|
|
<a className="link" href="/terms">
|
|
terms
|
|
</a>
|
|
<a className="link" href="/privacy">
|
|
privacy
|
|
</a>
|
|
<EmailSubscribe />
|
|
<a className="link" href="/offsets">
|
|
offsets
|
|
</a>
|
|
{/* <span className="new">New</span> */}
|
|
</nav>
|
|
|
|
<div className="mt2 mb2">
|
|
created by{' '}
|
|
<a className="author-link" href="https://twitter.com/carbon_app">
|
|
@carbon_app
|
|
</a>{' '}
|
|
¬
|
|
</div>
|
|
<style jsx>
|
|
{`
|
|
footer {
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
footer > div {
|
|
text-align: center;
|
|
color: ${COLORS.GRAY};
|
|
}
|
|
|
|
nav {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
a {
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
a:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.new {
|
|
position: absolute;
|
|
margin: -4px 0 0 -12px;
|
|
padding: 1px 3px;
|
|
color: ${COLORS.SECONDARY};
|
|
background: #cd3f45; /* COLORS.DARK_RED? */
|
|
border-radius: 3px;
|
|
font-size: 8px;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
text-transform: uppercase;
|
|
user-select: none;
|
|
}
|
|
|
|
.author-link {
|
|
color: ${COLORS.PRIMARY};
|
|
text-decoration: none;
|
|
}
|
|
|
|
.author-link:hover {
|
|
color: #fff;
|
|
}
|
|
`}
|
|
</style>
|
|
</footer>
|
|
)
|
|
|
|
export default Footer
|