Passed
Push — master ( f87507...569a9a )
by Huu-Phat
23:11 queued 18:48
created

modules/home/components/WhyMe.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 53
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 53
ccs 4
cts 4
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 Container from 'react-bootstrap/Container'
4
import { WHYME } from '~/modules/home/consts/pages'
5
import Title from '~/modules/home/components/whyme/Title'
6
import Quote from '~/modules/home/components/whyme/Quote'
7
import { Translate } from 'react-localize-redux'
8
9 1
const WhyMe = () => (
10 1
  <Section id={WHYME}>
11
    <Inner>
12
      <Title>
13
        <Translate id="Why me: Title" />
14
      </Title>
15
      <Quote>
16
        <Translate id="Why me: Quote" />
17
      </Quote>
18
    </Inner>
19
  </Section>
20
)
21
22
export default WhyMe
23
const Section = styled(Container)`
24
  position: relative;
25
`
26
const Inner = styled.div`
27
  text-align: center;
28
  margin-top: 100px;
29
30
  &::after,
31
  &::before {
32
    content: '';
33
    position: absolute;
34
    top: 15px;
35
    height: calc(100% - 15px);
36
  }
37
38
  &::before {
39
    left: 15px;
40 1
    border-left: 5px solid ${props => props.theme.colors.colorAccent};
41
  }
42
43
  &::after {
44
    left: -15px;
45 1
    border-right: 5px solid ${props => props.theme.colors.colorAccent};
46
    width: 100%;
47
  }
48
49
  @media screen and (max-width: 800px) {
50
    margin-top: 30px;
51
  }
52
`
53