improve button html

This commit is contained in:
Quincy Larson
2015-09-27 21:52:13 -07:00
parent e74533a727
commit 3e25b3a6bc

View File

@ -18,67 +18,51 @@ block content
i.fa.fa-github i.fa.fa-github
| Update my profile from GitHub | Update my profile from GitHub
if (!user.twitter) if (!user.twitter)
.col-xs-12 a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/link/twitter')
a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/link/twitter') i.fa.fa-twitter
i.fa.fa-twitter | Add my Twitter to my profile
| Add my Twitter to my profile
if (!user.facebook) if (!user.facebook)
.col-xs-12 a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/link/facebook')
a.btn.btn-lg.btn-block.btn-facebook.btn-link-social(href='/link/facebook') i.fa.fa-facebook
i.fa.fa-facebook | Add my Facebook to my profile
| Add my Facebook to my profile
if (!user.linkedin) if (!user.linkedin)
.col-xs-12 a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/link/linkedin')
a.btn.btn-lg.btn-block.btn-linkedin.btn-link-social(href='/link/linkedin') i.fa.fa-linkedin
i.fa.fa-linkedin | Add my LinkedIn to my profile
| Add my LinkedIn to my profile
if (!user.google) if (!user.google)
.col-xs-12 a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/link/google')
a.btn.btn-lg.btn-block.btn-google-plus.btn-link-social(href='/link/google') i.fa.fa-google-plus
i.fa.fa-google-plus | Add my Google+ to my profile
| Add my Google+ to my profile
.panel.panel-info .panel.panel-info
.panel-heading.text-center .panel-heading.text-center
h1 #{username}'s portfolio h1 #{username}'s portfolio
.panel-body .panel-body
.row.text-center
.col-xs-12.col-sm-10.col-sm-offset-1
a.btn.btn-big.btn-primary.btn-block(href="/account") Manage my account
.button-spacer
.col-xs-12.col-sm-10.col-sm-offset-1
a.btn.btn-big.btn-success.btn-block(href="/signout") Sign out of Free Code Camp
.spacer
.row .row
.col-xs-12 .col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2.text-center
.col-xs-12.col-sm-12.col-md-5 if picture
if picture img.img-center.img-responsive.public-profile-img(src=picture)
img.img-center.img-responsive.public-profile-img(src=picture) else
else img.img-center.img-responsive.public-profile-img(src='https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png')
img.img-center.img-responsive.public-profile-img(src='https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png') h1.text-center.negative-5.profile-social-icons
h1.text-center.negative-5.profile-social-icons if (twitter)
if (twitter) a.fa.fa-twitter-square.text-primary(title="@#{username}'s Twitter Profile", href='https://twitter.com/' + twitter, target='_blank')
a.fa.fa-twitter-square.text-primary(title="@#{username}'s Twitter Profile", href='https://twitter.com/' + twitter, target='_blank') if (github)
if (github) a.fa.fa-github-square.text-primary(title="@#{username}'s GitHub Profile", href=github, target='_blank')
a.fa.fa-github-square.text-primary(title="@#{username}'s GitHub Profile", href=github, target='_blank') if (linkedin)
if (linkedin) a.fa.fa-linkedin-square.text-primary(title="@#{username}'s LinkedIn Profile", href=linkedin, target='_blank')
a.fa.fa-linkedin-square.text-primary(title="@#{username}'s LinkedIn Profile", href=linkedin, target='_blank') if (facebook)
if (facebook) a.fa.fa-facebook-square.text-primary(title="@#{username}'s Facebook Profile", href='https://facebook.com/' + facebook, target='_blank')
a.fa.fa-facebook-square.text-primary(title="@#{username}'s Facebook Profile", href='https://facebook.com/' + facebook, target='_blank') if (google)
if (google) a.fa.fa-google-plus-square.text-primary(title="@#{username}'s Google Profile", href='https://plus.google.com/' + google, target='_blank')
a.fa.fa-google-plus-square.text-primary(title="@#{username}'s Google Profile", href='https://plus.google.com/' + google, target='_blank') h1.flat-top.wrappable= name
.visible-md.visible-lg h1.flat-top.wrappable= location
.col-xs-12.col-sm-12.col-md-4.text-justify h1.flat-top.text-primary= "[ " + (progressTimestamps.length) + " ]"
h1.flat-top.wrappable= name if (user && user.username !== username)
h3.flat-top.bolded.wrappable= location a.btn.btn-lg.btn-block.btn-twitter.btn-link-social(href='/link/twitter')
.visible-xs.visible-sm i.fa.fa-plus-square
.col-xs-12.col-sm-12.col-md-4.text-center | Add them to my personal leaderboard
h1.flat-top.wrappable= name
h3.flat-top.bolded.wrappable= location
.col-xs-12.col-sm-12.col-md-3.text-center
.background-svg.img-center
.points-on-top
= "[ " + (progressTimestamps.length) + " ]"
.spacer .spacer
.hidden-xs.hidden-sm.col-md-12 .hidden-xs.hidden-sm.col-md-12
#cal-heatmap.d3-centered #cal-heatmap.d3-centered
@ -113,36 +97,37 @@ block content
h4.col-sm-6.text-left Current Streak: #{currentStreak} #{currentStreak + currentStreak === 1 ? ' day' : ' days'} h4.col-sm-6.text-left Current Streak: #{currentStreak} #{currentStreak + currentStreak === 1 ? ' day' : ' days'}
if (challenges.length > 0) if (!user.lockdownMode)
.col-sm-12 if (challenges.length > 0)
table.table.table-striped .col-sm-12
thead table.table.table-striped
tr thead
th.col-xs-4 Challenge tr
th.col-xs-2 Completed th.col-xs-4 Project
th.col-xs-6 Link th.col-xs-2 Completed
for challenge in challenges th.col-xs-6 Link
tr for challenge in challenges
td.col-xs-4 tr
a(href='/challenges/' + challenge.name, target='_blank')= challenge.name td.col-xs-4
td.col-xs-2= moment(challenge.completedDate, 'x').format("MMM DD, YYYY") a(href='/challenges/' + challenge.name, target='_blank')= challenge.name
td.col-xs-6 td.col-xs-2= moment(challenge.completedDate, 'x').format("MMM DD, YYYY")
a(href=challenge.solution, target='_blank') View my solution td.col-xs-6
if (bonfires.length > 0) a(href=challenge.solution, target='_blank') View my project
.col-sm-12 if (bonfires.length > 0)
table.table.table-striped .col-sm-12
thead table.table.table-striped
tr thead
th.col-xs-4 Bonfire tr
th.col-xs-2 Completed th.col-xs-4 Bonfire
th.col-xs-6 Solution th.col-xs-2 Completed
for bonfire in bonfires th.col-xs-6 Solution
tr for bonfire in bonfires
td.col-xs-4 tr
a(href='/challenges/' + bonfire.name, target='_blank')= bonfire.name td.col-xs-4
td.col-xs-2= moment(bonfire.completedDate, 'x').format("MMM DD, YYYY") a(href='/challenges/' + bonfire.name, target='_blank')= bonfire.name
td.col-xs-6 td.col-xs-2= moment(bonfire.completedDate, 'x').format("MMM DD, YYYY")
pre.wrappable= bonfire.solution td.col-xs-6
pre.wrappable= bonfire.solution
if (user && user.username === username) if (user && user.username === username)
.panel.panel-info .panel.panel-info