-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathindex.tsx
More file actions
79 lines (64 loc) · 1.74 KB
/
index.tsx
File metadata and controls
79 lines (64 loc) · 1.74 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import React from "react";
import styled, { css } from "styled-components";
import { landscapeStyle } from "styles/landscapeStyle";
import { hoverShortTransitionTiming } from "styles/commonStyles";
import SecuredByKlerosLogo from "svgs/footer/secured-by-kleros.svg";
import { socialmedia } from "consts/socialmedia";
import LightButton from "components/LightButton";
import { ExternalLink } from "components/ExternalLink";
const Container = styled.div`
height: 122px;
width: 100%;
background-color: ${({ theme }) => theme.primaryPurple};
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 32px 8px 32px;
gap: 24px;
${landscapeStyle(
() => css`
height: 64px;
flex-direction: row;
justify-content: space-between;
padding-bottom: 0;
`
)}
`;
const StyledSecuredByKlerosLogo = styled(SecuredByKlerosLogo)`
${hoverShortTransitionTiming}
min-height: 24px;
path {
fill: ${({ theme }) => theme.white}BF;
}
:hover path {
fill: ${({ theme }) => theme.white};
}
`;
const StyledSocialMedia = styled.div`
display: flex;
.button-svg {
margin-right: 0;
}
`;
const SecuredByKleros: React.FC = () => (
<ExternalLink to="https://kleros.io" target="_blank" rel="noreferrer">
<StyledSecuredByKlerosLogo />
</ExternalLink>
);
const SocialMedia = () => (
<StyledSocialMedia>
{Object.values(socialmedia).map((site, i) => (
<ExternalLink key={site.url} to={site.url} target="_blank" rel="noreferrer">
<LightButton Icon={site.icon} text="" />
</ExternalLink>
))}
</StyledSocialMedia>
);
const Footer: React.FC = () => (
<Container>
<SecuredByKleros />
<SocialMedia />
</Container>
);
export default Footer;