diff --git a/src/client/src/components/home_image.js b/src/client/src/components/homeimage.js similarity index 86% rename from src/client/src/components/home_image.js rename to src/client/src/components/homeimage.js index 144c7df..8d251ee 100644 --- a/src/client/src/components/home_image.js +++ b/src/client/src/components/homeimage.js @@ -2,7 +2,7 @@ import * as React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; import logo from "./../Asura2222.png"; -export default function Home_Image() { +export default function HomeImage() { return ( Tournament logo diff --git a/src/client/src/components/manage_button.js b/src/client/src/components/managebutton.js similarity index 70% rename from src/client/src/components/manage_button.js rename to src/client/src/components/managebutton.js index 8039a50..4bc43bb 100644 --- a/src/client/src/components/manage_button.js +++ b/src/client/src/components/managebutton.js @@ -1,9 +1,9 @@ import React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -export default function Manage_Button(props) { +export default function ManageButton(props) { return ( - ); diff --git a/src/client/src/components/overview_button.js b/src/client/src/components/overviewbutton.js similarity index 68% rename from src/client/src/components/overview_button.js rename to src/client/src/components/overviewbutton.js index 0c64b32..15f87fb 100644 --- a/src/client/src/components/overview_button.js +++ b/src/client/src/components/overviewbutton.js @@ -1,9 +1,9 @@ import React from "react"; import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -export default function Overview_Button(props) { +export default function OverviewButton(props) { return ( - ); diff --git a/src/client/src/components/save_button.js b/src/client/src/components/save_button.js deleted file mode 100644 index 43b93a7..0000000 --- a/src/client/src/components/save_button.js +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; - -export default function Save_Button(props) { - return ( - - - - ); - } \ No newline at end of file diff --git a/src/client/src/components/savebutton.js b/src/client/src/components/savebutton.js new file mode 100644 index 0000000..c38f689 --- /dev/null +++ b/src/client/src/components/savebutton.js @@ -0,0 +1,10 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; + +export default function SaveButton(props) { + return ( + + + + ); +} diff --git a/src/client/src/create_tournament.js b/src/client/src/create_tournament.js deleted file mode 100644 index 7f4ad89..0000000 --- a/src/client/src/create_tournament.js +++ /dev/null @@ -1,43 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import Save_Button from "./components/save_button"; -import Home_Image from "./components/home_image"; - -function Format_Selector(props) { - return ( -
- -
- ); -} - -function Create_Form(props) { - return ( -
-
-
-
-
-
-
-
-
-
-
-
- ) -} - -export default function Create_Tournament(props) { - return ( - - - - - - - ); -} diff --git a/src/client/src/createtournament.js b/src/client/src/createtournament.js new file mode 100644 index 0000000..f496a25 --- /dev/null +++ b/src/client/src/createtournament.js @@ -0,0 +1,55 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; +import SaveButton from "./components/savebutton"; +import HomeImage from "./components/homeimage"; + +function FormatSelector(props) { + return ( +
+ +
+ ); +} + +function CreateForm(props) { + return ( + +
+ + +
+ + +
+ + +
+ + +
+ + + +
+
+
+ ); +} + +export default function CreateTournament(props) { + return ( + + + + + + + ); +} diff --git a/src/client/src/front_page.js b/src/client/src/front_page.js deleted file mode 100644 index e99fffc..0000000 --- a/src/client/src/front_page.js +++ /dev/null @@ -1,73 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import Manage_Button from "./components/manage_button"; -import Create_Tournament from "./create_tournament.js"; -import Tournament_Overview from "./tournament_overview.js"; -import Tournament_Manager from "./manage_tournament.js"; -import Home_Image from "./components/home_image"; - -import 'bootstrap/dist/css/bootstrap.min.css' -import Button from 'react-boostrap/Button' -import Container from 'react-boostrap/Container' -import Card from 'react-boostrap/Card' - -function Create_Button(props) { - return ( - - ); -} - -function Overview_Button(props) { - return ( - - ); -} - -function ListElement(props) { - return ( - - -
- {props.name}, {props.competitors} competitors, Date: {props.date} -
- - -
-
- ); -} - -function Home() { - return ( - - - - - - - - - - ); -} - -export default function App() { - return ( - - - } /> - } /> - } /> - } /> - - - ); -} diff --git a/src/client/src/frontpage.js b/src/client/src/frontpage.js new file mode 100644 index 0000000..14fc92b --- /dev/null +++ b/src/client/src/frontpage.js @@ -0,0 +1,79 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; +import ManageButton from "./components/managebutton"; +import CreateTournament from "./createtournament.js"; +import TournamentOverview from "./tournamentoverview.js"; +import TournamentManager from "./managetournament.js"; +import HomeImage from "./components/homeimage"; + +import "bootstrap/dist/css/bootstrap.min.css"; +import Button from "react-bootstrap/Button"; +import Container from "react-bootstrap/Container"; +import Card from "react-bootstrap/Card"; +import Row from "react-bootstrap/Row"; +import Col from "react-bootstrap/Col"; + +function CreateButton(props) { + return ( + + + + ); +} + +function OverviewButton(props) { + return ( + + ); +} + +function ListElement(props) { + return ( + + + + {props.name}, {props.competitors} competitors, Date: {props.date} + + + + + + + + + + ); +} + +function Home() { + return ( + + + + + + + + + + ); +} + +export default function App() { + return ( + + + } /> + } /> + } /> + } /> + + + ); +} diff --git a/src/client/src/index.js b/src/client/src/index.js index 2f72208..4e90d2d 100644 --- a/src/client/src/index.js +++ b/src/client/src/index.js @@ -1,7 +1,7 @@ import React from "react"; import ReactDOM from "react-dom"; import "./index.css"; -import App from "./front_page.js"; +import App from "./frontpage.js"; ReactDOM.render( diff --git a/src/client/src/manage_tournament.js b/src/client/src/manage_tournament.js deleted file mode 100644 index 45ee2e3..0000000 --- a/src/client/src/manage_tournament.js +++ /dev/null @@ -1,33 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import Home_Image from "./components/home_image"; - -function Manage_Tournament(props) { - return ( -
- - - - -
- ) -} - - -export default function Tournament_Manager() { - return ( - - - - - - ); -} diff --git a/src/client/src/managetournament.js b/src/client/src/managetournament.js new file mode 100644 index 0000000..395d742 --- /dev/null +++ b/src/client/src/managetournament.js @@ -0,0 +1,42 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; +import HomeImage from "./components/homeimage"; +import SaveButton from "./components/savebutton"; + +function ManageTournament(props) { + return ( + +
+ + +
+ + +
+ + +
+ + + +
+
+
+ +
+ ); +} + +export default function TournamentManager() { + return ( + + + + + + ); +} diff --git a/src/client/src/tournament_overview.js b/src/client/src/tournament_overview.js deleted file mode 100644 index aed295b..0000000 --- a/src/client/src/tournament_overview.js +++ /dev/null @@ -1,7 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; -import Home_Image from "./components/home_image"; - -export default function Tournament_Overview(props) { - return ; -} diff --git a/src/client/src/tournamentoverview.js b/src/client/src/tournamentoverview.js new file mode 100644 index 0000000..5409b1c --- /dev/null +++ b/src/client/src/tournamentoverview.js @@ -0,0 +1,7 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes } from "react-router-dom"; +import HomeImage from "./components/homeimage"; + +export default function TournamentOverview(props) { + return ; +}