Skip to content

Commit

Permalink
Merge branch 'release-0.2.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxycle committed Jan 19, 2023
2 parents 1962a40 + bdf003c commit 17c0142
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 0.3.1 (2023-01-19)

- add contact-us email address to the footer

### 0.3.0

- Add GoogleAnalytics tag
Expand Down
7 changes: 6 additions & 1 deletion app/assets/stylesheets/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@

.nav__li {
margin: 0 rem-calc(14);

display: inline;

&:first-child {
Expand Down Expand Up @@ -162,4 +161,10 @@
margin-right: rem-calc(30);
margin-bottom: rem-calc(8);
}

}

.nav__contact-us {
@include nav-basic;
text-transform: none;
}
6 changes: 6 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def footer_nav
navPresenter.nav_footer
end

def contact_email
navPresenter = NavigationPresenter.new

navPresenter.contact_us
end

def footer_icons; end

def site_logos
Expand Down
4 changes: 4 additions & 0 deletions app/presenters/navigation_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ def nav_footer
}
]
end

def contact_us
'CONTACT US: nature.commitments@unep-wcmc.org'
end
end
3 changes: 2 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
<% else %>
<%= render partial:'partials/global/footer', locals: {
links: footer_nav,
logos: site_logos
logos: site_logos,
email: contact_email
} %>
<% end %>
</div>
Expand Down
21 changes: 12 additions & 9 deletions app/views/partials/global/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<footer class="footer">
<div class="footer__container">
<nav class="nav--footer">
<ul class="nav__ul">
<% links.each do |link| %>
<li class="nav__li">
<%= link_to link[:title], link[:url], class: 'nav__a' %>
</li>
<% end %>
</ul>
</nav>
<div>
<nav class="nav--footer">
<ul class="nav__ul">
<% links.each do |link| %>
<li class="nav__li">
<%= link_to link[:title], link[:url], class: 'nav__a' %>
</li>
<% end %>
</ul>
</nav>
<a class="nav__contact-us"><%= email %></a>
</div>

<div class="list--footer-logos">
<ul class="list__ul">
Expand Down

0 comments on commit 17c0142

Please sign in to comment.