Fix footer in master

Since lbry.tv is going away, I tried not to touch the css file much so that the merge into `odysee` won't affect it. The side effect is that the links are now white instead of the regular link color.
This commit is contained in:
infinite-persistence 2021-06-08 01:18:52 +08:00
parent 05a1f3cdab
commit 5eae88b553
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 14 additions and 11 deletions

View file

@ -47,6 +47,10 @@
.footer__section { .footer__section {
margin-left: var(--spacing-xl); margin-left: var(--spacing-xl);
&:not(:last-child) {
padding-right: var(--spacing-xl);
}
@media (max-width: $breakpoint-small) { @media (max-width: $breakpoint-small) {
margin-left: var(--spacing-l); margin-left: var(--spacing-l);
} }

View file

@ -80,23 +80,22 @@ const sections = [
export default function Footer() { export default function Footer() {
return ( return (
<footer className="footer"> <footer className="footer">
{sections.map(({ name, links }) => { <ul className="navigation__tertiary footer__links bright ul--no-style">
return ( {sections.map(({ name, links }) => {
<div key={name} className="footer__section"> return (
<div className="footer__section-title">{__(name)}</div> <li key={name} className="footer__section">
<ul className="ul--no-style"> <div className="footer__section-title">{__(name)}</div>
{/* $FlowFixMe */}
{links.map(({ label, link, navigate }) => { {links.map(({ label, link, navigate }) => {
return ( return (
<li key={label}> <li key={label}>
<Button className="footer__link" href={link} navigate={navigate} label={__(label)} /> <Button className="footer__link" label={__(label)} href={link} navigate={navigate} />
</li> </li>
); );
})} })}
</ul> </li>
</div> );
); })}
})} </ul>
</footer> </footer>
); );
} }