From 754b7e8c9645d69599894833c30e0b6748474d01 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 19 Jan 2018 21:45:35 -0500 Subject: [PATCH] #5 more routes updated --- src/components/Base.js | 122 ---------------------------------- src/components/Home.js | 4 +- src/components/Routing.js | 19 ++++++ src/components/index.js | 136 ++++++++++++++++++++++++++++++++------ 4 files changed, 136 insertions(+), 145 deletions(-) delete mode 100644 src/components/Base.js create mode 100644 src/components/Routing.js diff --git a/src/components/Base.js b/src/components/Base.js deleted file mode 100644 index ee072e0..0000000 --- a/src/components/Base.js +++ /dev/null @@ -1,122 +0,0 @@ -import React from 'react'; -import Interactive from 'react-interactive'; -import { Link } from 'react-router-dom'; -import s from '../styles/app.style'; -import {Children} from './index'; - -const language = "ENG"; -const bkgrnd = "05"; - -export default function Base(props) { - - const children = ; - - return ( -
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {children} -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ©2008 Chaotic USA Entertainment Group, Inc. -
- U.S. Pat 5810666 and 5954332 and other pending patent applications. All Rights Reserved. -
-
- -
-
-
-
-
-
-
-
-
-
- ); -} diff --git a/src/components/Home.js b/src/components/Home.js index 32525a1..d304b16 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -3,7 +3,7 @@ import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import s from '../styles/home.style'; -function Home() { +export default function Home() { return (
@@ -21,5 +21,3 @@ function Home() {
); } - -export default Home; diff --git a/src/components/Routing.js b/src/components/Routing.js new file mode 100644 index 0000000..10ffa75 --- /dev/null +++ b/src/components/Routing.js @@ -0,0 +1,19 @@ +import React from 'react'; +import { Route } from 'react-router-dom'; + +import {PageNotFound, UnderConstruction} from './Snippets'; +import Home from './Home'; +import EnterTheCode from './account/EnterTheCode'; + +export function Routing(props) { + console.log(props); + const match = props.match; + return ( +
+ + + + +
+ ); +} diff --git a/src/components/index.js b/src/components/index.js index b6b8774..de33128 100644 --- a/src/components/index.js +++ b/src/components/index.js @@ -1,37 +1,133 @@ import React from 'react'; import { render } from 'react-dom'; +import { Link } from 'react-router-dom'; import { BrowserRouter as Router, Route } from 'react-router-dom'; -/* Common Components */ -import Base from './Base'; -import {PageNotFound, UnderConstruction} from './Snippets'; +import s from '../styles/app.style'; +import {Routing} from './Routing'; -/* Home Component */ -import Home from './Home'; -import EnterTheCode from './account/EnterTheCode'; +const language = "ENG"; +const bkgrnd = "05"; render( - - - ,document.getElementById('root'), -); - -function App() { - return (
- ); -} + + , document.getElementById('root'), +); + +function Base(props) { + + const children = ; -export function Children(props) { - console.log(props); - const match = props.match; return (
- - +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {children} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ©2008 Chaotic USA Entertainment Group, Inc. +
+ U.S. Pat 5810666 and 5954332 and other pending patent applications. All Rights Reserved. +
+
+ +
+
+
+
+
+
+
+
+
); }