Skip to content

Commit

Permalink
Styling: Add footer, favicon, and minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Gorka committed Jul 5, 2020
1 parent 9c0270e commit 8e345bb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 10 deletions.
Binary file added frontend/dist/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 10 additions & 7 deletions frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@

<!DOCTYPE html>
<head>
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>
</head>
<html>
<head>
<title>Roll - Your Favorite Dice Roller</title>
<meta name="description" content="Dice roller for D&D and other RPG adventures.">
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>
<link rel="icon" type="image/png" href="/favicon.png"/>
</head>
<body>
<div id="roll"></div>
<script type="text/javascript" src="dist/js/main.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions frontend/js/components/Footer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import { Box, Link } from "@material-ui/core";

const Footer = () => (
<Box textAlign="center" fontSize={"10px"} color="#606060" mt={6}>
Created and maintained by{" "}
<Link
target="_blank"
rel="noopener"
rel="noreferrer"
href="https://github.com/atribed/"
>
@atribed
</Link>
.
</Box>
);

export default Footer;
6 changes: 3 additions & 3 deletions frontend/js/components/Results.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const Results = ({ dice }) => {
{dice.map(
(d) =>
d.result && (
<Box
display="flex"
alignItems="center"
<Box
display="flex"
alignItems="center"
key={d.sides}
minWidth="50px"
>
Expand Down
2 changes: 2 additions & 0 deletions frontend/js/components/Roller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { enableShake, roll } from "../utils";
import DiceSelect from "./DiceSelect";
import Results from "./Results";
import Staging from "./Staging";
import Footer from "./Footer";

const Roller = () => {
const [selectedDice, setSelectedDice] = useState([]);
Expand Down Expand Up @@ -63,6 +64,7 @@ const Roller = () => {
Enable Shake to Roll
</Button>
</Box>
<Footer />
</Container>
);
};
Expand Down

1 comment on commit 8e345bb

@vercel
Copy link

@vercel vercel bot commented on 8e345bb Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.