Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: src/site/samples/index.markdown

Issue 27267004: Re-configured samples page. (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/samples/index.markdown
diff --git a/src/site/samples/index.markdown b/src/site/samples/index.markdown
index 0839bc1f7d4b70ab79fc32276fbc7f92c2376cfa..6b6b4ea42ba37464839d5bf443e7c3e1903cb267 100644
--- a/src/site/samples/index.markdown
+++ b/src/site/samples/index.markdown
@@ -3,95 +3,57 @@ layout: default
title: "Dart Code Samples"
description: Check out some Dart code in action with these samples, ranging
from Hello, World to a solar system simulator.
+header:
+ css: ["/samples/samples.css"]
---
# {{ page.title }}
-The <a
-href="https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/samples/">dart/samples</a>
+The <a
+href="https://github.com/dart-lang/bleeding_edge/tree/master/dart/samples">dart/samples</a>
directory contains many applications written in Dart.
-Some of these samples are available in [Dart Editor](/editor/) for easy
+Some of these samples are available in [Dart Editor](/tools/editor/) for easy
experimentation.
{% injectdata samples samples/samples.yaml %}
+<div class="row">
+ <div class="span6">
+ {% for group in page.samples.col1 %}
+ <div class="group-heading">{{ group.heading }}</div>
+ {% for example in group.examples %}
+ <div class="row-fluid example">
+ <div class="span8">
+ <div class="title"><a href="{{ example.explanation_url }}">{{ example.title }}</a></div>
+ </div>
+ <div class="span2">
+ <div class="link"><a href="{{ example.source_url }}">Source</a></div>
+ </div>
+ <div class="span2">
+ {% if example.tryit_url %}
+ <div class="link"><a href="{{ example.tryit_url }}">Try it</a></div>
+ {% endif %}
+ </div>
+ </div>
+ {% endfor %}
+ {% endfor %}
+ </div>
+ <div class="span6">
+ {% for group in page.samples.col2 %}
+ <div class="group-heading">{{ group.heading }}</div>
+ {% for example in group.examples %}
+ <div class="row-fluid example">
+ <div class="span8">
+ <div class="title"><a href="{{ example.explanation_url }}">{{ example.title }}</a></div>
+ </div>
+ <div class="span2">
+ <div class="link"><a href="{{ example.source_url }}">Source</a></div>
+ </div>
+ <div class="span2">
+ <div class="link"><a href="{{ example.tryit_url }}">Try it</a></div>
+ </div>
+ </div>
+ {% endfor %}
+ {% endfor %}
+ </div>
+</div>
-<ul class="thumbnails">
-
- {% for sample in page.samples.row01 %}
- <li class="span4">
- <div class="thumbnail">
- <img src="imgs/{{ sample.name }}.png" alt="{{ sample.alt }}">
- <h3>{{ sample.title }}</h3>
- <p>
- {{ sample.desc }}
- </p>
- <p>
- <a href="{{ sample.source_url }}">View the source.</a>
- {% if sample.live_url %}
- <a href="{{ sample.live_url }}">Try it live.</a>
- {% endif %}
- </p>
- <ul>
- {% for feature in sample.features %}
- <li>{{ feature }}</li>
- {% endfor %}
- </ul>
- </div>
- </li>
- {% endfor %}
-
-</ul>
-
-<ul class="thumbnails">
-
- {% for sample in page.samples.row02 %}
- <li class="span4">
- <div class="thumbnail">
- <img src="imgs/{{ sample.name }}.png" alt="{{ sample.alt }}">
- <h3>{{ sample.title }}</h3>
- <p>
- {{ sample.desc }}
- </p>
- <p>
- <a href="{{ sample.source_url }}">View the source.</a>
- {% if sample.live_url %}
- <a href="{{ sample.live_url }}">Try it live.</a>
- {% endif %}
- </p>
- <ul>
- {% for feature in sample.features %}
- <li>{{ feature }}</li>
- {% endfor %}
- </ul>
- </div>
- </li>
- {% endfor %}
-
-</ul>
-
-<ul class="thumbnails">
-
- {% for sample in page.samples.row03 %}
- <li class="span4">
- <div class="thumbnail">
- <img src="imgs/{{ sample.name }}.png" alt="{{ sample.alt }}">
- <h3>{{ sample.title }}</h3>
- <p>
- {{ sample.desc }}
- </p>
- <p>
- <a href="{{ sample.source_url }}">View the source.</a>
- {% if sample.live_url %}
- <a href="{{ sample.live_url }}">Try it live.</a>
- {% endif %}
- </p>
- <ul>
- {% for feature in sample.features %}
- <li>{{ feature }}</li>
- {% endfor %}
- </ul>
- </div>
- </li>
- {% endfor %}
-
-</ul>

Powered by Google App Engine
This is Rietveld 408576698