diff --git a/js/components/GroupStage.js b/js/components/GroupStage.js index d5da349..ffb7857 100644 --- a/js/components/GroupStage.js +++ b/js/components/GroupStage.js @@ -1,15 +1,36 @@ -import {Card, CardBody, Col, Row, Table} from 'reactstrap'; +import {Button, Card, CardBody, Col, Collapse, Row, Table} from 'reactstrap'; import {Match} from './Match'; -import React from 'react'; +import React, {Component} from 'react'; -export default function GroupStage(props) { - return (
-

Gruppenphase

- - {props.groups.map(group => )} - -
); +export default class GroupStage extends Component { + constructor(props) { + super(props); + this.state = {showMatches: this.props.showMatches}; + this.toggleShowMatches = this.toggleShowMatches.bind(this); + } + + toggleShowMatches() { + this.setState({showMatches: !this.state.showMatches}); + } + + render() { + return (
+

+ Gruppenphase + +

+ + {this.props.groups.map(group => )} + +
); + } +} + +function ShowMatchesToggleButton(props) { + return (); } function Group(props) { @@ -17,8 +38,10 @@ function Group(props) {

Gruppe {props.group.id + 1}

- {props.group.matches.map((match => ( - )))} + + {props.group.matches.map((match => ( + )))} +
diff --git a/pages/tournament.js b/pages/tournament.js index f87cd5f..fcffa8e 100644 --- a/pages/tournament.js +++ b/pages/tournament.js @@ -37,7 +37,8 @@ class PrivateTournamentPage extends React.Component {
{groupStage != null && -
} +
}
diff --git a/static/css/everypage.css b/static/css/everypage.css index 4943630..5c46239 100644 --- a/static/css/everypage.css +++ b/static/css/everypage.css @@ -7,6 +7,10 @@ font-family: Halt, sans-serif; } +.default-font-family { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; +} + .navbar-brand { font-family: Halt, sans-serif; font-size: 2em; @@ -67,4 +71,4 @@ footer { background: url("/static/images/tennis-blurred.jpg") no-repeat top; background-size: cover; min-height: 100vh; -} \ No newline at end of file +}