Commit 42563d76 authored by Hanna Schraffenberger's avatar Hanna Schraffenberger Committed by Rowan Goemans
Browse files

Language chooser with flag

parent 53d76cef
......@@ -9,6 +9,9 @@ nav:
faq_text: FAQs
links_link: "#links"
links_text: Links
flag_src: "/uploads/flags/de.png"
flag_alt: DE
flag_link: de
banner:
headline: Kies IRMA. <br><strong>Zet een digitaal paspoort op je eigen mobiel.</strong>
......
......@@ -9,6 +9,9 @@ nav:
faq_text: FAQs
links_link: "#links"
links_text: Links
flag_src: "/uploads/flags/nl.png"
flag_alt: NL
flag_link: /
banner:
headline: Choose IRMA. <br><strong>Put a digital passport on your own mobile.</strong>
......
......@@ -9,6 +9,9 @@ nav:
faq_text: FAQs
links_link: "#links"
links_text: Links
flag_src: "/uploads/flags/en.png"
flag_alt: EN
flag_link: en
banner:
headline: Kies IRMA. <br><strong>Zet een digitaal paspoort op je eigen mobiel.</strong>
......
......@@ -21,20 +21,19 @@
<p>{% t section.col_4.content %}</p>
</div>
</div>
<hr>
<!-- <hr>
<div id="language">
<h4>Change language</h4>
<ol>
{% for lang in page.languages %}
{% for lang in page.languages %}
<li>
<a {% if site.lang == lang %} id="selected-lang" {% endif %}
href="{{ site.baseurl_root }}{{ page.url}}?lang={{ lang }}"
>
href="{{ site.baseurl_root }}{{ page.url}}?lang={{ lang }}">
{{ lang }}
</a>
</li>
{% endfor %}
</ol>
</div>
{% endfor %}
</ol>
</div> -->
</div>
</section>
\ No newline at end of file
......@@ -8,6 +8,7 @@
{% for nav_item in section.navigation %}
<a class="refs" href="{% t nav_item.link %}">{% t nav_item.link_text %}</a>
{% endfor %}
<a style="float: right; padding-right: 20px; margin-top: 5px;" class="langicons" href="{% t section.image.link %}"><img src="{{site.baseurl_root}}{% t section.image.image %}" alt="{% t section.image.alt_text %}"></a></li>
</div>
</div>
......
......@@ -13,6 +13,12 @@
list-style-type: none;
}
.langicons img {
max-height: 2rem;
}
/* Scrolling to elements*/
html {
......@@ -293,7 +299,7 @@ column.text p {
.block-footer-2 img {
max-width: 100px;
max-width: 200px;
}
......@@ -337,6 +343,7 @@ column.text p {
.block-hero-2 {
padding: 3rem 4rem;
}
}
......
......@@ -10,6 +10,10 @@ page_sections:
- template: navigation-header
block: irma-header
logo: "/uploads/non-free/irma_logo@1x.png"
image:
image: nav.flag_src
alt_text: nav.flag_alt
link: nav.flag_link
menu: "/uploads/non-free/navigation-menu.png"
url: "/"
navigation:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment