diff --git a/js/CommonComponents.js b/js/CommonComponents.js
new file mode 100644
index 0000000..f562bb3
--- /dev/null
+++ b/js/CommonComponents.js
@@ -0,0 +1,96 @@
+
+import {
+ Badge,
+ ButtonGroup,
+ Button,
+ Collapse,
+ Nav,
+ Navbar,
+ NavbarBrand,
+ NavbarToggler,
+ NavItem,
+ NavLink
+} from 'reactstrap';
+
+export function BigImage(props) {
+ return (
+
+
{props.text}
+
+ );
+}
+
+export class TurniereNavigation extends React.Component {
+
+ constructor(props) {
+ super(props);
+
+ this.toggle = this.toggle.bind(this);
+ this.state = {
+ collapsed: true
+ };
+ }
+
+ toggle() {
+ this.setState({
+ collapsed: !this.state.collapsed
+ });
+ }
+
+ render() {
+ return (
+
+ turnie.re
+
+
+
+
+
+
+
+ );
+ }
+}
+
+function Navlink(props) {
+ return (
+
+ {props.text}
+
+ );
+}
+
+function Betabadge() {
+ return (BETA);
+}
+
+function LoginLogoutButtons() {
+ return (
+
+
+
+
+ );
+}
+
+export function Footer() {
+ return (
+
+ );
+}
diff --git a/pages/index.js b/pages/index.js
index 406555e..f57e62b 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -17,6 +17,14 @@ import {
CardBody
} from 'reactstrap';
+import 'bootstrap/dist/css/bootstrap.min.css';
+
+import {
+ BigImage,
+ Footer,
+ TurniereNavigation
+} from '../js/CommonComponents.js'
+
import '../static/everypage.css'
import '../static/css/index.css'
@@ -31,89 +39,6 @@ const Index = (props) => {
);
};
-function Footer() {
- return (
-
- );
-}
-
-function BigImage(props) {
- return (
-
-
{props.text}
-
- );
-}
-
-class TurniereNavigation extends React.Component {
-
- constructor(props) {
- super(props);
-
- this.toggle = this.toggle.bind(this);
- this.state = {
- collapsed: true
- };
- }
-
- toggle() {
- this.setState({
- collapsed: !this.state.collapsed
- });
- }
-
- render() {
- return (
-
- turnie.re
-
-
-
-
-
-
-
- );
- }
-}
-
-function Navlink(props) {
- return (
-
- {props.text}
-
- );
-}
-
-function Betabadge() {
- return (BETA);
-}
-
-function LoginLogoutButtons() {
- return (
-
-
-
-
- );
-}
-
function Main() {
return (