Skip to content

Commit

Permalink
feat: implement skip links on results pages
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovareiro29 committed Sep 20, 2024
1 parent 786c7c0 commit e751705
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/pages/overview-empty.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}
{%
set skip_links = [
{ href: '#content', text: 'Zum Inhalt' },
]
%}

{% block content %}
<div id='content'></div>
{%
include 'partials::base/b_breadcrumbs.twig' with {
links: [
Expand Down
6 changes: 6 additions & 0 deletions src/pages/overview.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}
{%
set skip_links = [
{ href: '#content', text: 'Zum Inhalt' },
]
%}

{% block content %}
<div id='content'></div>
{%
include 'partials::base/b_breadcrumbs.twig' with {
links: [
Expand Down
6 changes: 6 additions & 0 deletions src/pages/publisher-datasets-empty.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}
{%
set skip_links = [
{ href: '#content', text: 'Zum Inhalt' },
]
%}

{% block content %}
<div id='content'></div>
{%
include 'partials::base/b_breadcrumbs.twig' with {
links: [
Expand Down
6 changes: 6 additions & 0 deletions src/pages/publisher-datasets.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}
{%
set skip_links = [
{ href: '#content', text: 'Zum Inhalt' },
]
%}

{% block content %}
<div id='content'></div>
{%
include 'partials::base/b_breadcrumbs.twig' with {
links: [
Expand Down
6 changes: 6 additions & 0 deletions src/pages/publisher-overview.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% extends 'layouts::base.twig' %}
{% set theme = 'default' %}
{%
set skip_links = [
{ href: '#content', text: 'Zum Inhalt' },
]
%}

{% block content %}
<div id='content'></div>
{%
include 'partials::base/b_breadcrumbs.twig' with {
links: [
Expand Down
11 changes: 9 additions & 2 deletions src/partials/content-layout/cl_results-empty-state.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<div class='row pt-3 pt-md-4'>
<div class='col-0 col-lg-3'>
<div class='position-relative col-0 col-lg-3'>
{%
include 'partials::content-layout/cl_skip-links.twig' with {
links: [
{ href: "#results", text: "Filter überspringen"}
]
}
%}
{%
include 'partials::content-layout/cl_filters.twig' with {
showDesktop: true,
Expand Down Expand Up @@ -107,7 +114,7 @@
</button>
</div>
<div class='visually-hidden' role='region' aria-live='polite'>0 Ergebnisse</div>
<div class='mt-3'>
<div id='results' class='mt-3'>
<div class='ratio ratio-21x9 rounded border'>
<div class='d-flex flex-column justify-content-center align-items-center p-2'>
<i class='bi bi-search display-2 text-gray mb-2'></i>
Expand Down
11 changes: 9 additions & 2 deletions src/partials/content-layout/cl_results.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<div class='row pt-3 pt-md-4'>
<div class='col-0 col-lg-3'>
<div class='position-relative col-0 col-lg-3'>
{%
include 'partials::content-layout/cl_skip-links.twig' with {
links: [
{ href: "#results", text: "Filter überspringen"}
]
}
%}
{%
include 'partials::content-layout/cl_filters.twig' with {
showDesktop: true,
Expand Down Expand Up @@ -107,7 +114,7 @@
</button>
</div>
<div class='visually-hidden' role='region' aria-live='polite'>5 Ergebnisse</div>
<div class='mt-3'>
<div id='results' class='mt-3'>
<div class='pb-3'>
{%
include 'partials::content-layout/cl_result-card.twig' with {
Expand Down

0 comments on commit e751705

Please sign in to comment.