Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
martintomas committed Sep 10, 2024
2 parents 50b2eaa + a85a618 commit d09f78d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
16 changes: 14 additions & 2 deletions app/assets/stylesheets/tpi/pages/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,20 @@
.section-description {
.tns-item {
padding-right: 0 !important;
border-right: 2px solid $blue-ribbon;
height: 300px
position: relative;
}

.slider-divider {
position: absolute;
top: 0;
right: 0;
height: 300px;
background-color: blue;
width: 2px;

@include mobile {
display: none;
}
}

.research-box {
Expand Down
9 changes: 6 additions & 3 deletions app/views/tpi/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<div class="assessment-box__title"><span>Corporates <br />CP&nbsp;&&nbsp;MQ</span></div>
<% end %>
<%= link_to tpi_corporate_bond_issuers_path, class: 'assessment-box' do %>
<div class="assessment-box__title"><span>Corporates <br />CA100+</span></div>
<div class="assessment-box__title"><span>Bond <br />Issuers</span></div>
<% end %>
<%= link_to tpi_banks_path, class: 'assessment-box' do %>
<div class="assessment-box__title"><span>Banks</span></div>
Expand Down Expand Up @@ -168,7 +168,7 @@
<div class="section-description">
<div class="slider-container" data-controller="tpi-home-slider" data-tpi-home-slider-tablet-items-value="2" data-tpi-home-slider-desktop-items-value="3">
<div class="slider" data-tpi-home-slider-target="items">
<% @latest_researches.each do |research| %>
<% @latest_researches.each_with_index do |research, index| %>
<div>
<%= link_to tpi_publication_download_file_path(slug: research.slug), target: '_blank', class: 'research-box' do %>
<img src="<%= url_for(research.image) %>" />
Expand All @@ -187,6 +187,9 @@
</div>
</div>
<% end %>
<% if index <= @latest_researches.length - 1 %>
<div class="slider-divider">&nbsp;</div>
<% end %>
</div>
<% end %>
</div>
Expand All @@ -209,7 +212,7 @@
<img src="<%= asset_path 'tpi/funders/tpi.png' %>" />
</div>
<br />
<div class="info">If you would like to discuss funding TPI Centre's work, please <a href="mailto:[email protected]" class="footer-link">Contact Us</a></div>
<div class="info">If you would like to discuss funding TPI Centre's work, please <a href="mailto:[email protected]" class="footer-link">contact us</a></div>
</div>
</div>
</section>
Expand Down

0 comments on commit d09f78d

Please sign in to comment.