footer / block / contacts refactoring
This commit is contained in:
1 parent
d0a11deae8
commit
48f7e971c9
8 files changed
+89
-70
No files matched your search
@@ -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>
|
||||
))}
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user