aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-14 00:14:13 +0800
committerFabio Berger <me@fabioberger.com>2018-11-14 00:14:13 +0800
commit4a444591c11933a4dc2ee74b8eca1b4d7172362d (patch)
tree5e375f533cbfca34ace747024e521e0a5f430ae4 /packages/website/ts/components
parentc41622c20aea8ba89dc9899ff8b3ab6f22f53503 (diff)
downloaddexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.gz
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.bz2
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.lz
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.xz
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.tar.zst
dexon-0x-contracts-4a444591c11933a4dc2ee74b8eca1b4d7172362d.zip
Implement 0x launch kit landing page
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r--packages/website/ts/components/footer.tsx6
-rw-r--r--packages/website/ts/components/ui/container.tsx2
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/website/ts/components/footer.tsx b/packages/website/ts/components/footer.tsx
index dfedcba55..e10005a0a 100644
--- a/packages/website/ts/components/footer.tsx
+++ b/packages/website/ts/components/footer.tsx
@@ -23,6 +23,7 @@ const languageToMenuTitle = {
export interface FooterProps {
translate: Translate;
dispatcher: Dispatcher;
+ backgroundColor?: string;
}
interface FooterState {
@@ -30,6 +31,9 @@ interface FooterState {
}
export class Footer extends React.Component<FooterProps, FooterState> {
+ public static defaultProps = {
+ backgroundColor: colors.darkerGrey,
+ };
constructor(props: FooterProps) {
super(props);
this.state = {
@@ -112,7 +116,7 @@ export class Footer extends React.Component<FooterProps, FooterState> {
return <MenuItem key={menuTitle} value={language} primaryText={menuTitle} />;
});
return (
- <div className="relative pb4 pt2" style={{ backgroundColor: colors.darkerGrey }}>
+ <div className="relative pb4 pt2" style={{ backgroundColor: this.props.backgroundColor }}>
<div className="mx-auto max-width-4 md-px2 lg-px0 py4 clearfix" style={{ color: colors.white }}>
<div className="col lg-col-4 md-col-4 col-12 left">
<div className="sm-mx-auto" style={{ width: 148 }}>
diff --git a/packages/website/ts/components/ui/container.tsx b/packages/website/ts/components/ui/container.tsx
index ece077563..7eab2a50f 100644
--- a/packages/website/ts/components/ui/container.tsx
+++ b/packages/website/ts/components/ui/container.tsx
@@ -1,3 +1,4 @@
+import { TextAlignProperty } from 'csstype';
import * as React from 'react';
type StringOrNum = string | number;
@@ -26,6 +27,7 @@ export interface ContainerProps {
height?: StringOrNum;
minWidth?: StringOrNum;
minHeight?: StringOrNum;
+ textAlign?: TextAlignProperty;
isHidden?: boolean;
className?: string;
position?: 'absolute' | 'fixed' | 'relative' | 'unset';