diff --git a/404.html b/404.html
index 5eea322..ac8090b 100644
--- a/404.html
+++ b/404.html
@@ -2,7 +2,7 @@
{tribe}
{list_creatures(tribe, "Creatures/"+tribe+"/")}
diff --git a/src/components/Category/Locations.js b/src/components/portal/Category/Locations.js
similarity index 100%
rename from src/components/Category/Locations.js
rename to src/components/portal/Category/Locations.js
diff --git a/src/components/Category/Mugic.js b/src/components/portal/Category/Mugic.js
similarity index 86%
rename from src/components/Category/Mugic.js
rename to src/components/portal/Category/Mugic.js
index 031aa20..8248d91 100644
--- a/src/components/Category/Mugic.js
+++ b/src/components/portal/Category/Mugic.js
@@ -1,10 +1,10 @@
import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router';
-import UnderConstruction from '../UnderConstruction';
-import PageNotFound from '../PageNotFound';
-import API from '../Spreadsheet';
-import s from '../../styles/app.style';
+import UnderConstruction from '../../UnderConstruction';
+import PageNotFound from '../../PageNotFound';
+import API from '../../Spreadsheet';
+import s from '../../../styles/app.style';
export default class Mugic extends React.Component {
@@ -34,8 +34,8 @@ export default class Mugic extends React.Component {
if (path[path.length-1] == "") path.pop(); // Remove trailing backslash
// ** Process the tribe ** //
- // /collection/Mugic/
- // /collection/{Tribe}/Mugic/
+ // /portal/Mugic/
+ // /portal/{Tribe}/Mugic/
// The first / gets counted
return (
diff --git a/src/components/Category/Tribes.js b/src/components/portal/Category/Tribes.js
similarity index 94%
rename from src/components/Category/Tribes.js
rename to src/components/portal/Category/Tribes.js
index 0ece25a..a1c93b1 100644
--- a/src/components/Category/Tribes.js
+++ b/src/components/portal/Category/Tribes.js
@@ -1,5 +1,5 @@
import React from 'react';
-import UnderConstruction from '../UnderConstruction';
+import UnderConstruction from '../../UnderConstruction';
// This module handles tribe pages and subpages
// Allows for urls such as
diff --git a/src/components/portal/Home.js b/src/components/portal/Home.js
new file mode 100644
index 0000000..d61e5f9
--- /dev/null
+++ b/src/components/portal/Home.js
@@ -0,0 +1,30 @@
+import React from 'react';
+import Interactive from 'react-interactive';
+import { Link } from 'react-router';
+import s from '../../styles/home.style';
+
+export default function PortalHome() {
+ return (
+
+ Creatures
+
+ Danian
+
+ Overworld
+
+ Underworld
+
+ Mipedian
+
+ );
+}
diff --git a/src/components/Single/Attack.js b/src/components/portal/Single/Attack.js
similarity index 100%
rename from src/components/Single/Attack.js
rename to src/components/portal/Single/Attack.js
diff --git a/src/components/Single/Battlegear.js b/src/components/portal/Single/Battlegear.js
similarity index 100%
rename from src/components/Single/Battlegear.js
rename to src/components/portal/Single/Battlegear.js
diff --git a/src/components/Single/Creature.js b/src/components/portal/Single/Creature.js
similarity index 89%
rename from src/components/Single/Creature.js
rename to src/components/portal/Single/Creature.js
index 7730d23..75fd4e2 100644
--- a/src/components/Single/Creature.js
+++ b/src/components/portal/Single/Creature.js
@@ -2,10 +2,10 @@ import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router';
// import {browserHistory} from 'react-router';
-import PageNotFound from '../PageNotFound';
-import UnderConstruction from '../UnderConstruction';
-import API from '../Spreadsheet';
-import s from '../../styles/app.style';
+import PageNotFound from '../../PageNotFound';
+import UnderConstruction from '../../UnderConstruction';
+import API from '../../Spreadsheet';
+import s from '../../../styles/app.style';
export default class SingleCreature extends React.Component {
@@ -23,8 +23,8 @@ export default class SingleCreature extends React.Component {
}
// ** Process the tribe ** //
- // /collection/Creatures/{Tribe}/{Name}
- // /collection/{Tribe}/Creatures/{Name}
+ // /portal/Creatures/{Tribe}/{Name}
+ // /portal/{Tribe}/Creatures/{Name}
// The first / gets counted
getData(props) {
let path = props.location.pathname.split("/");
@@ -91,15 +91,15 @@ export default class SingleCreature extends React.Component {
);
const elements = card_data.gsx$elements.$t.split(/[ ,]+/).map((item, i) => {
- return
+".png"})
;
+ return
+".png"})
;
});
const locations = creature.gsx$location.$t.split(/[,]+\s*/).map((item, i) => {
- return
{item}
;
+ return
{item}
;
});
const battlegear = creature.gsx$battlegear.$t.split(/[,]+\s*/).map((item, i) => {
- return
{item}
;
+ return
{item}
;
});
return(
@@ -164,7 +164,7 @@ export default class SingleCreature extends React.Component {
Tribe: {this.state.tribe}
-
+".png"})
+
diff --git a/src/components/Single/Location.js b/src/components/portal/Single/Location.js
similarity index 100%
rename from src/components/Single/Location.js
rename to src/components/portal/Single/Location.js
diff --git a/src/components/Single/Mugic.js b/src/components/portal/Single/Mugic.js
similarity index 100%
rename from src/components/Single/Mugic.js
rename to src/components/portal/Single/Mugic.js
diff --git a/src/index.js b/src/index.js
index 28d8094..2a55963 100644
--- a/src/index.js
+++ b/src/index.js
@@ -6,23 +6,44 @@ import App from './components/App';
import Home from './components/Home';
import PageNotFound from './components/PageNotFound';
import UnderConstruction from './components/UnderConstruction';
+import ExampleComponent from './components/ExampleComponent';
+import ExampleTwoDeepComponent from './components/ExampleTwoDeepComponent';
-// import Attacks from './component/Category/Attacks';
-// import Battlegear from './component/Category/Battlegear';
-import Creatures from './components/Category/Creatures';
-// import Locations from './component/Category/Locations';
-import Mugic from './components/Category/Mugic';
-import Tribes from './components/Category/Tribes';
-// import SingleAttack from './component/Category/Attacks';
-// import SingleBattlegear from './component/Category/Battlegear';
-import SingleCreature from './components/Single/Creature';
-// import SingleLocation from './component/Category/Locations';
-// import SingleMugic from './component/Category/Mugic';
+import CollectionHome from './components/collection/Home';
+
+import PortalHome from './components/portal/Home';
+// import Attacks from './components/portal/Category/Attacks';
+// import Battlegear from './components/portal/Category/Battlegear';
+import Creatures from './components/portal/Category/Creatures';
+// import Locations from './components/portal/Category/Locations';
+import Mugic from './components/portal/Category/Mugic';
+import Tribes from './components/portal/Category/Tribes';
+// import SingleAttack from './components/portal/Category/Attacks';
+// import SingleBattlegear from './components/portal/Category/Battlegear';
+import SingleCreature from './components/portal/Single/Creature';
+// import SingleLocation from './components/portal/Category/Locations';
+// import SingleMugic from './components/portal/Category/Mugic';
const routes = (
-
-
-
+
+
+
+ {/* Test */}
+
+
+
+
+ {/* Construction */}
+
+
+ {/* Collection */}
+
+
+
+
+ {/* Portal */}
+
+
{/* Attacks */}