From f1108202034e44d22728563861221a8c0e447c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Thu, 26 Mar 2015 13:31:31 +0100 Subject: [PATCH] Favorites tab --- app/partials/home/home-logged-in.jade | 5 +++-- .../modules/profile/profile-contacts.jade | 2 +- .../modules/profile/profile-favorites.jade | 6 ++++++ .../modules/profile/profile-favorites.scss | 21 +++++++++++++++++++ 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 app/partials/includes/modules/profile/profile-favorites.jade create mode 100644 app/styles/modules/profile/profile-favorites.scss diff --git a/app/partials/home/home-logged-in.jade b/app/partials/home/home-logged-in.jade index fa21139b..78f71368 100644 --- a/app/partials/home/home-logged-in.jade +++ b/app/partials/home/home-logged-in.jade @@ -6,7 +6,8 @@ div.profile.centered include ../includes/modules/profile/profile-content-tabs div.content-wrapper div.content - //include ../includes/modules/profile/profile-timeline + include ../includes/modules/profile/profile-timeline //include ../includes/modules/profile/profile-projects - include ../includes/modules/profile/profile-contacts + //include ../includes/modules/profile/profile-contacts + //include ../includes/modules/profile/profile-favorites include ../includes/modules/profile/profile-sidebar diff --git a/app/partials/includes/modules/profile/profile-contacts.jade b/app/partials/includes/modules/profile/profile-contacts.jade index 111fc8f3..e4f79ef7 100644 --- a/app/partials/includes/modules/profile/profile-contacts.jade +++ b/app/partials/includes/modules/profile/profile-contacts.jade @@ -1,5 +1,5 @@ section.profile-contacts - nav.profile-contacts-filters + nav.profile-contact-filters a.active(href="", title="No Filter") all a(href="", title="Only show your team") team a(href="", title="Only show people you follow") following diff --git a/app/partials/includes/modules/profile/profile-favorites.jade b/app/partials/includes/modules/profile/profile-favorites.jade new file mode 100644 index 00000000..f0a723c7 --- /dev/null +++ b/app/partials/includes/modules/profile/profile-favorites.jade @@ -0,0 +1,6 @@ +section.profile-favorites + nav.profile-favorites-filters + a.active(href="", title="No Filter") all + a(href="", title="Only show your team") projects + a(href="", title="Only show people you follow") US + a(href="", title="Only show people follow you") tasks diff --git a/app/styles/modules/profile/profile-favorites.scss b/app/styles/modules/profile/profile-favorites.scss new file mode 100644 index 00000000..23cb806b --- /dev/null +++ b/app/styles/modules/profile/profile-favorites.scss @@ -0,0 +1,21 @@ +.profile-favorites { + border-top: 1px solid $whitish; + display: flex; + flex-direction: column; + .profile-favorites-filters { + align-self: flex-start; + display: flex; + a { + border-bottom: 2px solid $white; + color: $gray-light; + display: inline-block; + padding: 1rem 1.5rem; + transition: all .2s linear; + &:hover, + &.active { + border-bottom: 2px solid $gray-light; + color: $green-taiga; + } + } + } +}