put footer back

This commit is contained in:
zeppi 2021-06-16 11:28:28 -04:00 committed by Thomas Zarebczan
parent 470f8f6f34
commit c382bfd438
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -1,101 +1,34 @@
import * as PAGES from 'constants/pages';
import React from 'react'; import React from 'react';
import Button from 'component/button'; import Button from 'component/button';
import I18nMessage from 'component/i18nMessage';
const sections = [
{
name: 'Community',
links: [
{
label: 'Twitter',
link: 'https://twitter.com/lbrycom',
},
{
label: 'Reddit',
link: 'https://reddit.com/r/lbry',
},
{
label: 'Chat (Discord)',
link: 'https://chat.lbry.org/',
},
{
label: 'Telegram',
link: 'https://t.me/lbryofficial',
},
{
label: 'Facebook',
link: 'https://www.facebook.com/lbryio',
},
],
},
{
name: 'Resources',
links: [
{
label: 'FAQ',
link: 'https://lbry.com/faq',
},
{
label: 'Support --[used in footer; general help/support]--',
link: 'https://lbry.com/faq/support',
},
{
label: 'YouTube Partner Program',
link: 'https://lbry.com/youtube',
},
{
label: 'lbry.com',
link: 'https://lbry.com',
},
{
label: 'lbry.tech',
link: 'https://lbry.tech',
},
{
label: 'GitHub',
link: 'https://github.com/lbryio',
},
],
},
{
name: 'Policies',
links: [
{
label: 'Terms of Service',
link: 'https://www.lbry.com/termsofservice',
},
{
label: 'Privacy Policy',
link: 'https://lbry.com/privacypolicy',
},
{
label: '2257',
navigate: `/$/${PAGES.CODE_2257}`,
},
],
},
];
export default function Footer() { export default function Footer() {
return ( return (
<footer className="footer"> <footer className="footer">
<ul className="navigation__tertiary footer__links ul--no-style"> <span className="footer__section-title">
{sections.map(({ name, links }) => { <I18nMessage tokens={{ lbry_link: <Button button="link" label={'LBRY'} href="https://lbry.com" /> }}>
return ( POWERED BY %lbry_link%
<li key={name} className="footer__section"> </I18nMessage>
<ul className="ul--no-style"> </span>
<div className="footer__section-title">{__(name)}</div> <ul className="navigation__tertiary footer__links">
{links.map(({ label, link, navigate }) => { <li className="footer__link">
return ( <Button label={__('About --[link title in Sidebar or Footer]--')} href="https://lbry.com/about" />
<li key={label}>
<Button className="footer__link" label={__(label)} href={link} navigate={navigate} />
</li> </li>
); <li className="footer__link">
})} <Button label={__('Community Guidelines')} href="https://odysee.com/@OdyseeHelp:b/Community-Guidelines:c" />
</ul> </li>
<li className="footer__link">
<Button label={__('FAQ')} href="https://odysee.com/@OdyseeHelp:b" />
</li>
<li className="footer__link">
<Button label={__('Support --[used in footer; general help/support]--')} href="https://lbry.com/support" />
</li>
<li className="footer__link">
<Button label={__('Terms')} href="https://lbry.com/termsofservice" />
</li>
<li className="footer__link">
<Button label={__('Privacy Policy')} href="https://lbry.com/privacy" />
</li> </li>
);
})}
</ul> </ul>
</footer> </footer>
); );