-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #176 from openstreetmap-polska/dev
Release dev
- Loading branch information
Showing
14 changed files
with
105 additions
and
90 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<> | ||
<section className="modal-card-body has-text-weight-light" id="partners-modal"> | ||
<div className="pb-3 pt-5 pl-5 box"> | ||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image"> | ||
<img | ||
alt={t("partners.gugik")} | ||
src="./img/logo-gugik-short.png" | ||
/> | ||
</figure> | ||
</div> | ||
<div className="media-content"> | ||
<a href="http://www.gugik.gov.pl/" rel="noopener noreferrer" target="_blank"> | ||
{t("partners.gugik")} | ||
</a> | ||
<p className="is-size-6"> | ||
{/* eslint-disable-next-line react/jsx-no-literals */} | ||
<span className="has-text-weight-semibold">Alicja Kulka</span> | ||
</p> | ||
<span | ||
className="has-text-weight-light has-text-grey is-size-6" | ||
> | ||
{t("partners.acting")} | ||
| ||
{t("partners.chief_geodesist")} | ||
</span> | ||
</div> | ||
</div> | ||
|
||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image"> | ||
<img | ||
// TODO: vector logo | ||
src="./img/logo-umw.jpg" | ||
alt={t("partners.wroclaw_medical_university")} | ||
style={{ height: "40px" }} | ||
/> | ||
</figure> | ||
</div> | ||
<div className="media-content"> | ||
<a href="https://www.umw.edu.pl" rel="noopener noreferrer" target="_blank"> | ||
{t("partners.wroclaw_medical_university")} | ||
</a> | ||
<p className="is-size-6"> | ||
<span className="has-text-weight-light has-text-grey is-size-6"> | ||
{t("partners.main_scientific_partner")} | ||
</span> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="media"> | ||
<div className="media-left"> | ||
<figure className="image"> | ||
<img | ||
alt={cloudFerro} | ||
src="./img/cloudferro_logo-dark.png" | ||
style={{ height: "55px" }} | ||
/> | ||
</figure> | ||
</div> | ||
<div className="media-content"> | ||
<a href="https://cloudferro.com/" rel="noopener noreferrer" target="_blank"> | ||
{cloudFerro} | ||
</a> | ||
{partners.map((partner) => ( | ||
<div className="media partner-row"> | ||
<div className="media-left"> | ||
<figure className="image"> | ||
<img | ||
alt={partner.name} | ||
src={`./img/${partner.image}`} | ||
style={{ height: `${partner.imageHeight}px` }} | ||
/> | ||
</figure> | ||
</div> | ||
<div className="media-content"> | ||
<a href={partner.url} rel="noopener noreferrer" target="_blank">{partner.name}</a> | ||
{partner.person !== null && ( | ||
<p className="is-size-6"> | ||
<span className="has-text-weight-semibold">{partner.person}</span> | ||
</p> | ||
)} | ||
{partner.role !== null && ( | ||
<div className="has-text-weight-light has-text-grey is-size-6"> | ||
{partner.role} | ||
</div> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</section> | ||
<footer className="modal-card-foot p-2"> | ||
<div className="notification is-info is-light"> | ||
{t("modal.become_openaedmap_partner")} | ||
| ||
<a | ||
className="has-text-weight-medium" | ||
href="mailto:[email protected]" | ||
> | ||
{t("modal.contact_us")} | ||
</a> | ||
<a className="has-text-weight-medium" href="mailto:[email protected]">{t("modal.contact_us")}</a> | ||
. | ||
</div> | ||
</footer> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.