Skip to content

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

[chore] Replace Studio section with Desktop section (#3189)

Igor Dykhtae4b64a0800d0
diff --git a/website/src/components/desktop.js b/website/src/components/desktop.js
new file mode 100644
index 000000000..b4b50ff87
--- /dev/null
+++ b/website/src/components/desktop.js
@@ -0,0 +1,196 @@
+// SPDX-License-Identifier: MIT
+// Copyright contributors to the kepler.gl project
+
+import React, {useCallback, useState} from 'react';
+import styled from 'styled-components';
+import Swipeable from './common/swipeable';
+import {fsqStudioUrl, fsqCdnDesktopUrl} from '../utils';
+import {LinkButton} from './common/styled-components';
+
+const DESKTOP_PRODUCT_URL = 'https://foursquare.com/products/spatial-desktop/';
+
+// Temporarily reuse Studio images/icons as placeholders. We'll swap in
+// Desktop-specific images when URLs are provided.
+const CAROUSEL_GROUPS = [
+ [
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-1.png'),
+ icon: fsqStudioUrl('logos/Dataset_Operation.png'),
+ title: 'Browser-free with native DuckDB',
+ description:
+ 'Run instantaneous, complex spatial queries on multi-GB datasets with native DuckDB in Spatial Desktop.',
+ link: DESKTOP_PRODUCT_URL
+ },
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-2.png'),
+ icon: fsqStudioUrl('logos/Administrative_boundaries.png'),
+ title: 'Built on SQLRooms',
+ description:
+ 'A SQLRooms foundation offers community-driven extensibility through custom plug-ins - delivering full computational power for high-performance, visualization-intensive tasks.',
+ link: DESKTOP_PRODUCT_URL
+ },
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-3.png'),
+ icon: fsqStudioUrl('logos/Flow_layer.png'),
+ title: 'Cloud-native spatial formats',
+ description:
+ 'Spatial Desktop has native support for the formats GIS pros need, including GeoParquet and PMTiles.',
+ link: DESKTOP_PRODUCT_URL
+ }
+ ],
+ [
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-4.png'),
+ icon: fsqStudioUrl('logos/Tile_Layers.png'),
+ title: 'Real-time rendering',
+ description:
+ 'Harnessing Kepler.gl’s visualization excellence, you can easily render millions of points with interactive filtering and smooth animations – without browser memory limitations.',
+ link: DESKTOP_PRODUCT_URL
+ },
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-5.png'),
+ icon: fsqStudioUrl('logos/Analytics_modules.png'),
+ title: 'Flexible access & save',
+ description:
+ 'Easily manage multiple projects and save them locally on your desktop or to your personal cloud storage.',
+ link: DESKTOP_PRODUCT_URL
+ },
+ {
+ imageUrl: fsqCdnDesktopUrl('screenshots/img-6.png'),
+ icon: fsqStudioUrl('logos/Charts.png'),
+ title: 'Spatial joins and aggregations',
+ description:
+ 'Create buffers, perform spatial joins (intersects, within, distance), and aggregate with SQL group-bys—no external engine needed.',
+ link: DESKTOP_PRODUCT_URL
+ }
+ ]
+];
+
+const Flex = styled.div`
+ display: flex;
+`;
+
+const DesktopContainer = styled(Flex)`
+ width: 100%;
+ align-items: center;
+ flex-direction: column;
+ gap: 72px;
+`;
+
+const Section = styled(Flex)`
+ gap: 56px;
+ width: 100%;
+ justify-content: center;
+ justify-items: center;
+ padding-top: 8px;
+`;
+
+const CardImage = styled.img`
+ height: 230px;
+ width: 386px;
+ max-width: none;
+ object-fit: cover;
+ box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.5);
+ transition: transform 350ms;
+`;
+
+const Card = styled.a`
+ display: flex;
+ flex-direction: column;
+ gap: 56px;
+ align-items: center;
+ cursor: pointer;
+ color: white;
+ flex: 0 0 auto;
+
+ :visited {
+ color: white;
+ }
+
+ :hover {
+ ${CardImage} {
+ transform: scale3d(1.05, 1.05, 1.05);
+ }
+ }
+`;
+
+const CardBody = styled(Flex)`
+ flex-direction: column;
+ gap: 16px;
+ max-width: 300px;
+ align-items: center;
+`;
+
+const CardIcon = styled.img`
+ height: 24px;
+ width: 24px;
+`;
+
+const CardTitle = styled.div`
+ font-size: 20px;
+ line-height: 28px;
+ text-align: center;
+`;
+
+const CardDescription = styled.div`
+ font-size: 16px;
+ line-height: 26px;
+ text-align: center;
+ opacity: 0.7;
+`;
+
+const CardSection = ({cards}) => (
+ <Section>
+ {cards.map(card => (
+ <Card key={card.imageUrl} href={card.link} target="_blank">
+ <CardImage src={card.imageUrl} alt={card.title} />
+ <CardBody>
+ <CardIcon src={card.icon} alt={card.title} />
+ <CardTitle>{card.title}</CardTitle>
+ <CardDescription>{card.description}</CardDescription>
+ </CardBody>
+ </Card>
+ ))}
+ </Section>
+);
+
+const WhiteLinkButton = styled(LinkButton)`
+ && {
+ border-color: white;
+ color: white;
+ }
+
+ &&:hover,
+ &&:focus,
+ &&:active,
+ &&:visited,
+ &&.active {
+ color: white;
+ }
+`;
+
+const Desktop = () => {
+ const [selectedIndex, setSelectedIndex] = useState(0);
+ const onChange = useCallback(index => {
+ setSelectedIndex(index);
+ }, []);
+
+ return (
+ <DesktopContainer>
+ <Swipeable
+ onChange={onChange}
+ selectedIndex={selectedIndex}
+ containerStyle={{overflow: 'visible'}}
+ >
+ {CAROUSEL_GROUPS.map((cards, index) => (
+ <CardSection key={index} cards={cards} />
+ ))}
+ </Swipeable>
+ <WhiteLinkButton outline large href={DESKTOP_PRODUCT_URL} target="_blank">
+ Learn More
+ </WhiteLinkButton>
+ </DesktopContainer>
+ );
+};
+
+export default React.memo(Desktop);
diff --git a/website/src/components/home.js b/website/src/components/home.js
index a19b84c25..a855fd5ae 100644
--- a/website/src/components/home.js
+++ b/website/src/components/home.js
@@ -15,6 +15,7 @@ import Walkthrough from './walkthrough';
import Features from './features';
import Ecosystems from './ecosystems';
import Studio from './studio';
+import Desktop from './desktop';
import Footer from './footer';
import Section from './common/section';
import Header from './header';
@@ -32,7 +33,8 @@ const SECTION_CONTENT = {
examples: Examples,
tutorials: Tutorials,
ecosystems: Ecosystems,
- studio: Studio
+ studio: Studio,
+ desktop: Desktop
};
export default class Home extends PureComponent {
diff --git a/website/src/constants.js b/website/src/constants.js
index 707c23476..371734a13 100644
--- a/website/src/constants.js
+++ b/website/src/constants.js
@@ -8,3 +8,5 @@ export const DEMO_LINK = '/demo';
export const DEMO_DUCKDB_LINK = 'https://kepler-preview.foursquare.com/';
export const KEPLER_FSQ_BUCKET =
'https://studio-public-data.foursquare.com/statics/keplergl/images';
+export const KEPLER_FSQ_DESKTOP_BUCKET =
+ 'https://spatial-desktop.foursquare.com/app-data/keplergl/images';
diff --git a/website/src/content.js b/website/src/content.js
index e1bbc46a7..d23243dec 100644
--- a/website/src/content.js
+++ b/website/src/content.js
@@ -23,6 +23,7 @@ export const SECTIONS = [
description: 'A customizable geospatial toolbox to help make data-driven decisions.',
icon: cdnUrl('icons/features.png')
},
+ /*
{
id: 'studio',
title: 'Take The Next Step',
@@ -30,6 +31,14 @@ export const SECTIONS = [
powerful geospatial analytics and visualization tool, with new features and updates released every few weeks.`,
icon: fsqCdnUrl('fsqlogo.png'),
isDark: true
+ },*/
+ {
+ id: 'desktop',
+ title: 'Foursquare Spatial Desktop',
+ description:
+ 'A native desktop app built on kepler.gl, DuckDB and SQLRooms for more power and fewer browser limitations.',
+ icon: fsqCdnUrl('fsqlogo.png'),
+ isDark: true
},
{
id: 'examples',
diff --git a/website/src/utils.js b/website/src/utils.js
index bff0a9f6e..569e874b2 100644
--- a/website/src/utils.js
+++ b/website/src/utils.js
@@ -1,7 +1,13 @@
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project
-import {CLOUDFRONT, KEPLER_GL_BUCKET, WEBSITE_ASSET_FOLDER, KEPLER_FSQ_BUCKET} from './constants';
+import {
+ CLOUDFRONT,
+ KEPLER_GL_BUCKET,
+ WEBSITE_ASSET_FOLDER,
+ KEPLER_FSQ_BUCKET,
+ KEPLER_FSQ_DESKTOP_BUCKET
+} from './constants';
export function cdnUrl(path) {
return `${CLOUDFRONT}/${KEPLER_GL_BUCKET}/${WEBSITE_ASSET_FOLDER}/${path}`;
@@ -13,3 +19,7 @@ export function fsqCdnUrl(path) {
export function fsqStudioUrl(path) {
return fsqCdnUrl(`studio/${path}`);
}
+
+export function fsqCdnDesktopUrl(path) {
+ return `${KEPLER_FSQ_DESKTOP_BUCKET}/${path}`;
+}