Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
chore: remove outdated website-gatsby (#3522)
Igor Dykhtab4d281057edd
diff --git a/website-gatsby/.eslintignore b/website-gatsby/.eslintignoredeleted file mode 100644index b3b3cd3ed..000000000--- a/website-gatsby/.eslintignore+++ /dev/null@@ -1,5 +0,0 @@-../modules--# TODO remove when we have finished porting the old website-src/components-src/reducersdiff --git a/website-gatsby/.gitignore b/website-gatsby/.gitignoredeleted file mode 100644index 28e4f70fc..000000000--- a/website-gatsby/.gitignore+++ /dev/null@@ -1,4 +0,0 @@-public-.cache-report*.json-examplesdiff --git a/website-gatsby/gatsby-browser.js b/website-gatsby/gatsby-browser.jsdeleted file mode 100644index 23d25a6b5..000000000--- a/website-gatsby/gatsby-browser.js+++ /dev/null@@ -1,4 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--export {default as wrapRootElement} from './src/state/redux-wrapper';diff --git a/website-gatsby/gatsby-config.js b/website-gatsby/gatsby-config.jsdeleted file mode 100644index 0754bcfde..000000000--- a/website-gatsby/gatsby-config.js+++ /dev/null@@ -1,127 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--const resolve = require('path').resolve;--const DOCS = require('../docs/table-of-contents.json');-const DEPENDENCIES = require('./package.json').dependencies;-// eslint-disable-next-line import/no-extraneous-dependencies-const ALIASES = require('ocular-dev-tools/config/ocular.config')({- root: resolve(__dirname, '..')-}).aliases;--// When duplicating example dependencies in website, autogenerate-// aliases to ensure the website version is picked up-// NOTE: module dependencies are automatically injected-// TODO - should this be automatically done by ocular-gatsby?-const dependencyAliases = {};-for (const dependency in DEPENDENCIES) {- dependencyAliases[dependency] = `${__dirname}/node_modules/${dependency}`;-}--const GATSBY_CONFIG = {- plugins: [- {- resolve: `gatsby-theme-ocular`,- options: {- logLevel: 2, // Adjusts amount of debug information from ocular-gatsby-- // NOTE - we currently need custom excludes in gatsby-config.js to support multiple directories- DOC_FOLDERS: [`${__dirname}/../docs/`],- ROOT_FOLDER: `${__dirname}/../`,- DIR_NAME: `${__dirname}`,-- DOCS,-- PROJECT_TYPE: 'github',-- PROJECT_NAME: 'kepler.gl',- PROJECT_ORG: 'keplergl',- PROJECT_URL: 'https://github.com/kepler/kepler.gl',- PROJECT_DESC: 'Open source exploratory geospatial data analysis',- PATH_PREFIX: '/',-- FOOTER_LOGO: '',-- GA_TRACKING: null,-- // For showing star counts and contributors.- // Should be like btoa('YourUsername:YourKey') and should be readonly.- GITHUB_KEY: null,-- HOME_PATH: '/',-- HOME_HEADING: 'A powerful open source geospatial analysis tool for large-scale data sets',-- HOME_RIGHT: null,-- HOME_BULLETS: [- {- text: 'Performance',- desc: 'Built with deck.gl, kepler.gl utilizes WebGL to render large datasets quickly and efficiently.',- img: 'images/icon-high-precision.svg'- // TODO image: cdnUrl('features/performance.svg')- },- {- text: 'Interaction',- desc:- 'You can easily drag and drop a dataset, add filters, apply scales, and do aggregation on the fly.',- // TODO image: cdnUrl('features/interaction.svg')- img: 'images/icon-high-precision.svg'- },- {- text: 'Embeddable',- desc:- 'Built on React & Redux, Kepler.gl can be embedded inside your own mapping applications.',- // TODO image: cdnUrl('features/embeddable.svg')- img: 'images/icon-high-precision.svg'- }- ],-- PROJECTS: [- {- name: 'deck.gl',- url: 'https://deck.gl'- },- {- name: 'luma.gl',- url: 'https://luma.gl'- },- {- name: 'react-map-gl',- url: 'https://visgl.github.io/react-map-gl'- },- {- name: 'nebula.gl',- url: 'https://nebula.gl/'- }- ],-- LINK_TO_GET_STARTED: 'docs/developer-guide/get-started',-- ADDITIONAL_LINKS: [],-- INDEX_PAGE_URL: resolve(__dirname, './templates/index.jsx'),-- EXAMPLES: [- // {- // title: '3D Tiles',- // image: 'images/example-3d-tiles.png',- // componentUrl: resolve(__dirname, '../examples/deck.gl/3d-tiles/app.js'),- // path: 'examples/3d-tiles'- // },- ],-- // Ocular adds this to gatsby's webpack config- webpack: {- resolve: {- alias: Object.assign({}, ALIASES, dependencyAliases, {})- }- }- }- },- // {resolve: 'gatsby-plugin-no-sourcemaps'}- ]-};--module.exports = GATSBY_CONFIG;diff --git a/website-gatsby/gatsby-node.js b/website-gatsby/gatsby-node.jsdeleted file mode 100644index b4bf7ccd4..000000000--- a/website-gatsby/gatsby-node.js+++ /dev/null@@ -1,40 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--const {resolve} = require('path');--// Looks like onCreateWebpackConfig does not receive theme options?-function onCreateWebpackConfig(opts, ocularOptions = global.ocularOptions) {- const {- stage, // build stage: ‘develop’, ‘develop-html’, ‘build-javascript’, or ‘build-html’- // rules, // Object (map): set of preconfigured webpack config rules- // loaders, // Object (map): set of preconfigured webpack config loaders- // plugins, // Object (map): A set of preconfigured webpack config plugins- actions,- getConfig // Function that returns the current webpack config- } = opts;-- const config = getConfig();-- config.resolve = config.resolve || {};- config.resolve.alias = config.resolve.alias || {};- Object.assign(config.resolve.alias, {- 'components': resolve(__dirname, '../src/components'),- 'constants': resolve(__dirname, '../src/constants'),- 'actions': resolve(__dirname, '../src/actions'),- 'utils': resolve(__dirname, '../src/utils')- // 'kepler.gl/dist': libSources,- // // Imports the kepler.gl library from the src directory in this repo- // 'kepler.gl': libSources,- // react: resolve(rootDir, './node_modules/react'),- // 'styled-components': resolve(rootDir, './node_modules/styled-components'),- // 'react-redux': resolve(rootDir, './node_modules/react-redux'),- // 'react-palm': resolve(rootDir, './node_modules/react-palm')- });--- // NOTE: actions.setWebpackConfig MERGES in the new config, actions.replaceWebpackConfig SETS it- actions.replaceWebpackConfig(config);-}--module.exports.onCreateWebpackConfig = onCreateWebpackConfig;\ No newline at end of filediff --git a/website-gatsby/gatsby-ssr.js b/website-gatsby/gatsby-ssr.jsdeleted file mode 100644index 23d25a6b5..000000000--- a/website-gatsby/gatsby-ssr.js+++ /dev/null@@ -1,4 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--export {default as wrapRootElement} from './src/state/redux-wrapper';diff --git a/website-gatsby/package.json b/website-gatsby/package.jsondeleted file mode 100644index 32e90f003..000000000--- a/website-gatsby/package.json+++ /dev/null@@ -1,37 +0,0 @@-{- "name": "ocular-website-gatsby",- "version": "0.0.0",- "description": "A website for Ocular, built with Ocular (Gatsby version)",- "license": "MIT",- "keywords": [- "ocular"- ],- "main": "index.js",- "scripts": {- "start": "yarn clean && yarn develop",- "build": "yarn clean-examples && yarn clean && gatsby build",- "clean": "rm -rf ./.cache ./public",- "clean-examples": "find ../examples -name node_modules -exec rm -r {} \\; || true",- "develop": "yarn clean-examples && gatsby develop",- "serve": "gatsby serve",- "deploy": "NODE_DEBUG=gh-pages gh-pages -d public"- },- "dependencies": {- "babel-plugin-version-inline": "^1.0.0",- "marked": "^0.7.0",- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-map-gl": "^5.0.0",- "react-redux": "^8.0.5",- "react-swipeable-views": "^0.13.3",- "react-waypoint": "^9.0.2",- "redux": "^4.2.1",- "styled-components": "6.4.3"- },- "devDependencies": {- "gatsby": "^2.18.0",- "gatsby-plugin-no-sourcemaps": "^2.0.2",- "gatsby-theme-ocular": "^1.1.0-alpha.5",- "gh-pages": "^2.1.0"- }-}diff --git a/website-gatsby/src/components/app.js b/website-gatsby/src/components/app.jsdeleted file mode 100644index ed1bbd9f0..000000000--- a/website-gatsby/src/components/app.js+++ /dev/null@@ -1,46 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {Component} from 'react';-import styled from 'styled-components';-import {connect} from 'react-redux';--const GlobalStyleDiv = styled.div`- font-family: ff-clan-web-pro, 'Helvetica Neue', Helvetica, sans-serif;- font-weight: 400;- font-size: 0.875em;- line-height: 1.71429;-- *,- *:before,- *:after {- -webkit-box-sizing: border-box;- -moz-box-sizing: border-box;- box-sizing: border-box;- }-- ul {- margin: 0;- padding: 0;- }-- li {- margin: 0;- }-- a {- text-decoration: none;- }-`;--class App extends Component {- render() {- return (- <GlobalStyleDiv className="kg-web-content">- {this.props.children}- </GlobalStyleDiv>- );- }-}--export default connect(state => state)(App);diff --git a/website-gatsby/src/components/common/card.js b/website-gatsby/src/components/common/card.jsdeleted file mode 100644index 0f8f0caeb..000000000--- a/website-gatsby/src/components/common/card.js+++ /dev/null@@ -1,112 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React from 'react';-import styled, {css} from 'styled-components';-import {media} from '../../styles';--const containerStyles = css`- background: white;- box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);- border-radius: 4px;- overflow: hidden;-`;--const VerticalContainer = styled.div`- ${containerStyles} width: 350px;- height: 400px;-- ${media.palm`- width: 100%;- height: auto;- `};-`;--const HorizontalContainer = styled.div`- ${containerStyles} height: 150px;- display: flex;- ${media.palm`- height: auto;- display: block;- `};-`;--const Content = styled.div`- padding: ${props => props.theme.margins.medium};-- ${media.palm`- padding: ${props => props.theme.margins.small};- `};-`;--const VerticalCardImage = styled.img`- display: block;- width: 100%;- height: 200px;- object-fit: cover;-`;--const HorizontalCardImage = styled.img`- height: 150px;- width: 150px;- object-fit: cover;- ${media.palm`- width: 100%;- height: 100px;- `};-`;--const Title = styled.div`- font-size: 16px;- font-weight: 500;- margin-bottom: 8px;-`;--const Description = styled.div`- font-size: 14px;- color: #777;- margin-bottom: 8px;- height: ${props => (props.size === 'small' ? '40px' : '80px')};- line-height: 1.5;-`;--const Link = styled.div`- text-transform: uppercase;- font-weight: 700;- font-size: 12px;- color: black;-`;--export const VerticalCard = ({- title,- description,- image,- linkText,- linkUrl-}) => (- <VerticalContainer>- <VerticalCardImage src={image} />- <Content>- <Title>{title}</Title>- <Description>{description}</Description>- <Link>{linkText}</Link>- </Content>- </VerticalContainer>-);--export const HorizontalCard = ({- title,- description,- image,- linkText,- linkUrl-}) => (- <HorizontalContainer>- <HorizontalCardImage src={image} />- <Content>- <Title>{title}</Title>- <Description size="small">{description}</Description>- <Link>{linkText}</Link>- </Content>- </HorizontalContainer>-);diff --git a/website-gatsby/src/components/common/carousel.js b/website-gatsby/src/components/common/carousel.jsdeleted file mode 100644index 07e4eee7b..000000000--- a/website-gatsby/src/components/common/carousel.js+++ /dev/null@@ -1,84 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import PropTypes from 'prop-types';-import styled from 'styled-components';-import {Waypoint} from 'react-waypoint';--const Container = styled.div`- position: relative;- display: flex;- justify-content: center;- min-height: 200px;-`;--const Content = styled.div`- display: flex;- justify-content: center;- transform-style: preserve-3d;- perspective-origin: center;-`;--const Item = styled.div`- position: absolute;- transition: transform 1s;- cursor: pointer;- transform: perspective(600px)- translate3d(${props => props.tX}%, 0, ${props => props.tZ}px);-`;--export default class Carousel extends PureComponent {- static propTypes = {- children: PropTypes.node,- selectedIndex: PropTypes.number.isRequired,- xOffset: PropTypes.number,- zOffset: PropTypes.number- };-- static defaultProps = {- xOffset: 15,- zOffset: 60- };-- state = {- isVisible: false- };-- _onWaypointEnter = () => {- this.setState({isVisible: true});- };-- _onWaypointLeave = () => {- this.setState({isVisible: false});- };-- render() {- const {selectedIndex, children, xOffset, zOffset} = this.props;- const {isVisible} = this.state;- return (- <Waypoint onEnter={this._onWaypointEnter} onLeave={this._onWaypointLeave}>- <Container>- <Content>- {children.map((item, i) => {- const translateX = isVisible ? (i - selectedIndex) * xOffset : 0;- const translateZ = -Math.abs(i - selectedIndex) * zOffset;- return (- <Item- key={`carousel-item-${i}`}- tX={translateX}- tZ={translateZ}- onClick={() => {- this.props.onChange(i);- }}- >- {item}- </Item>- );- })}- </Content>- </Container>- </Waypoint>- );- }-}diff --git a/website-gatsby/src/components/common/section.js b/website-gatsby/src/components/common/section.jsdeleted file mode 100644index ca86267e4..000000000--- a/website-gatsby/src/components/common/section.js+++ /dev/null@@ -1,90 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import PropTypes from 'prop-types';-import styled from 'styled-components';-import StaggeredScrollAnimation from './staggered-scroll-animation';--import {media} from '../../styles';--export const SectionIcon = styled.img`- width: 64px;- ${media.palm`- width: 48px;- `};-`;--export const SectionContainer = styled.div`- color: ${props => (props.isDark ? 'white' : 'black')};- background: ${props =>- props.isDark- ? props.theme.darkBackgroundColor- : props.background- ? `url(${props.background})`- : 'white'};- padding: ${props => props.theme.margins.huge};- margin-bottom: ${props => props.theme.margins.large};- background-size: cover;-- ${media.portable`- padding: ${props => props.theme.margins.large}- `} ${media.palm`- padding: ${props => props.theme.margins.medium}- `};-`;--export const SectionHeader = styled.div`- text-align: center;- margin-bottom: ${props => props.theme.margins.large};- display: flex;- flex-direction: column;- align-items: center;-`;--export const SectionTitle = styled.div`- font-size: 30px;- font-weight: 500;- ${media.palm`- font-size: 24px;- `};-`;--export const SectionDescription = styled.div`- font-size: 20px;- max-width: 500px;- ${media.palm`- font-size: 16px;- `};-`;--class Section extends PureComponent {- static propTypes = {- title: PropTypes.string.isRequired,- description: PropTypes.string.isRequired,- icon: PropTypes.string.isRequired,- isDark: PropTypes.bool,- background: PropTypes.string,- children: PropTypes.node.isRequired- };-- static defaultProps = {- isDark: false- };-- render() {- const {icon, title, description, isDark, background, children} = this.props;- return (- <SectionContainer isDark={isDark} background={background}>- <StaggeredScrollAnimation Container={SectionHeader}>- <SectionIcon src={icon} />- <SectionTitle>{title}</SectionTitle>- <SectionDescription>{description}</SectionDescription>- </StaggeredScrollAnimation>- {children}- </SectionContainer>- );- }-}--export default Section;diff --git a/website-gatsby/src/components/common/slideshow.js b/website-gatsby/src/components/common/slideshow.jsdeleted file mode 100644index ff5e48d80..000000000--- a/website-gatsby/src/components/common/slideshow.js+++ /dev/null@@ -1,95 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import PropTypes from 'prop-types';-import styled from 'styled-components';-import {setInterval, clearInterval} from 'global/window';-import {media} from '../../styles';--const imageRatio = 696 / 1080;--const StyledImgContainer = styled.div`- box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.5);- flex-shrink: 0;- opacity: 1;- position: relative;-- width: calc(100vw - 60px);- height: ${imageRatio * 100}vw;-- max-width: 800px;- max-height: ${800 * imageRatio}px;-- ${media.palm`- width: calc(100vw - 60px);- height: ${imageRatio * 100}vw;- `};-`;--const StyledImg = styled.img`- width: 100%;- height: 100%;- display: block;- position: absolute;- top: 0;- transition: opacity ${props => props.fadeDuration}ms;- opacity: ${props => (props.isVisible ? '1.0' : '0.0')};-`;--export default class SlideShow extends PureComponent {- static propTypes = {- images: PropTypes.arrayOf(PropTypes.string).isRequired,- slideDuration: PropTypes.number,- fadeDuration: PropTypes.number- };-- static defaultProps = {- slideDuration: 5000,- fadeDuration: 2000- };-- constructor(props) {- super(props);- this._intervalId = null;- }-- state = {- currentIndex: 0- };-- componentDidMount() {- this._intervalId = setInterval(- this._transitionImage,- this.props.slideDuration- );- }-- componentWillUnmount() {- clearInterval(this._intervalId);- }-- _transitionImage = () => {- const {images} = this.props;- const {currentIndex} = this.state;- this.setState({- currentIndex: currentIndex === images.length - 1 ? 0 : currentIndex + 1- });- };-- render() {- const {images, fadeDuration} = this.props;- return (- <StyledImgContainer>- {images.map((src, i) => (- <StyledImg- key={src}- src={src}- fadeDuration={fadeDuration}- isVisible={i <= this.state.currentIndex}- />- ))}- </StyledImgContainer>- );- }-}diff --git a/website-gatsby/src/components/common/staggered-scroll-animation.js b/website-gatsby/src/components/common/staggered-scroll-animation.jsdeleted file mode 100644index 59da3322c..000000000--- a/website-gatsby/src/components/common/staggered-scroll-animation.js+++ /dev/null@@ -1,67 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import PropTypes from 'prop-types';-import {Waypoint} from 'react-waypoint';-import styled from 'styled-components';--const FadeIn = styled.div`- opacity: ${props => (props.isVisible ? '1.0' : '0.0')};- transform: ${props => (props.isVisible ? undefined : 'translateY(10px)')};- transition: ${props =>- `opacity 350ms ${props.delay}ms, transform 350ms ${props.delay}ms`};-`;--export default class StaggeredScrollAnimation extends PureComponent {- static propTypes = {- duration: PropTypes.number,- delay: PropTypes.number,- animateOnce: PropTypes.bool,- Container: PropTypes.oneOfType([PropTypes.object, PropTypes.element, PropTypes.func, PropTypes.string]),- scrollOffsetTop: PropTypes.number- };-- static defaultProps = {- duration: 500,- delay: 150,- animateOnce: true,- Container: 'div',- scrollOffsetTop: -100- };-- state = {- isVisible: false- };-- _onWaypointEnter = () => {- this.setState({isVisible: true});- };-- _onWaypointLeave = () => {- const {animateOnce} = this.props;- if (!animateOnce) {- this.setState({isVisible: false});- }- };-- render() {- const {isVisible} = this.state;- const {delay, children, Container, scrollOffsetTop} = this.props;- return (- <Waypoint- onEnter={this._onWaypointEnter}- onLeave={this._onWaypointLeave}- topOffset={scrollOffsetTop}- >- <Container>- {React.Children.map(children, (item, i) => (- <FadeIn key={i} isVisible={isVisible} delay={delay * i}>- {item}- </FadeIn>- ))}- </Container>- </Waypoint>- );- }-}diff --git a/website-gatsby/src/components/common/styled-components.js b/website-gatsby/src/components/common/styled-components.jsdeleted file mode 100644index cfd317a2c..000000000--- a/website-gatsby/src/components/common/styled-components.js+++ /dev/null@@ -1,113 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import styled, {css} from 'styled-components';-import {media} from '../../styles';--const buttonStyles = css`- align-items: center;- background-color: ${props =>- props.negative- ? props.theme.negativeBtnBgd- : props.secondary- ? props.theme.secondaryBtnBgd- : props.outline- ? props.theme.outlineBtnBgd- : props.outlineDark- ? props.outlineDarkBtnBgd- : props.link- ? props.theme.linkBtnBgd- : props.theme.primaryBtnBgd};- border-radius: ${props => props.theme.primaryBtnRadius};- color: ${props =>- props.negative- ? props.theme.negativeBtnColor- : props.secondary- ? props.theme.secondaryBtnColor- : props.outline- ? props.outlineBtnColor- : props.outlineDark- ? props.theme.outlineDarkBtnColor- : props.link- ? props.theme.linkBtnColor- : props.theme.primaryBtnColor};- cursor: pointer;- display: inline-flex;- font-size: ${props => (props.large ? '14px' : '11px')};- font-weight: 500;- justify-content: center;- letter-spacing: 0.3px;- line-height: 14px;- outline: 0;- border: ${props =>- props.outline- ? `1px solid ${props.theme.outlineBtnColor}`- : props.outlineDark- ? `1px solid ${props.theme.outlineDarkBtnColor}`- : 'none'};- padding: ${props => (props.large ? '14px 32px' : '9px 12px')};- text-align: center;- transition: ${props => props.theme.btnTransition};- vertical-align: middle;- width: ${props => props.width || 'auto'};- text-transform: uppercase;-- &:hover,- &:focus,- &:active,- &:visited,- &.active {- background-color: ${props =>- props.negative- ? props.theme.negativeBtnBgdHover- : props.secondary- ? props.theme.secondaryBtnBgdHover- : props.outline- ? props.theme.outlineBtnBgdHover- : props.outlineDark- ? props.theme.outlineDarkBtnBgdHover- : props.link- ? props.theme.linkBtnActBgdHover- : props.theme.primaryBtnBgdHover};- color: ${props =>- props.negative- ? props.theme.negativeBtnActColor- : props.secondary- ? props.theme.secondaryBtnActColor- : props.outline- ? props.theme.outlineBtnActColor- : props.outlineDark- ? props.theme.outlineDarkBtnActColor- : props.link- ? props.theme.linkBtnActColor- : props.theme.primaryBtnActColor};- }-- svg,- img {- width: 14px;- margin-right: 8px;- }-- ${media.palm`- font-size: 11px;- padding: 9px 12px;- `};-`;--export const Button = styled.div.attrs({- className: 'kg-button'-})`- ${buttonStyles};-`;--export const LinkButton = styled.a`- color: black;- ${buttonStyles};-`;--export const CenteredContent = styled.div`- display: flex;- align-items: center;- justify-content: center;-`;diff --git a/website-gatsby/src/components/common/styles.js b/website-gatsby/src/components/common/styles.jsdeleted file mode 100644index 1e3f3c5bd..000000000--- a/website-gatsby/src/components/common/styles.js+++ /dev/null@@ -1,110 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React from 'react';--import styled from 'styled-components';-import {media} from '../../styles';-import {cdnUrl} from '../../utils';--export const StyledCaption = styled.div`- max-width: unset;- text-align: center;- margin-bottom: 32px;- margin-top: 6rem;- display: flex;- flex-direction: column;- justify-content: center;- align-items: center;-- ${media.palm`- width: auto;- padding-top: 0;- margin-right: 0;- display: flex;- flex-direction: column;- align-items: center;- margin-top: 0px;- `} .kg-home__caption__subtitle {- font-size: 36px;- font-weight: 600;- margin-bottom: 20px;- line-height: 1.3;-- ${media.palm`- font-size: 20px;- `};- }-- .kg-home__caption__description {- font-size: 14px;- color: ${props => props.theme.labelColor};- line-height: 24px;- margin-bottom: 32px;- max-width: 400px;-- span.t-bold {- color: ${props => props.theme.textColor};- font-weight: 500;- }-- ${media.palm`- margin-bottom: 32px;- text-align: center;- font-size: 12px;- `};- }-`;--export const BackgroundImage = styled.img`- position: absolute;- left: 0px;- top: 0px;- width: 100%;- height: 70%;- object-fit: cover;- background: #0f1d29;-`;--export const Container = styled.div`- padding: ${props => props.theme.margins.huge};- color: white;- position: relative;-- ${media.palm`- padding-top: ${props => props.theme.margins.large};- `}-`;--export const Content = styled.div`- position: relative;- display: flex;- flex-direction: column;- align-items: center;-- ${media.palm`- margin-top: 3rem;- `};-`;--export const Logo = styled.img`- position: absolute;- left: 0;- top: 0;- width: 120px;- ${media.palm`- position: inherit;- margin-top: ${props => props.theme.margins.normal};- margin-bottom: ${props => props.theme.margins.small};- `};-`;--/* eslint-disable react/display-name */-export const HeroImage = React.forwardRef((props, ref) => (- <BackgroundImage {...props} ref={ref} src={cdnUrl('hero/kepler.gl-background.png')}/>-));--export const LogoImage = React.forwardRef((props, ref) => (- <Logo {...props} src={cdnUrl('icons/kepler.gl-logo.png')} />-));-/* eslint-enable react/display-name */diff --git a/website-gatsby/src/components/common/swipeable.js b/website-gatsby/src/components/common/swipeable.jsdeleted file mode 100644index 1367650e7..000000000--- a/website-gatsby/src/components/common/swipeable.js+++ /dev/null@@ -1,59 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';-import SwipeableViews from 'react-swipeable-views';--const PaginationContainer = styled.div`- display: flex;- justify-content: center;-`;--// To increase click area for better usuablity-const PaginationBarWrapper = styled.div`- padding: 16px 0px;- cursor: pointer;- margin-left: 2px;- :first-child {- margin-left: 0px;- }-`;-const PaginationBar = styled.div`- width: 50px;- height: 4px;- background: white;- opacity: ${props => (props.isActive ? '1.0' : '0.5')};- transition: opacity 200ms;-`;--const Pagination = ({items, selectedIndex, onChange}) => (- <PaginationContainer>- {items.map((item, index) => (- <PaginationBarWrapper key={index} onClick={() => onChange(index)}>- <PaginationBar isActive={index === selectedIndex} />- </PaginationBarWrapper>- ))}- </PaginationContainer>-);--export default class Swipeable extends PureComponent {- render() {- const {children, onChange, selectedIndex} = this.props;- return (- <div>- <SwipeableViews- enableMouseEvents- index={selectedIndex}- onChange={onChange}>- {children}- </SwipeableViews>- <Pagination- items={children}- selectedIndex={selectedIndex}- onChange={onChange}- />- </div>- );- }-}diff --git a/website-gatsby/src/components/examples.js b/website-gatsby/src/components/examples.jsdeleted file mode 100644index 8df0aa130..000000000--- a/website-gatsby/src/components/examples.js+++ /dev/null@@ -1,71 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';--import {EXAMPLES} from '../content';-import {media} from '../styles';-import StaggeredScrollAnimation from './common/staggered-scroll-animation';-import {VerticalCard} from './common/card';-import {LinkButton, CenteredContent} from './common/styled-components';-import {DEMO_LINK} from '../constants';--const CardsContainer = styled.div`- display: flex;- justify-content: center;- flex-wrap: wrap;- margin-bottom: ${props => props.theme.margins.large};- ${media.palm`- display: block;- `};-`;--const StyledCardContainer = styled.a`- display: block;- margin: ${props => props.theme.margins.small};- color: black;- cursor: pointer;- transition: transform 350ms;- &:hover {- transform: scale3d(1.05, 1.05, 1.05);- }- ${media.palm`- margin: 0px;- margin-bottom: ${props => props.theme.margins.small}- `};-`;--const CardContainer = ({linkUrl, children}) => (- <StyledCardContainer href={linkUrl} target="_blank">- {children}- </StyledCardContainer>-);--class Examples extends PureComponent {- render() {- return (- <div>- <StaggeredScrollAnimation Container={CardsContainer}>- {EXAMPLES.map(({title, description, image, url}, i) => (- <CardContainer linkUrl={url} key={`example-${i}`}>- <VerticalCard- title={title}- description={description}- image={image}- linkText="Explore Map"- />- </CardContainer>- ))}- </StaggeredScrollAnimation>- <CenteredContent>- <LinkButton outline large href={DEMO_LINK}>- See More- </LinkButton>- </CenteredContent>- </div>- );- }-}--export default Examples;diff --git a/website-gatsby/src/components/features.js b/website-gatsby/src/components/features.jsdeleted file mode 100644index d81125e74..000000000--- a/website-gatsby/src/components/features.js+++ /dev/null@@ -1,82 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';--import {cdnUrl} from '../utils';-import {FEATURES} from '../content';-import {media} from '../styles';-import StaggeredScrollAnimation from './common/staggered-scroll-animation';-import {LinkButton, CenteredContent} from './common/styled-components';--const FeaturesContainer = styled.div`- display: flex;- justify-content: center;- flex-wrap: wrap;- margin-bottom: ${props => props.theme.margins.large};-`;--const FeatureContainer = styled.div`- text-align: center;- width: 350px;- padding: 24px;- margin: ${props => props.theme.margins.small};- display: flex;- flex-direction: column;- align-items: center;- ${media.palm`- margin: 0px;- margin-bottom: ${props => props.theme.margins.small}- `};-`;--const FeatureImage = styled.img`- width: 75px;- height: 75px;-`;--const FeatureTitle = styled.div`- font-size: 20px;- font-weight: 500;- margin-bottom: ${props => props.theme.margins.small};-`;--const FeatureDescription = styled.div`- font-size: 16px;- color: #535353;-`;--const Feature = ({title, description, image}) => (- <FeatureContainer>- <FeatureImage src={image} />- <FeatureTitle>{title}</FeatureTitle>- <FeatureDescription>{description}</FeatureDescription>- </FeatureContainer>-);--class Features extends PureComponent {- render() {- return (- <div>- <StaggeredScrollAnimation Container={FeaturesContainer}>- {FEATURES.map(({title, description, image}, i) => (- <Feature- key={`feature-${i}`}- title={title}- description={description}- image={image}- />- ))}- </StaggeredScrollAnimation>- <CenteredContent>- <LinkButton large outline href="https://github.com/keplergl/kepler.gl">- <img src={cdnUrl('icons/github-black.svg')} /> Open Source- </LinkButton>- </CenteredContent>- </div>- );- }-}--export default Features;diff --git a/website-gatsby/src/components/footer.js b/website-gatsby/src/components/footer.jsdeleted file mode 100644index 613f16497..000000000--- a/website-gatsby/src/components/footer.js+++ /dev/null@@ -1,177 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';-import {- FacebookIcon,- FacebookShareButton,- TwitterIcon,- TwitterShareButton-} from 'react-share';--import {cdnUrl} from '../utils';-import {LinkButton} from './common/styled-components';-import {media} from '../styles';-import MapboxLogo from './mapbox-logo';-import {DEMO_LINK} from '../constants';--const Container = styled.div`- background: #242730;- padding: ${props => props.theme.margins.huge};-`;--const LogosContainer = styled.div`- display: flex;- justify-content: space-between;- align-items: center;-- ${media.palm`- flex-direction: column;- `};-`;--const BrandingContainer = styled.div`- display: inline-flex;- align-items: center;- ${media.palm`- margin-top: ${props => props.theme.margins.small};- `};-`;--const CreatedBy = styled.div`- display: inline-flex;- margin-left: 20px;- align-items: center;- color: ${props => props.theme.footerColor};- font-size: 11px;- justify-content: center;- letter-spacing: 0.5px;- line-height: 14px;- width: 100%;- z-index: 101;-`;--const StyledLogo = styled.span`- font-size: 11px;- font-weight: 700;- letter-spacing: 4px;- position: relative;- margin-left: 1.8rem;- margin-top: 0;- margin-bottom: 0;-- a {- color: #e5e5e4;- letter-spacing: 2px;- }-- :before {- content: '';- background: url(${cdnUrl('icons/viz_logo_bw.png')}) no-repeat;- background-size: cover;- height: 20px;- width: 24px;- position: absolute;- top: -5px;- left: -25px;- }-`;--const ButtonSection = styled.div`- display: flex;- margin-top: 32px;-- ${media.palm`- display: flex;- justify-content: center;- width: 100%;- flex-direction: column;- `};-`;--const ButtonContainer = styled.div`- display: flex;- a {- width: 160px;- }-- ${media.palm`- display: flex;- justify-content: center;- width: 100%;-- a {- width: 50%;- }- `};-`;--const SocialContainer = styled.div`- display: flex;- flex: 1;- justify-content: flex-end;-- .SocialMediaShareButton {- margin-right: 5px;- }-- ${media.palm`- display: flex;- justify-content: center;- margin-top: 12px;- width: 100%;- `};-`;--export default class Footer extends PureComponent {- render() {- return (- <Container>- <LogosContainer>- <img style={{width: '120px'}} src={cdnUrl('icons/kepler.gl-logo.png')} />- <BrandingContainer>- <img src={cdnUrl('icons/uber.svg')} />- <MapboxLogo/>- <CreatedBy>- created by- <StyledLogo className="fg">- <a- target="_blank"- rel="noopener noreferrer"- href="http://vis.gl"- >- VIS.GL- </a>- </StyledLogo>- </CreatedBy>- </BrandingContainer>- </LogosContainer>- <ButtonSection>- <ButtonContainer>- <LinkButton large href={DEMO_LINK}>- Get Started- </LinkButton>- <LinkButton- large- outlineDark- href="https://github.com/keplergl/kepler.gl"- style={{marginLeft: '5px'}}- >- <img src={cdnUrl('icons/github.svg')} /> Github- </LinkButton>- </ButtonContainer>- <SocialContainer>- <FacebookShareButton url="https://kepler.gl/">- <FacebookIcon size={32} />- </FacebookShareButton>- {' '}- <TwitterShareButton url="https://kepler.gl/" hashtags={['keplergl']}>- <TwitterIcon size={32} />- </TwitterShareButton>- </SocialContainer>- </ButtonSection>- </Container>- );- }-}diff --git a/website-gatsby/src/components/header.js b/website-gatsby/src/components/header.jsdeleted file mode 100644index 8421afb31..000000000--- a/website-gatsby/src/components/header.js+++ /dev/null@@ -1,60 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {Component} from 'react';-import styled from 'styled-components';--import {HEADER_NAVS} from '../content';--const StyledLink = styled.a`- line-height: 58px;- color: #8d9ba3;- text-transform: uppercase;- margin-left: 40px;- transition: color 500ms;- display: inline-block;-- &:hover {- color: white;- cursor: pointer;- }-`;--const StyledHeader = styled.div`- max-width: 100%;- padding: 0 36px;- margin: 0 auto;- width: 100%;- overflow: hidden;- position: absolute;- background: transparent;- z-index: 1000;- display: flex;- justify-content: flex-end;-- .links {- margin-top: 20px;- }-- .icon-github:before {- content: "\\e904";- }-`;--export default class Header extends Component {- render() {- // const {isMenuOpen, opacity, toggleMenu} = this.props;-- return (- <StyledHeader className="container stretch">- <div className="links">- {HEADER_NAVS.map((item, i) => (- <StyledLink key={i} href={item.link} target="_blank">- {item.text}- </StyledLink>- ))}- </div>- </StyledHeader>- );- }-}diff --git a/website-gatsby/src/components/hero.js b/website-gatsby/src/components/hero.jsdeleted file mode 100644index 7c5402823..000000000--- a/website-gatsby/src/components/hero.js+++ /dev/null@@ -1,116 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled, {keyframes} from 'styled-components';-import {window} from 'global';--import {cdnUrl} from '../utils';-import {media, breakPoints} from '../styles';-import {HERO_IMAGES, HERO_IMAGES_SCALED} from '../content';-import SlideShow from './common/slideshow';-import {LinkButton} from './common/styled-components';-import {DEMO_LINK} from '../constants';--import {Container, Content, HeroImage, LogoImage, StyledCaption} from './common/styles';--const SlideShowAnimation = keyframes`- 0% {- opacity: 0;- transform: translate(0, 20px);- }-- 100% {- opacity: 1.0- }-`;--const FadeIn = styled.div`- animation-name: ${SlideShowAnimation};- animation-timing-function: ease-in-out;- animation-duration: 1s;- animation-delay: 500ms;- animation-fill-mode: both;-`;--const ButtonContainer = styled.div`- display: flex;- justify-content: center;-- a {- width: 160px;- }-- ${media.palm`- display: flex;- justify-content: center;- width: 100%;-- a {- width: 50%;- }- `};-`;--export default class Hero extends PureComponent {- state = {- window: window.innerWidth,- height: window.innerHeight- };-- componentDidMount() {- window.addEventListener('resize', this.resize);- this.resize();- }-- componentWillUnmount() {- window.removeEventListener('resize', this.resize);- }-- resize = () => {- this.setState({- width: window.innerWidth,- height: window.innerHeight- });- };-- render() {- const isPalm = this.state.width <= breakPoints.palm;- return (- <Container>- <HeroImage />- <Content>- <LogoImage />- <StyledCaption>- <div className="kg-home__caption__subtitle">- Make an impact with your location data- </div>- <div className="kg-home__caption__description">- <span>Kepler.gl is a powerful </span>- <span className="t-bold"> open source </span>- <span>geospatial analysis tool for </span>- <span className="t-bold">large-scale </span>- <span>data sets.</span>- </div>- <ButtonContainer>- <LinkButton large href={DEMO_LINK}>- Get Started- </LinkButton>- <LinkButton- large- outlineDark- href="https://github.com/keplergl/kepler.gl"- style={{marginLeft: '5px'}}- >- <img src={cdnUrl('icons/github.svg')} /> Github- </LinkButton>- </ButtonContainer>- </StyledCaption>- <FadeIn>- <SlideShow images={isPalm ? HERO_IMAGES_SCALED : HERO_IMAGES} />- </FadeIn>- </Content>- </Container>- );- }-}diff --git a/website-gatsby/src/components/home.js b/website-gatsby/src/components/home.jsdeleted file mode 100644index 892a5cbeb..000000000--- a/website-gatsby/src/components/home.js+++ /dev/null@@ -1,93 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import {ThemeProvider} from 'styled-components';-import Window from 'global/window';--import {theme} from '../styles';-import {SECTIONS} from '../content';-import Hero from './hero';-import Showcase from './showcase';-import Examples from './examples';-import Tutorials from './tutorials';-import Walkthrough from './walkthrough';-import Features from './features';-import Footer from './footer';-import Section from './common/section';-import Header from './header';-import Banner from '../../../examples/demo-app/src/components/banner';-import Announcement from '../../../examples/demo-app/src/components/announcement';--const BannerKey = 'kgHideBanner-iiba';-const BannerHeight = 30;-const BACKGROUND_COLOR = '#82368c';--const SECTION_CONTENT = {- showcase: Showcase,- walkthrough: Walkthrough,- features: Features,- examples: Examples,- tutorials: Tutorials-};--export default class Home extends PureComponent {- state = {- showBanner: false- };-- componentDidMount() {- // delay 2s to show the banner- // if (!window.localStorage.getItem(BannerKey)) {- // window.setTimeout(this._showBanner, 3000);- // }- }-- _showBanner = () => {- this.setState({showBanner: true});- };-- _hideBanner = () => {- this.setState({showBanner: false});- };-- _disableBanner = () => {- this._hideBanner();- Window.localStorage.setItem(BannerKey, 'true');- };-- render() {- return (- <ThemeProvider theme={theme}>- <div>- <Banner- show={this.state.showBanner}- height={BannerHeight}- bgColor={BACKGROUND_COLOR}- onClose={this._hideBanner}- >- <Announcement onDisable={this._disableBanner} />- </Banner>- <Header />- <Hero />- {SECTIONS.map(({id, title, description, icon, isDark, background}, i) => {- const SectionContent = SECTION_CONTENT[id];- return (- <Section- key={`section-${i}`}- title={title}- description={description}- icon={icon}- isDark={isDark}- background={background}- >- <SectionContent />- </Section>- );- })}- <Footer />- </div>- </ThemeProvider>- );- }-}diff --git a/website-gatsby/src/components/info-panel.jsx b/website-gatsby/src/components/info-panel.jsxdeleted file mode 100644index 5e6887ed5..000000000--- a/website-gatsby/src/components/info-panel.jsx+++ /dev/null@@ -1,22 +0,0 @@-import React, {PureComponent} from 'react';--export default class InfoPanel extends PureComponent {- render() {- const { name, controls, sourceLink} = this.props;-- return (- <div className="options-panel top-right" tabIndex="0">- <h3>{name}</h3>- <div className="control-panel" dangerouslySetInnerHTML={{__html: controls}} />-- {sourceLink && (- <div className="source-link">- <a href={sourceLink} target="_new">- {'View Code ↗'}- </a>- </div>- )}- </div>- );- }-}diff --git a/website-gatsby/src/components/mapbox-logo.js b/website-gatsby/src/components/mapbox-logo.jsdeleted file mode 100644index f1dbe55b5..000000000--- a/website-gatsby/src/components/mapbox-logo.js+++ /dev/null@@ -1,17 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import styled from 'styled-components';--const MapboxLogo = styled.a`- background-image: url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 790 180%22%3E%3Cpath d%3D%22M89.1 1.8C39.9 1.8 0 41.7 0 90.9 0 140.1 39.9 180 89.1 180c49.2 0 89.1-39.9 89.1-89.1 0-49.2-39.9-89.1-89.1-89.1zm457.8 19.7c-1.2 0-2.2 1-2.2 2.2v103.2c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.4 11.3 26.3 11.3 20.9 0 37.9-18 37.9-40.3 0-22.3-17-40.2-37.9-40.2-10 0-19.5 4.1-26.3 11.3V23.7c0-1.2-1-2.2-2.2-2.2h-13.4zM98.3 36.4c11.4.3 22.9 4.8 31.7 13.7 17.7 17.7 18.3 45.7 1.4 62.7-30.5 30.5-84.8 20.7-84.8 20.7s-9.8-54.3 20.7-84.8c8.5-8.4 19.7-12.5 31-12.3zm160.3 14.2c-8.2 0-15.9 4-20.8 10.6v-6.4c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2V127c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V83.8c.5-9.7 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.5v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.9c1.2-8.8 7.6-15.6 15.3-15.6 8.5 0 15.6 7.1 15.6 16.5v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.6c.3-14.8-12.3-26.8-27.9-26.8-10 .1-19.2 5.9-23.5 15-5-9.3-14.7-15.1-25.3-15zm127.9 0c-20.9 0-37.9 18-37.9 40.3 0 22.3 17 40.3 37.9 40.3 10 0 19.5-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54.8c.1-1.2-.9-2.2-2.2-2.2H415c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.4-11.3-26.3-11.3zm106.1 0c-10 0-19.5 4.1-26.3 11.3v-7.1c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2V158c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-38.2c6.9 7.2 16.4 11.3 26.3 11.3 20.9 0 37.9-18 37.9-40.3 0-22.3-17-40.2-37.9-40.2zm185.5 0c-22.7 0-41 18-41 40.3 0 22.3 18.4 40.3 41 40.3s41-18 41-40.3c0-22.3-18.3-40.3-41-40.3zm45.4 2c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.3 35.4c-.6.9-.4 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23.1 13.8 23.1c.6 1 1.7 1.6 2.9 1.6h15.5c1.1 0 2-.9 2-2 0-.4-.1-.7-.3-1.1L766 90.7l23-35c.6-.9.4-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6l-13.5 22.7-13.5-22.7c-.6-1-1.7-1.6-2.9-1.6h-15.5zM99.3 54l-8.7 18-17.9 8.7 17.9 8.7 8.7 18 8.8-18 17.9-8.7-17.9-8.7-8.8-18zm290.3 12.7c12.7 0 23 10.7 23.2 23.9v.6c-.1 13.2-10.5 23.9-23.2 23.9-12.8 0-23.2-10.8-23.2-24.2 0-13.4 10.4-24.2 23.2-24.2zm99.8 0c12.8 0 23.2 10.8 23.2 24.2 0 13.4-10.4 24.2-23.2 24.2-12.7 0-23-10.7-23.2-23.9v-.6c.2-13.2 10.5-23.9 23.2-23.9zm96.3 0c12.8 0 23.2 10.8 23.2 24.2 0 13.4-10.4 24.2-23.2 24.2-12.7 0-23-10.7-23.2-23.9v-.6c.2-13.2 10.5-23.9 23.2-23.9zm92.2 0c12.8 0 23.2 10.8 23.2 24.2 0 13.4-10.4 24.2-23.2 24.2-12.8 0-23.2-10.8-23.2-24.2 0-13.4 10.4-24.2 23.2-24.2z%22 fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E%0A");- background-size: 99px 28px;- background-repeat: no-repeat;- width: 100px;- display: inline-block;- height: 28px;- flex-shrink: 0;- margin-left: 30px;-`;--export default MapboxLogo;diff --git a/website-gatsby/src/components/policy.js b/website-gatsby/src/components/policy.jsdeleted file mode 100644index 61a8571f8..000000000--- a/website-gatsby/src/components/policy.js+++ /dev/null@@ -1,85 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled, {ThemeProvider} from 'styled-components';-import {Container, Content, HeroImage, LogoImage, StyledCaption} from './common/styles';-import {theme} from '../styles';-import Header from './header';--const GITHUB_PROJECT = 'https://github.com/keplergl/kepler.gl';-const GITHUB_PROJECT_ISSUES = `${GITHUB_PROJECT}/issues`;-const MAILING_LIST_URL = 'https://groups.google.com/d/forum/kepler-gl';-const CONTRIBUTING_URL = 'https://docs.kepler.gl/contributing';--const StyledContainer = styled(Container)`- background-color: black;- height: 100vh;-- max-width: unset;-- .description {- max-width: 800px- }-- .description-content {- font-weight: 500;- }-- h3 {- margin-bottom: 24px;- }-- a {- text-decoration: underline;- color: white;- }-- a:visited {- color: white;- }-- img.hero-image {- height: 100vh;- }---`;--export default class Home extends PureComponent {- render() {- return (- <ThemeProvider theme={theme}>- <div>-- <Header />- <StyledContainer>- <HeroImage className="hero-image" />- <Content>- <LogoImage />- <StyledCaption>- <div className="kg-home__caption__subtitle">- Support Policy- </div>- <div className="description">- <h3>- <a href="https://kepler.gl">Kepler.gl</a> is an open source project. Its source code is available at <a- href={GITHUB_PROJECT}>Kepler.gl Github project</a>.- </h3>- <span className="description-content">- As an open source project, questions and bug reports can be filed with the project community,- and you can participate in the development of the project's source code. Bug reports and- issues can be submitted at <a href={GITHUB_PROJECT_ISSUES}>Kepler.gl Github issues</a>.- Questions can be asked on the project's mailing lists, which you can subscribe at <a href={MAILING_LIST_URL}>Kepler.gl Mailing list</a>.- Please review the applicable <a href={CONTRIBUTING_URL}>contributing guidelines</a> and procedures in connection with your submissions.- Please note that the Kepler.gl project and OpenJS Foundation do not otherwise provide support for users of Kepler.gl software.- </span>- </div>- </StyledCaption>- </Content>- </StyledContainer>- </div>- </ThemeProvider>- );- }-}diff --git a/website-gatsby/src/components/showcase.js b/website-gatsby/src/components/showcase.jsdeleted file mode 100644index b41229a00..000000000--- a/website-gatsby/src/components/showcase.js+++ /dev/null@@ -1,113 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';--import {SHOWCASE_ITEMS} from '../content';-import {media} from '../styles';-import Carousel from './common/carousel';--const CarouselContainer = styled.div`- height: 360px;- ${media.palm`- height: 240px;- `} ${media.desk`- height: 480px;- `};-`;--const Image = styled.img`- width: 100%;- height: 100%;- box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.25);- object-fit: cover;-- width: 420px;- height: 320px;-- ${media.palm`- width: 300px;- height: 200px;- `} ${media.desk`- width: 560px;- height: 420px;- `};-`;--const NavContainer = styled.div`- display: flex;- justify-content: center;- margin-top: 24px;-`;--const NavItem = styled.div`- margin: ${props => props.theme.margins.tiny};- font-size: 10px;- text-align: center;- filter: ${props => props.isActive && 'brightness(300%)'};- transform: ${props => props.isActive && 'scale(1.1)'};- transition: transform 500ms, filter 500ms;- cursor: pointer;- &:hover {- transform: scale(1.1);- }-- ${media.palm`- margin: 2px 4px;- font-size: 8px;- `};-`;--const NavIcon = styled.img`- display: block;-- width: 48px;- height: 48px;-- ${media.palm`- width: 32px;- height: 32px;- `};-`;--const Nav = ({items, selectedIndex, onClick}) => (- <NavContainer>- {items.map(({text, icon}, i) => (- <NavItem key={i} isActive={selectedIndex === i} onClick={() => onClick(i)}>- <NavIcon src={icon} />- {text}- </NavItem>- ))}- </NavContainer>-);--class Showcase extends PureComponent {- state = {- selectedIndex: 3- };-- render() {- return (- <div>- <CarouselContainer>- <Carousel- selectedIndex={this.state.selectedIndex}- onChange={i => this.setState({selectedIndex: i})}- >- {SHOWCASE_ITEMS.map(({image}, i) => (- <Image key={`showcase-image-${i}`} src={image} />- ))}- </Carousel>- </CarouselContainer>- <Nav- items={SHOWCASE_ITEMS}- selectedIndex={this.state.selectedIndex}- onClick={i => this.setState({selectedIndex: i})}- />- </div>- );- }-}--export default Showcase;diff --git a/website-gatsby/src/components/tutorials.js b/website-gatsby/src/components/tutorials.jsdeleted file mode 100644index 4343fabbd..000000000--- a/website-gatsby/src/components/tutorials.js+++ /dev/null@@ -1,79 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';--import {media} from '../styles';-import {TUTORIALS} from '../content';-import {HorizontalCard} from './common/card';-import StaggeredScrollAnimation from './common/staggered-scroll-animation';-import {LinkButton, CenteredContent} from './common/styled-components';--const Container = styled.div`- margin: 0 auto;- max-width: 1500px;-`;--const CardsContainer = styled.div`- display: grid;- grid-gap: ${props => props.theme.margins.medium};- grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));- grid-auto-flow: dense;- margin-bottom: ${props => props.theme.margins.large};- ${media.palm`- display: block;- `};-`;--const StyledCardContainer = styled.a`- display: block;- color: black;- cursor: pointer;- transition: transform 350ms;- &:hover {- transform: scale3d(1.05, 1.05, 1.05);- }- ${media.palm`- margin-bottom: ${props => props.theme.margins.small};- `};-`;--const CardContainer = ({linkUrl, children}) => (- <StyledCardContainer href={linkUrl} target="_blank">- {children}- </StyledCardContainer>-);--class Tutorials extends PureComponent {- render() {- return (- <Container>- <StaggeredScrollAnimation Container={CardsContainer}>- {TUTORIALS.map(({title, description, image, url}, i) => (- <CardContainer linkUrl={url} key={`tutorial-${i}`}>- <HorizontalCard- title={title}- description={description}- image={image}- linkText="Read Now"- />- </CardContainer>- ))}- </StaggeredScrollAnimation>- <CenteredContent>- <LinkButton- outline- large- target="_blank"- href="https://medium.com/vis-gl"- >- Read More- </LinkButton>- </CenteredContent>- </Container>- );- }-}--export default Tutorials;diff --git a/website-gatsby/src/components/walkthrough.js b/website-gatsby/src/components/walkthrough.jsdeleted file mode 100644index 4d89f8a77..000000000--- a/website-gatsby/src/components/walkthrough.js+++ /dev/null@@ -1,122 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React, {PureComponent} from 'react';-import styled from 'styled-components';--import {WALKTHROUGH_ITEMS} from '../content';-import {media} from '../styles';-import Swipeable from './common/swipeable';--const WalkthroughItem = styled.div`- display: flex;- flex-direction: column;- align-items: center;-- ${media.palm`- width: 100%;- font-size: 12px;- `};-`;--const VideoContainer = styled.div`- width: 640px;- ${media.portable`- width: 500px;- `}- ${media.palm`- width: 100%;- `};-- video {- width: 100%;- }-`;--const VideoDescription = styled.div`- margin-top: 16px;-`;--const VideoWrapperHeader = styled.div`- height: 15px;- background: #E5E5E4;- border-radius: 3px 3px 0px 0px;- display: flex;- align-items: center;- padding: 0px 5px;-`;--const VideoWrapperHeaderCircle = styled.div`- width: 6px;- height: 6px;- border-radius: 10px;- background: ${props => props.color};- margin-left: 5px;-`;--const VideoWrapper = ({children}) => (- <div>- <VideoWrapperHeader>- <VideoWrapperHeaderCircle color="#12BB00" />- <VideoWrapperHeaderCircle color="#D3AE00" />- <VideoWrapperHeaderCircle color="#DE3131" />- </VideoWrapperHeader>- {children}- </div>-);--class Walkthrough extends PureComponent {- constructor(props) {- super(props);- this.videoElements = {};- }- state = {- selectedIndex: 0- };-- _onChange = (index) => {- this.setState({selectedIndex: index});- const videoElement = this.videoElements[index];- videoElement.load();- videoElement.play();- };-- _onVideoEnded = () => {- const {selectedIndex} = this.state;- const newIndex = (selectedIndex + 1) % WALKTHROUGH_ITEMS.length;- this._onChange(newIndex);- };-- _assignVideoRef = (element, index) => {- this.videoElements[index] = element;- };-- render() {- const {selectedIndex} = this.state;- return (- <div>- <Swipeable onChange={this._onChange} selectedIndex={selectedIndex}>- {WALKTHROUGH_ITEMS.map(({videoUrl, imageUrl, description}, i) => (- <WalkthroughItem key={i}>- <VideoWrapper key={videoUrl}>- <VideoContainer>- <video- muted- src={videoUrl}- poster={imageUrl}- autoPlay={i === selectedIndex}- ref={(elt) => this._assignVideoRef(elt, i)}- onEnded={this._onVideoEnded}- />- </VideoContainer>- </VideoWrapper>- <VideoDescription>{description}</VideoDescription>- </WalkthroughItem>- ))}- </Swipeable>- </div>- );- }-}--export default Walkthrough;diff --git a/website-gatsby/src/constants.js b/website-gatsby/src/constants.jsdeleted file mode 100644index 20592a102..000000000--- a/website-gatsby/src/constants.js+++ /dev/null@@ -1,7 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--export const CLOUDFRONT = 'https://d1a3f4spazzrp4.cloudfront.net';-export const KEPLER_GL_BUCKET = 'kepler.gl';-export const WEBSITE_ASSET_FOLDER = 'website';-export const DEMO_LINK = '/demo';diff --git a/website-gatsby/src/content.js b/website-gatsby/src/content.jsdeleted file mode 100644index c59313342..000000000--- a/website-gatsby/src/content.js+++ /dev/null@@ -1,235 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import {cdnUrl} from './utils';--export const SECTIONS = [- {- id: 'showcase',- title: 'Map Enthusiast?',- description: 'Make beautiful data-driven maps.',- icon: cdnUrl('icons/showcase.png')- },- {- id: 'walkthrough',- title: 'Data Scientist?',- description:- 'Gain insights from location data and deliver business outcomes.',- icon: cdnUrl('icons/walkthrough.png'),- isDark: true- },- {- id: 'features',- title: 'Developer?',- description:- 'A customizable geospatial toolbox to help make data-driven decisions.',- icon: cdnUrl('icons/features.png')- },- {- id: 'examples',- title: 'See What People Created',- description: 'See what others have been creating with Kepler.gl.',- icon: cdnUrl('icons/examples.png'),- background: cdnUrl('examples/section-background.png')- },- {- id: 'tutorials',- title: 'Getting Started',- description: 'Get started with tutorials created by our team.',- icon: cdnUrl('icons/tutorials.png')- }-];--export const HERO_IMAGES = [- cdnUrl('hero/kepler.gl-hexagon.png'),- cdnUrl('hero/kepler.gl-points.png'),- cdnUrl('hero/kepler.gl-contours.png')-];--export const HERO_IMAGES_SCALED = [- cdnUrl('hero/kepler.gl-hexagon_s.png'),- cdnUrl('hero/kepler.gl-points_s.png'),- cdnUrl('hero/kepler.gl-contours_s.png')-];--export const HEADER_NAVS = [- {- text: 'User Guide',- link: 'https://docs.kepler.gl/docs/user-guides'- },- {- text: 'Documentation',- link: 'https://docs.kepler.gl/docs/api-reference'- },- {- text: 'Github',- link: 'https://github.com/keplergl/kepler.gl'- },- {- text: 'Support Policy',- link: '/policy'- }-];--export const SHOWCASE_ITEMS = [- {- text: 'Arc',- image: cdnUrl('showcase/arcs-s.png'),- icon: cdnUrl('showcase/icons/arc.png')- },- {- text: 'Line',- image: cdnUrl('showcase/lines-s.png'),- icon: cdnUrl('showcase/icons/line.png')- },- {- text: 'Hexagon',- image: cdnUrl('showcase/hexagons-s.png'),- icon: cdnUrl('showcase/icons/hexagon.png')- },- {- text: 'Point',- image: cdnUrl('showcase/points-s.png'),- icon: cdnUrl('showcase/icons/point.png')- },- // {- // text: 'H3',- // image: cdnUrl('showcase/h3.png'),- // icon: cdnUrl('showcase/icons/h3.png')- // },- {- text: 'Heatmap',- image: cdnUrl('showcase/heatmap-s.png'),- icon: cdnUrl('showcase/icons/heatmap.png')- },- {- text: 'GeoJSON',- image: cdnUrl('showcase/geojson-s.png'),- icon: cdnUrl('showcase/icons/geojson.png')- },- {- text: 'Buildings',- image: cdnUrl('showcase/buildings-s.png'),- icon: cdnUrl('showcase/icons/cluster.png')- }-];--export const WALKTHROUGH_ITEMS = [- {- videoUrl: cdnUrl('videos/0.upload_file.mp4'),- imageUrl: cdnUrl('videos/0.upload_file.png'),- description:- 'Easily add data to map by drag and drop files'- },- {- videoUrl: cdnUrl('videos/1.time_filter.mp4'),- imageUrl: cdnUrl('videos/1.time_filter.png'),- description:- 'Free form filtering with time playback'- },- {- videoUrl: cdnUrl('videos/2.aggregation.mp4'),- imageUrl: cdnUrl('videos/2.aggregation.png'),- description:- 'Gain deeper insights by performing geo aggregation'- },- {- videoUrl: cdnUrl('videos/3.brushing.mp4'),- imageUrl: cdnUrl('videos/3.brushing.png'),- description:- 'Explore origin-destination correlations with brushing'- }-];--export const FEATURES = [- {- title: 'Performance',- description:- 'Built with Deck.gl, Kepler.gl utilizes WebGL to render large datasets quickly and efficiently.',- image: cdnUrl('features/performance.svg')- },- {- title: 'Interaction',- description:- 'You can easily drag and drop a dataset, add filters, apply scales, and do aggregation on the fly.',- image: cdnUrl('features/interaction.svg')- },- {- title: 'Embeddable',- description:- 'Built on React & Redux, Kepler.gl can be embedded inside your own mapping applications.',- image: cdnUrl('features/embeddable.svg')- }-];--export const EXAMPLES = [- {- title: 'California Earthquakes',- description: 'Location, maginitude and magtype of 2.5+ magnitude earthquakes in california',- image: cdnUrl('examples/cali-earthquakes.png'),- url: '/demo/earthquakes'- },- {- title: 'New York City Cab Rides',- description: 'A small sample of yellow and green taxi trip records in New York City',- image: cdnUrl('examples/ny-taxis.png'),- url: '/demo/nyctrips'- },- {- title: 'San Francisco Elevation Contour',- description: 'Elevation contours of San Francisco mainland and Treasure Island/Yerba Island',- image: cdnUrl('examples/sf-elevation.png'),- url: '/demo/sfcontour'- },- {- title: 'Travel Times from Uber Movement',- description: 'Pittsburgh travel times before and during heavy inclement weather conditions',- image: cdnUrl('examples/movement-pittsburgh.png'),- url: '/demo/movement_pittsburgh'- },- {- title: 'New york city population',- description: 'This dataset contains the 2010 Census tract population data of NYC',- image: cdnUrl('examples/ny-population.png'),- url: '/demo/nyc_census'- },- {- title: 'San Francisco Street Tree Map',- description: 'A 3d hexbin density map showing every single streets in San Francisco',- image: cdnUrl('examples/sf-street-trees.png'),- url: '/demo/sftrees'- },- {- title: 'Commute Patterns in the UK',- description: 'A origin destination map using 3d arcs to show commute patterns of England and Wales residence',- image: cdnUrl('examples/uk-commute.png'),- url: '/demo/ukcommute'- }-];--export const TUTORIALS = [- {- title: 'How to create a map in 3 minutes',- description: 'Animating 40 years of California Earthquakes.',- image: cdnUrl('examples/earthquake.png'),- url: 'https://medium.com/vis-gl/animating-40-years-of-california-earthquakes-e4ffcdd4a289'- },- {- title: 'Adding altitude to points',- description: 'Mapping the Parisian trees.',- image: cdnUrl('examples/parisian.png'),- url: 'https://medium.com/vis-gl/mapping-the-parisian-trees-6dc30f6aabc7'- },- {- description: 'Visualizing U.S. County Unemployment with kepler.gl',- title: 'Making a choropleth map',- image: cdnUrl('examples/unemployment.png'),- url: 'https://medium.com/vis-gl/visualizing-u-s-county-unemployment-with-kepler-gl-c5f2ed31c71'- },- {- title: 'Uber Movement and kepler.gl',- description: 'Using kepler.gl and Movement data to Visualize Traffic Effects of a Rainstorm',- image: cdnUrl('examples/movement.png'),- url: 'https://medium.com/@uber_movement/movement-in-kepler-d00e843f464d'- }-];diff --git a/website-gatsby/src/state/analytics.js b/website-gatsby/src/state/analytics.jsdeleted file mode 100644index c82ae296e..000000000--- a/website-gatsby/src/state/analytics.js+++ /dev/null@@ -1,103 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--// This file sends actions on the demo app to Google analytics--import {ActionTypes} from 'kepler.gl/actions';-import {LOCATION_CHANGE} from 'react-router-redux';-import Window from 'global/window';-import {ALL_FIELD_TYPES} from 'kepler.gl/constants';-import get from 'lodash/get';--const getPayload = action => (action ? action.payload : null);--// Hack, because we don't have a way to access next state-const getFilterType = (store, idx, value) => {- const {visState} = store.getState().demo.keplerGl.map;- const filter = visState.filters[idx];- const {dataId} = filter;- if (!dataId) {- return {};- }- const {fields} = visState.datasets[dataId];- const field = fields.find(f => f.name === value);-- // Hack- switch (field.type) {- case ALL_FIELD_TYPES.real:- case ALL_FIELD_TYPES.integer:- return 'range';-- case ALL_FIELD_TYPES.boolean:- return 'select';-- case ALL_FIELD_TYPES.string:- case ALL_FIELD_TYPES.date:- return 'multiSelect';-- case ALL_FIELD_TYPES.timestamp:- return 'timeRange';-- default:- return null;- }-};--const trackingInformation = {- [ActionTypes.LOAD_FILES]: payload => payload.files.map(({size, type}) => ({size, type})),- [ActionTypes.LAYER_TYPE_CHANGE]: ({newType}) => ({- newType- }),- [ActionTypes.MAP_STYLE_CHANGE]: getPayload,- [ActionTypes.TOGGLE_MODAL]: getPayload,- [ActionTypes.ADD_LAYER]: (payload, store) => ({- total: store.getState().demo.keplerGl.map.visState.layers.length + 1- }),- [ActionTypes.ADD_FILTER]: (payload, store) => ({- total: store.getState().demo.keplerGl.map.visState.filters.length + 1- }),- [ActionTypes.SET_FILTER]: ({prop, idx, value}, store) => {- if (prop !== 'name') {- return {};- }- return {- filterType: getFilterType(store, idx, value)- };- },- [ActionTypes.INTERACTION_CONFIG_CHANGE]: ({config: {id, enabled}}) => ({- [id]: enabled- }),- [LOCATION_CHANGE]: x => x,-- // demo app actions- ['PUSHING_FILE']: payload => {- const size = get(payload, ['metadata', 'metadata', 'size']);- return {- isLoading: payload.isLoading,- status: payload.metadata.status,- filename: payload.metadata.filename,- size,- error: payload.error- };- }-};--const EXCLUDED_ACTIONS = [ActionTypes.LAYER_HOVER, ActionTypes.UPDATE_MAP];--const analyticsMiddleware = store => next => action => {- if (Window.gtag && !EXCLUDED_ACTIONS.includes(action.type)) {- const payload = action.payload || action;-- // eslint-disable-next-line no-undef- Window.gtag('event', 'action', {- event_category: action.type,- event_label: trackingInformation[action.type]- ? JSON.stringify(trackingInformation[action.type](payload, store))- : null- });- }-- return next(action);-};--export default analyticsMiddleware;diff --git a/website-gatsby/src/state/app.js b/website-gatsby/src/state/app.jsdeleted file mode 100644index d94199477..000000000--- a/website-gatsby/src/state/app.js+++ /dev/null@@ -1,10 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import {handleActions} from 'redux-actions';--const DEFAULT_APP_STATE = {};--export default handleActions({- INIT: (state, action) => ({...state, ready: true})-}, DEFAULT_APP_STATE);diff --git a/website-gatsby/src/state/index.js b/website-gatsby/src/state/index.jsdeleted file mode 100644index 57275160f..000000000--- a/website-gatsby/src/state/index.js+++ /dev/null@@ -1,13 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import { combineReducers } from 'redux';-import test from './test';-import app from './app';-// import analytics from './analytics';--export default combineReducers({- test,- app- // analytics-});diff --git a/website-gatsby/src/state/redux-wrapper.js b/website-gatsby/src/state/redux-wrapper.jsdeleted file mode 100644index 9f8e81ea6..000000000--- a/website-gatsby/src/state/redux-wrapper.js+++ /dev/null@@ -1,14 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import React from 'react';-import { Provider } from 'react-redux';-import { createStore as reduxCreateStore } from 'redux';-import rootReducer from '.';--const createStore = () => reduxCreateStore(rootReducer);--// Wraps the root-component in Gatsby-export default ({ element }) => (- <Provider store={createStore()}>{element}</Provider>-);diff --git a/website-gatsby/src/state/test.js b/website-gatsby/src/state/test.jsdeleted file mode 100644index b684df9b5..000000000--- a/website-gatsby/src/state/test.js+++ /dev/null@@ -1,27 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--// action creators--const TOGGLE_DARKMODE = 'TOGGLE_DARKMODE';--export const toggleDarkMode = () => ({- type: TOGGLE_DARKMODE-});--// initial state--const initialState = {- isDarkMode: false,-};--// reducer--export default (state = initialState, action) => {- switch (action.type) {- case TOGGLE_DARKMODE:- return { ...state, isDarkMode: !state.isDarkMode };- default:- return state;- }-};diff --git a/website-gatsby/src/styles.js b/website-gatsby/src/styles.jsdeleted file mode 100644index 109aa49b7..000000000--- a/website-gatsby/src/styles.js+++ /dev/null@@ -1,79 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import {css} from 'styled-components';--export const breakPoints = {- palm: 588,- desk: 768-};--export const media = {- palm: (...args) => css`- @media (max-width: ${breakPoints.palm}px) {- ${css(...args)};- }- `,-- portable: (...args) => css`- @media (max-width: ${breakPoints.desk}px) {- ${css(...args)};- }- `,-- desk: (...args) => css`- @media (min-width: ${breakPoints.desk + 1}px) {- ${css(...args)};- }- `-};--export const errorColor = '#F9042C';--export const theme = {- textColor: '#FFFFFF',- labelColor: '#D0D0D0',- mapBackground: '#0D1823',- mapBlocker: '#0B151F',- footerColor: '#C0C0C0',- // button:- primaryBtnBgd: '#005CD2',- primaryBtnActBgd: '#13B17B',- primaryBtnColor: '#FFFFFF',- primaryBtnActColor: '#FFFFFF',- primaryBtnBgdHover: '#1f7cf4',- primaryBtnRadius: '2px',- secondaryBtnBgd: '#6A7485',- secondaryBtnActBgd: '#A0A7B4',- secondaryBtnColor: '#FFFFFF',- secondaryBtnActColor: '#FFFFFF',- secondaryBtnBgdHover: '#A0A7B4',- outlineBtnBgd: 'transparent',- outlineBtnBgdHover: 'rgba(0, 0, 0, 0.05)',- outlineBtnActColor: '#000000',- outlineBtnColor: '#000000',- outlineDarkBtnBgd: 'transparent',- outlineDarkBtnBgdHover: 'rgba(255, 255, 255, 0.05)',- outlineDarkBtnActColor: '#ffffff',- outlineDarkBtnColor: '#ffffff',- linkBtnBgd: 'transparent',- linkBtnActBgd: 'transparent',- linkBtnColor: '#A0A7B4',- linkBtnActColor: '#3A414C',- linkBtnActBgdHover: 'transparent',- negativeBtnBgd: errorColor,- negativeBtnActBgd: '#FF193E',- negativeBtnBgdHover: '#FF193E',- negativeBtnColor: '#FFFFFF',- negativeBtnActColor: '#FFFFFF',- btnTransition: '350ms color, 350ms background',- linkColor: '#A0A7B4',- darkBackgroundColor: '#242730',- margins: {- tiny: '0.5rem',- small: '1.0rem',- medium: '1.5rem',- large: '2.0rem',- huge: '2.5rem'- }-};diff --git a/website-gatsby/src/utils.js b/website-gatsby/src/utils.jsdeleted file mode 100644index 010363674..000000000--- a/website-gatsby/src/utils.js+++ /dev/null@@ -1,8 +0,0 @@-// SPDX-License-Identifier: MIT-// Copyright contributors to the kepler.gl project--import {CLOUDFRONT, KEPLER_GL_BUCKET, WEBSITE_ASSET_FOLDER} from './constants';--export function cdnUrl(path) {- return `${CLOUDFRONT}/${KEPLER_GL_BUCKET}/${WEBSITE_ASSET_FOLDER}/${path}`;-}diff --git a/website-gatsby/static/CNAME b/website-gatsby/static/CNAMEdeleted file mode 100644index a6e0f4f00..000000000--- a/website-gatsby/static/CNAME+++ /dev/null@@ -1 +0,0 @@-kepler.gl\ No newline at end of filediff --git a/website-gatsby/static/images/icon-high-precision.svg b/website-gatsby/static/images/icon-high-precision.svgdeleted file mode 100644index 1371e5e54..000000000--- a/website-gatsby/static/images/icon-high-precision.svg+++ /dev/null@@ -1,27 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<svg width="36px" height="36px" viewBox="0 0 36 36" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">- <!-- Generator: Sketch 40.3 (33839) - http://www.bohemiancoding.com/sketch -->- <title>high-precision</title>- <desc>Created with Sketch.</desc>- <defs>- <linearGradient x1="21.4661737%" y1="9.07149733%" x2="49.9016193%" y2="99.6864909%" id="linearGradient-1">- <stop stop-color="#00ADE7" offset="0%"></stop>- <stop stop-color="#04E3D5" offset="100%"></stop>- </linearGradient>- </defs>- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">- <g id="high-precision" fill="url(#linearGradient-1)">- <g id="Group-2-Copy">- <g id="noun_128688_cc">- <g id="Group">- <g>- <path d="M31.48,17.6 C31.28,10.48 25.6,4.72 18.4,4.52 L18.4,0 L17.6,0 L17.6,4.52 C10.4,4.68 4.72,10.44 4.52,17.6 L0,17.6 L0,18.4 L4.52,18.4 C4.72,25.52 10.48,31.28 17.6,31.48 L17.6,36 L18.4,36 L18.4,31.48 C25.52,31.28 31.28,25.52 31.48,18.4 L36,18.4 L36,17.6 L31.48,17.6 L31.48,17.6 Z M30.28,18.4 C30.08,24.88 24.88,30.08 18.4,30.28 L18.4,27.2 L17.6,27.2 L17.6,30.28 C11.12,30.08 5.92,24.88 5.72,18.4 L8.8,18.4 L8.8,17.6 L5.72,17.6 C5.92,11.12 11.2,5.88 17.6,5.72 L17.6,9.2 L18.4,9.2 L18.4,5.72 C24.8,5.92 30.08,11.16 30.28,17.6 L26.8,17.6 L26.8,18.4 L30.28,18.4 L30.28,18.4 Z" id="Shape"></path>- <ellipse id="Oval" cx="18" cy="18" rx="2.4" ry="2.4"></ellipse>- <path d="M18,12.8 C15.12,12.8 12.8,15.12 12.8,18 C12.8,20.88 15.12,23.2 18,23.2 C20.88,23.2 23.2,20.88 23.2,18 C23.2,15.12 20.88,12.8 18,12.8 L18,12.8 Z M18,22.4 C15.56,22.4 13.6,20.44 13.6,18 C13.6,15.56 15.56,13.6 18,13.6 C20.44,13.6 22.4,15.56 22.4,18 C22.4,20.44 20.44,22.4 18,22.4 L18,22.4 Z" id="Shape"></path>- </g>- </g>- </g>- </g>- </g>- </g>-</svg>diff --git a/website-gatsby/templates/index.jsx b/website-gatsby/templates/index.jsxdeleted file mode 100644index a4da001dc..000000000--- a/website-gatsby/templates/index.jsx+++ /dev/null@@ -1,38 +0,0 @@-import React from 'react';-import {connect} from 'react-redux';-import {Home} from 'gatsby-theme-ocular/components';-import './style.css';--import {toggleDarkMode} from '../src/state/test';--import HeroExample from '../src/components/home';-// const HeroExample = 'div';--if (typeof window !== 'undefined') {- window.website = true;-}--const DarkButton = ({isDarkMode, dispatch}) => (- <button- style={isDarkMode ? {background: 'black', color: 'white'} : null}- onClick={() => dispatch(toggleDarkMode())}- >- Dark Mode- </button>-);--class IndexPage extends React.Component {- render() {- const {isDarkMode, dispatch} = this.props;- return (- <div style={{top: 60, position: 'absolute'}}>- <DarkButton dispatch={dispatch} isDarkMode={isDarkMode} />- <Home HeroExample={HeroExample} />- </div>- );- }-}--export default connect(state => ({- isDarkMode: state.app.isDarkMode-}), null)(IndexPage);diff --git a/website-gatsby/templates/style.css b/website-gatsby/templates/style.cssdeleted file mode 100644index a5529644e..000000000--- a/website-gatsby/templates/style.css+++ /dev/null@@ -1,7 +0,0 @@-.banner .container {- background: rgba(0, 0, 0, 0);-}--.banner .hero .options-panel {- display: none;-}