Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max-width, fix padding #1009

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 81 additions & 82 deletions src/components/navigation/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,92 +40,91 @@ const Footer = ({

return (
<footer className={styles.footer}>
<FooterIllustration color={"#FFD02F"} />
<div className={styles.footerContent}>
<nav className={styles.nav}>
<div className={styles.flex_container_left}>
<div>
<TextTertiary>{t("text")}</TextTertiary>
{/* TODO:: Get offices and map through. Should these link to something? */}
<ul className={styles.offices}>
{companyLocations.map((location) => (
<li
key={location.companyLocationName}
className={styles.dotSeparator}
<div className={styles.wrapper}>
<FooterIllustration color={"#FFD02F"} />
<div className={styles.footerContent}>
<nav className={styles.nav}>
<div className={styles.flex_container_left}>
<div>
<TextTertiary>{t("text")}</TextTertiary>
{/* TODO:: Get offices and map through. Should these link to something? */}
<ul className={styles.offices}>
{companyLocations.map((location) => (
<li
key={location.companyLocationName}
className={styles.dotSeparator}
>
{location.companyLocationName}
</li>
))}
</ul>
</div>
<div>
<FooterSection title={t("contact")}>
<Link
href={`mailto:${companyInfo.companyEmail}`}
className={styles.contactInfo}
>
{location.companyLocationName}
</li>
))}
</ul>
{companyInfo.companyEmail}
</Link>
</FooterSection>
</div>
</div>
<div>
<FooterSection title={t("contact")}>
<Link
href={`mailto:${companyInfo.companyEmail}`}
className={styles.contactInfo}
>
{companyInfo.companyEmail}
</Link>
</FooterSection>
<div className={styles.flex_container_right}>
{navigationData.main && (
<FooterSection title={t("mainMenu")}>
{renderPageLinks(navigationData)}
</FooterSection>
)}
{navigationData.footer && (
<FooterSection title={t("other")}>
{renderOtherLinks(navigationData)}
</FooterSection>
)}
{soMeData && (
<FooterSection title={t("socialMedia")}>
{renderSoMe(navigationData, soMeData)}
</FooterSection>
)}
</div>
</nav>
<Image
className={styles.logo}
src={"/_assets/variant-logo.svg"}
alt={"variant logo"}
width={310}
height={74}
/>
<div className={styles.grey_links}>
{/* <ul className={styles.grey_links__language}>
<li>
<CustomLink link={dummyLink("English")} type="footerLink" />
</li>
</ul> */}
{/* THERE ARE NO LEGAL DOCUMENTS FOR LAUNCH, REINSTATE WHEN WE HAVE LEGAL DOCUMENTS TO SHOW */}
{/* <ul className={styles.credits}>
{legalData?.map((legal) => {
const link: ILink = {
_key: legal._id,
_type: legal._type,
linkTitle: legal.basicTitle,
linkType: LinkType.Internal,
internalLink: {
_ref: legal.slug.current,
},
language: legal.language,
};
return (
<li key={legal._id}>
<CustomLink link={link} type="footerLink" />
</li>
);
})}
</ul> */}
<span className={styles.organisationNumber}>
Org. nr. {companyInfo.organizationNumber}
</span>
</div>
<div className={styles.flex_container_right}>
{navigationData.main && (
<FooterSection title={t("mainMenu")}>
{renderPageLinks(navigationData)}
</FooterSection>
)}
{navigationData.footer && (
<FooterSection title={t("other")}>
{renderOtherLinks(navigationData)}
</FooterSection>
)}

{soMeData && (
<FooterSection title={t("socialMedia")}>
{renderSoMe(navigationData, soMeData)}
</FooterSection>
)}
</div>
</nav>
<Image
className={styles.logo}
src={"/_assets/variant-logo.svg"}
alt={"variant logo"}
width={310}
height={74}
/>

<div className={styles.grey_links}>
{/* <ul className={styles.grey_links__language}>
<li>
<CustomLink link={dummyLink("English")} type="footerLink" />
</li>
</ul> */}
{/* THERE ARE NO LEGAL DOCUMENTS FOR LAUNCH, REINSTATE WHEN WE HAVE LEGAL DOCUMENTS TO SHOW */}
{/* <ul className={styles.credits}>
{legalData?.map((legal) => {
const link: ILink = {
_key: legal._id,
_type: legal._type,
linkTitle: legal.basicTitle,
linkType: LinkType.Internal,
internalLink: {
_ref: legal.slug.current,
},
language: legal.language,
};
return (
<li key={legal._id}>
<CustomLink link={link} type="footerLink" />
</li>
);
})}
</ul> */}

<span className={styles.organisationNumber}>
Org. nr. {companyInfo.organizationNumber}
</span>
</div>
</div>
</footer>
Expand Down
8 changes: 7 additions & 1 deletion src/components/navigation/footer/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
display: flex;
flex-direction: column;
justify-content: center;
padding: 1rem;
align-items: center;
padding: 1rem 0;

@media (max-width: 425px) {
padding: 0;
}
}

.wrapper {
max-width: var(--max-content-width-large);
width: 100%;
}

.footerContent {
background-color: var(--background-bg-light-secondary);
border-radius: 0.75rem;
Expand Down
Loading