footer / block / contacts refactoring
This commit is contained in:
1 parent
d0a11deae8
commit
48f7e971c9
8 files changed
+89
-70
No files matched your search
@@ -2,32 +2,21 @@ import { Copyright } from '../Copyright'
|
||||
import { Author } from './Author'
|
||||
import { Block } from '../Block'
|
||||
import { Spacer } from '../Spacer'
|
||||
|
||||
const mailto = email => `mailto:${email}`
|
||||
import { Contacts } from '../Contacts'
|
||||
|
||||
export interface IFooterProps {
|
||||
address: string
|
||||
telephone: string
|
||||
email: string
|
||||
showAuthor: boolean
|
||||
}
|
||||
|
||||
export const Footer: React.FC<IFooterProps> = props => (
|
||||
<footer>
|
||||
<div className="contacts">
|
||||
<div>
|
||||
<h4>Контактная информация</h4>
|
||||
<p>Адрес: {props.address}</p>
|
||||
<p>Телефон: {props.telephone}</p>
|
||||
<p>Почта: <a href={mailto(props.email)}>{props.email}</a></p>
|
||||
<p>Вконтакте: <a href="https://vk.com/shlisselburghudozka">shlisselburghudozka</a></p>
|
||||
<p>Инстаграм: <a href="https://www.instagram.com/hudozka/">hudozka</a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Block direction={'horizontal'} style={{
|
||||
padding: '1.5em 1em 0.25em',
|
||||
<Block direction={'vertical'} style={{
|
||||
marginBottom: 'var(--single-margin)',
|
||||
}}>
|
||||
<Contacts />
|
||||
</Block>
|
||||
|
||||
<Block direction={'horizontal'}>
|
||||
<Copyright />
|
||||
|
||||
{!props.showAuthor ? null : (
|
||||
|
||||
Reference in new issue
Block a user