Commit 4768343
committed
feature #1417 Update the design of the language selector (javiereguiluz)
This PR was squashed before being merged into the main branch.
Discussion
----------
Update the design of the language selector
The current header design looks a bit crowded to me, with the links so close to each other:
<img width="1172" alt="" src="https://user-images.githubusercontent.com/73419/235969569-b4fa2803-a4c6-45c7-969f-c7f1373fc401.png">
This PR changes this by making the links a bit smaller and adding more space between them:
<img width="1193" alt="" src="https://user-images.githubusercontent.com/73419/235969669-dd4937fc-aa7d-4626-823d-50930c25c2f2.png">
-----
The other issue is the language selector. We're very lucky to have many translations contributed by the community. But that big number is what makes the current selector a bit hard to use (the list is very long). It also has other design issues:
<img width="204" alt="" src="https://user-images.githubusercontent.com/73419/235969918-020444c4-1c07-4b13-b0b7-9e0298a66964.png">
This PR proposes a completely different design. When you click on the link to select the language, you no longer see a dropdown menu. Instead, you see a full page modal window listing all available languages.
For example, if you are browsing the application in Ukrainian and click on the language selector, you'll see this:
<img width="1488" alt="" src="https://user-images.githubusercontent.com/73419/235970298-2e2bb0cf-b232-4a27-83e4-44959b7aecb2.png">
The new language selector was inspired by the one used in https://europa.eu pages. In addition to displaying all languages more clearly, we now respect the features of each language, like the RTL direction of Arabic.
Commits
-------
b2c68c9 Update the design of the language selectorFile tree
20 files changed
+151
-66
lines changed- assets
- styles
- public/build
- templates
20 files changed
+151
-66
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
144 | 172 | | |
145 | 173 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
160 | 194 | | |
161 | 195 | | |
162 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
163 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
164 | 204 | | |
165 | 205 | | |
166 | 206 | | |
167 | 207 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
171 | 211 | | |
172 | | - | |
| 212 | + | |
173 | 213 | | |
174 | | - | |
| 214 | + | |
175 | 215 | | |
176 | 216 | | |
177 | 217 | | |
178 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
179 | 242 | | |
180 | 243 | | |
181 | 244 | | |
| |||
This file was deleted.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
0 commit comments