Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Makes it much easier to generate a menu, better sample
- Loading branch information
1 parent
45d9e46
commit 8884e95
Showing
52 changed files
with
1,730 additions
and
761 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
title: About | ||
title: XTreme | ||
~~~ | ||
<h2>Headline II</h2> | ||
<div class="badge"> | ||
<div class="greeting"> | ||
Arrr! Me name is | ||
</div> | ||
<div class="name"> | ||
<span id="badgeName"> </span> | ||
</div> | ||
</div> | ||
<div class="mdl-panel mdl-shadow--2dp"> | ||
I live in a subfolder | ||
</div> | ||
|
Binary file added
BIN
+8.13 KB
example/simple/.sitegen/html/_content/assets/images/android-desktop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions
103
example/simple/.sitegen/html/_content/assets/styles/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/** | ||
* Copyright 2015 Google Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
html, body { | ||
font-family: 'Roboto', 'Helvetica', sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
.loading { | ||
color: white; | ||
font-size: 24px; | ||
|
||
z-index: 99; | ||
display: none; | ||
position: absolute; | ||
opacity: 0.8; | ||
|
||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
|
||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: center; // ⇾ | ||
align-content: stretch; // || | ||
align-items: center; // ↓ | ||
} | ||
|
||
&.mdl-upgrading { | ||
.loading { display: flex; } | ||
} | ||
} | ||
|
||
.tab-bar { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; // ⇾ | ||
align-content: space-between; // || | ||
align-items: flex-end; // ↓ | ||
|
||
min-height: 56px; | ||
|
||
//width: calc(100% - 112px); | ||
//margin: 0 0 0 56px; | ||
} | ||
|
||
.main-section { | ||
width: calc(100% - 112px); | ||
margin: 24px 0 0 56px; | ||
|
||
min-height: 480px; | ||
|
||
.mdl-panel { | ||
margin-bottom: 24px; | ||
} | ||
|
||
.mdl-card { | ||
.mdl-card__title { background-color: darkslateblue; } | ||
|
||
&.demo-card-wide { | ||
width: 600px; | ||
|
||
.is-small-screen & { | ||
width: auto; | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
/** | ||
Overwrites some essential MDL-Styles | ||
This should go into the main MDL-Branch | ||
*/ | ||
.mdl-card { | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
justify-content: flex-start; // ↓ | ||
align-content: space-between; // = | ||
align-items: stretch; // ⇾ | ||
|
||
.mdl-card__supporting-text { | ||
flex-grow: 1; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
title: Features | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<div class="mdl-panel mdl-shadow--2dp"> | ||
<h5 class="mdl-color-text--primary">Use as JSON-File</h5> | ||
<h7>families.json</h7> | ||
<ul> | ||
{{#_data.families}} | ||
<li>{{surname}} | ||
<ul> | ||
{{#members}} | ||
<li>{{given}}</li> | ||
{{/members}} | ||
</ul> | ||
</li> | ||
{{/_data.families}} | ||
</ul> | ||
|
||
<h5 class="mdl-color-text--primary">Here it is a YAML-File</h5> | ||
<h7>xmen.yaml</h7> | ||
<ul> | ||
{{#_data.xmen}} | ||
<li>{{.}}</li> | ||
{{/_data.xmen}} | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
title: Pirate badge1 | ||
title: Welcome | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<div class="widgets"> | ||
<div> | ||
<input type="text" id="inputName" maxlength="15" disabled> | ||
</div> | ||
<div> | ||
<button id="generateButton" disabled>Aye! Gimme a name!</button> | ||
</div> | ||
<div class="mdl-panel mdl-shadow--2dp"> | ||
Hi, I am content | ||
</div> | ||
<div class="badge"> | ||
<div class="greeting"> | ||
Arrr! Me name is {{> name }}{{>category.house}} | ||
</div> | ||
<div class="name"> | ||
<span id="badgeName"> </span> | ||
</div> | ||
</div> | ||
<div class="mdl-panel mdl-shadow--2dp"> | ||
<a href="special/xtreme.html">XTREME</a> is for testing minimal content!<br> | ||
<a href="special/template.html">TEMPLATE</a> uses the "info_page" template<br> | ||
</div> | ||
{{>cards.wide}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// template: none | ||
// logger: I am your logger | ||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
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('{{logger}}'); | ||
|
||
main() async { | ||
configLogging(); | ||
|
||
registerMdl(); | ||
await componentFactory().run(); | ||
} | ||
|
||
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()); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
template: info_page | ||
~~~ | ||
I'm using another Template! |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
title: Technology | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
<div class="mdl-panel mdl-shadow--2dp"> | ||
Some more content. No Card on this page! | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"link" : "Google", | ||
"url" : "http://www.google.com/" | ||
}, | ||
{ | ||
"link" : "Mike Mitterer", | ||
"url" : "http://www.mikemitterer.at/" | ||
} | ||
] |
Oops, something went wrong.