Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

fix background color

Shan He55130e93b163
diff --git a/website/src/README.md b/website/src/README.md
new file mode 100644
index 000000000..32174c4b2
--- /dev/null
+++ b/website/src/README.md
@@ -0,0 +1,14 @@
+This is the source code of the demo website for deck.gl.
+
+## Developing
+
+ npm install
+ export MapboxAccessToken=<insert_your_token> && npm start
+
+## About the blog
+
+The deck.gl blog is a standalone, static website. Its contents are referenced by this demo app in the **blog** page. When publishing the demo site a build of the blog is pulled from the `origin/blog` branch to the `dist/` folder.
+
+We use [Jekyll](https://jekyllrb.com/) to render the blog. It handles things such as templating, pagination, tagging and RSS feed for us. The source of the blog is on its own separate branch because:
+- It does not depend on anything in master
+- Only team members can publish articles, therefore it should not be pulled/forked with the deck.gl source code.
diff --git a/website/src/components/home.js b/website/src/components/home.js
index 7f0800d67..20d27cb55 100644
--- a/website/src/components/home.js
+++ b/website/src/components/home.js
@@ -4,7 +4,6 @@ import styled, {keyframes} from 'styled-components';
import {media, breakPoints} from '../styles';
export const CLOUDFRONT = 'https://d1a3f4spazzrp4.cloudfront.net/';
-
export const KEPLER_GL_BUCKET = 'kepler.gl/';
import {Button} from './common/styled-components';
@@ -47,19 +46,11 @@ const StyledMapContainer = styled.div`
position: fixed;
top: 0;
left: 0;
- background-color: ${props => props.theme.mapBackground};
- opacity: 0;
+ background-color: ${props => props.theme.mapBlocker};
+ opacity: 0.6;
z-index: 1;
pointer-events: none;
}
-
- .mapboxgl-map .mapboxgl-missing-css {
- display: none;
- }
-
- ${media.palm`
- display: none;
- `}
`;
const StyledHomeContent = styled.div`
@@ -277,12 +268,11 @@ class Home extends Component {
<StyledHome className="kg-home">
<StyledMapContainer className="kg-home__map">
<div className="kg-home__map__blocker"/>
- <img style={{
- width: `${this.state.width}px`,
- height: 'auto',
- minWidth: `${screenMinW}px`
- }}
- src={`${CLOUDFRONT}${KEPLER_GL_BUCKET}kepler.gl-background.png`}/>
+ <img style={{
+ width: `${this.state.width}px`,
+ height: 'auto',
+ minWidth: `${screenMinW}px`
+ }} src={`${CLOUDFRONT}${KEPLER_GL_BUCKET}kepler.gl-background.png`}/>
</StyledMapContainer>
<StyledHomeContent style={isPalm ? {} : {
diff --git a/website/src/styles.js b/website/src/styles.js
index 865fefe35..c61f7259b 100644
--- a/website/src/styles.js
+++ b/website/src/styles.js
@@ -30,7 +30,8 @@ export const errorColor = '#F9042C';
export const theme = {
textColor: '#FFFFFF',
labelColor: '#D0D0D0',
- mapBackground: '#0f1d28',
+ mapBackground: '#0D1823',
+ mapBlocker: '#0B151F',
footerColor: '#C0C0C0',
// button:
primaryBtnBgd: '#0F9668',