Skip to content

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

[website] Add Website header (#67)

Shan He7ad12cad85dc
diff --git a/docs/j-get-started.md b/docs/j-get-started.md
new file mode 100644
index 000000000..2813d0861
--- /dev/null
+++ b/docs/j-get-started.md
@@ -0,0 +1,20 @@
+# Get Started
+
+Kepler.gl is a tool designed for geospatial data analysis. This guide will help you get started creating visualizations in kepler.gl.
+
+
+1) Add Data to your Map
+
+Kepler.gl will prompt you to add data to your map as soon as you open the web page. Upload your own CSV or GEOJSON file, or add kepler.gl sample data.
+Sample data is a great way to explore and get familiar with kepler.gl’s features.
+
+Read more about adding [Add data to the map](./b-kepler.gl-workflow/a-add-data-to-the-map.md).
+
+
+2) Add Layers
+
+Open the Data Layers menu to start building your visualization. Layers are simply data visualizations that can be built on top of one another. The map pictured above contains a GeoJSON path layer showing trip routes.
+
+If you’re new to kepler.gl, play around with the different settings for each type of layer. Layers of the same type can differ greatly in appearance depending on how they’re configured, opening up new possibilities for data analysis.
+
+Learn more about layers.
diff --git a/website/src/components/header.js b/website/src/components/header.js
new file mode 100644
index 000000000..e648ba0ae
--- /dev/null
+++ b/website/src/components/header.js
@@ -0,0 +1,57 @@
+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/src/components/home.js b/website/src/components/home.js
index a43fd4f05..974c093c9 100644
--- a/website/src/components/home.js
+++ b/website/src/components/home.js
@@ -31,6 +31,7 @@ import Walkthrough from './walkthrough';
import Features from './features';
import Footer from './footer';
import Section from './common/section';
+import Header from './header';
const SECTION_CONTENT = {
showcase: Showcase,
@@ -45,6 +46,7 @@ export default class Home extends PureComponent {
return (
<ThemeProvider theme={theme}>
<div>
+ <Header/>
<Hero />
{SECTIONS.map(
({id, title, description, icon, isDark, background}, i) => {
diff --git a/website/src/content.js b/website/src/content.js
index 7fa283b46..0aef82d62 100644
--- a/website/src/content.js
+++ b/website/src/content.js
@@ -69,6 +69,18 @@ export const HERO_IMAGES_SCALED = [
cdnUrl('hero/kepler.gl-contours_s.png')
];
+export const HEADER_NAVS = [
+ {
+ text: 'Get Started',
+ link: 'https://github.com/uber/kepler.gl/blob/master/docs/a-introduction.md'
+ },
+
+ {
+ text: 'Github',
+ link: 'https://github.com/uber/kepler.gl/blob/master/docs/a-introduction.md'
+ }
+];
+
export const SHOWCASE_ITEMS = [
{
text: 'Arc',