-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from keitaroinc/footer
Implement design for the footer
- Loading branch information
Showing
8 changed files
with
220 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,67 @@ | |
<div class="container"> | ||
{% block footer_content %} | ||
<div class="row"> | ||
<div class="col-md-8 footer-links"> | ||
{% block footer_nav %} | ||
<ul class="list-unstyled"> | ||
{% block footer_links %} | ||
<li><a href="{{ h.url_for('home.about') }}">{{ _('About {0}').format(g.site_title) }}</a></li> | ||
{% endblock %} | ||
</ul> | ||
<ul class="list-unstyled"> | ||
{% block footer_links_ckan %} | ||
{% set api_url = 'http://docs.ckan.org/en/{0}/api/'.format(g.ckan_doc_version) %} | ||
<li><a href="{{ api_url }}">{{ _('CKAN API') }}</a></li> | ||
<li><a href="http://www.ckan.org/">{{ _('CKAN Association 1234') }}</a></li> | ||
<li><a href="http://www.opendefinition.org/okd/"><img src="{{ h.url_for_static('/base/images/od_80x15_blue.png') }}" alt="Open Data"></a></li> | ||
{% endblock %} | ||
</ul> | ||
{% endblock %} | ||
<div class="col-md-4 attribution"> | ||
<h2>{{_('The Kosovo dataportal')}} </h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('About this website')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Open source on GitHub')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Feedback on dataportal.xk')}}</a> | ||
<a class="" href="http://ckan.org">{{_('[email protected]')}}</a> | ||
</div> | ||
</div> | ||
<div class="col-md-4 attribution"> | ||
<h2>{{_('Toolbox for sharing data')}}</h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('Documentation and services - Kosovo`s data portal')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Guidance for open and shared data')}}</a> | ||
</div> | ||
</div> | ||
<div class="col-md-4 attribution"> | ||
{% block footer_attribution %} | ||
<p>{% trans %}<strong>Powered by</strong> <a class="hide-text ckan-footer-logo" href="http://ckan.org">CKAN</a>{% endtrans %}</p> | ||
{% endblock %} | ||
{% block footer_lang %} | ||
{% snippet "snippets/language_selector.html" %} | ||
{% endblock %} | ||
<h2>{{_('Social')}}</h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('Network Open Source and Data')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Facebook')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Twitter')}}</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
||
</div> | ||
<div class="address"> | ||
<img src="/republic-kosovo.png" /> | ||
<span> | ||
{{_('Republika e Kosovës')}} <br> | ||
{{_('Republika Kosova - Republic of Kosovo')}}<br> | ||
{{_('Qeveria – Vlada - Government')}}<br> | ||
</span> | ||
</div> | ||
</footer> | ||
|
||
|
||
<script> | ||
console.log("ovde"); | ||
|
||
document.addEventListener("DOMContentLoaded", function () { | ||
calculateSpaceToBottom(); | ||
}); | ||
|
||
window.addEventListener("resize", function () { | ||
calculateSpaceToBottom(); | ||
}); | ||
|
||
function calculateSpaceToBottom() { | ||
|
||
const siteFooter = document.getElementsByClassName("site-footer"); | ||
const main = document.getElementsByClassName("main") | ||
const masthead = document.getElementsByClassName("masthead") | ||
const accountmasthead = document.getElementsByClassName("account-masthead") | ||
|
||
if (siteFooter) { | ||
const height = window.innerHeight - (siteFooter[0].clientHeight + masthead[0].clientHeight); | ||
|
||
main[0].style.minHeight = height + "px" | ||
} | ||
} | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.