Skip to content

Commit

Permalink
Add Footer
Browse files Browse the repository at this point in the history
- Include app/project description
- Include link to GitHub repository
- Also add emojis to header
  • Loading branch information
fterh committed Sep 1, 2018
1 parent 3c405c1 commit 4a0fc6e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Kopi Guru</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,800">
</head>
<body>
<noscript>
Expand Down
9 changes: 8 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import Body from './Body';
import Footer from './Footer';

import styleClasses from './style/jss';

Expand All @@ -16,9 +17,15 @@ class App extends Component {
return (
<div className={styleClasses.app}>
<header className={styleClasses.header}>
<h1>Kopi Guru</h1>
<h1>
<span role="img" aria-label="coffee">
</span>{' '}
Kopi Guru ☕
</h1>
</header>
<Body />
<Footer />
</div>
);
}
Expand Down
30 changes: 30 additions & 0 deletions src/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @flow

import React from 'react';

import styleClasses from './style/jss';

export default function() {
return (
<div className={styleClasses.footer}>
<p>
<strong>
Kopi Guru: Demystifying kopitiam (coffeeshop) beverage ordering lingo
| Order like a pro{' '}
<span role="img" aria-label="fire">
🔥
</span>
</strong>
</p>
<p>
A project by Fabian Terh |{' '}
<a
className={styleClasses.anchor}
href="https://github.com/fterh/kopi-guru"
>
GitHub
</a>
</p>
</div>
);
}
5 changes: 4 additions & 1 deletion src/style/constants.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export default {};
export default {
lightBrown: '#CC6600',
brown: '#663300'
};
14 changes: 14 additions & 0 deletions src/style/jss/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import jss from 'jss';
import preset from 'jss-preset-default';

import constants from './../constants';

jss.setup(preset());

const styles = {
Expand All @@ -10,6 +12,18 @@ const styles = {
},
header: {
textAlign: 'center'
},
footer: {
color: constants.brown,
fontSize: '0.9em',
textAlign: 'center',
lineHeight: '0.5em',
'& a': {
color: constants.brown,
'&:hover': {
color: constants.lightBrown
}
}
}
};

Expand Down

0 comments on commit 4a0fc6e

Please sign in to comment.