Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[website] update Vis.gl blog url, add mapbox logo to footer (#65)
Shan He85ad6768979a
diff --git a/website/src/components/footer.js b/website/src/components/footer.jsindex 36b689cbe..ee1b6652e 100644--- a/website/src/components/footer.js+++ b/website/src/components/footer.js@@ -30,6 +30,7 @@ import {import {cdnUrl} from '../utils';import {LinkButton} from './common/styled-components';import {media} from '../styles';+import MapboxLogo from './mapbox-logo';const Container = styled.div`background: #242730;@@ -48,7 +49,7 @@ const LogosContainer = styled.div`const BrandingContainer = styled.div`display: inline-flex;- align-items: flex-end;+ align-items: center;${media.palm`margin-top: ${props => props.theme.margins.small};`};@@ -144,9 +145,10 @@ export default class Footer extends PureComponent {return (<Container><LogosContainer>- <img src={cdnUrl('icons/kepler.svg')} />+ <img style={{width: '120px'}} src={cdnUrl('icons/kepler.svg')} /><BrandingContainer><img src={cdnUrl('icons/uber.svg')} />+ <MapboxLogo/><CreatedBy>created by<StyledLogo className="fg">diff --git a/website/src/components/hero.js b/website/src/components/hero.jsindex cea8fc4a4..4fe94258c 100644--- a/website/src/components/hero.js+++ b/website/src/components/hero.js@@ -131,7 +131,7 @@ const Logo = styled.img`position: absolute;left: 0;top: 0;-+ width: 120px;${media.palm`position: inherit;margin-top: ${props => props.theme.margins.normal};diff --git a/website/src/components/mapbox-logo.js b/website/src/components/mapbox-logo.jsnew file mode 100644index 000000000..b7189ee84--- /dev/null+++ b/website/src/components/mapbox-logo.js@@ -0,0 +1,15 @@+import React, {PureComponent} from 'react';+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/src/content.js b/website/src/content.jsindex e0fac3684..ae0735637 100644--- a/website/src/content.js+++ b/website/src/content.js@@ -108,7 +108,7 @@ export const SHOWCASE_ITEMS = [{text: 'Buildings',image: cdnUrl('showcase/buildings-s.png'),- icon: cdnUrl('showcase/icons/heatmap.png')+ icon: cdnUrl('showcase/icons/cluster.png')}];@@ -216,18 +216,18 @@ export const TUTORIALS = [title: 'Adding altitude to points',description: 'Mapping the Parisian trees.',image: cdnUrl('examples/parisian.png'),- url: 'com/vis-gl/animating-40-years-of-california-earthquakes-e4ffcdd4a289'+ url: 'https://medium.com/@jerome_56098/34caf9133673'},{title: 'Mapping a choropleth map',description: 'Visualizing US County Unemployment with kepler.gl',image: cdnUrl('examples/unemployment.png'),- url: 'com/vis-gl/animating-40-years-of-california-earthquakes-e4ffcdd4a289'+ url: 'https://medium.com/@uber_movement/movement-in-kepler-d00e843f464d'},{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: 'com/vis-gl/animating-40-years-of-california-earthquakes-e4ffcdd4a289'+ url: 'https://medium.com/@uber_movement/movement-in-kepler-d00e843f464d'}];