From 96935191ed1741aa2185a88deb32a5de4b824219 Mon Sep 17 00:00:00 2001 From: HumairAK Date: Wed, 27 Jul 2016 00:35:09 -0400 Subject: made a few adjustments, removed all avatar occurrences, a few other images for optimization and performance speed, replace pngs with svgs etc. --- assets/css/creative.css | 5 +++-- assets/css/style.css | 10 +++++++++- routes/user.js | 3 ++- views/index.hbs | 10 +++++----- views/questions.hbs | 12 ++++-------- views/user_profile_alt.hbs | 16 ++++++++++------ views/user_solutions.hbs | 8 +++++--- 7 files changed, 38 insertions(+), 26 deletions(-) diff --git a/assets/css/creative.css b/assets/css/creative.css index 45f388b..17ee257 100644 --- a/assets/css/creative.css +++ b/assets/css/creative.css @@ -175,7 +175,6 @@ header { /*-moz-background-size: cover;*/ /*background-size: cover;*/ /*-o-background-size: cover;*/ - } header .header-spec { @@ -384,4 +383,6 @@ header .header-content .header-content-inner hr { } /********************************************/ - +.follow-exam-btn{ + margin: 15px; +} diff --git a/assets/css/style.css b/assets/css/style.css index eb683b1..19601e2 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -49,7 +49,6 @@ main .search h2{ .search input { text-align: center; box-sizing: border-box; - background: white url('../images/search_icon.png') no-repeat 9px 9px; background-size: 20px 20px; padding: 0; } @@ -155,6 +154,9 @@ main [id^="sol-"] img.user-image { main [id^="sol-"] p.username { vertical-align: middle; + padding-left: 10px; + font-weight: bolder; + } main [id^="sol-"] button.upvote, [id^="sol-"] button.downvote { @@ -337,6 +339,7 @@ p.solutions-time { .exam-info { margin-left: 5%; display: inline-block; + text-align: center; } img.exam-info { @@ -349,6 +352,7 @@ section.exam-info em { font-weight: bold; } + .questions-number{ font-size: large; color: #333333; @@ -366,6 +370,10 @@ section.exam-info em { .questions-sol-num { margin-left: 5%; } + +.questions-arrow{ + padding-top: 6px; +} /*** EXAM QUESTIONS PAGE END ***/ /*** USER PROFILE PAGE ***/ diff --git a/routes/user.js b/routes/user.js index bd13723..a2f7cc1 100644 --- a/routes/user.js +++ b/routes/user.js @@ -47,7 +47,8 @@ router.get('/user_profile', loggedIn, isUser, function(req, res, next) { resolve(1); } else if (object.length){ req.user.comments = object.length; - comments = object; + req.user.comment_list = comments = object; + resolve(1); } else { req.user.comments = object.length; diff --git a/views/index.hbs b/views/index.hbs index 214695b..8025281 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -67,11 +67,11 @@ name="search" placeholder="Enter course name"> - - - + + + diff --git a/views/questions.hbs b/views/questions.hbs index ac94f8b..ebbbcc5 100644 --- a/views/questions.hbs +++ b/views/questions.hbs @@ -16,11 +16,8 @@ {{/if}} {{/if}} -
- - -
+

{{examInfo.courseCode}}

{{examInfo.term}} {{examInfo.year}} {{examInfo.type}}

Instructor(s): {{examInfo.instructors}}

@@ -30,14 +27,13 @@

Question count: {{examInfo.questionCount}}

- -
- + {{#each query}} @@ -47,7 +43,7 @@

{{this.count}} solutions, {{this.comments}} comments

- +
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs index 72baa86..7a61366 100644 --- a/views/user_profile_alt.hbs +++ b/views/user_profile_alt.hbs @@ -20,7 +20,8 @@