mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Working on landing
This commit is contained in:
parent
33d599b923
commit
3fbe60692e
@ -18,7 +18,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="main" class="container"></div>
|
||||
<div id="main"></div>
|
||||
<script src="<%= BASE_URL %>static/js/app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -8,6 +8,7 @@ import Router from 'react-router';
|
||||
import fetch from 'isomorphic-fetch';
|
||||
|
||||
import ApiUrls from './constants/api_urls';
|
||||
import constants from './constants/application_constants';
|
||||
import getRoutes from './routes';
|
||||
import requests from './utils/requests';
|
||||
|
||||
@ -40,7 +41,7 @@ class AppGateway {
|
||||
|
||||
loadSubdomain(data) {
|
||||
let settings = data.whitelabel;
|
||||
|
||||
constants.whitelabel = settings;
|
||||
this.load('prize');
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ let RouteHandler = Router.RouteHandler;
|
||||
let AscribeApp = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div className="container ascribe-default-app">
|
||||
<Header />
|
||||
<RouteHandler />
|
||||
<Footer />
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
import Footer from '../../footer';
|
||||
// import Footer from '../../footer';
|
||||
import GlobalNotification from '../../global_notification';
|
||||
|
||||
let RouteHandler = Router.RouteHandler;
|
||||
@ -11,9 +11,8 @@ let RouteHandler = Router.RouteHandler;
|
||||
let PrizeApp = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<div class="whitelabel-prize">
|
||||
<div className="whitelabel-prize">
|
||||
<RouteHandler />
|
||||
<Footer />
|
||||
<GlobalNotification />
|
||||
<div id="modal" className="container"></div>
|
||||
</div>
|
||||
|
@ -2,21 +2,31 @@
|
||||
|
||||
import React from 'react';
|
||||
import Router from 'react-router';
|
||||
import constants from '../../../../constants/application_constants';
|
||||
|
||||
let Link = Router.Link;
|
||||
import ButtonLink from 'react-router-bootstrap/lib/ButtonLink';
|
||||
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup';
|
||||
|
||||
|
||||
let Landing = React.createClass({
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div class="hero">
|
||||
Yay art prize!
|
||||
<div className="hero">
|
||||
<img className="logo" src={constants.whitelabel.logo} alt="Sluice Art Prize" />
|
||||
<h1>Sluice Art Prize 2015</h1>
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<Link to="login">Login</Link>
|
||||
<Link to="signup">Signup</Link>
|
||||
<div className="container">
|
||||
<ButtonGroup className="enter" bsSize="large" vertical block>
|
||||
<ButtonLink to="signup">
|
||||
Signup
|
||||
</ButtonLink>
|
||||
|
||||
<ButtonLink to="login">
|
||||
Login
|
||||
</ButtonLink>
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -10,7 +10,10 @@ let constants = {
|
||||
'serverUrl': window.SERVER_URL,
|
||||
'baseUrl': window.BASE_URL,
|
||||
'aclList': ['edit', 'consign', 'consign_request', 'unconsign', 'unconsign_request', 'transfer',
|
||||
'loan', 'loan_request', 'share', 'download', 'view', 'delete', 'del_from_collection', 'add_to_collection']
|
||||
'loan', 'loan_request', 'share', 'download', 'view', 'delete', 'del_from_collection', 'add_to_collection'],
|
||||
|
||||
// in case of whitelabel cusomization, we store stuff here
|
||||
'whitelabel': {}
|
||||
};
|
||||
|
||||
export default constants;
|
||||
|
5
sass/ascribe_app.scss
Normal file
5
sass/ascribe_app.scss
Normal file
@ -0,0 +1,5 @@
|
||||
.ascribe-default-app {
|
||||
background-color: #FDFDFD;
|
||||
border-radius: 0;
|
||||
padding-top: 70px;
|
||||
}
|
@ -11,6 +11,7 @@ $BASE_URL: '<%= BASE_URL %>';
|
||||
@import 'ascribe_theme';
|
||||
@import './ascribe-fonts/style';
|
||||
@import './ascribe-fonts/ascribe-fonts';
|
||||
@import 'ascribe_app';
|
||||
@import 'ascribe_login';
|
||||
@import 'ascribe_table';
|
||||
@import 'ascribe_accordion_list';
|
||||
@ -28,10 +29,11 @@ $BASE_URL: '<%= BASE_URL %>';
|
||||
@import 'ascribe_slides_container';
|
||||
@import 'ascribe_form';
|
||||
|
||||
body {
|
||||
background-color: #FDFDFD;
|
||||
border-radius: 0;
|
||||
margin-top: 70px;
|
||||
@import 'whitelabel/index';
|
||||
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html {
|
||||
@ -42,6 +44,10 @@ hr {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
#main {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
1
sass/whitelabel/index.scss
Normal file
1
sass/whitelabel/index.scss
Normal file
@ -0,0 +1 @@
|
||||
@import 'prize/index';
|
1
sass/whitelabel/prize/index.scss
Normal file
1
sass/whitelabel/prize/index.scss
Normal file
@ -0,0 +1 @@
|
||||
@import 'landing'
|
16
sass/whitelabel/prize/landing.scss
Normal file
16
sass/whitelabel/prize/landing.scss
Normal file
@ -0,0 +1,16 @@
|
||||
.whitelabel-prize {
|
||||
.hero {
|
||||
overflow: hidden;
|
||||
|
||||
.logo {
|
||||
float: left;
|
||||
padding-right: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.enter {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user