aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-07 03:34:04 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-07 03:34:04 +0800
commitf90486c99c7acf95f3b95fdc73ee125dd3f9086e (patch)
treedced9c830f4fd4d654674cc6064176198193b000 /packages/instant/src/components
parenta2bc62b17a773625220817c79265c017cb61979f (diff)
downloaddexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar.gz
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar.bz2
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar.lz
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar.xz
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.tar.zst
dexon-sol-tools-f90486c99c7acf95f3b95fdc73ee125dd3f9086e.zip
wip: mediachoice experiment
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/sandbox.tsx22
-rw-r--r--packages/instant/src/components/zero_ex_instant_container.tsx2
2 files changed, 24 insertions, 0 deletions
diff --git a/packages/instant/src/components/sandbox.tsx b/packages/instant/src/components/sandbox.tsx
new file mode 100644
index 000000000..04e4c7935
--- /dev/null
+++ b/packages/instant/src/components/sandbox.tsx
@@ -0,0 +1,22 @@
+import * as React from 'react';
+
+import { MediaChoice, stylesForMedia } from '../style/media';
+import { styled } from '../style/theme';
+
+// export const Sandbox: React.StatelessComponent<{}> = props => {
+// return <div>Hi</div>;
+// };
+
+// TODO: handle string too
+interface SandboxProps {
+ width: MediaChoice;
+}
+export const Sandbox =
+ styled.div <
+ SandboxProps >
+ `
+ display: block;
+ border: 1px solid black;
+ background-color: yellow;
+ ${props => stylesForMedia(props.width)}
+ `;
diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx
index 88c838567..8fd4d56c3 100644
--- a/packages/instant/src/components/zero_ex_instant_container.tsx
+++ b/packages/instant/src/components/zero_ex_instant_container.tsx
@@ -12,6 +12,7 @@ import { ColorOption } from '../style/theme';
import { zIndex } from '../style/z_index';
import { SlideAnimationState } from './animations/slide_animation';
+import { Sandbox } from './sandbox';
import { SlidingPanel } from './sliding_panel';
import { Container, Flex } from './ui';
@@ -27,6 +28,7 @@ export class ZeroExInstantContainer extends React.Component<ZeroExInstantContain
public render(): React.ReactNode {
return (
<Container width="350px" smallWidth="100%" smallHeight="100%" position="relative">
+ <Sandbox width={{ sm: '10px' }}>Test</Sandbox>
<Container zIndex={zIndex.errorPopup} position="relative">
<LatestError />
</Container>