forked from codesandbox/codesandbox-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.tsx
More file actions
165 lines (152 loc) · 4.07 KB
/
Footer.tsx
File metadata and controls
165 lines (152 loc) · 4.07 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
162
163
164
165
import React from 'react';
import styled from 'styled-components';
import MaxWidth from './flex/MaxWidth';
import media from '../utils/media';
const Container = styled.div`
display: flex;
justify-content: space-around;
width: 100%;
padding-top: 5rem;
padding-bottom: 3rem;
flex-wrap: wrap;
`;
const Column = styled.div`
width: calc(33% - 2rem);
margin: 0 1rem;
${media.phone`
width: 100%;
margin-bottom: 1rem;
`};
`;
const Title = styled.h5`
font-size: 1.125rem;
font-weight: 400;
margin: 0;
margin-bottom: 1rem;
color: ${({ theme }) => theme.secondary};
`;
const List = styled.ul`
color: rgba(255, 255, 255, 0.7);
list-style-type: none;
margin: 0;
padding: 0;
li {
a {
transition: 0.3s ease color;
text-decoration: none;
color: rgba(255, 255, 255, 0.7);
&:hover {
color: rgba(255, 255, 255, 0.9);
}
}
}
`;
const Background = styled.div`
position: relative;
background-color: ${props => props.theme.background2.darken(0.2)};
padding: 1rem;
z-index: 5;
`;
export default () => (
<Background id="footer">
<MaxWidth width={1280}>
<>
<Container as="footer">
<Column as="nav" aria-labelledby="codesandbox-footer">
<Title id="codesandbox-footer">CodeSandbox</Title>
<List>
<li>
<a href="/s" target="_blank" rel="noopener noreferrer">
Create Sandbox
</a>
</li>
<li>
<a href="/search" target="_blank" rel="noopener noreferrer">
Search
</a>
</li>
<li>
<a href="/explore" target="_blank" rel="noopener noreferrer">
Explore
</a>
</li>
<li>
<a href="/docs">Documentation</a>
</li>
<li>
<a href="/patron" target="_blank" rel="noopener noreferrer">
Patron
</a>
</li>
<li>
<a
href="https://status.codesandbox.io"
target="_blank"
rel="noopener noreferrer"
>
Status
</a>
</li>
<li>
<a href="/signin" target="_blank" rel="noopener noreferrer">
Sign In
</a>
</li>
</List>
</Column>
<Column as="nav" aria-labelledby="about-footer">
<Title id="about-footer">About</Title>
<List>
<li>
<a href="/blog" target="_blank" rel="noopener noreferrer">
Blog
</a>
</li>
<li>
<a
href="https://github.com/codesandbox/codesandbox-client"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</a>
</li>
<li>
<a href="/jobs">Careers</a>
</li>
<li>
<a href="/legal">Legal</a>
</li>
<li>
<a href="mailto:hello@codesandbox.io">Contact Us</a>
</li>
</List>
</Column>
<Column as="nav" aria-labelledby="social-footer">
<Title id="social-footer">Social</Title>
<List>
<li>
<a
href="https://twitter.com/codesandbox"
target="_blank"
rel="noopener noreferrer"
>
Twitter
</a>
</li>
<li>
<a
href="https://spectrum.chat/codesandbox"
target="_blank"
rel="noopener noreferrer"
>
Spectrum
</a>
</li>
</List>
</Column>
</Container>
</>
</MaxWidth>
</Background>
);