-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/grundeinkommensbuero/next-p…
- Loading branch information
Showing
36 changed files
with
561 additions
and
81 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
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,46 +1,64 @@ | ||
import React from 'react'; | ||
import s from './style.module.scss'; | ||
import { Follow } from '../SocialMedia/Follow'; | ||
import { Follow, FollowHamburg } from '../SocialMedia/Follow'; | ||
import { ReactElement } from 'react'; | ||
import { Menu } from '../../utils/getMenus'; | ||
import { FooterMenu } from './FooterMenu'; | ||
import cN from 'classnames'; | ||
import LogoExpedition from '../logo-expedition.svg'; | ||
|
||
const IS_BERLIN_PROJECT = process.env.NEXT_PUBLIC_PROJECT === 'Berlin'; | ||
const IS_HAMBURG_PROJECT = process.env.NEXT_PUBLIC_PROJECT === 'Hamburg'; | ||
|
||
type FooterProps = { | ||
footerMenu: Menu; | ||
}; | ||
|
||
export const Footer = ({ footerMenu }: FooterProps): ReactElement => ( | ||
<footer className={cN(s.footer, { [s.black]: IS_BERLIN_PROJECT })}> | ||
<footer | ||
className={cN( | ||
s.footer, | ||
{ [s.black]: IS_BERLIN_PROJECT }, | ||
{ [s.hamburg]: IS_HAMBURG_PROJECT } | ||
)} | ||
> | ||
<div className={s.itemContainer}> | ||
<div className="text-d-lg"> | ||
{IS_BERLIN_PROJECT && ( | ||
<> | ||
<div className={s.berlinInfos}> | ||
<span>Eine Initiative von</span> | ||
<LogoExpedition | ||
className={s.logo} | ||
alt={'Expedition Grundeinkommen'} | ||
color={'white'} | ||
/> | ||
</div> | ||
<span> | ||
<a | ||
href="https://www.expedition-grundeinkommen.de" | ||
className={s.expeditionsLink} | ||
> | ||
expedition-grundeinkommen.de | ||
</a> | ||
</span> | ||
</> | ||
)} | ||
© Expedition Grundeinkommen {new Date().getFullYear()} | ||
</div> | ||
<Follow className={s.socialMedia} /> | ||
<FooterMenu footerMenu={footerMenu} /> | ||
{!IS_HAMBURG_PROJECT && ( | ||
<div className="text-d-lg"> | ||
{IS_BERLIN_PROJECT && ( | ||
<> | ||
<div className={s.berlinInfos}> | ||
<span>Eine Initiative von</span> | ||
<LogoExpedition | ||
className={s.logo} | ||
alt={'Expedition Grundeinkommen'} | ||
color={'white'} | ||
/> | ||
</div> | ||
<span> | ||
<a | ||
href="https://www.expedition-grundeinkommen.de" | ||
className={s.expeditionsLink} | ||
> | ||
expedition-grundeinkommen.de | ||
</a> | ||
</span> | ||
</> | ||
)} | ||
© Expedition Grundeinkommen {new Date().getFullYear()} | ||
</div> | ||
)} | ||
{IS_HAMBURG_PROJECT ? ( | ||
<> | ||
<FooterMenu footerMenu={footerMenu} /> | ||
<FollowHamburg className={s.socialMedia} /> | ||
</> | ||
) : ( | ||
<> | ||
<Follow className={s.socialMedia} /> | ||
<FooterMenu footerMenu={footerMenu} /> | ||
</> | ||
)} | ||
</div> | ||
</footer> | ||
); |
Oops, something went wrong.