mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 09:35:10 +01:00
styling
This commit is contained in:
parent
5ef63fbba3
commit
ff64734545
@ -41,7 +41,7 @@ class AppGateway {
|
|||||||
try {
|
try {
|
||||||
settings = getSubdomainSettings(subdomain);
|
settings = getSubdomainSettings(subdomain);
|
||||||
appConstants.whitelabel = settings;
|
appConstants.whitelabel = settings;
|
||||||
this.load('prize');
|
this.load(settings.type);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
// if there are no matching subdomains, we're routing
|
// if there are no matching subdomains, we're routing
|
||||||
// to the default frontend
|
// to the default frontend
|
||||||
|
@ -20,7 +20,7 @@ let PrizeApp = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="whitelabel-prize">
|
<div className="wp">
|
||||||
<Hero />
|
<Hero />
|
||||||
{header}
|
{header}
|
||||||
<RouteHandler />
|
<RouteHandler />
|
||||||
|
@ -8,7 +8,10 @@ let Hero = React.createClass({
|
|||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="hero">
|
<div className="hero">
|
||||||
<img className="logo" src={constants.whitelabel.logo} alt="Sluice Art Prize" />
|
<img
|
||||||
|
className="logo" src={constants.whitelabel.logo}
|
||||||
|
alt="Sluice Art Prize"
|
||||||
|
height="300px"/>
|
||||||
<h1>Sluice Art Prize 2015</h1>
|
<h1>Sluice Art Prize 2015</h1>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -11,8 +11,10 @@ let Link = Router.Link;
|
|||||||
let Landing = React.createClass({
|
let Landing = React.createClass({
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
|
||||||
<div className="container">
|
<div className="container">
|
||||||
|
<div className="row">
|
||||||
|
<div className="col-xs-12 wp-landing-wrapper">
|
||||||
|
<p></p>
|
||||||
<ButtonGroup className="enter" bsSize="large" vertical block>
|
<ButtonGroup className="enter" bsSize="large" vertical block>
|
||||||
<ButtonLink to="signup">
|
<ButtonLink to="signup">
|
||||||
Signup to the prize
|
Signup to the prize
|
||||||
@ -22,6 +24,7 @@ let Landing = React.createClass({
|
|||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -18,28 +18,32 @@ let constants = {
|
|||||||
'subdomain': 'cc',
|
'subdomain': 'cc',
|
||||||
'name': 'Creative Commons France',
|
'name': 'Creative Commons France',
|
||||||
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
|
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
|
||||||
'permissions': ['register', 'edit', 'share', 'del_from_collection']
|
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
|
||||||
|
'type': 'wallet'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'user': 22,
|
'user': 22,
|
||||||
'subdomain': 'cc-staging',
|
'subdomain': 'cc-staging',
|
||||||
'name': 'Creative Commons France',
|
'name': 'Creative Commons France',
|
||||||
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
|
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/public/creativecommons/cc.logo.sm.png',
|
||||||
'permissions': ['register', 'edit', 'share', 'del_from_collection']
|
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
|
||||||
|
'type': 'wallet'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'user': 1,
|
'user': 1,
|
||||||
'subdomain': 'sluice',
|
'subdomain': 'sluice',
|
||||||
'name': 'Sluice Art Fair',
|
'name': 'Sluice Art Fair',
|
||||||
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg',
|
'logo': 'http://sluice.info/images/logo.gif',
|
||||||
'permissions': ['register', 'edit', 'share', 'del_from_collection']
|
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
|
||||||
|
'type': 'prize'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'user': 1,
|
'user': 1,
|
||||||
'subdomain': 'sluice-staging',
|
'subdomain': 'sluice-staging',
|
||||||
'name': 'Sluice Art Fair',
|
'name': 'Sluice Art Fair',
|
||||||
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg',
|
'logo': 'https://s3-us-west-2.amazonaws.com/ascribe0/whitelabel/sluice/logo.jpeg',
|
||||||
'permissions': ['register', 'edit', 'share', 'del_from_collection']
|
'permissions': ['register', 'edit', 'share', 'del_from_collection'],
|
||||||
|
'type': 'prize'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ const COMMON_ROUTES = (
|
|||||||
|
|
||||||
function getRoutes(type) {
|
function getRoutes(type) {
|
||||||
let routes = null;
|
let routes = null;
|
||||||
console.log(type)
|
|
||||||
if (type === 'prize') {
|
if (type === 'prize') {
|
||||||
routes = getPrizeRoutes(COMMON_ROUTES);
|
routes = getPrizeRoutes(COMMON_ROUTES);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
.whitelabel-prize {
|
.wp {
|
||||||
.hero {
|
background-color: #CCC;
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> .hero {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
text-align: center;
|
||||||
.logo {
|
|
||||||
float: left;
|
|
||||||
padding-right: 2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.enter {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-landing-wrapper {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user