From d5ae72edddb790f1ce15ab722d3d63922493d6f3 Mon Sep 17 00:00:00 2001 From: Marcy Sutton Date: Wed, 21 Jan 2015 13:29:02 -0800 Subject: [PATCH] docs(): Add content funnels to landing page --- docs/app/css/style.css | 35 +++++++++++++++++++++++- docs/app/js/app.js | 15 +++++++++++ docs/app/partials/home.tmpl.html | 46 +++++++++++++++++++++++++++----- 3 files changed, 88 insertions(+), 8 deletions(-) diff --git a/docs/app/css/style.css b/docs/app/css/style.css index 616b638b241..376d73cc19a 100644 --- a/docs/app/css/style.css +++ b/docs/app/css/style.css @@ -9,6 +9,10 @@ body { a { color: #3f51b5; + text-decoration: none; +} +a:hover, a:focus { + text-decoration: underline; } table { @@ -364,8 +368,37 @@ md-toolbar.demo-toolbar .md-button { font-size: 18px; } +/*************** + * Landing Page + ***************/ +ul.buckets { + margin: 24px 0; + padding: 0; +} +ul.buckets li { + list-style: none; + margin: 0; + text-align: center; +} +ul.buckets li md-card md-card-content { + padding: 0; +} +ul.buckets li a { + background-color: transparent; + display: block; + font-weight: 500; + padding: 16px 0; + text-decoration: none; + -webkit-transition: all 0.45s cubic-bezier(0.35, 0, 0.25, 1); + transition: all 0.45s cubic-bezier(0.35, 0, 0.25, 1); +} +ul.buckets li a:focus { + background-color: #03a9f4; + color: white; +} + /************ - * DOCS + * API DOCS ************/ .api-options-bar .md-button { margin: 4px; diff --git a/docs/app/js/app.js b/docs/app/js/app.js index 2fcfe0c847d..96df3dbc07e 100644 --- a/docs/app/js/app.js +++ b/docs/app/js/app.js @@ -16,6 +16,21 @@ function(COMPONENTS, DEMOS, PAGES, $routeProvider, $mdThemingProvider) { return 'partials/layout-' + params.tmpl + '.tmpl.html'; } }) + .when('/layout/', { + redirectTo: function() { + return "/layout/container"; + } + }) + .when('/demo/', { + redirectTo: function() { + return DEMOS[0].url; + } + }) + .when('/api/', { + redirectTo: function() { + return COMPONENTS[0].docs[0].url; + } + }) .when('/getting-started', { templateUrl: 'partials/getting-started.tmpl.html' }); diff --git a/docs/app/partials/home.tmpl.html b/docs/app/partials/home.tmpl.html index fbefb5abd26..40f4e84a8d0 100644 --- a/docs/app/partials/home.tmpl.html +++ b/docs/app/partials/home.tmpl.html @@ -1,5 +1,44 @@
+

+ The Angular Material Design project is a reference implementation effort similar to that provided in the + Polymer project's + Paper elements + collection. This project provides a set of AngularJS UI elements that implement the Material Design system. +

+ + + +

What is Material Design?

Material Design is a specification for a unified system of visual, motion, and interaction design that adapts across different devices and different @@ -12,13 +51,6 @@ - -

- The Angular Material Design project is a reference implementation effort similar to that provided in the - Polymer project's - Paper elements - collection. This project provides a set of AngularJS UI elements that implement the material design system. -

  • These docs were generated from source in the `master` branch: