summaryrefslogtreecommitdiff
path: root/client/src/Header/Header.tsx
diff options
context:
space:
mode:
authorSOGYO\bvdoord <bvdoord@sogyo.nl>2021-01-26 11:22:58 +0100
committerSOGYO\bvdoord <bvdoord@sogyo.nl>2021-01-26 11:22:58 +0100
commitf382ec567e1292cedee7c01e721ddc38bdc4dc4e (patch)
tree3012b3343d24c4d52f4370ca1f2efc4c78dbd84f /client/src/Header/Header.tsx
parent9fb9913bc5ccc49d738481fa71c5ba75c43ed532 (diff)
Front-end met Snowpack toegevoegd
Diffstat (limited to 'client/src/Header/Header.tsx')
-rw-r--r--client/src/Header/Header.tsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/src/Header/Header.tsx b/client/src/Header/Header.tsx
new file mode 100644
index 0000000..9f96d0c
--- /dev/null
+++ b/client/src/Header/Header.tsx
@@ -0,0 +1,20 @@
+import React from "react";
+import { Link } from "react-router-dom";
+import "./Header.css";
+import urlLogo from "./logo.jpg";
+
+/**
+ * A Header component with a Sogyo logo, the name of the application and several links to different pages
+ */
+export function Header() {
+ return <header className="main-header">
+ <div>
+ <img src={urlLogo} />
+ Mancala
+ </div>
+ <div className="main-navigation">
+ <Link to="/">Play</Link>
+ <Link to="/about">About</Link>
+ </div>
+ </header>
+} \ No newline at end of file