Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 7d38ec9

Browse files
refactor(index): reorganise the download button
1 parent 4473f53 commit 7d38ec9

3 files changed

Lines changed: 20 additions & 8 deletions

File tree

src/css/docs.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,17 @@ div.modal-body button {
324324
}
325325

326326
.ng2-beta img {
327-
width: 200px;
327+
height: 100px;
328+
}
329+
330+
.download-btn {
331+
height: 125px;
332+
border-radius: 10px;
333+
margin-bottom: 10px;
334+
}
335+
336+
.download-btn img {
337+
height: 80px;
328338
}
329339

330340
.jumbotron h1 {

src/img/ng-logo.png

5.83 KB
Loading

src/index.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,16 @@
110110
</div>
111111
<div class="center">
112112
<h1>HTML enhanced for web apps!</h1>
113+
<a class="btn btn-large btn-primary download-btn" href="" ng-click="showDownloadModal()">
114+
<i class="icon-download-alt icon-large"></i> Download AngularJS 1<br>
115+
<img src="img/ng-logo.png"><br>
116+
<span class="version" ng-cloak>
117+
(<span ng-repeat="branch in BRANCHES | filter:{showOnButton: true}">{{branch.version}}{{ !$last ? ' / ' : '' }}</span>)
118+
</span>
119+
</a>
120+
or
113121
<a href="http://angular.io" target="_blank" class="btn btn-large btn-primary ng2-beta">
114-
Try the new Angular<br>
122+
Try the new Angular 2<br>
115123
<img src="https://angular.io/resources/images/logos/angular2/shield-with-beta.png">
116124
</a>
117125

@@ -120,12 +128,6 @@ <h1>HTML enhanced for web apps!</h1>
120128
<a class="btn btn-large" href="https://github.com/angular/angular.js">
121129
<i class="icon-github-sign"></i> View on GitHub
122130
</a>
123-
<a class="btn btn-large btn-primary download-btn" href="" ng-click="showDownloadModal()">
124-
<i class="icon-download-alt icon-large"></i> Download
125-
<span class="version" ng-cloak>
126-
(<span ng-repeat="branch in BRANCHES | filter:{showOnButton: true}">{{branch.version}}{{ !$last ? ' / ' : '' }}</span>)
127-
</span>
128-
</a>
129131
<a class="btn btn-large btn-warning" href="http://goo.gl/sj0Nk1" target="_blank">
130132
<i class="icon-folder-open icon-large"></i> Design Docs &amp; Notes
131133
</a>

0 commit comments

Comments
 (0)