Commits

Alex Khomenko committed f76694e

Change some texts

  • Participants
  • Parent commits 05dc0c8

Comments (0)

Files changed (9)

File public/app/modules/module.js

     };
 
     Router.prototype.home = function() {
-      return ($('.modModule')).html('Home page');
+      return ($('.modModule .bd')).html('module.js serves home page of site in method home()');
     };
 
     Router.prototype.render = function() {
       var content, model, view;
       ($('.modModule')).append(content);
       model = new Module.Model({
-        name: 'Home page of Module.js'
+        name: 'Content of module.js router method "render"'
       });
       view = new Module.Views.Item({
         model: model
       });
       content = view.render().el;
-      return ($('.modModule')).html(content);
+      return ($('.modModule .bd')).html(content);
     };
 
     return Router;

File public/assets/css/layout.css

+/* line 2, ../../../sass/layout.sass */
+html {
+  height: 100%;
+}
+
+/* line 5, ../../../sass/layout.sass */
+body {
+  height: 100%;
+}
+
+/* line 8, ../../../sass/layout.sass */
+.container {
+  width: 960px;
+  height: 100%;
+  margin: 0 auto;
+  background-color: lightgrey;
+}
+
+/* line 16, ../../../sass/layout.sass */
+.content > * {
+  padding: 0.7em;
+}
+
+/* line 19, ../../../sass/layout.sass */
+.header {
+  background-color: black;
+}
+
+/* line 24, ../../../sass/layout.sass */
+.nav .item {
+  display: inline-block;
+}
+/* line 27, ../../../sass/layout.sass */
+.nav .item:after {
+  content: " | ";
+  color: #f5f5f5;
+}
+/* line 31, ../../../sass/layout.sass */
+.nav .item:last-child:after {
+  content: "";
+}
+/* line 34, ../../../sass/layout.sass */
+.nav .link {
+  color: #f5f5f5;
+  font-weight: bold;
+}
+/* line 38, ../../../sass/layout.sass */
+.nav .link:focus {
+  background-color: darkgrey;
+}

File public/assets/css/oocss-custom.css

Empty file added.

File public/assets/css/style.css

 @import url('h5bp.css');
 @import url('oocss/all.css');
+@import url('oocss-custom.css');
 @import url('layout.css');

File public/index.html

       </header>
 
       <div class='modModule'>
-        <div class='hd'>Module Header</div>
-        <div class='bd'></div>
+        <div class='hd'>Backbone Boilerplate</div>
+        <div class='bd'>Loading...</div>
       </div>
 
     </div>

File sass/layout.sass

 
   .link
     color: #f5f5f5
-    font-weight: bold
+    font-weight: bold
+
+    &:focus
+      background-color: darkgrey

File sass/oocss-custom.sass

Empty file added.

File sass/style.sass

 @import url('h5bp.css')
 @import url('oocss/all.css')
-@import url('layout.css')
+@import url('oocss-custom.css')
+
+@import url('layout.css')

File src/modules/module.coffee

     'module': 'render'
 
   home: ->
-    ($ '.modModule').html 'Home page'
+    ($ '.modModule .bd').html 'module.js serves home page of site in method home()'
 
   render: ->
     ($ '.modModule').append content
-    model = new Module.Model name: 'Home page of Module.js'
+    model = new Module.Model name: 'Content of module.js router method "render"'
     view = new Module.Views.Item model: model
     content = view.render().el
 
-    ($ '.modModule').html content
+    ($ '.modModule .bd').html content