Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 53 |
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 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 |