From 4a2579db5053d4970b1942576c36f062a3426d97 Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Tue, 22 Mar 2022 15:48:57 +0100 Subject: [PATCH] Added Appbar, implemented MUI --- src/client/src/frontpage.js | 47 ++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/src/client/src/frontpage.js b/src/client/src/frontpage.js index 73e8726..2dbeb05 100644 --- a/src/client/src/frontpage.js +++ b/src/client/src/frontpage.js @@ -15,10 +15,12 @@ import CssBaseline from "@mui/material/CssBaseline"; import AppBar from "@mui/material/AppBar"; import Toolbar from "@mui/material/Toolbar"; import Typography from "@mui/material/Typography"; +import Grid from '@mui/material/Grid' +import Box from '@mui/material/Box' function CreateButton(props) { return ( - + @@ -28,7 +30,7 @@ function CreateButton(props) { function OverviewButton(props) { return ( - + @@ -39,9 +41,19 @@ function OverviewButton(props) { function ListElement(props) { return ( - {props.name}, {props.competitors} competitors, Date: {props.date} - - + + + + {props.name}, {props.competitors} competitors, Date: {props.date} + + + + + + + + + ); } @@ -50,28 +62,25 @@ function Home() { return ( - + - + This is an Appbar - - +
+ + + - + +
+
); }