Passed
Pull Request — master (#209)
by Huu-Phat
04:59
created

modules/home/components/About.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 32
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 32
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 { ABOUT } from '~/modules/home/consts/pages'
3
import styled from 'styled-components/macro'
4
import Container from 'react-bootstrap/Container'
5
import CardHeader from '~/modules/home/components/about/CardHeader'
6
import CardInfo from '~/modules/home/components/about/CardInfo'
7
import Anchor from '~/modules/home/components/common/Anchor'
8
9 1
const About = () => (
10 1
  <Section>
11
    <Anchor id={ABOUT} top={-150} />
12
    <Container>
13
      <Card>
14
        <CardHeader />
15
        <CardInfo />
16
      </Card>
17
    </Container>
18
  </Section>
19
)
20
21
const Section = styled.section`
22
  position: relative;
23 1
  margin-top: ${props => props.theme.aboutMarginTop};
24
`
25
26
const Card = styled.div`
27 1
  box-shadow: 2px 2px 4px -2px ${props => props.theme.colors.colorDark};
28
  z-index: 10;
29
  position: relative;
30
`
31
export default About
32