Skip to content

Commit

Permalink
Add energy inefficiency report and banner to website
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-vari committed Dec 9, 2024
1 parent 44a9325 commit 6062745
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
Binary file modified app/web/static/web/img/footer-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 10 additions & 7 deletions app/web/templates/web/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,24 +166,27 @@ <h3>Reach Us</h3>
</p>
</div>
</div>
{% get_cookie "dismiss_footer_banner_giving_day" as dismiss_footer_banner %}
{% if false and not dismiss_footer_banner %}
{% get_cookie "dismiss_footer_banner_energy_report" as dismiss_footer_banner %}
{% slugurl 'report-too-hot-too-cold-too-costly' as report_url %}
{% if request.path != report_url and not dismiss_footer_banner %}
<div id="footer-banner">
<div class="footer-banner-contents">
<div class="footer-banner-image">
<img src="{% static 'web/img/footer-banner.png' %}">
</div>
<div class="footer-banner-text">
<div class="footer-banner-header">
Stand up for housing justice.
Donate to Anika Legal's Giving Day.
Report: Too Hot, Too Cold, Too Costly: Victorian Renters
Pay the Price for Energy-Inefficient Homes
</div>
<div class="footer-banner-subheading">
All donations will be matched by our sponsors.
We've delved deep into the data surrounding energy
inefficiency and its impact on Victorian renters. Read
the full report today.
</div>
</div>
<div class="footer-banner-action">
<a href="https://anikagivingday2024.raiselysite.com/"><button>Donate</button></a>
<a href="{{ report_url }}"><button>Read the report here</button></a>
</div>
</div>
<div class="footer-banner-close">
Expand All @@ -203,7 +206,7 @@ <h3>Reach Us</h3>
</script>
<script>
function dismissFooterBanner() {
document.cookie = "dismiss_footer_banner_giving_day=true; max-age=604800; Path=/";
document.cookie = "dismiss_footer_banner_energy_report=true; max-age=604800; Path=/";
document.getElementById("footer-banner").style.display = "none";
}
</script>
Expand Down
19 changes: 17 additions & 2 deletions app/web/templates/web/about/reports.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ <h1>Reports</h1>
charity & social enterprise. Our Annual, Financial and
Impact Reports outline the work we do.
</p>
<a href="{% slugurl 'broken-bonds' %}">
<button>Read our Broken Bonds report</button>
<a href="{% slugurl 'report-too-hot-too-cold-too-costly' %}">
<button>
Read our Too Hot, Too Cold, Too Costly report
</button>
</a>
</div>
<img class="round not-responsive top-left top-right bottom-left"
Expand All @@ -36,6 +38,19 @@ <h2 style="z-index: 1">
</h2>
<div class="divider"></div>
<div class="link-list two">
<div class="card">
<img class="icon" src="{% static 'web/img/icons/document.svg' %}">
<h2>
Too Hot, Too Cold, Too Costly
</h2>
<p>
We've delved deep into the data surrounding energy
inefficiency and its impact on Victorian renters.
</p>
<a href="{% slugurl 'report-too-hot-too-cold-too-costly' %}">
<button>View</button>
</a>
</div>
<div class="card">
<img class="icon" src="{% static 'web/img/icons/document.svg' %}">
<h2>
Expand Down

0 comments on commit 6062745

Please sign in to comment.