-
Notifications
You must be signed in to change notification settings - Fork 5
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 #378 from City-of-Helsinki/fix-broken-layout-HAUKI…
…-618 fix: broken layout hauki 618 and translate header and footer hauki 610
- Loading branch information
Showing
22 changed files
with
2,531 additions
and
2,008 deletions.
There are no files selected for viewing
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,34 +1,47 @@ | ||
import React from 'react'; | ||
import { Footer, logoFi, Logo } from 'hds-react'; | ||
import { Footer, logoFi, logoSv, Logo } from 'hds-react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { useAppContext } from '../../App-context'; | ||
import './HaukiFooter.scss'; | ||
|
||
const HaukiFooter = (): JSX.Element => ( | ||
<> | ||
<div className="footer-top-padding" /> | ||
<Footer | ||
className="page-footer" | ||
title="Aukiolot" | ||
theme={{ | ||
'--footer-background': 'var(--hauki-footer-background-color)', | ||
}}> | ||
<Footer.Base | ||
copyrightHolder="Helsingin Kaupunki" | ||
copyrightText="Kaikki oikeudet pidätetään." | ||
logo={<Logo src={logoFi} size="medium" alt="Helsingin kaupunki" />} | ||
backToTopLabel="Takaisin ylös"> | ||
<Footer.Link | ||
href="https://kaupunkialustana.hel.fi/aukiolosovelluksen-saavutettavuusseloste/" | ||
target="_blank" | ||
label="Saavutettavuusseloste" | ||
/> | ||
<Footer.Link | ||
href="/content-license.txt" | ||
target="_blank" | ||
label="Sisältölisenssi CC BY 4.0" | ||
/> | ||
</Footer.Base> | ||
</Footer> | ||
</> | ||
); | ||
const HaukiFooter = (): JSX.Element => { | ||
const { language } = useAppContext(); | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<> | ||
<div className="footer-top-padding" /> | ||
<Footer | ||
className="page-footer" | ||
title="Aukiolot" | ||
theme={{ | ||
'--footer-background': 'var(--hauki-footer-background-color)', | ||
}}> | ||
<Footer.Base | ||
copyrightHolder={t('Footer.CopyrightHolder')} | ||
copyrightText={t('Footer.CopyrightText')} | ||
logo={ | ||
<Logo | ||
src={language === 'sv' ? logoSv : logoFi} | ||
size="medium" | ||
alt={t('Footer.LogoAlt')} | ||
/> | ||
} | ||
backToTopLabel={t('Footer.BackToTopLabel')}> | ||
<Footer.Link | ||
href={t('Footer.AccessibilityStatementLinkUrl')} | ||
target="_blank" | ||
label={t('Footer.AccessibilityStatementLink')} | ||
/> | ||
<Footer.Link | ||
href="/content-license.txt" | ||
target="_blank" | ||
label={t('Footer.ContentLicenseLink')} | ||
/> | ||
</Footer.Base> | ||
</Footer> | ||
</> | ||
); | ||
}; | ||
|
||
export default HaukiFooter; |
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
Oops, something went wrong.