diff --git a/pwa/src/templates/templateParts/footer/FooterTemplate.module.css b/pwa/src/templates/templateParts/footer/FooterTemplate.module.css
index 4315112c..a20c9412 100644
--- a/pwa/src/templates/templateParts/footer/FooterTemplate.module.css
+++ b/pwa/src/templates/templateParts/footer/FooterTemplate.module.css
@@ -74,7 +74,7 @@
margin-top: 38px;
display: flex;
justify-content: space-between;
- align-items: flex-end;
+ align-items: center;
}
@media only screen and (max-width: 992px) {
diff --git a/pwa/src/templates/templateParts/footer/FooterTemplate.tsx b/pwa/src/templates/templateParts/footer/FooterTemplate.tsx
index 3dd44467..a8fcb092 100644
--- a/pwa/src/templates/templateParts/footer/FooterTemplate.tsx
+++ b/pwa/src/templates/templateParts/footer/FooterTemplate.tsx
@@ -5,6 +5,7 @@ import { navigate } from "gatsby-link";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCode, faHeart } from "@fortawesome/free-solid-svg-icons";
import { useTranslation } from "react-i18next";
+import { Logo } from "@conduction/components";
type TDynamicContentItem = {
title: string;
@@ -34,7 +35,15 @@ export const FooterTemplate: React.FC = () => {
-
+ {process.env.GATSBY_FOOTER_LOGO_URL !== "false" && (
+
+ process.env.GATSBY_FOOTER_LOGO_HREF ? open(process.env.GATSBY_FOOTER_LOGO_HREF) : navigate("/")
+ }
+ />
+ )}
+
@@ -86,26 +95,6 @@ const DynamicSection: React.FC<{ content: TDynamicContentItem }> = ({ content })
);
};
-const Logo: React.FC = () => {
- if (process.env.GATSBY_FOOTER_LOGO_URL === "false") return <>>;
- const { t } = useTranslation();
-
- return (
-
-
- process.env.GATSBY_FOOTER_LOGO_HREF ? open(process.env.GATSBY_FOOTER_LOGO_HREF) : navigate("/")
- }
- src={process.env.GATSBY_FOOTER_LOGO_URL}
- alt={t("Footer-logo")}
- aria-label={`${t("Footer-logo")}, ${t("Can open a new window")}`}
- tabIndex={0}
- />
-
- );
-};
-
const WithLoveByConduction: React.FC = () => {
const { t } = useTranslation();
diff --git a/pwa/src/templates/templateParts/header/HeaderTemplate.module.css b/pwa/src/templates/templateParts/header/HeaderTemplate.module.css
index bf51b9f3..ad1b7ebe 100644
--- a/pwa/src/templates/templateParts/header/HeaderTemplate.module.css
+++ b/pwa/src/templates/templateParts/header/HeaderTemplate.module.css
@@ -16,19 +16,6 @@
justify-content: space-between;
}
-.imageContainer {
- height: var(--utrecht-page-header-logo-max-height);
- width: var(--utrecht-page-header-logo-max-width);
-}
-
-.image {
- vertical-align: middle;
- margin-inline-end: 10px;
- width: 100%;
- height: 100%;
- object-fit: contain;
-}
-
.image:hover {
cursor: pointer;
}
diff --git a/pwa/src/templates/templateParts/header/HeaderTemplate.tsx b/pwa/src/templates/templateParts/header/HeaderTemplate.tsx
index 6e649819..aa08b350 100644
--- a/pwa/src/templates/templateParts/header/HeaderTemplate.tsx
+++ b/pwa/src/templates/templateParts/header/HeaderTemplate.tsx
@@ -2,9 +2,10 @@ import * as React from "react";
import * as styles from "./HeaderTemplate.module.css";
import clsx from "clsx";
import { PageHeader, SkipLink } from "@utrecht/component-library-react/dist/css-module";
-import { navigate } from "gatsby";
import { useTranslation } from "react-i18next";
import { useGatsbyContext } from "../../../context/gatsby";
+import { navigate } from "gatsby";
+import { Logo } from "@conduction/components";
interface HeaderTemplateProps {
layoutClassName: string;
@@ -26,15 +27,8 @@ export const HeaderTemplate: React.FC = ({ layoutClassName
-
-
navigate("/")}
- src={process.env.GATSBY_HEADER_LOGO_URL}
- alt={t("Navbar-Logo")}
- tabIndex={0}
- />
-
+
navigate("/")} />
+