Skip to content

Commit

Permalink
feat: change footer illustration styling (#1093)
Browse files Browse the repository at this point in the history
* feat: change footer illustration styling

* style: run lint fix

* chore: remove unnecessary styling
  • Loading branch information
TrymVei authored Jan 7, 2025
1 parent 2eedf05 commit 6bc0da8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 29 deletions.
26 changes: 0 additions & 26 deletions src/components/navigation/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const Footer = ({
<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
Expand Down Expand Up @@ -108,31 +107,6 @@ const Footer = ({
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>
Expand Down
4 changes: 4 additions & 0 deletions src/components/navigation/footer/footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
border-radius: 0.75rem;
padding: 1.5rem;
padding-bottom: 2.25rem;
position: relative;
z-index: 1;

@media (min-width: 802px) {
padding: 2.25rem;
}
Expand Down Expand Up @@ -91,6 +94,7 @@
font-style: normal;
font-weight: 500;
line-height: 120%;

&:hover {
text-decoration: underline;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const FooterIllustration = ({ color }: FooterIllustrationProps) => {
return (
<div className={styles.footerIllustrations}>
<svg
className={styles.svgLeft}
xmlns="http://www.w3.org/2000/svg"
width="147"
height="71"
Expand Down Expand Up @@ -44,6 +45,7 @@ export const FooterIllustration = ({ color }: FooterIllustrationProps) => {
/>
</svg>
<svg
className={styles.svgRight}
xmlns="http://www.w3.org/2000/svg"
width="215"
height="84"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,38 @@
background-color: transparent;
display: flex;
align-items: flex-end;
justify-content: space-around;
padding-left: 6.5rem;
gap: 9.3rem;
position: relative;
top: 2rem;
z-index: 0;

& > svg {
width: 20%;
& > .svgLeft {
width: 283px;
height: auto;
}

& > .svgRight {
width: 421px;
height: auto;
}

@media (max-width: 834px) {
top: 0;
padding-left: 5.25rem;
gap: 10rem;

& > .svgLeft {
width: 141px;
}

& > .svgRight {
width: 211px;
}
}

@media (max-width: 425px) {
padding-left: 1.25rem;
gap: 0rem;
}
}

0 comments on commit 6bc0da8

Please sign in to comment.