Skip to content

Commit

Permalink
feat: add multiple line to additional logos
Browse files Browse the repository at this point in the history
- Add a way to create multiple lines on the footer, so that we can mimic
  the same behaviour that exists on the marketing site
  • Loading branch information
sandroscosta committed Oct 10, 2024
1 parent cd0ee8e commit 3dcd5e8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
36 changes: 35 additions & 1 deletion src/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $logo-color: #4e4e4e !default;
flex-basis: 260px;
min-width: 200px;
font-size: 0.9rem;

span {
font-weight: 600;
}
Expand All @@ -47,4 +47,38 @@ $logo-color: #4e4e4e !default;
&__badge {
margin-right: 1.5rem;
}
}

.footer-additional-logos {
padding: 25px 65px;

@media screen and (max-width: 768px) {
flex-direction: column;
padding-inline-start: 0;
padding-inline-end: 0;
}

&__line {
display: flex;
justify-content: center;
gap: 1.5rem;
border-block-end: 1px solid #dedede;
padding: 1rem 0 1.6rem 0;
flex-basis: 0;

@media screen and (max-width: 768px) {
flex-direction: column;
align-items: center;
}

img {
max-height: 4rem;
padding: 0 .5rem;
max-width: 100%;
}

&:last-child {
border: none;
}
}
}
14 changes: 7 additions & 7 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ const AdditionalLogosSection = () => {

return (
<section className="footer-additional-logos">
<div className="d-md-flex justify-content-between px-4">
{logos.map((logo) => (
<div className="py-3">
{logos.map(line => (
<div className="footer-additional-logos__line">
{Array.isArray(line) && line.map(logo => (
<a href={logo.url} target="_blank" rel="noopener noreferrer">
<img src={logo.src} alt={logo.alt} style={{ maxHeight: '45px', maxWidth: '280px' }} />
<img src={logo.src} alt={logo.alt} />
</a>
</div>
))}
</div>
))}
</div>
))}
</section>
);
};
Expand Down

0 comments on commit 3dcd5e8

Please sign in to comment.