lbry-desktop/web/component/footer.jsx

104 lines
2.3 KiB
React
Raw Normal View History

2020-05-08 18:48:58 +02:00
// @flow
2020-05-23 02:18:10 +02:00
import * as PAGES from 'constants/pages';
2020-05-08 18:48:58 +02:00
import React from 'react';
import Button from 'component/button';
const sections = [
{
2020-05-13 17:55:49 +02:00
name: 'Community',
2020-05-08 18:48:58 +02:00
links: [
{
label: 'Twitter',
2020-08-25 15:22:54 +02:00
link: 'https://twitter.com/lbrycom',
2020-05-08 18:48:58 +02:00
},
{
label: 'Reddit',
2020-05-15 14:48:26 +02:00
link: 'https://reddit.com/r/lbry',
2020-05-08 18:48:58 +02:00
},
{
2020-05-13 17:55:49 +02:00
label: 'Chat (Discord)',
link: 'https://chat.lbry.org/',
2020-05-08 18:48:58 +02:00
},
{
label: 'Telegram',
link: 'https://t.me/lbryofficial',
},
{
label: 'Facebook',
link: 'https://www.facebook.com/lbryio',
},
],
},
{
2020-05-13 17:55:49 +02:00
name: 'Resources',
2020-05-08 18:48:58 +02:00
links: [
{
label: 'FAQ',
link: 'https://lbry.com/faq',
},
2020-05-13 17:55:49 +02:00
{
label: 'Support --[used in footer; general help/support]--',
2020-05-13 17:55:49 +02:00
link: 'https://lbry.com/faq/support',
},
{
label: 'YouTube Partner Program',
link: 'https://lbry.com/youtube',
},
{
label: 'lbry.com',
link: 'https://lbry.com',
},
2020-05-08 18:48:58 +02:00
{
label: 'lbry.tech',
link: 'https://lbry.tech',
},
{
2020-05-13 17:55:49 +02:00
label: 'GitHub',
link: 'https://github.com/lbryio',
2020-05-08 18:48:58 +02:00
},
],
},
{
2020-05-13 17:55:49 +02:00
name: 'Policies',
2020-05-08 18:48:58 +02:00
links: [
{
label: 'Terms of Service',
link: 'https://www.lbry.com/termsofservice',
},
{
2020-05-13 17:55:49 +02:00
label: 'Privacy Policy',
link: 'https://lbry.com/privacypolicy',
2020-05-08 18:48:58 +02:00
},
2020-05-23 02:18:10 +02:00
{
label: '2257',
navigate: `/$/${PAGES.CODE_2257}`,
},
2020-05-08 18:48:58 +02:00
],
},
];
export default function Footer() {
return (
<footer className="footer">
<ul className="navigation__tertiary footer__links ul--no-style">
{sections.map(({ name, links }) => {
return (
<li key={name} className="footer__section">
<ul className="ul--no-style">
<div className="footer__section-title">{__(name)}</div>
{links.map(({ label, link, navigate }) => {
return (
<li key={label}>
<Button className="footer__link" label={__(label)} href={link} navigate={navigate} />
</li>
);
})}
</ul>
</li>
);
})}
</ul>
2020-05-08 18:48:58 +02:00
</footer>
);
}