diff --git a/static/icons/applications.svg b/static/icons/applications.svg new file mode 100644 index 00000000..d0768feb --- /dev/null +++ b/static/icons/applications.svg @@ -0,0 +1,13 @@ + + + + Combined Shape + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/static/icons/funding.svg b/static/icons/funding.svg new file mode 100644 index 00000000..a765aeb7 --- /dev/null +++ b/static/icons/funding.svg @@ -0,0 +1,13 @@ + + + + Shape + Created with Sketch. + + + + + + + + \ No newline at end of file diff --git a/styles/components/_portfolio_layout.scss b/styles/components/_portfolio_layout.scss index c555ed13..3416aa08 100644 --- a/styles/components/_portfolio_layout.scss +++ b/styles/components/_portfolio_layout.scss @@ -14,57 +14,13 @@ } } -.portfolio-breadcrumbs { - margin-bottom: $gap * 2; - color: $color-gray-dark; - font-size: $h5-font-size; - - .icon-link { - color: $color-blue; - font-weight: normal; - } - - .icon--tiny { - padding: $gap 0; - } - - .icon { - @include icon-color($color-blue); - margin: 0 ($gap * 0.5) 0 0; - } - - .portfolio-breadcrumbs__home { - &.icon-link--disabled { - color: $color-gray-dark; - opacity: 1; - .icon { - @include icon-color($color-gray-dark); - } - } - } - - .portfolio-breadcrumbs__crumb { - .icon { - @include icon-color($color-gray-medium); - } - - .icon-link { - color: $color-gray-medium; - pointer-events: none; - &.icon-link--disabled { - opacity: 1; - } - } - } -} - .portfolio-header { flex-direction: column; @include media($small-screen) { flex-direction: row; } - margin: 2 * $gap; + margin-bottom: $gap * 4; .col--grow { overflow: inherit; @@ -72,6 +28,10 @@ .portfolio-header__name { @include h1; + h1 { + margin: ($gap * 2) $gap ($gap * 2) $gap; + font-size: 3.5rem; + } } .portfolio-header__budget { @@ -98,11 +58,19 @@ font-size: $small-font-size; .icon-link { - padding: 0.8rem 1.2rem; + padding: 0.8rem 1.6rem; + + color: $color-gray; + opacity: 0.3; + .icon { + @include icon-color($color-gray); + } + &.active { - color: $color-gray; + opacity: 1; + color: $color-blue; .icon { - @include icon-color($color-gray); + @include icon-color($color-blue); } } diff --git a/templates/portfolios/admin.html b/templates/portfolios/admin.html index 40010a53..c2539c2f 100644 --- a/templates/portfolios/admin.html +++ b/templates/portfolios/admin.html @@ -4,8 +4,6 @@ {% from "components/text_input.html" import TextInput %} {% from 'components/save_button.html' import SaveButton %} -{% set secondary_breadcrumb = "navigation.portfolio_navigation.portfolio_admin" | translate %} - {% block portfolio_content %}
diff --git a/templates/portfolios/base.html b/templates/portfolios/base.html index 92479d0f..127200c3 100644 --- a/templates/portfolios/base.html +++ b/templates/portfolios/base.html @@ -4,10 +4,6 @@
- {% block portfolio_breadcrumbs %} - {% include "portfolios/breadcrumbs.html" %} - {% endblock %} -
{% block portfolio_header %} {% include "portfolios/header.html" %} {% endblock %} diff --git a/templates/portfolios/breadcrumbs.html b/templates/portfolios/breadcrumbs.html deleted file mode 100644 index ec6dcc6f..00000000 --- a/templates/portfolios/breadcrumbs.html +++ /dev/null @@ -1,19 +0,0 @@ -{% from "components/icon.html" import Icon %} - -
- - {{ Icon("home") }} - - {{ portfolio.name }} Portfolio - - -
- {% if secondary_breadcrumb %} - {{ Icon("caret_right", classes="icon--tiny") }} - - {% endif %} -
-
diff --git a/templates/portfolios/header.html b/templates/portfolios/header.html index d1928123..44a528ce 100644 --- a/templates/portfolios/header.html +++ b/templates/portfolios/header.html @@ -2,7 +2,7 @@ {% from "components/tooltip.html" import Tooltip %} {% macro Link(icon, text, url, active=False) %} - +
@@ -13,24 +13,7 @@
- {{ secondary_breadcrumb or portfolio.name }} -
-
-
- Available budget - {{ - Tooltip( - ('portfolios.task_orders.available_budget_help_description' | translate), - title='' - ) - }} -
-
- - - - -
+

{{ portfolio.name }}

@@ -40,6 +23,18 @@