Skip to content

Commit

Permalink
Merge pull request #6 from thewebplatform/master
Browse files Browse the repository at this point in the history
Updating From Parent
  • Loading branch information
prateekjadhwani committed Jul 25, 2015
2 parents b24c267 + 649e436 commit 0e43fd7
Show file tree
Hide file tree
Showing 12 changed files with 191 additions and 237 deletions.
20 changes: 20 additions & 0 deletions app/elements/about-us/about-us.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<link rel="import" href="../elements.html">

<dom-module id="about-us">
<style>
:host {
height: 100%;
width: 100%;
}
</style>
<template>
<h1>About us Page</h1>
</template>
</dom-module>
<script>
( function() {
Polymer({
is: 'about-us'
});
})();
</script>
8 changes: 6 additions & 2 deletions app/elements/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="import" href="../bower_components/iron-icons/iron-icons.html">
<link rel="import" href="../bower_components/iron-pages/iron-pages.html">
<link rel="import" href="../bower_components/iron-selector/iron-selector.html">
<link rel="import" href="../bower_components/iron-image/iron-image.html">

<!-- Paper elements -->
<link rel="import" href="../bower_components/paper-drawer-panel/paper-drawer-panel.html">
Expand All @@ -24,6 +25,8 @@
<link rel="import" href="../bower_components/paper-styles/paper-styles-classes.html">
<link rel="import" href="../bower_components/paper-toast/paper-toast.html">
<link rel="import" href="../bower_components/paper-toolbar/paper-toolbar.html">
<link rel="import" href="../bower_components/paper-tabs/paper-tabs.html" >
<link rel="import" href="../bower_components/paper-tabs/paper-tab.html" >

<!-- Platinum elements -->
<!--
Expand All @@ -36,8 +39,9 @@

<!-- Add your elements here -->
<link rel="import" href="../styles/app-theme.html">
<link rel="import" href="my-greeting/my-greeting.html">
<link rel="import" href="my-list/my-list.html">
<link rel="import" href="new-episode/new-episode.html">
<link rel="import" href="previous-episodes/previous-episodes.html">
<link rel="import" href="about-us/about-us.html">

<!-- Configure your routes here -->
<link rel="import" href="routing.html">
44 changes: 0 additions & 44 deletions app/elements/my-greeting/my-greeting.html

This file was deleted.

47 changes: 0 additions & 47 deletions app/elements/my-list/my-list.html

This file was deleted.

20 changes: 20 additions & 0 deletions app/elements/new-episode/new-episode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<link rel="import" href="../elements.html">

<dom-module id="new-episode">
<style>
:host {
height: 100%;
width: 100%;
}
</style>
<template>
<h1>New Episode Page</h1>
</template>
</dom-module>
<script>
( function() {
Polymer({
is: 'new-episode'
});
})();
</script>
20 changes: 20 additions & 0 deletions app/elements/previous-episodes/previous-episodes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<link rel="import" href="../elements.html">

<dom-module id="previous-episodes">
<style>
:host {
height: 100%;
width: 100%;
}
</style>
<template>
<h1>Previous Episodes Page</h1>
</template>
</dom-module>
<script>
( function() {
Polymer({
is: 'previous-episodes'
});
})();
</script>
14 changes: 7 additions & 7 deletions app/elements/routing.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
// client-side router inspired by the Express router
// More info: https://visionmedia.github.io/page.js/
page('/', function () {
app.route = 'home';
app.route = 'new';
});

page('/users', function () {
app.route = 'users';
page('/old', function () {
app.route = 'old';
});

page('/users/:name', function (data) {
app.route = 'user-info';
page('/old/:id', function (data) {
app.route = 'old-episode';
app.params = data.params;
});

page('/contact', function () {
app.route = 'contact';
page('/about', function () {
app.route = 'about';
});

// add #! before urls
Expand Down
Binary file added app/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0e43fd7

Please sign in to comment.