Skip to content

Commit 8c6fd90

Browse files
committed
Add footer component
1 parent 0775bb0 commit 8c6fd90

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

src/components/Footer.jsx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import React from 'react';
2+
import PropTypes from 'prop-types';
3+
4+
const Footer = ({ words }) => (
5+
<footer
6+
style={{ backgroundImage: 'url(http://i.giphy.com/5lF3pQpdquCBy.gif)' }}
7+
className="tc-l bg-center cover bg-black mt5"
8+
>
9+
<div className="w-100 ph3 pv2 bg-black-80 tc">
10+
<a
11+
className="link white-60 bg-transparent hover-white inline-flex items-center ma2 tc br2 pa2"
12+
href="https://github.com/anamariasosam/react_dev_game"
13+
title="GitHub"
14+
target="_new"
15+
>
16+
<svg
17+
className="dib h2 w2"
18+
fill="currentColor"
19+
xmlns="http://www.w3.org/2000/svg"
20+
viewBox="0 0 16 16"
21+
fillRule="evenodd"
22+
clipRule="evenodd"
23+
strokeLinejoin="round"
24+
strokeMiterlimit="1.414"
25+
>
26+
<path d="M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17-.89-1.17-.725-.496.056-.486.056-.486.803.056 1.225.824 1.225.824.714 1.223 1.873.87 2.33.665.072-.517.278-.87.507-1.07-1.777-.2-3.644-.888-3.644-3.953 0-.873.31-1.587.823-2.147-.083-.202-.358-1.015.077-2.117 0 0 .672-.215 2.2.82.638-.178 1.323-.266 2.003-.27.68.004 1.364.092 2.003.27 1.527-1.035 2.198-.82 2.198-.82.437 1.102.163 1.915.08 2.117.513.56.823 1.274.823 2.147 0 3.073-1.87 3.75-3.653 3.947.287.246.543.735.543 1.48 0 1.07-.01 1.933-.01 2.195 0 .215.144.463.55.385C13.71 14.53 16 11.534 16 8c0-4.418-3.582-8-8-8" />
27+
</svg>
28+
<span className="f6 ml3 pr2">GitHub</span>
29+
</a>
30+
<a
31+
className="link white-60 bg-transparent hover-white inline-flex items-center ma2 tc br2 pa2"
32+
href={`http://twitter.com/share?text=I%20found%20${words}%20words%20in&url=${window.location.origin}&hashtags=dev,game`}
33+
title="Twitter"
34+
>
35+
<svg
36+
className="dib h2 w2"
37+
fill="currentColor"
38+
xmlns="http://www.w3.org/2000/svg"
39+
viewBox="0 0 16 16"
40+
fillRule="evenodd"
41+
clipRule="evenodd"
42+
strokeLinejoin="round"
43+
strokeMiterlimit="1.414"
44+
>
45+
<path d="M16 3.038c-.59.26-1.22.437-1.885.517.677-.407 1.198-1.05 1.443-1.816-.634.375-1.337.648-2.085.795-.598-.638-1.45-1.036-2.396-1.036-1.812 0-3.282 1.468-3.282 3.28 0 .258.03.51.085.75C5.152 5.39 2.733 4.084 1.114 2.1.83 2.583.67 3.147.67 3.75c0 1.14.58 2.143 1.46 2.732-.538-.017-1.045-.165-1.487-.41v.04c0 1.59 1.13 2.918 2.633 3.22-.276.074-.566.114-.865.114-.21 0-.416-.02-.617-.058.418 1.304 1.63 2.253 3.067 2.28-1.124.88-2.54 1.404-4.077 1.404-.265 0-.526-.015-.783-.045 1.453.93 3.178 1.474 5.032 1.474 6.038 0 9.34-5 9.34-9.338 0-.143-.004-.284-.01-.425.64-.463 1.198-1.04 1.638-1.7z" fillRule="nonzero" />
46+
</svg>
47+
<span className="f6 ml3 pr2">Twitter</span>
48+
</a>
49+
</div>
50+
</footer>
51+
);
52+
53+
Footer.propTypes = {
54+
words: PropTypes.number.isRequired,
55+
};
56+
57+
export default Footer;

0 commit comments

Comments
 (0)