Skip to content

Commit

Permalink
Add text to footer, fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Feb 1, 2017
1 parent 8b901c1 commit 4fce458
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
6 changes: 0 additions & 6 deletions app/assets/stylesheets/application.css
Expand Up @@ -26,12 +26,6 @@ body, footer, main, .front-section {
width: 100%;
}

footer.front-section {
border: none;
}
footer {
margin-top: 120px;
}
.m-l-1 { margin-left: 15px; }
.m-r-1 { margin-right: 15px; }
.m-t-1 { margin-top: 15px; }
Expand Down
18 changes: 18 additions & 0 deletions app/assets/stylesheets/footer.less
@@ -0,0 +1,18 @@

@footer-bg: lighten(#F7B21C, 30%);

footer {
margin-top: 36px;
padding-top: 36px;
padding-bottom: 20px;
text-align: center;
color: rgba(0, 0, 0, 0.3);
background-color: @footer-bg;
}
footer .container {
max-width: 600px;
}
footer .ignore {
color: @footer-bg;
}

9 changes: 7 additions & 2 deletions app/views/layouts/application.html.erb
Expand Up @@ -45,9 +45,14 @@
<%= yield %>
<% end %>

<footer class="front-section">
<footer>
<div class="container">
<%= t "footer" %>
<div>
<%= link_to t('footer.imprint'), '' %> |
<%= t 'footer.hoster_link_html' %>
</div>
<div><%= t 'footer.copyright' %></div>
<span class="ignore"><%= t "footer.ignore" %></span>
</div>
</footer>
</main>
Expand Down
6 changes: 5 additions & 1 deletion config/locales/de.yml
Expand Up @@ -61,7 +61,11 @@ de:
about_hpi:
title: "Über das HPI"
lead_html: "Das <a href='https://hpi.de/' target='_blank'>Hasso-Plattner-Institut für Softwaresystemtechnik GmbH</a> an der Universität Potsdam ist Deutschlands universitäres Exzellenz-Zentrum für IT-Systems Engineering. Als einziges Universitäts-Institut in Deutschland bietet es den Bachelor- und Master-Studiengang \"IT-Systems Engineering\" an – ein besonders praxisnahes und ingenieurwissenschaftliches Informatik-Studium, das von derzeit 480 Studenten genutzt wird. Die HPI School of Design Thinking, Europas erste Innovationsschule für Studenten nach dem Vorbild der Stanforder d.school, bietet 240 Plätze für ein Zusatzstudium an."
footer: "Companion Cube <3"
footer:
copyright: "© 2017 Hasso-Plattner-Institut"
ignore: "Companion Cube <3"
imprint: "Impressum"
hoster_link_html: "<a href='https://hpi.de/'>Hasso-Plattner-Institut</a>"
navigational:
back: Zurück
forward: Weiter
Expand Down

0 comments on commit 4fce458

Please sign in to comment.