Contacts update
This commit is contained in:
1 parent
d89917dcfd
commit
ad96a7add2
2 files changed
+16
-12
No files matched your search
@@ -0,0 +1,7 @@
|
||||
.strong {
|
||||
margin-bottom: var(--size-m);
|
||||
}
|
||||
|
||||
.link {
|
||||
margin-bottom: var(--size-s);
|
||||
}
|
||||
@@ -1,25 +1,22 @@
|
||||
import s from './contacts.module.css'
|
||||
|
||||
import { useContext } from 'react'
|
||||
import { ConfigContext } from 'src/context/ConfigContext'
|
||||
import Link from 'next/link'
|
||||
|
||||
export const Contacts: React.FC = props => {
|
||||
const { contacts } = useContext(ConfigContext)
|
||||
|
||||
return (
|
||||
<>
|
||||
<style jsx>{`
|
||||
strong {
|
||||
margin-bottom: var(--size-m);
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: var(--size-s);
|
||||
}
|
||||
`}</style>
|
||||
|
||||
<strong>Контактная информация</strong>
|
||||
<strong className={s.strong}>Контактная информация</strong>
|
||||
|
||||
{contacts.map((x, i) => (
|
||||
<p key={i}><a href={x.value}>{x.title}</a></p>
|
||||
<p key={i} className={s.link}>
|
||||
<Link href={x.value}>
|
||||
<a >{x.title}</a>
|
||||
</Link>
|
||||
</p>
|
||||
))}
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user