Created
May 3, 2019 12:34
-
-
Save johntom/d9fb664cabc97e136c21a2aabbc2f689 to your computer and use it in GitHub Desktop.
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
<!doctype html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
</head> | |
<body> | |
<div aurelia-app="src/configure"> | |
Loading... | |
</div> | |
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm_packages/system.js"></script> | |
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm.config.js"></script> | |
<script> | |
System.import("aurelia-bootstrapper"); | |
</script> | |
</body> | |
</html> |
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
.md-parallax-demo .parallax { | |
z-index: 0; | |
} |
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
<template> | |
<require from="./app.css"></require> | |
<div class="md-parallax-demo"> | |
<div class="row"> | |
<div class="col s12 m8"> | |
<md-card title="Parallax"> | |
<p> | |
scroll down | |
</p> | |
</md-card> | |
</div> | |
</div> | |
<div class="parallax-container"> | |
<div md-parallax> | |
<img src="https://aurelia-ui-toolkits.github.io/demo-materialize/images/parallax-1.jpg"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col s12 m8"> | |
<md-card title="More content"> | |
<p> | |
some more scrolling content | |
</p> | |
</md-card> | |
</div> | |
</div> | |
<div class="parallax-container"> | |
<div md-parallax> | |
<img src="https://aurelia-ui-toolkits.github.io/demo-materialize/images/parallax-2.jpg"> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col s12 m8"> | |
<md-card title="More content"> | |
<p> | |
even more scrolling content | |
</p> | |
</md-card> | |
</div> | |
</div> | |
</div> | |
</template> |
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
export class App { } |
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
export async function configure(aurelia) { | |
await aurelia.loader.loadModule("materialize-css"); | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging() | |
.plugin("aurelia-materialize-bridge", bridge => bridge.useAll()) | |
.plugin("aurelia-validation") | |
.globalResources("src/shared/logger"); | |
await aurelia.start(); | |
aurelia.setRoot("src/app"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment