import * as _ from 'lodash'; import * as React from 'react'; import styled, { keyframes } from 'styled-components'; import {colors} from 'ts/style/colors'; import {Banner} from 'ts/@next/components/banner'; import {Hero} from 'ts/@next/components/hero'; import {Button} from 'ts/@next/components/button'; import {Definition} from 'ts/@next/components/definition'; import {Section} from 'ts/@next/components/newLayout'; import {SiteWrap} from 'ts/@next/components/siteWrap'; import {Heading, Paragraph} from 'ts/@next/components/text'; import { Configurator } from 'ts/@next/pages/instant/configurator'; const CONFIGURATOR_HASH = 'configure'; const featuresData = [ { title: 'Support ERC-20 and ERC-721 tokens', icon: 'supportForAllEthereumStandards-large', description: 'Seamlessly integrate token purchasing into your product experience by offering digital assets ranging from in-game items to stablecoins.', links: [ { label: 'Get Started', url: '#', }, { label: 'Explore the Docs', url: '#', }, ], }, { title: 'Generate revenue for your business', icon: 'generateRevenueForYourBusiness-large', description: 'With just a few lines of code, you can earn up to 5% in affiliate fees on every transaction from your crypto wallet or dApp.', links: [ { label: 'Learn about affiliate fees', url: '#', }, ], }, { title: 'Easy and flexible integration', icon: 'flexibleIntegration0xInstant', description: 'Use our out-of-the-box design or customize the user interface by integrating the AssetBuyer engine. You can also tap into 0x networked liquidity or choose your own liquidity pool.', links: [ { label: 'Explore AssetBuyer', url: '#', }, { label: 'Learn about liquidity', url: '#', }, ], }, ]; export const Next0xInstant = () => ( Get Started} />
{[...Array(12)].map((item, index) => ( ))}
{_.map(featuresData, (item, index) => ( ))}
0x Instant Configurator
Disclaimer: The laws and regulations applicable to the use and exchange of digital assets and blockchain-native tokens, including through any software developed using the licensed work created by ZeroEx Intl. (the “Work”), vary by jurisdiction. As set forth in the Apache License, Version 2.0 applicable to the Work, developers are “solely responsible for determining the appropriateness of using or redistributing the Work,” which includes responsibility for ensuring compliance with any such applicable laws and regulations. See the Apache License, Version 2.0 for the specific language governing all applicable permissions and limitations.
); // scroll animation calc is simply (imageWidth * totalRepetitions) / 2 const scroll = keyframes` 0% { transform: translate3d(0, 0, 0) } 100% { transform: translate3d(-2220px, 0, 0) } `; const scrollMobile = keyframes` 0% { transform: translate3d(0, 0, 0) } 100% { transform: translate3d(-1800px, 0, 0) } `; const fadeUp = keyframes` 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: translateY(0px); } `; const ConfiguratorSection = styled(Section)` @media (max-width: 1050px) { display: none; } `; // width = 370 * 12 const MarqueeWrap = styled.div` width: 100vw; height: 514px; padding-bottom: 60px; > div { height: auto; display: flex; will-change: transform; } @media (min-width: 768px) { > div { width: 4440px; animation: ${scroll} 30s linear infinite; } } @media (max-width: 768px) { > div { width: 3600px; animation: ${scrollMobile} 30s linear infinite; } } `; const Card = styled.div` opacity: 0; flex-shrink: 0; transform: translateY(10px); will-change: opacity, transform; animation: ${fadeUp} 0.75s ${props => `${props.index * 0.05}s`} forwards; img { height: auto; } @media (min-width: 768px) { img { width: 370px; } } @media (max-width: 768px) { img { width: 300px; } } `;