diff --git a/src/App.js b/src/App.js index 9e93684..09fc5e3 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ import React from "react"; import { ThemeProvider } from "theme-ui"; -import { HashRouter as Router, Switch, Route } from "react-router-dom"; +import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import theme from "./theme.js"; import Home from "./routes/Home"; diff --git a/src/components/Footer.js b/src/components/Footer.js index 5f9c5b7..8ec1050 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -1,5 +1,7 @@ import React from "react"; -import { Flex, Link } from "theme-ui"; +import { Flex } from "theme-ui"; + +import Link from "./Link"; function Footer() { return ( @@ -12,13 +14,13 @@ function Footer() { justifyContent: "center", }} > - + About - + Home - + FAQ diff --git a/src/components/Link.js b/src/components/Link.js new file mode 100644 index 0000000..a94b5ce --- /dev/null +++ b/src/components/Link.js @@ -0,0 +1,13 @@ +import React from "react"; +import { Link as ThemeLink } from "theme-ui"; +import { Link as RouterLink } from "react-router-dom"; + +function Link({ to, ...rest }) { + return ( + + + + ); +} + +export default Link; diff --git a/src/components/StartStreamButton.js b/src/components/StartStreamButton.js index b2f8703..12e4b15 100644 --- a/src/components/StartStreamButton.js +++ b/src/components/StartStreamButton.js @@ -1,7 +1,9 @@ import React, { useState } from "react"; -import { IconButton, Box, Text, Link } from "theme-ui"; +import { IconButton, Box, Text } from "theme-ui"; import adapter from "webrtc-adapter"; +import Link from "../components/Link"; + import StartStreamModal from "../modals/StartStreamModal"; function StartStreamButton({ onStreamStart, onStreamEnd, stream }) { @@ -20,7 +22,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) { Browser not supported for audio sharing.

- See FAQ for more information. + See FAQ for more information. ); @@ -33,7 +35,7 @@ function StartStreamButton({ onStreamStart, onStreamEnd, stream }) { Ensure "Share audio" is selected when sharing.

- See FAQ for more information. + See FAQ for more information. ); diff --git a/src/routes/About.js b/src/routes/About.js index 0d86c94..790371a 100644 --- a/src/routes/About.js +++ b/src/routes/About.js @@ -1,5 +1,5 @@ import React from "react"; -import { Flex, Text, Link } from "theme-ui"; +import { Flex, Text, Link as ExternalLink } from "theme-ui"; import Footer from "../components/Footer"; @@ -37,17 +37,22 @@ function About() { Made by two people in Melbourne, Australia.{" "} - Mitch and{" "} - Nicola were looking - for an easy way to continue their d{"&"}d campaign as in-person - interaction becomes harder during the COVID-19 crisis. + Mitch{" "} + and{" "} + + Nicola + {" "} + were looking for an easy way to continue their d{"&"}d campaign as + in-person interaction becomes harder during the COVID-19 crisis. Contact For questions or feedback email{" "} - contact@owlbear.rodeo + + contact@owlbear.rodeo +