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

Side by Side Diff: src/site/index.html

Issue 1319523005: Embed DartPad in the top part of homepage (Closed) Base URL: https://github.com/dart-lang/www.dartlang.org.git@master
Patch Set: remove 2nd dartpad Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/site/docs/tutorials/streams/index.markdown ('k') | src/site/js/carousel-next.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 --- 1 ---
2 layout: homepage 2 layout: homepage
3 js:
4 - url: /js/carousel-next.js
5 defer: true
3 --- 6 ---
4 7
5 <div class="container-page"> 8 <div class="container-page">
6 <div class="container-full hero-hldr"> 9 <div class="container-full hero-hldr">
7 <div class="hero container"> 10 <div id="top-carousel" class="carousel slide dart-carousel" data-interval= "false">
8 <div class="row"> 11
9 <div class="col-md-10 col-md-offset-1"> 12 <!-- Indicators -->
10 <h1>Scalable, productive app development</h1> 13 <ol class="carousel-indicators">
11 » <p> 14 <li data-target="#top-carousel" data-slide-to="0" class="active">Welco me to Dart!</li>
12 Dart is an open-source, scalable programming language, with 15 <li data-target="#top-carousel" data-slide-to="1">Try Dart</li>
13 robust libraries and runtimes, for building web, server, and 16 </ol>
14 mobile apps. 17
15 » </p> 18 <!-- Wrapper for slides -->
16 {% include downloads/_dart.html buttonclass="btn-default" %} 19 <div class="carousel-inner" height="500px">
20
21 <!-- SLIDE 1: original hero content -->
22 <div class="item active">
23 <div class="hero container">
24 <div class="row">
25 <div class="col-md-10 col-md-offset-1">
26 <h1>Scalable, productive app development</h1>
27 » <p>
28 Dart is an open-source, scalable programming language, with
29 robust libraries and runtimes, for building web, server, and
30 mobile apps.
31 » </p>
32
33 <button class="btn btn-lg try-btn" id="carousel-next">
34 Try Dart
35 </button>
36
37 <div class="editor-current-version version">
38 Current stable version of Dart:
39 <span class="editor-build-rev-stable">[calculating]</span>
40 </div>
41 </div>
42 </div>
43 </div>
44 <div class="container-full sub-hero-hldr">
45 <div id="feed-posts" class="sub-hero container">
46 </div>
47 </div>
17 </div> 48 </div>
18 </div>
19 </div>
20 </div>
21 49
22 <div class="container-full sub-hero-hldr"> 50 <!-- SLIDE 2: dartpad -->
23 <div id="feed-posts" class="sub-hero container"> 51 <div class="item code-hldr" style="padding-top: 24px; height: 460px">
24 </div> 52 {% comment %}
25 </div> 53 https://dartpad.dartlang.org/a6907e26b96678b75303
54 https://gist.github.com/a6907e26b96678b75303
55 verticalRatio set to a value that makes output have no scrollbar.
56 {% endcomment %}
57 <iframe src="{{site.custom.dartpad.embed-dart-prefix}}?id=a6907e26b9 6678b75303&verticalRatio=73"
58 width="100%" height="100%"
59 style="border: 1px solid #ccc;"></iframe>
60 </div>
61 </div> <!-- END slides -->
62 </div> <!-- END carousel -->
63 </div> <!-- END hero -->
26 64
27 <div class="container dart-container"> 65 <div class="container dart-container">
28
29 <section class="dart-ctas"> 66 <section class="dart-ctas">
30 <div class="row"> 67 <div class="row">
31 <div class="col-md-10 col-md-offset-1"> 68 <div class="col-md-10 col-md-offset-1">
32 <div class="row"> 69 <div class="row">
33 <div class="col-md-4"> 70 <div class="col-md-4">
34 <h2> 71 <h2>
35 <a id="see-code" href="#code" data-slide="true">See Dart</a> 72 <a id="see-code" href="#code" data-slide="true">See Dart</a>
36 </h2> 73 </h2>
37 <p class="timer"><i class="sprite-icon-timer"></i>About 5 minute s</p> 74 <p class="timer"><i class="sprite-icon-timer"></i>About 5 minute s</p>
38 <p>Dart is class based and object oriented, without being dogmat ic.</p> 75 <p>Dart is class based and object oriented, without being dogmat ic.</p>
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 <div class="row"> 441 <div class="row">
405 <div class="col-md-12" id="tools"> 442 <div class="col-md-12" id="tools">
406 <h2>Dart’s tools help you be productive</h2> 443 <h2>Dart’s tools help you be productive</h2>
407 <p> 444 <p>
408 With <a href="https://dartpad.dartlang.org">DartPad</a>, 445 With <a href="https://dartpad.dartlang.org">DartPad</a>,
409 you can write and run simple Dart programs in your browser. 446 you can write and run simple Dart programs in your browser.
410 Once you're ready to get serious, use whichever IDE or editor you like. 447 Once you're ready to get serious, use whichever IDE or editor you like.
411 <a href="/tools/">Dart plugins</a> exist for WebStorm, Eclipse, 448 <a href="/tools/">Dart plugins</a> exist for WebStorm, Eclipse,
412 Sublime Text, and more. 449 Sublime Text, and more.
413 </p> 450 </p>
451
414 <a href="https://dartpad.dartlang.org"><img src="imgs/dartpad.png" a lt="screenshot of DartPad" 452 <a href="https://dartpad.dartlang.org"><img src="imgs/dartpad.png" a lt="screenshot of DartPad"
415 style="margin-bottom:0px"></a> 453 style="margin-bottom:0px"></a>
416 </div> 454 </div>
417 </div> 455 </div>
418 <div class="row productivity-tools-options"> 456 <div class="row productivity-tools-options">
419 <div class="row"> 457 <div class="row">
420 <div class="col-md-4 col-md-offset-2"> 458 <div class="col-md-4 col-md-offset-2">
421 <h4><a href="/tools/pub/">Pub package manager</a></h4> 459 <h4><a href="/tools/pub/">Pub package manager</a></h4>
422 <p>The easiest way to get and share Dart code, pub keeps your pack ages up to date, handling versioning and dependency.</p> 460 <p>The easiest way to get and share Dart code, pub keeps your pack ages up to date, handling versioning and dependency.</p>
423 </div> 461 </div>
(...skipping 21 matching lines...) Expand all
445 <aside class="alert alert-info os-choices col-md-8 col-md-offset-2"> 483 <aside class="alert alert-info os-choices col-md-8 col-md-offset-2">
446 <b>Note:</b> 484 <b>Note:</b>
447 You can write Dart apps using any recent version of 485 You can write Dart apps using any recent version of
448 Windows, Linux, or Mac. 486 Windows, Linux, or Mac.
449 The Dart development tools <b>do not&nbsp;support Windows XP</b>. 487 The Dart development tools <b>do not&nbsp;support Windows XP</b>.
450 </aside> 488 </aside>
451 </div> 489 </div>
452 </section> 490 </section>
453 </div> <!-- end container --> 491 </div> <!-- end container -->
454 </div> <!-- end container-page --> 492 </div> <!-- end container-page -->
OLDNEW
« no previous file with comments | « src/site/docs/tutorials/streams/index.markdown ('k') | src/site/js/carousel-next.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698