From ecd1f628e23871cc4b902a4bc36f75e532a07fec Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 18 Jun 2016 18:57:36 +0100 Subject: [PATCH] Added Bio from GitHub to freecodecamp portfolios - Removed unneeded code --- client/less/main.less | 5 +++++ server/utils/auth.js | 2 ++ server/views/account/show.jade | 1 + 3 files changed, 8 insertions(+) diff --git a/client/less/main.less b/client/less/main.less index a42153283b..0d2614133f 100644 --- a/client/less/main.less +++ b/client/less/main.less @@ -1161,6 +1161,11 @@ code { background-color: @brand-primary; } +// user bio +.bio { + font-size: 17px; +} + @import "chat.less"; @import "jobs.less"; @import "challenge.less"; diff --git a/server/utils/auth.js b/server/utils/auth.js index da282b7022..38b480f0b4 100644 --- a/server/utils/auth.js +++ b/server/utils/auth.js @@ -27,6 +27,7 @@ export function setProfileFromGithub( created_at: joinedGithubOn, blog: website, location, + bio, name } ) { @@ -37,6 +38,7 @@ export function setProfileFromGithub( email: user.email || githubEmail, username: username.toLowerCase(), location, + bio, joinedGithubOn, website, isGithubCool: true, diff --git a/server/views/account/show.jade b/server/views/account/show.jade index 53375e3d2b..6f21a63196 100644 --- a/server/views/account/show.jade +++ b/server/views/account/show.jade @@ -37,6 +37,7 @@ block content a.fa.fa-linkedin-square.text-primary(title="@#{username}'s LinkedIn Profile", href=linkedin, target='_blank') h1.flat-top.wrappable= name h1.flat-top.wrappable= location + p.flat-top.bio= bio h1.flat-top.text-primary= "[ " + (progressTimestamps.length) + " ]" if pledge .spacer