From 2eefac17903c8d5ebe8989259136fc0bf02cca28 Mon Sep 17 00:00:00 2001 From: Mathilde Deutschmann Date: Wed, 22 Jan 2025 17:33:14 +0100 Subject: [PATCH 1/5] new footer design --- website/src/components/footer/footer.tsx | 43 +++++------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/website/src/components/footer/footer.tsx b/website/src/components/footer/footer.tsx index b99077efa..2baae9b64 100644 --- a/website/src/components/footer/footer.tsx +++ b/website/src/components/footer/footer.tsx @@ -20,7 +20,7 @@ function FooterLink({ label, url, Icon, target = '_self' }: FooterLinkProps) { return ( {Icon && } - + {label} @@ -41,74 +41,55 @@ export default async function Footer({ lang, region }: DefaultParams) { }); return ( - +
-
- -
- -
-
-
- + {translator.t('footer.follow-us')} - +
- + {translator.t('footer.resources')} - +
- + {translator.t('navigation.our-work')}
- + {translator.t('navigation.about-us')}
-
- -
); From d2259bb8fb806ac064e426f68813d5e50ea108b1 Mon Sep 17 00:00:00 2001 From: mdumond Date: Wed, 22 Jan 2025 16:37:39 +0000 Subject: [PATCH 2/5] Prettified Code! --- website/src/components/footer/footer.tsx | 43 ++++-------------------- 1 file changed, 7 insertions(+), 36 deletions(-) diff --git a/website/src/components/footer/footer.tsx b/website/src/components/footer/footer.tsx index 2baae9b64..6508967d2 100644 --- a/website/src/components/footer/footer.tsx +++ b/website/src/components/footer/footer.tsx @@ -1,9 +1,5 @@ import { DefaultParams } from '@/app/[lang]/[region]'; -import { FooterClient } from '@/components/footer/footer-client'; -import { SILogo } from '@/components/logos/si-logo'; import { WebsiteLanguage, websiteRegions } from '@/i18n'; -import { DocumentTextIcon, InformationCircleIcon, UserCircleIcon } from '@heroicons/react/24/solid'; -import { SiFacebook, SiGithub, SiInstagram, SiLinkedin, SiMaildotru, SiX } from '@icons-pack/react-simple-icons'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Typography } from '@socialincome/ui'; import Link from 'next/link'; @@ -48,44 +44,19 @@ export default async function Footer({ lang, region }: DefaultParams) { {translator.t('footer.follow-us')} - + - - - - + + + +
{translator.t('footer.resources')} - - + +
From b1a18e2a3365f4803b364035b119ba4636ea1b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BCndig?= Date: Thu, 23 Jan 2025 17:58:45 +0100 Subject: [PATCH 3/5] Small cleanups --- ui/src/components/containers/base-container.tsx | 8 ++++---- .../app/[lang]/[region]/(website)/arts/section-2.tsx | 2 +- website/src/components/footer/footer.tsx | 10 +--------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/ui/src/components/containers/base-container.tsx b/ui/src/components/containers/base-container.tsx index ba4f1b77d..ec2b1ac33 100644 --- a/ui/src/components/containers/base-container.tsx +++ b/ui/src/components/containers/base-container.tsx @@ -3,15 +3,15 @@ import { twMerge } from 'tailwind-merge'; import { BackgroundColor } from '../../interfaces/color'; type BaseContainerProps = { - backgroundColor?: BackgroundColor; + baseClassNames?: string; } & React.HTMLAttributes; export const BaseContainer = React.forwardRef( - ({ children, className, backgroundColor, ...props }, ref) => { + ({ children, className, baseClassNames, ...props }, ref) => { return ( -
+
-
+
{children}
diff --git a/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx b/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx index d2ff11153..d8a105708 100644 --- a/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx +++ b/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx @@ -12,7 +12,7 @@ export default async function Section2({ params }: DefaultPageProps) { const cards = translator.t(`section-2.cards`); return ( - + {translator.t(`section-2.topic`)} diff --git a/website/src/components/footer/footer.tsx b/website/src/components/footer/footer.tsx index 6508967d2..3a7c57ba9 100644 --- a/website/src/components/footer/footer.tsx +++ b/website/src/components/footer/footer.tsx @@ -1,5 +1,4 @@ import { DefaultParams } from '@/app/[lang]/[region]'; -import { WebsiteLanguage, websiteRegions } from '@/i18n'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Typography } from '@socialincome/ui'; import Link from 'next/link'; @@ -29,15 +28,8 @@ export default async function Footer({ lang, region }: DefaultParams) { namespaces: ['common', 'website-common', 'website-me'], }); - const supportedTranslatedLanguages = (['de', 'en', 'it', 'fr'] as WebsiteLanguage[]).map((lang) => { - return { translation: translator.t(`languages.${lang}`), code: lang }; - }); - const supportedTranslatedCountries = websiteRegions.map((region) => { - return { translation: translator.t(`regions.${region}`), code: region }; - }); - return ( - +
From 06dc8d061cf1196ca990448e44db6d0aca392672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BCndig?= Date: Thu, 23 Jan 2025 17:58:45 +0100 Subject: [PATCH 4/5] Small cleanups --- ui/src/components/containers/base-container.tsx | 9 ++++----- .../app/[lang]/[region]/(website)/arts/section-2.tsx | 2 +- website/src/components/footer/footer.tsx | 10 +--------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/ui/src/components/containers/base-container.tsx b/ui/src/components/containers/base-container.tsx index ba4f1b77d..182c97b42 100644 --- a/ui/src/components/containers/base-container.tsx +++ b/ui/src/components/containers/base-container.tsx @@ -1,17 +1,16 @@ import React from 'react'; import { twMerge } from 'tailwind-merge'; -import { BackgroundColor } from '../../interfaces/color'; type BaseContainerProps = { - backgroundColor?: BackgroundColor; + baseClassNames?: string; } & React.HTMLAttributes; export const BaseContainer = React.forwardRef( - ({ children, className, backgroundColor, ...props }, ref) => { + ({ children, className, baseClassNames, ...props }, ref) => { return ( -
+
-
+
{children}
diff --git a/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx b/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx index d2ff11153..d8a105708 100644 --- a/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx +++ b/website/src/app/[lang]/[region]/(website)/arts/section-2.tsx @@ -12,7 +12,7 @@ export default async function Section2({ params }: DefaultPageProps) { const cards = translator.t(`section-2.cards`); return ( - + {translator.t(`section-2.topic`)} diff --git a/website/src/components/footer/footer.tsx b/website/src/components/footer/footer.tsx index 6508967d2..3a7c57ba9 100644 --- a/website/src/components/footer/footer.tsx +++ b/website/src/components/footer/footer.tsx @@ -1,5 +1,4 @@ import { DefaultParams } from '@/app/[lang]/[region]'; -import { WebsiteLanguage, websiteRegions } from '@/i18n'; import { Translator } from '@socialincome/shared/src/utils/i18n'; import { BaseContainer, Typography } from '@socialincome/ui'; import Link from 'next/link'; @@ -29,15 +28,8 @@ export default async function Footer({ lang, region }: DefaultParams) { namespaces: ['common', 'website-common', 'website-me'], }); - const supportedTranslatedLanguages = (['de', 'en', 'it', 'fr'] as WebsiteLanguage[]).map((lang) => { - return { translation: translator.t(`languages.${lang}`), code: lang }; - }); - const supportedTranslatedCountries = websiteRegions.map((region) => { - return { translation: translator.t(`regions.${region}`), code: region }; - }); - return ( - +
From 2966c67b700666e63b05b3d3ecfb8ba8a9ba2acf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20K=C3=BCndig?= Date: Thu, 23 Jan 2025 19:43:28 +0100 Subject: [PATCH 5/5] Small cleanups --- ui/src/components/containers/base-container.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/components/containers/base-container.tsx b/ui/src/components/containers/base-container.tsx index 182c97b42..bef37fae1 100644 --- a/ui/src/components/containers/base-container.tsx +++ b/ui/src/components/containers/base-container.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import { twMerge } from 'tailwind-merge'; type BaseContainerProps = { baseClassNames?: string; @@ -10,7 +9,7 @@ export const BaseContainer = React.forwardRef
-
+
{children}