From 26d53f8d329089adba9f84432b9d6904428ce436 Mon Sep 17 00:00:00 2001 From: Remko Date: Mon, 18 Dec 2023 17:27:58 +0100 Subject: [PATCH] added partial sloterburg theme --- pwa/package-lock.json | 8 ++++---- pwa/package.json | 2 +- pwa/src/services/getConfig.ts | 8 ++++++++ pwa/src/styling/index.css | 1 + pwa/static/configFiles/sloterburg.json | 14 ++++++++++++++ 5 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 pwa/static/configFiles/sloterburg.json diff --git a/pwa/package-lock.json b/pwa/package-lock.json index e42355b6..0b89263c 100644 --- a/pwa/package-lock.json +++ b/pwa/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "dependencies": { "@conduction/components": "2.2.41", - "@conduction/theme": "1.1.1", + "@conduction/theme": "1.1.2", "@fortawesome/fontawesome-svg-core": "^6.5.0", "@fortawesome/free-brands-svg-icons": "6.5.0", "@fortawesome/free-regular-svg-icons": "6.5.0", @@ -2156,9 +2156,9 @@ } }, "node_modules/@conduction/theme": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@conduction/theme/-/theme-1.1.1.tgz", - "integrity": "sha512-H4YGWybK8HABGqpb8sOhIEmLxtDKddEqEzNpifuMt67R844Atac17P7xtVFZoisMbDnEIyXxBIBGzwRM2Qriqw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@conduction/theme/-/theme-1.1.2.tgz", + "integrity": "sha512-AEE7zH1ARlKxHkN5MI1497XoCB9dfhT6qx/A5rSvza/oU7EBI4nZ8YyWADxJUwXGIL53rG9Ak5dPx1vtX9DRrQ==", "dependencies": { "@nl-design-system-unstable/rotterdam-design-tokens": "^1.0.0-alpha.100" } diff --git a/pwa/package.json b/pwa/package.json index 23a2ce90..87c90693 100644 --- a/pwa/package.json +++ b/pwa/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@conduction/components": "2.2.41", - "@conduction/theme": "1.1.1", + "@conduction/theme": "1.1.2", "@fortawesome/fontawesome-svg-core": "^6.5.0", "@fortawesome/free-brands-svg-icons": "6.5.0", "@fortawesome/free-regular-svg-icons": "6.5.0", diff --git a/pwa/src/services/getConfig.ts b/pwa/src/services/getConfig.ts index dbcb6530..9762a096 100644 --- a/pwa/src/services/getConfig.ts +++ b/pwa/src/services/getConfig.ts @@ -18,6 +18,7 @@ import RijssenHolten from "./../../static/configFiles/rijssen-holten.json"; import HoekscheWaard from "./../../static/configFiles/hoeksche-waard.json"; import Texel from "./../../static/configFiles/texel.json"; import Zutphen from "./../../static/configFiles/zutphen.json"; +import Sloterburg from "./../../static/configFiles/sloterburg.json"; import { TGroupedSelectOption } from "@conduction/components/lib/components/formFields/select/select"; export const getConfig = (themeOrDomainName: string): Record | undefined => { @@ -70,6 +71,12 @@ export const getConfig = (themeOrDomainName: string): Record | unde case "zutphen-theme": return Zutphen; + case "open.sloterburg.nl": + case "sloterburg.koophulpje.nl": + case "sloterburg.openwoo.app": + case "sloterburg-theme": + return Sloterburg; + case "koophulpje.nl": case "open-webconcept-theme": case "openwoo.app": @@ -154,6 +161,7 @@ export const availableThemes: TGroupedSelectOption[] = [ { label: "Ridderkerk", value: "ridderkerk" }, { label: "Rijssen-Holten", value: "rijssen-holten" }, { label: "Rotterdam", value: "rotterdam-theme" }, + { label: "Sloterburg", value: "sloterburg-theme" }, { label: "Stede Broec", value: "stedebroec" }, { label: "Texel", value: "texel" }, { label: "Tubbergen", value: "tubbergen-theme" }, diff --git a/pwa/src/styling/index.css b/pwa/src/styling/index.css index f60bfb71..c6673b76 100644 --- a/pwa/src/styling/index.css +++ b/pwa/src/styling/index.css @@ -15,6 +15,7 @@ @import "../../node_modules/@conduction/theme/municipalities/dimpact-design-tokens/dist/index.css"; @import "../../node_modules/@conduction/theme/municipalities/commonground-design-tokens/dist/index.css"; @import "../../node_modules/@conduction/theme/municipalities/zutphen-design-tokens/dist/index.css"; +@import "../../node_modules/@conduction/theme/municipalities/sloterburg-design-tokens/dist/index.css"; /* Design Tokens maintained by Frameless */ @import "../../node_modules/@utrecht/design-tokens/dist/theme.css"; diff --git a/pwa/static/configFiles/sloterburg.json b/pwa/static/configFiles/sloterburg.json new file mode 100644 index 00000000..9b6f98fd --- /dev/null +++ b/pwa/static/configFiles/sloterburg.json @@ -0,0 +1,14 @@ +{ + "GATSBY_SHOW_THEME_SWITCHER": "false", + "GATSBY_API_BASE_URL": "https://api.common-gateway.commonground.nu/api", + "GATSBY_NL_DESIGN_THEME_CLASSNAME": "sloterburg-theme", + "GATSBY_FAVICON_URL": "https://cuatro.sim-cdn.nl/sloterburg/uploads/styles/favicon/media/favicon357500.png?cb=U6Ix86ic", + "GATSBY_ORGANISATION_NAME": "Gemeente Sloterburg", + "GATSBY_JUMBOTRON_IMAGE_URL": "https://cuatro.sim-cdn.nl/sloterburg/uploads/styles/large_5x2_2560x1024/media/kasteel.jpg?cb=RcxlJqfm", + "GATSBY_FOOTER_LOGO_HREF": "https://sloterburg.nl/", + "GATSBY_FOOTER_CONTENT": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/FooterContent.json", + "GATSBY_FOOTER_CONTENT_HEADER": "heading-2", + "GATSBY_OIDN_NUMBER": "", + "GATSBY_SHOW_CATEGORY": "true", + "GATSBY_SHOW_ORGANIZATION": "true" +}