|
4 | 4 | <meta charset="UTF-8"> |
5 | 5 | <title>{%- block title -%}{%- endblock -%}{% if app.request.pathInfo != path('homepage') %} | MySpeedPuzzling{% endif %}</title> |
6 | 6 |
|
7 | | - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
8 | 8 |
|
9 | 9 | <meta name="description" content="{%- block meta_description -%}{%- endblock -%}{% if block('meta_description') is empty %}{{ 'homepage.meta.description'|trans }}{% endif %}"> |
10 | 10 | <meta name="keywords" content="{%- block meta_keywords -%}{%- endblock -%}{% if block('meta_keywords') is empty %}{% set currentPageKey = app.request.attributes.get('_route') %}{% if currentPageKey == 'homepage' %}{{ 'homepage.meta.keywords'|trans }}{% elseif currentPageKey == 'hub' %}{{ 'hub.meta.keywords'|trans }}{% elseif currentPageKey == 'puzzles' %}{{ 'puzzle_overview.meta.keywords'|trans }}{% elseif currentPageKey == 'ladder' %}{{ 'ladder.meta.keywords'|trans }}{% elseif currentPageKey == 'players' %}{{ 'puzzlers.meta.keywords'|trans }}{% elseif currentPageKey == 'events' %}{{ 'events.meta.keywords'|trans }}{% elseif currentPageKey == 'faq' %}{{ 'faq.meta.keywords'|trans }}{% else %}speed puzzling, puzzle times, jigsaw puzzles, speedpuzzling{% endif %}{% endif %}"> |
|
227 | 227 |
|
228 | 228 | <!-- Toolbar --> |
229 | 229 | <div class="navbar-toolbar d-flex align-items-center order-lg-3 ms-lg-3"> |
230 | | - <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2" data-action="click->global-search#toggleSearchBar" href="#"> |
| 230 | + <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2" data-action="click->global-search#toggleSearchBar" href="#" aria-label="{{ 'menu.search'|trans }}"> |
231 | 231 | <div class="navbar-tool-icon-box"> |
232 | | - <i class="navbar-tool-icon ci-search"></i> |
| 232 | + <i class="navbar-tool-icon ci-search" aria-hidden="true"></i> |
233 | 233 | </div> |
234 | 234 | <div class="navbar-tool-text ms-n3"><small>{{ 'menu.search'|trans }}</small></div> |
235 | 235 | </a> |
236 | 236 |
|
237 | 237 | {% if logged_user.profile is null %} |
238 | | - <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2" href="{{ path('my_profile') }}"> |
| 238 | + <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2" href="{{ path('my_profile') }}" aria-label="{{ 'menu.sign_in'|trans }}"> |
239 | 239 | <div class="navbar-tool-icon-box"> |
240 | | - <i class="navbar-tool-icon ci-sign-in"></i> |
| 240 | + <i class="navbar-tool-icon ci-sign-in" aria-hidden="true"></i> |
241 | 241 | </div> |
242 | 242 | <div class="navbar-tool-text ms-n3"><small>{{ 'menu.sign_in'|trans }}</small></div> |
243 | 243 | </a> |
244 | 244 | {% else %} |
245 | 245 | <div class="navbar-tool dropdown ms-1 ms-lg-0 me-n1 me-lg-2"> |
246 | | - <a class="dropdown-toggle navbar-tool" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"> |
| 246 | + <a class="dropdown-toggle navbar-tool" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="{{ 'menu.my_profile'|trans }}"> |
247 | 247 | <div class="navbar-tool-icon-box"> |
248 | | - <i class="navbar-tool-icon ci-user"></i> |
| 248 | + <i class="navbar-tool-icon ci-user" aria-hidden="true"></i> |
249 | 249 | </div> |
250 | 250 | <div class="navbar-tool-text ms-n3 no-caret"><small>{{ 'menu.my_profile'|trans }}</small></div> |
251 | 251 | </a> |
|
294 | 294 | {% endif %} |
295 | 295 |
|
296 | 296 |
|
297 | | - <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2 {% if app.request.pathInfo == path('puzzle_add') %}active{% endif %}" rel="nofollow" href="{{ path('puzzle_add') }}"> |
| 297 | + <a class="navbar-tool ms-1 ms-lg-0 me-n1 me-lg-2 {% if app.request.pathInfo == path('puzzle_add') %}active{% endif %}" rel="nofollow" href="{{ path('puzzle_add') }}" aria-label="{{ 'menu.puzzle_add'|trans }}"> |
298 | 298 | <div class="navbar-tool-icon-box"> |
299 | | - <i class="navbar-tool-icon ci-add"></i> |
| 299 | + <i class="navbar-tool-icon ci-add" aria-hidden="true"></i> |
300 | 300 | </div> |
301 | 301 | <div class="navbar-tool-text ms-n3"><small>{{ 'menu.puzzle_add'|trans }}</small></div> |
302 | 302 | </a> |
303 | 303 |
|
304 | 304 | {% set notifications_count = notifications_count|default(null) ?: logged_user.profile is not null ? get_notifications.countUnreadForPlayer(logged_user.profile.playerId) :0 %} |
305 | 305 |
|
306 | | - <a class="navbar-tool ms-1 ms-lg-0 me-1 me-lg-2 {% if app.request.pathInfo == path('notifications') %}active{% endif %}" rel="nofollow" href="{{ path('notifications') }}" data-turbo-prefetch="false"> |
| 306 | + <a class="navbar-tool ms-1 ms-lg-0 me-1 me-lg-2 {% if app.request.pathInfo == path('notifications') %}active{% endif %}" rel="nofollow" href="{{ path('notifications') }}" data-turbo-prefetch="false" aria-label="{{ 'accessibility.notifications_count'|trans({'%count%': notifications_count}) }}"> |
307 | 307 | <div class="navbar-tool-icon-box {{ notifications_count > 0 ? 'bg-secondary' }}"> |
308 | | - <span class="navbar-tool-label {{ notifications_count == 0 ? 'bg-secondary text-dark' }}">{{ notifications_count }}</span> |
309 | | - <i class="navbar-tool-icon ci-bell"></i> |
| 308 | + <span class="navbar-tool-label {{ notifications_count == 0 ? 'bg-secondary text-dark' }}" aria-hidden="true">{{ notifications_count }}</span> |
| 309 | + <i class="navbar-tool-icon ci-bell" aria-hidden="true"></i> |
310 | 310 | </div> |
311 | 311 | </a> |
312 | 312 |
|
313 | | - <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-expanded="false"> |
| 313 | + <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-expanded="false" aria-controls="navbarCollapse" aria-label="{{ 'accessibility.toggle_navigation'|trans }}"> |
314 | 314 | <span class="toggler-bar"></span> |
315 | 315 | <span class="toggler-bar"></span> |
316 | 316 | <span class="toggler-bar"></span> |
|
451 | 451 | <div class="col-sm-6 mt-2 mt-sm-0"> |
452 | 452 | <div class="fs-xs text-muted text-center text-sm-end"> |
453 | 453 | <p class="fs-md mb-2"> |
454 | | - <a href="https://www.instagram.com/myspeedpuzzling/" target="_bkank"><i class="bi-instagram"></i></a> |
455 | | - <a class="ms-2" href="https://github.com/MySpeedPuzzling/myspeedpuzzling.com" target="_blank"><i class="bi-github"></i></a> |
| 454 | + <a href="https://www.instagram.com/myspeedpuzzling/" target="_blank" rel="noopener" aria-label="Instagram"><i class="bi-instagram" aria-hidden="true"></i></a> |
| 455 | + <a class="ms-2" href="https://github.com/MySpeedPuzzling/myspeedpuzzling.com" target="_blank" rel="noopener" aria-label="GitHub"><i class="bi-github" aria-hidden="true"></i></a> |
456 | 456 | </p> |
457 | 457 | {{ 'footer.created_with_love'|trans({ '%simona%': '<a href="mailto:[email protected]">Simona Mikešová</a>', '%jan%': '<a href="https://janmikes.cz">Jan Mikeš</a>' }) |raw }} |
458 | 458 | </div> |
|
0 commit comments