blob: cc3e882805b30e246ac6aa7004bb73cb0a131002 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
import * as React from 'react';
import styled from 'styled-components';
import {Link} from 'ts/@next/components/button';
import {Icon} from 'ts/@next/components/icon';
interface Props {
icon: string;
title: string;
linkLabel: string;
linkUrl: string;
}
export const BlockIconLink = (props: Props) => (
<Wrap>
<div>
<Icon
name={props.icon}
size="large"
margin={[0, 0, 'default', 0]}
/>
<Title>
{props.title}
</Title>
<Link
isWithArrow={true}
isTransparent={true}
isNoBorder={true}
href={props.linkUrl}
>
{props.linkLabel}
</Link>
</div>
</Wrap>
);
const Wrap = styled.div`
width: calc(50% - 15px);
height: 400px;
padding: 40px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background-color: ${props => props.theme.lightBgColor};
@media (max-width: 900px) {
width: 100%;
margin-top: 30px;
}
`;
const Title = styled.h2`
font-size: 20px;
margin-bottom: 30px;
color: ${props => props.theme.linkColor};
`;
|