Skip to content

Commit 4c7fb4f

Browse files
committed
Add flutter/angular links to front page of pub
[email protected] Review URL: https://codereview.chromium.org/2560433002 .
1 parent a0fc55c commit 4c7fb4f

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

app/views/index.mustache

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
BSD-style license that can be found in the LICENSE file. }}
44

55
<div class="intro">
6-
<h1>Welcome to pub.dartlang.org!</h1>
6+
<h2>Welcome to pub.dartlang.org!</h2>
77
<p>
88
This is your friendly repository of packages of software for the
99
<a href="http://dartlang.org">Dart programming language</a>. Explore
@@ -15,6 +15,31 @@
1515
Get started
1616
</a>
1717
</div>
18+
<div class="framework_links">
19+
<div class="flutter_framework_link">
20+
<a href="https://flutter.io/">
21+
<img class="framework_image" src="/static/flutter.png" />
22+
</a>
23+
24+
<h2>Mobile development?</h2>
25+
<a class="get-started" href="https://flutter.io/">
26+
Try Flutter!
27+
</a>
28+
<br/>
29+
&nbsp;
30+
</div>
31+
<div class="angular_framework_link">
32+
<a href="https://webdev.dartlang.org/angular/guide">
33+
<img class="framework_image" src="/static/angulardart.png" />
34+
</a>
35+
<h2>Web development?</h2>
36+
<a class="get-started" href="https://webdev.dartlang.org/angular/guide">
37+
Try Angular!
38+
</a>
39+
<br/>
40+
Using the <a href="/packages/angular2">angular2</a> package.
41+
</div>
42+
</div>
1843
<h2>Recently updated packages</h2>
1944
<table>
2045
<thead>

static/style.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,29 @@ table .span24 {
25992599
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
26002600
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
26012601
}
2602+
.framework_links {
2603+
overflow: auto;
2604+
}
2605+
.flutter_framework_link, .angular_framework_link {
2606+
margin: 20px;
2607+
padding: 10px;
2608+
background-color: #f5f5f5;
2609+
border: 1px solid #eee;
2610+
border: 1px solid rgba(0, 0, 0, 0.05);
2611+
border-radius: 4px;
2612+
text-align: center;
2613+
}
2614+
.flutter_framework_link {
2615+
width: 44%;
2616+
float: left;
2617+
}
2618+
.angular_framework_link {
2619+
width: 44%;
2620+
overflow: hidden;
2621+
}
2622+
.framework_image {
2623+
float: left;
2624+
}
26022625
.well blockquote, footer blockquote, .intro blockquote, ol.toc blockquote {
26032626
border-color: #ddd;
26042627
border-color: rgba(0, 0, 0, 0.15);
@@ -2679,7 +2702,7 @@ button.close {
26792702
*zoom: 1;
26802703
padding: 4px 10px 4px;
26812704
margin-bottom: 0;
2682-
font-size: 14px;
2705+
font-size: 20px;
26832706
line-height: 24px;
26842707
*line-height: 20px;
26852708
color: #333333;

0 commit comments

Comments
 (0)