WIP Adds infinite scroll image on instant page
This commit is contained in:
		@@ -9,6 +9,7 @@ interface BaseTextInterface extends PaddingInterface {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
interface HeadingProps extends BaseTextInterface {
 | 
					interface HeadingProps extends BaseTextInterface {
 | 
				
			||||||
    asElement?: 'h1'| 'h2'| 'h3'| 'h4';
 | 
					    asElement?: 'h1'| 'h2'| 'h3'| 'h4';
 | 
				
			||||||
 | 
					    maxWidth?: string;
 | 
				
			||||||
    isCentered?: boolean;
 | 
					    isCentered?: boolean;
 | 
				
			||||||
    isNoMargin?: boolean;
 | 
					    isNoMargin?: boolean;
 | 
				
			||||||
    isMuted?: boolean | number;
 | 
					    isMuted?: boolean | number;
 | 
				
			||||||
@@ -23,6 +24,7 @@ interface ParagraphProps extends BaseTextInterface {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const StyledHeading = styled.h1<HeadingProps>`
 | 
					const StyledHeading = styled.h1<HeadingProps>`
 | 
				
			||||||
 | 
					    max-width: ${props => props.maxWidth};
 | 
				
			||||||
    color: ${props => props.color || props.theme.textColor};
 | 
					    color: ${props => props.color || props.theme.textColor};
 | 
				
			||||||
    font-size: ${props => isNaN(props.size) ? `var(--${props.size || 'default'}Heading)` : `${props.size}px`};
 | 
					    font-size: ${props => isNaN(props.size) ? `var(--${props.size || 'default'}Heading)` : `${props.size}px`};
 | 
				
			||||||
    line-height: ${props => `var(--${props.size || 'default'}HeadingHeight)`};
 | 
					    line-height: ${props => `var(--${props.size || 'default'}HeadingHeight)`};
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
import * as _ from 'lodash';
 | 
					import * as _ from 'lodash';
 | 
				
			||||||
import * as React from 'react';
 | 
					import * as React from 'react';
 | 
				
			||||||
import styled from 'styled-components';
 | 
					import styled, { keyframes } from 'styled-components';
 | 
				
			||||||
import LazyLoad from 'react-lazyload';
 | 
					import LazyLoad from 'react-lazyload';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import {colors} from 'ts/style/colors';
 | 
					import {colors} from 'ts/style/colors';
 | 
				
			||||||
@@ -67,7 +67,7 @@ const featuresData = [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export const Next0xInstant = () => (
 | 
					export const Next0xInstant = () => (
 | 
				
			||||||
    <SiteWrap>
 | 
					    <SiteWrap>
 | 
				
			||||||
        <Section>
 | 
					        <Section isPadLarge={true}>
 | 
				
			||||||
            <WrapCentered>
 | 
					            <WrapCentered>
 | 
				
			||||||
                <Heading size="medium" isCentered={true}>Introducing 0x Instant</Heading>
 | 
					                <Heading size="medium" isCentered={true}>Introducing 0x Instant</Heading>
 | 
				
			||||||
                <Paragraph size="medium" isCentered={true}>
 | 
					                <Paragraph size="medium" isCentered={true}>
 | 
				
			||||||
@@ -80,10 +80,13 @@ export const Next0xInstant = () => (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        <Section isFullWidth={true} isNoPadding={true}>
 | 
					        <Section isFullWidth={true} isNoPadding={true}>
 | 
				
			||||||
            <Wrap width="full">
 | 
					            <Wrap width="full">
 | 
				
			||||||
                {/* Note: This should be another component, this is just for mocking */}
 | 
					                <MarqueeWrap>
 | 
				
			||||||
                <ImageLoop>
 | 
					                    <div>
 | 
				
			||||||
                        <img src="/images/@next/0x-instant/0x-instant-widgets@2x.png" alt="Preview of payment widgets"/>
 | 
					                        <img src="/images/@next/0x-instant/0x-instant-widgets@2x.png" alt="Preview of payment widgets"/>
 | 
				
			||||||
                </ImageLoop>
 | 
					                        <img src="/images/@next/0x-instant/0x-instant-widgets@2x.png" alt="Preview of payment widgets"/>
 | 
				
			||||||
 | 
					                        <img src="/images/@next/0x-instant/0x-instant-widgets@2x.png" alt="Preview of payment widgets"/>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					                </MarqueeWrap>
 | 
				
			||||||
            </Wrap>
 | 
					            </Wrap>
 | 
				
			||||||
        </Section>
 | 
					        </Section>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -146,8 +149,24 @@ export const Next0xInstant = () => (
 | 
				
			|||||||
    </SiteWrap>
 | 
					    </SiteWrap>
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ImageCarousel = styled.div`
 | 
					const scroll = keyframes`
 | 
				
			||||||
 | 
					    0% { transform: translate3d(0, 0, 0) }
 | 
				
			||||||
 | 
					    100% { transform: translate3d(-1715.18px, 0, 0) }
 | 
				
			||||||
 | 
					`;
 | 
				
			||||||
 | 
					const MarqueeWrap = styled.div`
 | 
				
			||||||
    width: 100vw;
 | 
					    width: 100vw;
 | 
				
			||||||
    height: 380px;
 | 
					    height: 380px;
 | 
				
			||||||
    margin: 90px 0;
 | 
					    padding-bottom: 60px;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    > div {
 | 
				
			||||||
 | 
					        width: 5145.54px;
 | 
				
			||||||
 | 
					        height: 380px;
 | 
				
			||||||
 | 
					        display: flex;
 | 
				
			||||||
 | 
					        animation: ${scroll} 20s linear infinite;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        img {
 | 
				
			||||||
 | 
					            width: auto;
 | 
				
			||||||
 | 
					            height: 380px;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
`;
 | 
					`;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -90,11 +90,11 @@ export class NextWhy extends React.PureComponent {
 | 
				
			|||||||
                    <WrapCentered>
 | 
					                    <WrapCentered>
 | 
				
			||||||
                        <Column colWidth="2/3" isNoMargin={true}>
 | 
					                        <Column colWidth="2/3" isNoMargin={true}>
 | 
				
			||||||
                            <Heading
 | 
					                            <Heading
 | 
				
			||||||
 | 
					                                maxWidth="600px"
 | 
				
			||||||
                                size="medium"
 | 
					                                size="medium"
 | 
				
			||||||
                                isCentered={true}
 | 
					                                isCentered={true}
 | 
				
			||||||
                            >
 | 
					                            >
 | 
				
			||||||
                          The exchange layer for<br />
 | 
					                              The exchange layer for the crypto economy
 | 
				
			||||||
                          the crypto economy
 | 
					 | 
				
			||||||
                            </Heading>
 | 
					                            </Heading>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                            <Paragraph
 | 
					                            <Paragraph
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user