From 0664e96b72d3dbc17cf996730b54d80928a38a80 Mon Sep 17 00:00:00 2001
From: Gaspard Jankowiak
Date: Fri, 22 Mar 2024 09:41:01 +0100
Subject: [PATCH] use svg for flags
---
_layouts/default.html | 16 ++---
css/screen.scss | 2 +
images/flag.png | Bin 6127 -> 0 bytes
images/flag.svg | 155 -----------------------------------------
images/flags/at_de.svg | 138 ++++++++++++++++++++++++++++++++++++
images/flags/fr.svg | 88 +++++++++++++++++++++++
images/flags/uk.svg | 99 ++++++++++++++++++++++++++
7 files changed, 335 insertions(+), 163 deletions(-)
delete mode 100644 images/flag.png
delete mode 100644 images/flag.svg
create mode 100644 images/flags/at_de.svg
create mode 100644 images/flags/fr.svg
create mode 100644 images/flags/uk.svg
diff --git a/_layouts/default.html b/_layouts/default.html
index e94c31d..495e784 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -53,28 +53,28 @@
{% if page.lang == 'en' %}
{% if page.fr_url == '' %}
- 🇫🇷
+
{% else %}
- 🇫🇷
+
{% endif %}
- 🇩🇪
+
{% include nav_en.html %}
{% else %}
{% if page.lang == 'de' %}
- 🇫🇷
- 🇬🇧
+
+
{% include nav_de.html %}
{% else %}
{% if page.en_url == '' %}
- 🇬🇧
+
{% else %}
- 🇬🇧
+
{% endif %}
- 🇩🇪
+
{% include nav_fr.html %}
{% endif %}
diff --git a/css/screen.scss b/css/screen.scss
index 93b8ff2..a7db287 100644
--- a/css/screen.scss
+++ b/css/screen.scss
@@ -141,6 +141,8 @@ ol.publication-list li { background: linear-gradient(0deg, rgba(2,0,36,0) 0%, #f
.switcher { text-align: center; font-size: 2em; margin: 0.5em 0; }
.switcher > a:hover { text-decoration: none; }
+.switch_flag { height: 1em; }
+
.credits { color: $dim; }
.centered_img { display: block; margin: 1em auto; }
diff --git a/images/flag.png b/images/flag.png
deleted file mode 100644
index bdf1d9c0822684ce9166ae4e92276b9f5b7d4ace..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 6127
zc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`}+DA
zSy%+zS6aW)4|NCrW@ccJS4(xpw88l5KdcyGo?JUK;$}QL`eFIPA9dRgM`k-?FUo$r
zvnXHfv@f6*3s>09&rcB0WllZhA4^MP0ylya2M6Ug!mc#91ndIo3hD@ZL>^aYx^S$`
z-Go@Id7xslfuO47xV*`@o@Xh0+fg|KgBmTqDivWA6qNH6%ZJkCN8`
-
-
-
diff --git a/images/flags/at_de.svg b/images/flags/at_de.svg
new file mode 100644
index 0000000..7c9e116
--- /dev/null
+++ b/images/flags/at_de.svg
@@ -0,0 +1,138 @@
+
+
+
+
diff --git a/images/flags/fr.svg b/images/flags/fr.svg
new file mode 100644
index 0000000..e9cad75
--- /dev/null
+++ b/images/flags/fr.svg
@@ -0,0 +1,88 @@
+
+
+
+
diff --git a/images/flags/uk.svg b/images/flags/uk.svg
new file mode 100644
index 0000000..0d75ea2
--- /dev/null
+++ b/images/flags/uk.svg
@@ -0,0 +1,99 @@
+
+
+
+