Passed
Push — master ( a4a13b...a87ec6 )
by Huu-Phat
03:06 queued 10s
created

modules/home/components/Contact.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 39
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 25
mnd 0
bc 0
fnc 0
dl 0
loc 39
ccs 2
cts 2
cp 1
bpm 0
cpm 0
noi 0
c 0
b 0
f 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 from '~/modules/home/components/common/Anchor'
9
10 1
const Contact = () => (
11 1
  <Wrapper>
12
    <Anchor id={CONTACTS} top={-40} />
13
    <Container>
14
      <Card>
15
        <Header />
16
        <Content />
17
      </Card>
18
    </Container>
19
    <Map />
20
  </Wrapper>
21
)
22
23
export default Contact
24
25
const Wrapper = styled.div`
26
  position: relative;
27
  padding-top: 100px;
28
`
29
const Card = styled.section`
30
  z-index: 50;
31
  width: 75%;
32
  margin: 0 auto;
33
34
  @media screen and (max-width: 800px) {
35
    width: 100%;
36
    float: none;
37
  }
38
`
39