Basic onboarding flow infrastructure set up

This commit is contained in:
fragosti
2018-05-22 10:15:58 -07:00
parent de1ff52de3
commit 7af77d3eb0
17 changed files with 350 additions and 38 deletions

View File

@@ -0,0 +1,16 @@
import * as React from 'react';
interface ContainerProps {
marginTop?: string | number;
marginBottom?: string | number;
marginRight?: string | number;
marginLeft?: string | number;
children?: React.ReactNode;
}
export const Container: React.StatelessComponent<ContainerProps> = (props: ContainerProps) => {
const { children, ...style } = props;
return <div style={style}>{children}</div>;
};
Container.displayName = 'Container';

View File

@@ -0,0 +1,33 @@
import * as React from 'react';
import { Styleable } from 'ts/types';
import { colors } from 'ts/utils/colors';
export interface IslandProps {
style?: React.CSSProperties;
children?: React.ReactNode;
className?: string;
Component?: string | React.ComponentClass<any> | React.StatelessComponent<any>;
}
const defaultStyle: React.CSSProperties = {
backgroundColor: colors.white,
borderBottomRightRadius: 10,
borderBottomLeftRadius: 10,
borderTopRightRadius: 10,
borderTopLeftRadius: 10,
boxShadow: `0px 4px 6px ${colors.walletBoxShadow}`,
overflow: 'hidden',
};
export const Island: React.StatelessComponent<IslandProps> = (props: IslandProps) => (
<props.Component style={{...defaultStyle, ...props.style}} className={props.className}>
{props.children}
</props.Component>
);
Island.defaultProps = {
Component: 'div',
style: {},
};
Island.displayName = 'Island';