From 9b4aa07a79068dc1ae7eaf4b40a5d7f1a10f3a24 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 9 Apr 2020 18:19:07 +1000 Subject: [PATCH] Added footer and blank FAQ and About pages --- src/App.js | 8 ++++++++ src/components/Footer.js | 28 ++++++++++++++++++++++++++++ src/routes/About.js | 34 ++++++++++++++++++++++++++++++++++ src/routes/FAQ.js | 34 ++++++++++++++++++++++++++++++++++ src/routes/Home.js | 20 ++++++++++++++++---- src/routes/Join.js | 20 ++++++++++++++++---- src/theme.js | 19 ++++++++++++++++++- 7 files changed, 154 insertions(+), 9 deletions(-) create mode 100644 src/components/Footer.js create mode 100644 src/routes/About.js create mode 100644 src/routes/FAQ.js diff --git a/src/App.js b/src/App.js index a8264f2..ac1b803 100644 --- a/src/App.js +++ b/src/App.js @@ -6,12 +6,20 @@ import theme from "./theme.js"; import Home from "./routes/Home"; import Game from "./routes/Game"; import Join from "./routes/Join"; +import About from "./routes/About"; +import FAQ from "./routes/FAQ"; function App() { return ( + + + + + + diff --git a/src/components/Footer.js b/src/components/Footer.js new file mode 100644 index 0000000..5f9c5b7 --- /dev/null +++ b/src/components/Footer.js @@ -0,0 +1,28 @@ +import React from "react"; +import { Flex, Link } from "theme-ui"; + +function Footer() { + return ( + + + About + + + Home + + + FAQ + + + ); +} + +export default Footer; diff --git a/src/routes/About.js b/src/routes/About.js new file mode 100644 index 0000000..897e4c9 --- /dev/null +++ b/src/routes/About.js @@ -0,0 +1,34 @@ +import React from "react"; +import { Flex, Text } from "theme-ui"; + +import Footer from "../components/Footer"; + +function About() { + return ( + + + + About + + +