From 2106cbdbf296355999123d22a2947c427fb0aa7e Mon Sep 17 00:00:00 2001
From: Michael Q Larson <michaelqlarson@gmail.com>
Date: Mon, 13 Oct 2014 21:38:10 -0700
Subject: [PATCH] twitter username now persisted

---
 .node-inspectorrc                |  3 +++
 config/passport.js               |  3 ++-
 public/css/styles.less           | 31 +++++++++++++++++--------------
 views/curriculum/curriculum.jade | 33 +++++++++++++++++++++++----------
 4 files changed, 45 insertions(+), 25 deletions(-)
 create mode 100644 .node-inspectorrc

diff --git a/.node-inspectorrc b/.node-inspectorrc
new file mode 100644
index 0000000..ccc5505
--- /dev/null
+++ b/.node-inspectorrc
@@ -0,0 +1,3 @@
+{
+    "save-live-edit": true
+}
\ No newline at end of file
diff --git a/config/passport.js b/config/passport.js
index 69d1b99..5d1b664 100644
--- a/config/passport.js
+++ b/config/passport.js
@@ -64,7 +64,7 @@ passport.use(new TwitterStrategy(secrets.twitter, function(req, accessToken, tok
           user.profile.name = user.profile.name || profile.displayName;
           user.profile.location = user.profile.location || profile._json.location;
           user.profile.picture = user.profile.picture || profile._json.profile_image_url_https;
-          user.profile.username = profile.displayName;
+          user.profile.username = profile.username;
           user.save(function(err) {
             req.flash('info', { msg: 'Twitter account has been linked.' });
             done(err, user);
@@ -86,6 +86,7 @@ passport.use(new TwitterStrategy(secrets.twitter, function(req, accessToken, tok
       user.profile.name = profile.displayName;
       user.profile.location = profile._json.location;
       user.profile.picture = profile._json.profile_image_url_https;
+      user.profile.username = profile.username;
       user.save(function(err) {
         done(err, user);
       });
diff --git a/public/css/styles.less b/public/css/styles.less
index 9aed791..57645e4 100644
--- a/public/css/styles.less
+++ b/public/css/styles.less
@@ -63,13 +63,6 @@ footer {
   margin-right: 6px;
 }
 
-html { height: 50%; }
-body { margin: 0; height: 100%; position: relative; }
-#firepad-container {
-  width: 100%;
-  height: 100%;
-}
-
 .img-center {
   margin: 0 auto;
 }
@@ -104,13 +97,21 @@ ul {
   word-wrap: break-word;
 }
 
-/* Pages */
+
+
+
+
+
+
+
+
+/* Pages * /
 
 .pages {
-  height: inherit;
+  height: 100%;
   margin: 0;
   padding: 0;
-  width: inherit;
+  width: 100%;
 }
 
 .page {
@@ -119,7 +120,7 @@ ul {
   width: 100%;
 }
 
-/* Login Page */
+/* Login Page * /
 
 .login.page {
   background-color: #000;
@@ -159,7 +160,7 @@ ul {
   font-weight: 100;
 }
 
-/* Chat page */
+/* Chat page * /
 
 .chat.page {
   display: none;
@@ -182,7 +183,7 @@ ul {
   text-align: center;
 }
 
-/* Messages */
+/* Messages * /
 
 .chatArea {
   height: 100%;
@@ -220,4 +221,6 @@ ul {
   position: absolute;
   right: 0;
   width: 100%;
-}
\ No newline at end of file
+}
+
+/**/
\ No newline at end of file
diff --git a/views/curriculum/curriculum.jade b/views/curriculum/curriculum.jade
index e574567..32c8bbd 100644
--- a/views/curriculum/curriculum.jade
+++ b/views/curriculum/curriculum.jade
@@ -3,13 +3,26 @@ extends ../layout
 block content
     .page-header
         h3 Your Curriculum
-    .col-xs-12.col-sm-12.col-md-12
-        ul.pages
-        li.chat.page
-            div.chatArea
-                ul.messages
-            input.inputMessage(placeholder='Type here...')
-        li.login.page
-            div.form
-                h3.title What's your nickname?
-                input.usernameInput(type='text', maxlength='14')
+    ul.pages
+    li.chat.page
+        div.chatArea
+            ul.messages
+        input.inputMessage(placeholder='Type here...')
+    li.login.page
+        div.form
+            h3.title What's your nickname?
+            input.usernameInput(type='text', maxlength='14')
+
+
+//    .row
+//    .col-sm-6
+//        h3 Your Curriculum
+//    .col-sm-6
+//        .chat
+//            .chat-messages
+//            .chat-input.row
+//                .col-sm-3
+//                    input.usernameInput(placeholder='Nickanem', type='text', maxlength='14')
+//                .col-sm-9
+//                    input.inputMessage(placeholder='Type here...')
+//
\ No newline at end of file
