diff --git a/package-lock.json b/package-lock.json index fc378d64..104a0dca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2000,9 +2000,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001487", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001487.tgz", - "integrity": "sha512-83564Z3yWGqXsh2vaH/mhXfEM0wX+NlBCm1jYHOb97TrTWJEmPTccZgeLTPBUUb0PNVo+oomb7wkimZBIERClA==", + "version": "1.0.30001563", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001563.tgz", + "integrity": "sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==", "dev": true, "funding": [ { @@ -9942,9 +9942,9 @@ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" }, "caniuse-lite": { - "version": "1.0.30001487", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001487.tgz", - "integrity": "sha512-83564Z3yWGqXsh2vaH/mhXfEM0wX+NlBCm1jYHOb97TrTWJEmPTccZgeLTPBUUb0PNVo+oomb7wkimZBIERClA==", + "version": "1.0.30001563", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001563.tgz", + "integrity": "sha512-na2WUmOxnwIZtwnFI2CZ/3er0wdNzU7hN+cPYz/z2ajHThnkWjNBOpEPP4n+4r2WPM847JaMotaJE3bnfzjyKw==", "dev": true }, "chai": { diff --git a/src/lib/components/Hero.svelte b/src/lib/components/Hero.svelte index fd290093..7cf10828 100755 --- a/src/lib/components/Hero.svelte +++ b/src/lib/components/Hero.svelte @@ -7,7 +7,6 @@ export let gradient_only; export let height; export let text; - export let image_alt; export let buttons = []; export let correlaidx = false; export let image = void 0; diff --git a/src/lib/data/translations.js b/src/lib/data/translations.js index b5213dec..88a5db9a 100755 --- a/src/lib/data/translations.js +++ b/src/lib/data/translations.js @@ -83,6 +83,8 @@ export default { 'footer.coe': {text: 'Code of Ethics', url: '/codeofethics'}, // 'footer.contact': {text: 'Kontakt', url: '/contact'}, 'misc.read_more': {text: 'Mehr lesen'}, + 'misc.partners': {text: 'Partner'}, + 'misc.financial_supporters': {text: 'Fördernde'}, 'access.close': {text: 'Navigation schließen'}, 'access.open': {text: 'Navigation öffnen'}, 'access.next': {text: 'Nächstes'}, @@ -191,6 +193,8 @@ export default { 'footer.coe': {text: 'Code of Ethics', url: '/en/codeofethics'}, // 'footer.contact': {text: 'Contact', url: '/en/contact'}, 'misc.read_more': {text: 'Read more'}, + 'misc.partners': {text: 'Partners'}, + 'misc.financial_supporters': {text: 'Financial Supporters'}, 'access.close': {text: 'Close Navigation'}, 'access.open': {text: 'Open Navigation'}, 'access.next': {text: 'Next'}, diff --git a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.server.js b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.server.js index cca7208e..2de6b7ad 100755 --- a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.server.js +++ b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.server.js @@ -7,5 +7,15 @@ import {parseEntries} from '$lib/js/parse_cms.js'; export async function load({params}) { const data = await directus_fetch(partnerQuery, {language: get_lang(params)}); - return {partners: parseEntries(data.Partners, 'partners')}; + const partners = data.Partners.filter( + (partner) => partner.type === 'partner', + ); + const financial_supporters = data.Partners.filter( + (partner) => partner.type === 'financial_supporter', + ); + + return { + partners: parseEntries(partners, 'partners'), + financial_supporters: parseEntries(financial_supporters, 'partners'), + }; } diff --git a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.svelte b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.svelte index 3e34929f..4e586319 100755 --- a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.svelte +++ b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/+page.svelte @@ -1,6 +1,7 @@
+

{$t('misc.partners').text}

{#each partners as partner} {/each}
+

+ {$t('misc.financial_supporters').text} +

+
+ {#each financial_supporters as partner} + + {/each} +
diff --git a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/queries.js b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/queries.js index a3ec2b98..65991c20 100755 --- a/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/queries.js +++ b/src/routes/[[locale=locale]]/[about=about]/[partners=partners]/queries.js @@ -5,6 +5,7 @@ query Partners($language: String = "de-DE") { logo { id } + type link translations(filter: { languages_code: { code: { _eq: $language } } }) { description