diff --git a/app/router.js b/app/router.js index 5e68bea..7e67158 100644 --- a/app/router.js +++ b/app/router.js @@ -6,10 +6,15 @@ var Router = Ember.Router.extend({ }); Router.map(function() { - this.route('entities', { path: '/' }, function() { + this.route('lab-mashup', { path: '/' }, function() { + // dynamic routes this.route('entity', { path: '/:entity_id' }, function() { this.route('property', { path: '/:property_id'}); }); + + // static routes + this.route('static1', { path: '/static1' }); + this.route('static2', { path: '/static2' }); }); }); diff --git a/app/routes/entities.js b/app/routes/lab-mashup.js similarity index 100% rename from app/routes/entities.js rename to app/routes/lab-mashup.js diff --git a/app/routes/entities/entity.js b/app/routes/lab-mashup/entity.js similarity index 100% rename from app/routes/entities/entity.js rename to app/routes/lab-mashup/entity.js diff --git a/app/routes/entities/entity/index.js b/app/routes/lab-mashup/entity/index.js similarity index 100% rename from app/routes/entities/entity/index.js rename to app/routes/lab-mashup/entity/index.js diff --git a/app/routes/entities/entity/property.js b/app/routes/lab-mashup/entity/property.js similarity index 100% rename from app/routes/entities/entity/property.js rename to app/routes/lab-mashup/entity/property.js diff --git a/app/routes/entities/index.js b/app/routes/lab-mashup/index.js similarity index 100% rename from app/routes/entities/index.js rename to app/routes/lab-mashup/index.js diff --git a/app/styles/app.css b/app/styles/app.css index c19c64b..7a29417 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -4,7 +4,7 @@ html, body { } body { - background: #ccc; + background: #eee; color: #4d4d4d; min-width: 300px; @@ -23,22 +23,16 @@ body { } #lapMashupApp { - background: #fff; - box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), - 0 25px 50px 0 rgba(0, 0, 0, 0.1); - margin: 150px 0 40px 0; - position: relative; } -#lapMashupApp h1 { - color: rgba(95, 95, 95, 0.7); +header { + color: #fff; + background-color: #8080C9; - position: absolute; - top: -175px; - width: 100%; + padding: 10px 0 10px 0; - font-size: 70px; + font-size: 60px; font-weight: 100; text-align: center; text-rendering: optimizeLegibility; @@ -46,12 +40,44 @@ body { -moz-text-rendering: optimizeLegibitliy; } -#main { - border-top: 1px solid #e6e6e6; +#menu { + background-color: #6060C9; - padding: 20px; - position: relative; - z-index: 2; + border-top: 1px solid #3030C9; + + width: 100%; +} + +.nav-tabs { + color: #ccc; + background-color: #6060C9; + + padding-left: 30px; + + border: 0; +} + +.nav-tabs > li > a { + color: #ccc; + background-color: #5050C9; + box-shadow: none; + + border: 0; +} + +.nav-tabs > li > a:hoverĀ { + color: #ccc; + background-color: #7070C9; + + box-shadow: none; + + border: 0; + border-radius: 0; +} + +#main { + margin-top: 15px; + margin-left: 15px; } #main-left { diff --git a/app/templates/application.hbs b/app/templates/application.hbs index 2544389..c9faed0 100644 --- a/app/templates/application.hbs +++ b/app/templates/application.hbs @@ -1,6 +1,6 @@
{{outlet}} diff --git a/app/templates/components/properties-table.hbs b/app/templates/components/properties-table.hbs index df26ea2..aaf0673 100644 --- a/app/templates/components/properties-table.hbs +++ b/app/templates/components/properties-table.hbs @@ -5,7 +5,7 @@ {{#each entity.properties as |property|}} - {{#link-to 'entities.entity.property' property}}{{property.name}}{{/link-to}} + {{#link-to 'lab-mashup.entity.property' property}}{{property.name}}{{/link-to}} {{property.value}} {{property.type}} {{property.timestamp}} diff --git a/app/templates/entities.hbs b/app/templates/entities.hbs deleted file mode 100644 index 8521648..0000000 --- a/app/templates/entities.hbs +++ /dev/null @@ -1,11 +0,0 @@ -
- {{#if model}} -

Entities

- - {{entities-table entities=model}} - {{else}} -

No entities found

- {{/if}} - - {{outlet}} -
diff --git a/app/templates/entities/index.hbs b/app/templates/entities/index.hbs deleted file mode 100644 index 8265e61..0000000 --- a/app/templates/entities/index.hbs +++ /dev/null @@ -1,3 +0,0 @@ -{{#if model}} -

Select an entity to show it's properties

-{{/if}} diff --git a/app/templates/lab-mashup.hbs b/app/templates/lab-mashup.hbs new file mode 100644 index 0000000..0b4b1de --- /dev/null +++ b/app/templates/lab-mashup.hbs @@ -0,0 +1,10 @@ + + +
+ {{outlet}} +
diff --git a/app/templates/entities/entity.hbs b/app/templates/lab-mashup/entity.hbs similarity index 100% rename from app/templates/entities/entity.hbs rename to app/templates/lab-mashup/entity.hbs diff --git a/app/templates/entities/entity/index.hbs b/app/templates/lab-mashup/entity/index.hbs similarity index 100% rename from app/templates/entities/entity/index.hbs rename to app/templates/lab-mashup/entity/index.hbs diff --git a/app/templates/entities/entity/property.hbs b/app/templates/lab-mashup/entity/property.hbs similarity index 100% rename from app/templates/entities/entity/property.hbs rename to app/templates/lab-mashup/entity/property.hbs diff --git a/app/templates/lab-mashup/index.hbs b/app/templates/lab-mashup/index.hbs new file mode 100644 index 0000000..5321cb4 --- /dev/null +++ b/app/templates/lab-mashup/index.hbs @@ -0,0 +1 @@ +

Select an entity to show it's properties

diff --git a/app/templates/lab-mashup/static1.hbs b/app/templates/lab-mashup/static1.hbs new file mode 100644 index 0000000..387f099 --- /dev/null +++ b/app/templates/lab-mashup/static1.hbs @@ -0,0 +1 @@ +

Static 1 page

diff --git a/app/templates/lab-mashup/static2.hbs b/app/templates/lab-mashup/static2.hbs new file mode 100644 index 0000000..d699d5d --- /dev/null +++ b/app/templates/lab-mashup/static2.hbs @@ -0,0 +1 @@ +

Static 2 page

diff --git a/bower.json b/bower.json index 671be51..006e7c6 100644 --- a/bower.json +++ b/bower.json @@ -14,6 +14,7 @@ "qunit": "~1.18.0", "pretender": "~0.9.0", "lodash": "~3.7.0", - "Faker": "~3.0.0" + "Faker": "~3.0.0", + "bootstrap": "~3.3.2" } } diff --git a/package.json b/package.json index 57170cf..db43701 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "license": "MIT", "devDependencies": { "broccoli-asset-rev": "^2.1.2", + "ember-bootstrap": "0.4.0", "ember-cli": "1.13.8", "ember-cli-app-version": "0.5.0", "ember-cli-babel": "^5.1.3",