diff --git a/public/img/logo-cez.png b/public/img/logo-cez.png new file mode 100644 index 0000000..548b85e Binary files /dev/null and b/public/img/logo-cez.png differ diff --git a/public/img/logo-pw.png b/public/img/logo-pw.png new file mode 100644 index 0000000..26eddb0 Binary files /dev/null and b/public/img/logo-pw.png differ diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 845131e..980e05d 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -97,11 +97,13 @@ "thanks_for_report": "Thank you for sending a report. It will be reviewed by the site administrators." }, "partners": { + "e_health_centre": "e-Health Centre", "honorary_patronage": "Honorary patronage", "gugik": "Head Office of Geodesy and Cartography in Poland", "acting": "acting", "chief_geodesist": "Chief Geodesist of Poland", "main_scientific_partner": "The Main Scientific Partner", + "warsaw_university_of_technology": "Warsaw University of Technology", "wroclaw_medical_university": "Wroclaw Medical University" }, "common": { diff --git a/public/locales/pl/translation.json b/public/locales/pl/translation.json index f8fff17..0c9e935 100644 --- a/public/locales/pl/translation.json +++ b/public/locales/pl/translation.json @@ -97,11 +97,13 @@ "thanks_for_report": "Dziękujemy za wysłanie zgłoszenia. Zostanieono przeanalizowane przez administratorów strony." }, "partners": { + "e_health_centre": "Centrum e-Zdrowia", "honorary_patronage": "Patronat honorowy", "gugik": "Główny Urząd Geodezji i Kartografii", "acting": "p. o.", "chief_geodesist": "Główny Geodeta Kraju", "main_scientific_partner": "Główny Partner Naukowy", + "warsaw_university_of_technology": "Politechnika Warszawska", "wroclaw_medical_university": "Uniwersytet Medyczny im. Piastów Śląskich we Wrocławiu" }, "common": { diff --git a/src/components/partnersModal.tsx b/src/components/partnersModal.tsx index 82249bb..f6e5d29 100644 --- a/src/components/partnersModal.tsx +++ b/src/components/partnersModal.tsx @@ -1,91 +1,96 @@ import React, { FC } from "react"; import { useTranslation } from "react-i18next"; +interface Partner { + name: string; + person: string | null; + role: string | null; + image: string; + imageHeight: number; + url: string; +} + const PartnersModal: FC<{}> = () => { const { t } = useTranslation(); - const cloudFerro = "CloudFerro"; + const partners: Partner[] = [ + { + name: "CloudFerro", + person: null, + role: null, + image: "cloudferro_logo-dark.png", + imageHeight: 55, + url: "https://cloudferro.com/", + }, + { + name: t("partners.wroclaw_medical_university"), + person: null, + role: t("partners.main_scientific_partner"), + image: "logo-umw.jpg", // TODO: vector logo + imageHeight: 40, + url: "https://www.umw.edu.pl", + }, + { + name: t("partners.e_health_centre"), + person: null, + role: null, + image: "logo-cez.png", + imageHeight: 67, + url: "https://cez.gov.pl", + }, + { + name: t("partners.warsaw_university_of_technology"), + person: null, + role: null, + image: "logo-pw.png", + imageHeight: 80, + url: "https://pw.edu.pl/", + }, + { + name: t("partners.gugik"), + person: "Alicja Kulka", + role: `${t("partners.acting")} ${t("partners.chief_geodesist")}`, + image: "logo-gugik-short.png", + imageHeight: 55, + url: "https://www.gov.pl/web/gugik", + }, + ]; return ( <>
-
-
-
- {t("partners.gugik")} -
-
-
- - {t("partners.gugik")} - -

- {/* eslint-disable-next-line react/jsx-no-literals */} - Alicja Kulka -

- - {t("partners.acting")} -   - {t("partners.chief_geodesist")} - -
-
- -
-
-
- {t("partners.wroclaw_medical_university")} -
-
-
- - {t("partners.wroclaw_medical_university")} - -

- - {t("partners.main_scientific_partner")} - -

-
-
- -
-
-
- {cloudFerro} -
-
-
- - {cloudFerro} - + {partners.map((partner) => ( +
+
+
+ {partner.name} +
+
+
+ {partner.name} + {partner.person !== null && ( +

+ {partner.person} +

+ )} + {partner.role !== null && ( +
+ {partner.role} +
+ )} +
-
+ ))}
diff --git a/src/index.css b/src/index.css index 609003f..9e65bff 100644 --- a/src/index.css +++ b/src/index.css @@ -84,5 +84,6 @@ a.navbar-item:focus-within, a.navbar-item:hover { } .partner-row { - flex-wrap: wrap; + flex-wrap: wrap; + align-items: center !important; } \ No newline at end of file