footer / block / contacts refactoring

This commit is contained in:
tmshv committed 2020-02-18 15:36:20 +03:00
1 parent d0a11deae8
commit 48f7e971c9
8 files changed
+89 -70

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import { useContext } from 'react'
import { ConfigContext } from 'src/context/ConfigContext'
export const Contacts: React.FC = props => {
const { contacts } = useContext(ConfigContext)
return (
<>
<style jsx>{`
h4 {
margin-bottom: var(--half-margin);
}
p {
margin-left: var(--single-margin);
margin-bottom: var(--half-margin);
}
`}</style>
<h4>Контактная информация</h4>
{contacts.map((x, i) => (
<p><a href={x.value}>{x.title}</a></p>
))}
</>
)
}