From 0ff21691d400789a3176328d7c4824913d0ef967 Mon Sep 17 00:00:00 2001 From: TrymVei Date: Fri, 29 Nov 2024 17:25:08 +0100 Subject: [PATCH] feat: add illustrations on top of footer --- .../navigation/footer/Footer_new.tsx | 163 ++++++++++-------- .../footerIllustration/FooterIllustration.tsx | 70 ++++++++ .../footerIllustration.module.css | 11 ++ .../navigation/footer/footer_new.module.css | 7 +- 4 files changed, 174 insertions(+), 77 deletions(-) create mode 100644 src/components/navigation/footer/footerIllustration/FooterIllustration.tsx create mode 100644 src/components/navigation/footer/footerIllustration/footerIllustration.module.css diff --git a/src/components/navigation/footer/Footer_new.tsx b/src/components/navigation/footer/Footer_new.tsx index cad269235..54cbd146f 100644 --- a/src/components/navigation/footer/Footer_new.tsx +++ b/src/components/navigation/footer/Footer_new.tsx @@ -15,6 +15,7 @@ import { import styles from "./footer_new.module.css"; import { FooterSection } from "./footerSection/FooterSection"; import { TextTertiary } from "./textTertiary/TextTertiary"; +import { FooterIllustration } from "./footerIllustration/FooterIllustration"; export interface IFooter { navigationData: Navigation; @@ -36,92 +37,108 @@ const FooterNew = ({ navigationData, soMeData, legalData }: IFooter) => { return ( ); }; +// TODO: Change color on some link const renderSoMe = (data: Navigation, soMeData: SocialMediaProfiles) => { const socialMediaSections = filterSectionsByType(data, "socialMedia"); return ( diff --git a/src/components/navigation/footer/footerIllustration/FooterIllustration.tsx b/src/components/navigation/footer/footerIllustration/FooterIllustration.tsx new file mode 100644 index 000000000..dafc9bdc8 --- /dev/null +++ b/src/components/navigation/footer/footerIllustration/FooterIllustration.tsx @@ -0,0 +1,70 @@ +import React from "react"; + +import styles from "./footerIllustration.module.css"; + +interface FooterIllustrationProps { + color: string; +} + +export const FooterIllustration = ({ color }: FooterIllustrationProps) => { + return ( +
+ + + + + + + + + + + + +
+ ); +}; diff --git a/src/components/navigation/footer/footerIllustration/footerIllustration.module.css b/src/components/navigation/footer/footerIllustration/footerIllustration.module.css new file mode 100644 index 000000000..7dc7f0cc0 --- /dev/null +++ b/src/components/navigation/footer/footerIllustration/footerIllustration.module.css @@ -0,0 +1,11 @@ +.footerIllustrations { + background-color: transparent; + display: flex; + align-items: end; + justify-content: space-around; + + &>svg { + width: 20%; + height: auto; + } +} diff --git a/src/components/navigation/footer/footer_new.module.css b/src/components/navigation/footer/footer_new.module.css index 06e44ff10..cd838e9ac 100644 --- a/src/components/navigation/footer/footer_new.module.css +++ b/src/components/navigation/footer/footer_new.module.css @@ -1,4 +1,4 @@ -.footer { +.footerContent { background-color: var(--primary-bg); border-radius: 0.75rem; padding: 1.5rem; @@ -50,8 +50,7 @@ justify-content: space-between; } - @media (min-width: 1408px) { - } + @media (min-width: 1408px) {} } .logo { @@ -96,7 +95,7 @@ gap: 1rem; flex-wrap: wrap; - & > li { + &>li { text-wrap: nowrap; }