From 22a4255320fa9f890a8ca4cf12106ebf56d5d2d5 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 8 May 2020 12:48:58 -0400 Subject: [PATCH] add footer for web --- lbrytv/component/footer.jsx | 86 ++++++++++++++++++++++++++++++ ui/component/page/view.jsx | 7 ++- ui/page/channelsFollowing/view.jsx | 2 +- ui/page/discover/view.jsx | 2 +- ui/page/tagsFollowing/view.jsx | 2 +- ui/scss/all.scss | 1 + ui/scss/component/_footer.scss | 23 ++++++++ 7 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 lbrytv/component/footer.jsx create mode 100644 ui/scss/component/_footer.scss diff --git a/lbrytv/component/footer.jsx b/lbrytv/component/footer.jsx new file mode 100644 index 000000000..0461b7360 --- /dev/null +++ b/lbrytv/component/footer.jsx @@ -0,0 +1,86 @@ +// @flow +import React from 'react'; +import Button from 'component/button'; + +const sections = [ + { + name: 'Talk To Us', + links: [ + { + label: 'Twitter', + link: 'https://twitter.com/lbryio', + }, + { + label: 'Reddit', + link: 'https://reddit.com/lbry', + }, + { + label: 'Discord', + link: 'https://chat.lbry.com/', + }, + { + label: 'Telegram', + link: 'https://t.me/lbryofficial', + }, + { + label: 'Facebook', + link: 'https://www.facebook.com/lbryio', + }, + ], + }, + { + name: 'Learn More', + links: [ + { + label: 'FAQ', + link: 'https://lbry.com/faq', + }, + { + label: 'lbry.tech', + link: 'https://lbry.tech', + }, + { + label: 'Github', + link: 'https://github.com/lbryio/lbry-desktop', + }, + ], + }, + { + name: 'Other', + links: [ + { + label: 'Support', + link: 'https://lbry.com/faq/support', + }, + { + label: 'Terms of Service', + link: 'https://www.lbry.com/termsofservice', + }, + { + label: '2257', + link: '', + }, + ], + }, +]; + +export default function Footer() { + return ( + + ); +} diff --git a/ui/component/page/view.jsx b/ui/component/page/view.jsx index 61a0389e8..756e705cd 100644 --- a/ui/component/page/view.jsx +++ b/ui/component/page/view.jsx @@ -4,6 +4,7 @@ import React, { Fragment } from 'react'; import classnames from 'classnames'; import SideNavigation from 'component/sideNavigation'; import Header from 'component/header'; +import Footer from 'lbrytv/component/footer'; export const MAIN_CLASS = 'main'; type Props = { @@ -13,10 +14,11 @@ type Props = { isUpgradeAvailable: boolean, authPage: boolean, noHeader: boolean, + noFooter: boolean, }; function Page(props: Props) { - const { children, className, authPage = false, noHeader } = props; + const { children, className, authPage = false, noHeader, noFooter } = props; return ( @@ -25,6 +27,9 @@ function Page(props: Props) {
{children}
{!authPage && !noHeader && } + {/* @if TARGET='web' */} + {!noFooter &&