Skip to content

Commit

Permalink
Add nav to fund header ready for new pages
Browse files Browse the repository at this point in the history
Will only show on funds with allocations for now. Makes way for future pages
- overview
- funders
- projects

see #234
  • Loading branch information
wrightmartin committed Mar 7, 2025
1 parent 94565bf commit c1fddc5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
22 changes: 21 additions & 1 deletion app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@
.container {
position: relative;
}
.inverted-nav {
border-top: 3px solid $color-purple-dark;
}
}



.fund-logo {
max-width: 100px;
border-radius: 8px;
Expand Down Expand Up @@ -179,9 +184,24 @@
}

.home-search__wrapper {

@include media-breakpoint-up(md) {
display: flex;
justify-content: center;
}
}

.inverted-nav {
.nav-link {
color: $color-white;
&.disabled {
color: $color-purple-light;
}
&.active {
background-color: adjust-color($color-purple-dark, $saturation: -15%, $lightness: -15%);
border-bottom: 1px solid $color-purple;
}
&:hover, &:active, &:focus {
background-color: adjust-color($color-purple-dark, $saturation: -15%, $lightness: -7.5%);
}
}
}
13 changes: 13 additions & 0 deletions app/views/funds/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,18 @@

</div>
</div>
<% if @allocation %>
<div class="row">
<div class="col-12">
<nav class="inverted-nav mt-2 pt-4">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Allocations</a>
</li>
</ul>
</nav>
</div>
</div>
<% end %>
</div>
</div>

0 comments on commit c1fddc5

Please sign in to comment.