Permalink
Browse files

doc: Android Temppate added

  • Loading branch information...
MikeMitterer committed Jul 6, 2015
1 parent 7d56009 commit cb0093c787b82f7a711a6cc29bcf23832999c9fd
Showing with 412 additions and 4 deletions.
  1. BIN example/styleguide/.sitegen/html/_content/assets/images/template-android-dot-com.jpg
  2. +1 −1 example/styleguide/.sitegen/html/_content/views/templates.html
  3. +5 −0 example/styleguide/.sitegen/html/_data/templates.json
  4. BIN example/styleguide/web/assets/images/template-android-dot-com.jpg
  5. +17 −3 example/styleguide/web/views/templates.html
  6. +23 −0 example/template_android-dot-com/pubspec.yaml
  7. +6 −0 example/template_android-dot-com/web/README.md
  8. BIN example/template_android-dot-com/web/fonts/and_black.eot
  9. BIN example/template_android-dot-com/web/fonts/and_black.ttf
  10. BIN example/template_android-dot-com/web/fonts/and_black.woff
  11. BIN example/template_android-dot-com/web/images/android-logo-white.png
  12. BIN example/template_android-dot-com/web/images/android-logo.png
  13. BIN example/template_android-dot-com/web/images/andy.png
  14. BIN example/template_android-dot-com/web/images/auto-on.jpg
  15. BIN example/template_android-dot-com/web/images/devices.jpg
  16. BIN example/template_android-dot-com/web/images/more-from-1.png
  17. BIN example/template_android-dot-com/web/images/more-from-2.png
  18. BIN example/template_android-dot-com/web/images/more-from-3.png
  19. BIN example/template_android-dot-com/web/images/more-from-4.png
  20. BIN example/template_android-dot-com/web/images/nexus6-on.jpg
  21. BIN example/template_android-dot-com/web/images/nexus9-on.jpg
  22. BIN example/template_android-dot-com/web/images/slide01.jpg
  23. BIN example/template_android-dot-com/web/images/tv-on.jpg
  24. BIN example/template_android-dot-com/web/images/wear-black-on.png
  25. BIN example/template_android-dot-com/web/images/wear-silver-on.png
  26. BIN example/template_android-dot-com/web/images/wear.png
  27. +333 −0 example/template_android-dot-com/web/index.html
  28. +27 −0 example/template_android-dot-com/web/main.dart
@@ -3,7 +3,7 @@ <h4>Layout-Templates</h4>
<div class="mdl-list--styled-view"><ul>
{{#_data.templates}}
<li>
<a href="http://samples.material-design-lite.at/{{name}}/index.html" target="_blank" class="mdl-color-text--700">
<a href="http://samples.material-design-lite.pub/{{name}}/index.html" target="_blank" class="mdl-color-text--700">
<span class="mdl-list-view--avatar mdl-color--200">
<img src="assets/images/{{preview}}">
</span>
@@ -1,4 +1,9 @@
[
{
"name" : "template_android-dot-com",
"description" : "Android WebSite",
"preview" : "template-android-dot-com.jpg"
},
{
"name" : "template_sticky-footer",
"description" : "Sticky footer",
@@ -2,7 +2,21 @@
<h4>Layout-Templates</h4>
<div class="mdl-list--styled-view"><ul>
<li>
<a href="http://samples.material-design-lite.at/template_sticky-footer/index.html" target="_blank" class="mdl-color-text--700">
<a href="http://samples.material-design-lite.pub/template_android-dot-com/index.html" target="_blank" class="mdl-color-text--700">
<span class="mdl-list-view--avatar mdl-color--200">
<img src="assets/images/template-android-dot-com.jpg">
</span>
<span class="mdl-list-view--name">
Android WebSite
</span>
</a>
<a href="https://github.com/MikeMitterer/dart-material-design-lite/tree/mdl/example/template_android-dot-com"
class="mdl-color-text--400 github" target="_blank">
Source on GitHub
</a>
</li>
<li>
<a href="http://samples.material-design-lite.pub/template_sticky-footer/index.html" target="_blank" class="mdl-color-text--700">
<span class="mdl-list-view--avatar mdl-color--200">
<img src="assets/images/template-sticky-footer.jpg">
</span>
@@ -16,7 +30,7 @@ <h4>Layout-Templates</h4>
</a>
</li>
<li>
<a href="http://samples.material-design-lite.at/template_admin/index.html" target="_blank" class="mdl-color-text--700">
<a href="http://samples.material-design-lite.pub/template_admin/index.html" target="_blank" class="mdl-color-text--700">
<span class="mdl-list-view--avatar mdl-color--200">
<img src="assets/images/template-admin.jpg">
</span>
@@ -30,7 +44,7 @@ <h4>Layout-Templates</h4>
</a>
</li>
<li>
<a href="http://samples.material-design-lite.at/template_fixed-header/index.html" target="_blank" class="mdl-color-text--700">
<a href="http://samples.material-design-lite.pub/template_fixed-header/index.html" target="_blank" class="mdl-color-text--700">
<span class="mdl-list-view--avatar mdl-color--200">
<img src="assets/images/template-fixed-header.jpg">
</span>
@@ -0,0 +1,23 @@
name: mdl_template_anddroid_dot_com
version: 0.0.1
description: Material Design Lite 'Android Dot Com' Template
#author: <your name> <email@example.com>
#homepage: https://www.example.com
environment:
sdk: '>=1.0.0 <2.0.0'
dependencies:
browser: any
mdl:
path: ../..
logging: any
logging_handlers: any
console_log_handler: any
di: any
transformers:
- di
@@ -0,0 +1,6 @@
# android.com sample
##Why this sample
The goal of this sample is to illustrate implementing a real-world-looking site with **Material Design Lite**.
We therefore decided to do a cover of the front page of the android.com website, which while not a 1:1 match illustrates MDL usage well.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,27 @@
import 'dart:html' as html;
import 'package:logging/logging.dart';
import 'package:console_log_handler/console_log_handler.dart';
import 'package:mdl/mdl.dart';
final Logger _logger = new Logger('layout-header-drawer-footer');
void main() {
configLogging();
registerMdl();
componentFactory().run().then((_) {
});
}
void configLogging() {
hierarchicalLoggingEnabled = false; // set this to true - its part of Logging SDK
// now control the logging.
// Turn off all logging first
Logger.root.level = Level.INFO;
Logger.root.onRecord.listen(new LogConsoleHandler());
}

0 comments on commit cb0093c

Please sign in to comment.