From bcac842a88a7b9150438a796e520f40e45acfb9b Mon Sep 17 00:00:00 2001 From: Kennet Date: Tue, 17 Dec 2024 01:55:30 +0100 Subject: [PATCH 1/2] add support us to navigation bar --- components/layout/header/HeaderBarDesktop.tsx | 4 ++-- .../navigation/desktop/DesktopNavigationItems.tsx | 5 +++++ .../navigation/desktop/DesktopNavigationLink.tsx | 4 +--- .../navigation/mobile/MobileNavigationItems.tsx | 14 +++++++++----- 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/components/layout/header/HeaderBarDesktop.tsx b/components/layout/header/HeaderBarDesktop.tsx index bf9ccf2..e65472d 100644 --- a/components/layout/header/HeaderBarDesktop.tsx +++ b/components/layout/header/HeaderBarDesktop.tsx @@ -3,7 +3,7 @@ import { useRouter } from 'next/router'; import type { ReactElement } from 'react'; import HeaderBanner from '@/components/layout/header/HeaderBanner'; import { DesktopNavigationItems } from '@/components/layout/navigation/desktop/DesktopNavigationItems'; -import DesktopNavigationLink from '@/components/layout/navigation/desktop/DesktopNavigationLink'; +import { DesktopNavigationLink } from '@/components/layout/navigation/desktop/DesktopNavigationLink'; import Heart from '@/components/svg/Heart'; const HeaderBarDesktop = (): ReactElement => { @@ -41,7 +41,7 @@ const HeaderBarDesktop = (): ReactElement => { ( labelDe: 'Aktuelles', labelEn: 'News', }, + { + link: '/support', + labelDe: 'Unterstützen', + labelEn: 'Support us', + }, ); diff --git a/components/layout/navigation/desktop/DesktopNavigationLink.tsx b/components/layout/navigation/desktop/DesktopNavigationLink.tsx index d47e3d0..1b0ac2a 100644 --- a/components/layout/navigation/desktop/DesktopNavigationLink.tsx +++ b/components/layout/navigation/desktop/DesktopNavigationLink.tsx @@ -8,7 +8,7 @@ export interface DesktopNavigationItemLocaleProps { subLabel?: string; } -const DesktopNavigationLink = ({ +export const DesktopNavigationLink = ({ link, label, subLabel, @@ -29,5 +29,3 @@ const DesktopNavigationLink = ({ ); }; - -export default DesktopNavigationLink; diff --git a/components/layout/navigation/mobile/MobileNavigationItems.tsx b/components/layout/navigation/mobile/MobileNavigationItems.tsx index dd9d3eb..ddac0b1 100644 --- a/components/layout/navigation/mobile/MobileNavigationItems.tsx +++ b/components/layout/navigation/mobile/MobileNavigationItems.tsx @@ -32,11 +32,15 @@ const MobileNavigationItems = (): ReactElement => { - - Aktuelles + + {locale === 'en' ? 'News' : 'Aktuelles'} - + + {locale === 'en' ? 'Support us' : 'Unterstützen'} + + +
{locale === 'en' ? 'Neighbourhood work' : 'Quartiersarbeit'} @@ -46,7 +50,7 @@ const MobileNavigationItems = (): ReactElement => {
- +
{locale === 'en' ? 'B-Side Cafe' : 'B-Side Cafe'} @@ -56,7 +60,7 @@ const MobileNavigationItems = (): ReactElement => {
- + {locale === 'en' ? 'Contact' : 'Kontakt'} From 75de5cb67c3fc25bc816bb2558a63a5539f0bca2 Mon Sep 17 00:00:00 2001 From: Kennet Date: Tue, 17 Dec 2024 02:15:41 +0100 Subject: [PATCH 2/2] add Arrival to Footer --- components/common/Footer.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/common/Footer.tsx b/components/common/Footer.tsx index 90e537d..1d524e1 100644 --- a/components/common/Footer.tsx +++ b/components/common/Footer.tsx @@ -57,6 +57,18 @@ const Footer = (): ReactElement => {