Passed
Push — master ( e3b5aa...4d3576 )
by Huu-Phat
05:47 queued 47s
created

modules/home/components/Contact.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 41
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 28
mnd 0
bc 0
fnc 0
dl 0
loc 41
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
ccs 2
cts 2
cp 1
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