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 { useContext } from 'react'
|
||||||
import { ConfigContext } from 'src/context/ConfigContext'
|
import { ConfigContext } from 'src/context/ConfigContext'
|
||||||
|
import Link from 'next/link'
|
||||||
|
|
||||||
export const Contacts: React.FC = props => {
|
export const Contacts: React.FC = props => {
|
||||||
const { contacts } = useContext(ConfigContext)
|
const { contacts } = useContext(ConfigContext)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<style jsx>{`
|
<strong className={s.strong}>Контактная информация</strong>
|
||||||
strong {
|
|
||||||
margin-bottom: var(--size-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
|
||||||
margin-bottom: var(--size-s);
|
|
||||||
}
|
|
||||||
`}</style>
|
|
||||||
|
|
||||||
<strong>Контактная информация</strong>
|
|
||||||
|
|
||||||
{contacts.map((x, i) => (
|
{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