-
-
Notifications
You must be signed in to change notification settings - Fork 213
Expand file tree
/
Copy pathFooter.tsx
More file actions
161 lines (153 loc) · 5.57 KB
/
Footer.tsx
File metadata and controls
161 lines (153 loc) · 5.57 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import React, { useState } from "react";
import { Layout, Row, Col, Typography, Space, Button, Image, Grid } from "antd";
import {
GithubOutlined,
XOutlined,
DiscordFilled,
LinkedinFilled,
DownOutlined,
UpOutlined,
} from "@ant-design/icons";
import FOOTER_SECTION from "../constants/content/footer.json";
import { FooterSection, FooterLink } from "../types/components/Footer.types";
const { Footer } = Layout;
const { Text, Link } = Typography;
const { useBreakpoint } = Grid;
const CustomFooter: React.FC = () => {
const year = new Date().getFullYear();
const screens = useBreakpoint();
const [expanded, setExpanded] = useState(false);
return (
<Footer
id="footer"
style={{
background: "#1b2540",
color: "white",
padding: "50px 50px 20px 50px",
}}
>
<Row justify="space-between" align="middle" gutter={[16, 16]}>
<Col xs={24} md={12}>
<Space direction="vertical" size="middle">
<Link href="https://www.accordproject.org" target="_blank" rel="noopener noreferrer">
<Image
src="/logo.png"
alt="Template Playground"
preview={false}
style={{ height: "36px", maxWidth: "100%" }}
/>
</Link>
<Text style={{ color: "rgba(255, 255, 255, 0.65)" }}>
The open-source smart legal contract stack
</Text>
<Link href="mailto:admin@accordproject.org">
<Text strong style={{ color: "rgba(255, 255, 255, 0.65)" }}>
admin@accordproject.org
</Text>
</Link>
<Link href="https://discord.com/invite/Zm99SKhhtA" target="_blank" rel="noopener noreferrer">
<Button
size="large"
style={{
padding: "5px 30px",
backgroundColor: "#19c6c7",
borderRadius: "5px",
color: "#050c40",
textAlign: "center",
border: "none",
}}
>
Join
</Button>
</Link>
</Space>
</Col>
<Col xs={24} md={12}>
{!screens.md && (
<Button
type="text"
onClick={() => setExpanded(!expanded)}
style={{ color: "white", fontSize: "16px", marginBottom: "10px" }}
>
{expanded ? <UpOutlined /> : <DownOutlined />} Other Links
</Button>
)}
{(screens.md || expanded) && (
<Row justify="end" gutter={[16, 16]}>
{FOOTER_SECTION.sections.map((section: FooterSection) => (
<Col xs={24} sm={12} md={6} key={section.title}>
<Space direction="vertical" size="middle">
<Text
strong
style={{
color: "rgba(255, 255, 255, 0.65)",
fontSize: "11px",
letterSpacing: "0.1em",
}}
>
{section.title}
</Text>
{section.links.map((link: FooterLink) => (
<Link
href={link.href}
key={link.title}
target="_blank"
rel="noopener noreferrer"
style={{ color: "white", fontSize: "15px" }}
>
{link.title}
</Link>
))}
</Space>
</Col>
))}
</Row>
)}
</Col>
</Row>
<Row justify="space-between" align="middle" style={{ marginTop: "40px" }}>
<Col>
<Text style={{ color: "rgba(255, 255, 255, 0.85)" }}>
copyright © {year} accord project •{" "}
<Link
strong
href="https://accordproject.org/privacy"
target="_blank"
rel="noopener noreferrer"
style={{ color: "rgba(255, 255, 255, 0.85)" }}
>
trademark policy
</Link>{" "}
•{" "}
<Link
strong
href="https://accordproject.org/brand-assets"
target="_blank"
rel="noopener noreferrer"
style={{ color: "rgba(255, 255, 255, 0.85)" }}
>
brand assets
</Link>
</Text>
</Col>
<Col>
<Space>
<Link href="https://github.com/accordproject" target="_blank" rel="noopener noreferrer" style={{ color: "rgba(255, 255, 255, 0.85)" }}>
<GithubOutlined style={{ fontSize: "17px" }} />
</Link>
<Link href="https://twitter.com/AccordHQ" target="_blank" rel="noopener noreferrer" style={{ color: "rgba(255, 255, 255, 0.85)" }}>
<XOutlined style={{ fontSize: "17px" }} />
</Link>
<Link href="https://discord.com/invite/Zm99SKhhtA" target="_blank" rel="noopener noreferrer" style={{ color: "rgba(255, 255, 255, 0.85)" }}>
<DiscordFilled style={{ fontSize: "17px" }} />
</Link>
<Link href="https://www.linkedin.com/company/accordproject/" target="_blank" rel="noopener noreferrer" style={{ color: "rgba(255, 255, 255, 0.85)" }}>
<LinkedinFilled style={{ fontSize: "17px" }} />
</Link>
</Space>
</Col>
</Row>
</Footer>
);
};
export default CustomFooter;