forked from rage/java-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFooter.js
More file actions
181 lines (166 loc) · 4.87 KB
/
Copy pathFooter.js
File metadata and controls
181 lines (166 loc) · 4.87 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
import React from "react"
import styled from "styled-components"
import BackgroundImage from "../images/banner.svg"
import { Card, CardContent } from "@material-ui/core"
import { OutboundLink } from "gatsby-plugin-google-analytics"
import { Link } from "gatsby"
import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary"
import UHLogo from "../images/uh-logo.png"
import MoocfiLogo from "../images/moocfi-logo-bw.png"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import {
faTwitter,
faFacebook,
faYoutube,
faGithub,
} from "@fortawesome/free-brands-svg-icons"
const StyledIcon = styled(FontAwesomeIcon)`
color: black;
margin-bottom: 1rem;
margin: 1rem;
`
const SocialContainer = styled.div``
const ContentContainer = styled.div`
padding: 1rem 0;
`
const GithubContainer = styled.div`
padding-top: 1rem;
a {
display: flex;
align-items: center;
justify-content: center;
}
`
const FooterWrapper = styled.footer`
height: 35rem;
position: relative;
a {
color: #006fe6;
}
`
const FooterBackground = styled.div`
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background-image: url(${BackgroundImage});
filter: invert(1) grayscale(1) brightness(1.5) opacity(0.5);
z-index: -50000;
`
const FooterContent = styled.div`
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
`
const StyledCard = styled(Card)`
width: 90%;
max-width: 800px;
`
const StyledCardContent = styled(CardContent)`
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
`
const BrandsContainer = styled.div`
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
img {
height: 6rem;
width: auto;
margin: 1rem;
}
`
class Footer extends React.Component {
render() {
return (
<FooterWrapper>
<FooterBackground />
<FooterContent>
<StyledCard>
<StyledCardContent>
<GithubContainer>
<OutboundLink
href="https://github.com/rage/ohjelmointi-19"
target="_blank"
rel="noopener noreferrer"
>
<StyledIcon
icon={faGithub}
size="3x"
title="Materiaalin lähdekoodi"
/>
<div>Materiaalin lähdekoodi</div>
</OutboundLink>
</GithubContainer>
<ContentContainer>
Kurssin on tehnyt Helsingin yliopiston{" "}
<OutboundLink
href="https://www.helsinki.fi/en/researchgroups/data-driven-education"
target="_blank"
rel="noopener noreferrer"
>
Agile Education Research -tutkimusryhmä
</OutboundLink>
.
</ContentContainer>
<ContentContainer>
<Link to="/credits">Kiitokset ja materiaalista</Link>.
</ContentContainer>
<SocialContainer>
<OutboundLink
href="https://twitter.com/moocfi"
target="_blank"
rel="noopener noreferrer"
aria-label="Mooc.fi:n Twitter -profiili"
>
<StyledIcon icon={faTwitter} size="3x" />
</OutboundLink>
<OutboundLink
href="https://www.facebook.com/Moocfi"
target="_blank"
rel="noopener noreferrer"
aria-label="Mooc.fi:n Facebook -sivu"
>
<StyledIcon icon={faFacebook} size="3x" />
</OutboundLink>
<OutboundLink
href="https://www.youtube.com/channel/UCkHoQ5p9skFdyjrV3_tnUrA"
target="_blank"
rel="noopener noreferrer"
aria-label="Mooc.fi:n YouTube -kanava"
>
<StyledIcon icon={faYoutube} size="3x" />
</OutboundLink>
</SocialContainer>
<BrandsContainer>
<OutboundLink
href="https://helsinki.fi"
target="_blank"
rel="noopener noreferrer"
>
<img alt="Helsingin yliopisto" src={UHLogo} />
</OutboundLink>
<OutboundLink
href="https://mooc.fi"
target="_blank"
rel="noopener noreferrer"
>
<img alt="MOOC.fi" src={MoocfiLogo} />
</OutboundLink>
</BrandsContainer>
</StyledCardContent>
</StyledCard>
</FooterContent>
</FooterWrapper>
)
}
}
export default withSimpleErrorBoundary(Footer)