diff --git a/static/assets/css/style.css b/static/assets/css/style.css index 46f5ec9..b8db02e 100644 --- a/static/assets/css/style.css +++ b/static/assets/css/style.css @@ -199,6 +199,13 @@ footer { float: right; } +#language-icon { + width: 22px; + display: inline-block; + vertical-align: top; + margin-right: 3px; +} + /* phone */ @media (max-width: 650px) { .article { @@ -355,5 +362,9 @@ footer { #nav-menu #home { color: #aaa; } + + #language-icon { + filter: invert(80%); + } } diff --git a/static/assets/img/icons/language.svg b/static/assets/img/icons/language.svg new file mode 100644 index 0000000..5fa264a --- /dev/null +++ b/static/assets/img/icons/language.svg @@ -0,0 +1 @@ + diff --git a/static/assets/img/icons/language.txt b/static/assets/img/icons/language.txt new file mode 100644 index 0000000..8a13b7c --- /dev/null +++ b/static/assets/img/icons/language.txt @@ -0,0 +1,24 @@ +https://github.com/themesberg/flowbite-icons +https://icon-sets.iconify.design/flowbite/language-outline/ + +MIT License + +Copyright (c) 2024 Themesberg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/templates/base.html b/templates/base.html index 555a91f..5132091 100644 --- a/templates/base.html +++ b/templates/base.html @@ -74,6 +74,10 @@ {% endif %}{% endif %} +
+ Language icon{% if lang == "pt" %}EN{% else %}PT + {% endif %} +
{% block content %} {% endblock %}