Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 41 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import React from 'react' |
||
2 | import styled from 'styled-components/macro' |
||
3 | import { CONTACTS } from '~/modules/home/consts/pages' |
||
4 | import Map from '~/modules/home/components/contact/Map' |
||
5 | import Content from '~/modules/home/components/contact/Content' |
||
6 | import Header from '~/modules/home/components/contact/Header' |
||
7 | import Container from 'react-bootstrap/Container' |
||
8 | import Anchor, { |
||
9 | ANCHOR_DISTANCE_TO_TOP_OF_SECTION |
||
10 | } from '~/modules/home/components/common/Anchor' |
||
11 | import SectionContainer from '~/modules/home/components/common/section/Container' |
||
12 | |||
13 | 1 | const Contact = () => ( |
|
14 | 1 | <ContactContainer> |
|
15 | <Anchor id={CONTACTS} top={ANCHOR_DISTANCE_TO_TOP_OF_SECTION} /> |
||
16 | <Container> |
||
17 | <Card> |
||
18 | <Header /> |
||
19 | <Content /> |
||
20 | </Card> |
||
21 | </Container> |
||
22 | <Map /> |
||
23 | </ContactContainer> |
||
24 | ) |
||
25 | |||
26 | export default Contact |
||
27 | |||
28 | const ContactContainer = styled(SectionContainer)` |
||
29 | padding-bottom: 0; |
||
30 | ` |
||
31 | const Card = styled.section` |
||
32 | z-index: 50; |
||
33 | width: 75%; |
||
34 | margin: 0 auto; |
||
35 | |||
36 | @media screen and (max-width: 800px) { |
||
37 | width: 100%; |
||
38 | float: none; |
||
39 | } |
||
40 | ` |
||
41 |