Skip to content

Commit 4a0fc6e

Browse files
committed
Add Footer
- Include app/project description - Include link to GitHub repository - Also add emojis to header
1 parent 3c405c1 commit 4a0fc6e

File tree

5 files changed

+57
-3
lines changed

5 files changed

+57
-3
lines changed

Diff for: public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Learn how to configure a non-root public URL by running `npm run build`.
2121
-->
2222
<title>Kopi Guru</title>
23-
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
23+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,800">
2424
</head>
2525
<body>
2626
<noscript>

Diff for: src/App.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { Component } from 'react';
22
import Body from './Body';
3+
import Footer from './Footer';
34

45
import styleClasses from './style/jss';
56

@@ -16,9 +17,15 @@ class App extends Component {
1617
return (
1718
<div className={styleClasses.app}>
1819
<header className={styleClasses.header}>
19-
<h1>Kopi Guru</h1>
20+
<h1>
21+
<span role="img" aria-label="coffee">
22+
23+
</span>{' '}
24+
Kopi Guru ☕
25+
</h1>
2026
</header>
2127
<Body />
28+
<Footer />
2229
</div>
2330
);
2431
}

Diff for: src/Footer.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// @flow
2+
3+
import React from 'react';
4+
5+
import styleClasses from './style/jss';
6+
7+
export default function() {
8+
return (
9+
<div className={styleClasses.footer}>
10+
<p>
11+
<strong>
12+
Kopi Guru: Demystifying kopitiam (coffeeshop) beverage ordering lingo
13+
| Order like a pro{' '}
14+
<span role="img" aria-label="fire">
15+
🔥
16+
</span>
17+
</strong>
18+
</p>
19+
<p>
20+
A project by Fabian Terh |{' '}
21+
<a
22+
className={styleClasses.anchor}
23+
href="https://github.com/fterh/kopi-guru"
24+
>
25+
GitHub
26+
</a>
27+
</p>
28+
</div>
29+
);
30+
}

Diff for: src/style/constants.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export default {};
1+
export default {
2+
lightBrown: '#CC6600',
3+
brown: '#663300'
4+
};

Diff for: src/style/jss/index.js

+14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import jss from 'jss';
22
import preset from 'jss-preset-default';
33

4+
import constants from './../constants';
5+
46
jss.setup(preset());
57

68
const styles = {
@@ -10,6 +12,18 @@ const styles = {
1012
},
1113
header: {
1214
textAlign: 'center'
15+
},
16+
footer: {
17+
color: constants.brown,
18+
fontSize: '0.9em',
19+
textAlign: 'center',
20+
lineHeight: '0.5em',
21+
'& a': {
22+
color: constants.brown,
23+
'&:hover': {
24+
color: constants.lightBrown
25+
}
26+
}
1327
}
1428
};
1529

0 commit comments

Comments
 (0)