diff --git a/src/Base.js b/src/components/Base.js similarity index 85% rename from src/Base.js rename to src/components/Base.js index 19aaefc..2811ed3 100644 --- a/src/Base.js +++ b/src/components/Base.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import Interactive from 'react-interactive'; import { Link } from 'react-router'; -import s from './styles/app.style'; +import s from '../styles/app.style'; const language = "ENG"; const bkgrnd = "05"; @@ -13,32 +13,6 @@ const propTypes = { }; function App({ children, routes }) { - function generateMapMenu() { - let path = ''; - - function nextPath(route) { - path += ( - (path.slice(-1) === '/' ? '' : '/') + - (route.path === '/' ? '' : route.path) - ); - return path; - } - - return ( - routes.filter(route => route.mapMenuTitle) - .map((route, index, array) => ( - - {route.mapMenuTitle} - {(index + 1) < array.length && ' / '} - - )) - ); - } - return (
@@ -63,7 +37,7 @@ function App({ children, routes }) {
  • @@ -92,13 +66,6 @@ function App({ children, routes }) {
    - {/* -
    -

    Single Page Apps for GitHub Pages

    - */} - {children}
    diff --git a/src/components/Home.js b/src/components/Home.js index a871832..0bd595c 100644 --- a/src/components/Home.js +++ b/src/components/Home.js @@ -6,19 +6,12 @@ import s from '../styles/home.style'; function Home() { return (
    -
    - Example page -
    -
    - Example two deep with query and hash + +
    + Welcome to the Chaotic Backup Project.
    + Built by fans for fans.

    +
    + Made with by Danude Sandstorm
    ); diff --git a/src/components/ExampleComponent.js b/src/components/example/ExampleComponent.js similarity index 94% rename from src/components/ExampleComponent.js rename to src/components/example/ExampleComponent.js index 042119a..a31a3b6 100644 --- a/src/components/ExampleComponent.js +++ b/src/components/example/ExampleComponent.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import Interactive from 'react-interactive'; import { Link } from 'react-router'; -import s from '../styles/exampleComponent.style'; +import s from '../../styles/exampleComponent.style'; const propTypes = { children: PropTypes.element, diff --git a/src/components/ExampleTwoDeepComponent.js b/src/components/example/ExampleTwoDeepComponent.js similarity index 97% rename from src/components/ExampleTwoDeepComponent.js rename to src/components/example/ExampleTwoDeepComponent.js index 379cf17..312effb 100644 --- a/src/components/ExampleTwoDeepComponent.js +++ b/src/components/example/ExampleTwoDeepComponent.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import Interactive from 'react-interactive'; import { Link } from 'react-router'; -import s from '../styles/exampleTwoDeepComponent.style'; +import s from '../../styles/exampleTwoDeepComponent.style'; const propTypes = { location: PropTypes.object.isRequired, diff --git a/src/components/example/Home.js b/src/components/example/Home.js new file mode 100644 index 0000000..00e43f6 --- /dev/null +++ b/src/components/example/Home.js @@ -0,0 +1,27 @@ +import React from 'react'; +import Interactive from 'react-interactive'; +import { Link } from 'react-router'; +import s from '../../styles/home.style'; + +function ExampleHome() { + return ( +
    +
    + Example page +
    +
    + Example two deep with query and hash +
    +
    + ); +} + +export default ExampleHome; diff --git a/src/components/portal/Base.js b/src/components/portal/Base.js new file mode 100644 index 0000000..071739b --- /dev/null +++ b/src/components/portal/Base.js @@ -0,0 +1,52 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import Interactive from 'react-interactive'; +import { Link } from 'react-router'; +import s from '../../styles/app.style'; + +const propTypes = { + children: PropTypes.element.isRequired, + routes: PropTypes.array.isRequired, +}; + +function PortalBase({ children, routes }) { + + function generateMapMenu() { + let path = ''; + + function nextPath(route) { + path += ( + (path.slice(-1) === '/' ? '' : '/') + + (route.path === '/' ? '' : route.path) + ); + return path; + } + + return ( + routes.filter(route => route.mapMenuTitle) + .map((route, index, array) => ( + + {route.mapMenuTitle} + {(index + 1) < array.length && ' / '} + + )) + ); + } + + return ( +
    + + {children} +
    + ); +} + +PortalBase.propTypes = propTypes; + +export default PortalBase; diff --git a/src/css/legacy.css b/src/css/legacy.css index a354fd3..acf1191 100644 --- a/src/css/legacy.css +++ b/src/css/legacy.css @@ -56,7 +56,7 @@ /*------------------------------------------------------*/ .legacy p, .legacy div, .legacy li { font-family:Arial, Helvetica, sans-serif; - font-size: 10px; line-height: 14px; color: #FFFFFF; + font-size: 12px; line-height: 16px; color: #FFFFFF; } .content-wrap { @@ -328,6 +328,10 @@ /*-------------- Footer --------------*/ /*------------------------------------------------------*/ +.footer-wrap p, .footer-wrap div, .footer-wrap li { + font-size: 10px !important; + line-height: 14px !important; +} .footer-wrap { max-width: 943px; height:54px; margin: 0 auto; diff --git a/src/css/with_love.css b/src/css/with_love.css new file mode 100644 index 0000000..c6aabf5 --- /dev/null +++ b/src/css/with_love.css @@ -0,0 +1,32 @@ +@-webkit-keyframes love { + to { -webkit-transform: scale(1.1); } +} + +@-moz-keyframes love { + to { -moz-transform: scale(1.1); } +} + +@keyframes love { + to { transform: scale(1.1); } +} + +.with-love { + color: #333; + /*display: inline-block;*/ +} + +.with-love .heart { + font-size: 1.4em; + color: #ff79c6; + -webkit-transform: scale(.9); + -moz-transform: scale(.9); + transform: scale(.9); + -webkit-animation: love .5s infinite linear alternate-reverse; + -moz-animation: love .5s infinite linear alternate-reverse; + animation: love .5s infinite linear alternate-reverse; +} + +a { + text-decoration: none; + border-bottom: 1px dotted; +} diff --git a/src/index.js b/src/index.js index 178794a..799779d 100644 --- a/src/index.js +++ b/src/index.js @@ -3,7 +3,7 @@ import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; /* Common Components */ -import App from './Base'; +import App from './components/Base'; import PageNotFound from './components/PageNotFound'; import UnderConstruction from './components/UnderConstruction'; @@ -12,16 +12,15 @@ import Home from './components/Home'; import EnterTheCode from './components/account/EnterTheCode'; /* Test Components */ -import ExampleComponent from './components/ExampleComponent'; -import ExampleTwoDeepComponent from './components/ExampleTwoDeepComponent'; - -/* SpreadsheetData */ -import API from './components/SpreadsheetData'; +import ExampleHome from './components/example/Home'; +import ExampleComponent from './components/example/ExampleComponent'; +import ExampleTwoDeepComponent from './components/example/ExampleTwoDeepComponent'; /* Collection */ import CollectionHome from './components/collection/Home'; /* Portal */ +import PortalBase from './components/portal/Base'; import PortalHome from './components/portal/Home'; import Attacks from './components/portal/Category/Attacks'; import SingleAttack from './components/portal/Category/Attacks'; @@ -37,7 +36,7 @@ import Tribes from './components/portal/Category/Tribes'; const routes = ( - + {/* Test */} @@ -59,7 +58,7 @@ const routes = ( {/* Portal */} - + {/* Attacks */}