diff --git a/public/_data.json b/public/_data.json index 23073a1ce7..0615a7de15 100644 --- a/public/_data.json +++ b/public/_data.json @@ -11,7 +11,8 @@ "contribute": { "title": "Contribute to Angular", - "subtitle": "Built By A Community of People, Just Like You." + "subtitle": "Help us build the framework of the future!", + "autoformat": "true" }, "download": { diff --git a/public/_includes/_version-dropdown.jade b/public/_includes/_version-dropdown.jade index 55185faf7b..e7865bf6da 100644 --- a/public/_includes/_version-dropdown.jade +++ b/public/_includes/_version-dropdown.jade @@ -12,3 +12,4 @@ if language == 'dart' h2.hero-subtitle.text-subhead button(md-button ng-click="showVersionMenu($event)") #{title} + diff --git a/public/_layout.jade b/public/_layout.jade index 22ef16bb65..faab1b7981 100644 --- a/public/_layout.jade +++ b/public/_layout.jade @@ -12,7 +12,10 @@ html(lang="en" ng-app="angularIOApp") else != partial("/_includes/_hero") - article.l-content + format = autoformat ? 'docs-content' : '' + + + article(class="l-content #{format}") != yield != partial("/_includes/_footer") diff --git a/public/contribute.jade b/public/contribute.jade index 2fa3b2f9fc..3c276617a6 100644 --- a/public/contribute.jade +++ b/public/contribute.jade @@ -1 +1,24 @@ -h1 Contribute \ No newline at end of file +.l-main-section + h2 Angular Projects + p We'd love for you to contribute to our source code and to make Angular projects even better. + + .l-sub-section + h3 Angular JS + + p Angular is a development platform for building mobile and desktop web applications. + + a(href="https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md" class="button" md-button) Contribute to Angular JS + + .l-sub-section + h3 Angular Material + + p Our goal is to deliver a lean, lightweight set of AngularJS-native UI elements that implement the material design specification for use in Angular single-page applications (SPAs). + + a(href="https://github.com/angular/material/blob/master/docs/guides/CONTRIBUTING.md" class="button" md-button) Contribute to Angular Material + + .l-sub-section + h3 AngularFire + + p AngularFire is the officially supported AngularJS binding for Firebase. Firebase is a full backend so you don't need servers to build your Angular app. + + a(href="https://github.com/firebase/angularFire" class="button" md-button) Contribute to AngularFire diff --git a/public/resources/js/site.js b/public/resources/js/site.js index b75a861a67..e6f04c7c0b 100644 --- a/public/resources/js/site.js +++ b/public/resources/js/site.js @@ -20,7 +20,14 @@ angularIO.controller('AppCtrl', ['$scope', '$mdSidenav', '$mdDialog', function($ }; $scope.showVersionMenu = function() { - alert('hi'); + $mdDialog.show( + $mdDialog.alert() + .title('Choose a Version') + .content('libraries') + .ariaLabel('Angular Version Menu') + .ok('Done') + .targetEvent(event) + ); }; $scope.showBio = function (event) { @@ -31,8 +38,8 @@ angularIO.controller('AppCtrl', ['$scope', '$mdSidenav', '$mdDialog', function($ $mdDialog.alert() .title('Full Bio') .content(bio) - .ariaLabel('Password notification') - .ok('Done') + .ariaLabel('Biography') + .ok('Close Bio') .targetEvent(event) ); };