diff --git a/site/public/css/planetaryjs.less b/site/public/css/planetaryjs.less index 6fbbdad..009afa8 100644 --- a/site/public/css/planetaryjs.less +++ b/site/public/css/planetaryjs.less @@ -144,8 +144,15 @@ canvas#homepage-globe-canvas { text-decoration: none; } -.ui.menu .item.with-subitems { - // padding-bottom: 0.2em; +.example-segment { + .horizontal.label { + margin-top: 5px; + } + + img { + width: 200px; + height: 200px; + } } .ui.menu .item.contains-subitems { diff --git a/site/public/examples/basic.ejs b/site/public/examples/basic.ejs index 5405e5c..7cc8c60 100644 --- a/site/public/examples/basic.ejs +++ b/site/public/examples/basic.ejs @@ -1,3 +1,9 @@ + +

Basic Globe

This example shows the minimum code you need to render a basic representation of the planet Earth.

diff --git a/site/public/examples/index.ejs b/site/public/examples/index.ejs index b63ed4e..6a27237 100644 --- a/site/public/examples/index.ejs +++ b/site/public/examples/index.ejs @@ -2,34 +2,37 @@

Sometimes you just need to see some code to get an idea started; here are a few examples of what you can build with Planetary.js.

-
-
- -
-
Basic Globe
-

It doesn't get any simpler than this: - just a static globe using built-in plugins and nothing - up our sleeves!

-
-
- - -
-
Rotating Globe
-

If there's one thing that's better than - a globe, it's a globe that rotates. This is the demo from the - homepage of Planetaryjs.com, and so includes a custom - auto-rotation plugin and zoom/drag integration.

-
-
- - -
-
Earthquake Data
-

A visualization of 2013 seismic activity. - This demo shows the use of multiple custom plugins, D3 - scales, fetching third party data, and DOM updates via D3.

-
-
+
+
Level 1
+
+ +

Basic Globe

+

It doesn't get any simpler than this: just a static globe, built using built-in plugins with nothing up our sleeves!

+ plugins: earth + d3: projections +
+
+ +
+
Level 2
+
+ +

Rotating Globe with Pings

+

If there's one thing that's better than a globe, it's a globe that rotates. This is the demo from the homepage of Planetaryjs.com, and so includes a custom auto-rotation plugin and zoom/drag integration.

+ plugins: earth, pings, drag, zoom + custom plugins + d3: projections +
+
+ +
+
Level 3
+
+ +

2013 Seismic Activity Visualization

+

A visualization of 2013 seismic activity. This demo shows the use of multiple custom plugins, D3 scales, fetching third party data, and DOM updates via D3.

+ plugins: earth, pings, drag, zoom + custom plugins + d3: projections, scales, selections, events, external data
diff --git a/site/public/examples/quake.ejs b/site/public/examples/quake.ejs index bc9fa41..f293ed3 100644 --- a/site/public/examples/quake.ejs +++ b/site/public/examples/quake.ejs @@ -1,6 +1,12 @@ -

2013 Earthquake Data

+ -

This is a more advanced example of what can be built with Planetary.js. The demo sets up a globe with some custom plugins (defined at the bottom of the JavaScript), and also demonstrates some non-Planetary.js-specific techniques, like the use of Moment.js, D3 scales, DOM manipulation, and loading external data.

+

2013 Seismic Activity Visualization

+ +

This is a more advanced example of what you can build with Planetary.js. The demo sets up a globe with some custom plugins (defined at the bottom of the JavaScript), and also demonstrates some non-Planetary.js-specific techniques, like the use of Moment.js, D3 scales, DOM manipulation, and loading external data.

View the demo

diff --git a/site/public/examples/rotating.ejs b/site/public/examples/rotating.ejs index 7423eb9..eb702cf 100644 --- a/site/public/examples/rotating.ejs +++ b/site/public/examples/rotating.ejs @@ -1,4 +1,10 @@ -

Basic Globe

+ + +

Rotating Globe with Pings

This code shows the example from the homepage, which rotates, shows randomly positioned, colored, and sized pings on the globe, and supports mouse-based dragging and zooming. It also shows the creation and use of a plugin, which powers the automatic rotation and exposes a public API.

diff --git a/site/public/images/ex-basic.png b/site/public/images/ex-basic.png new file mode 100644 index 0000000..0199995 Binary files /dev/null and b/site/public/images/ex-basic.png differ diff --git a/site/public/images/ex-quake.png b/site/public/images/ex-quake.png new file mode 100644 index 0000000..f44902a Binary files /dev/null and b/site/public/images/ex-quake.png differ diff --git a/site/public/images/ex-rotating.png b/site/public/images/ex-rotating.png new file mode 100644 index 0000000..85575b3 Binary files /dev/null and b/site/public/images/ex-rotating.png differ