From 12d4653654ba97f188eab8ee61457ac1ee3e4609 Mon Sep 17 00:00:00 2001 From: Simon Zheng Date: Sat, 6 Jan 2024 16:07:29 +0800 Subject: [PATCH] Include donation link in mobile web app --- components/AppLayout/AppFooter.js | 157 +++++++++++++++--------------- 1 file changed, 81 insertions(+), 76 deletions(-) diff --git a/components/AppLayout/AppFooter.js b/components/AppLayout/AppFooter.js index 908ad8f8..2c1a5f51 100644 --- a/components/AppLayout/AppFooter.js +++ b/components/AppLayout/AppFooter.js @@ -89,88 +89,93 @@ const CustomLink = withStyles(theme => ({ )); +function FactCheckSection({ classes }) { + return ( +
+

{t`Fact Check`}

+ {t`Messages`} + {c('App layout').t`Replies`} + {c('App layout').t`For You`} + {c('App layout').t`Tutorial`} +
+ ); +} + +function AboutSection({ classes }) { + return ( +
+

{t`About`}

+ {t`About Cofacts`} + {t`User Agreement`} + + {t`Introduction`} + + + {t`Source Code`} + + + Medium + + {t`Impact Report`} +
+ ); +} + +function ContactSection({ classes, isDesktop }) { + return ( +
+

{t`Contact`}

+ ( + + )} + > + {t`Contact Us`} + + ( + + )} + > + {t`Facebook forum`} + + ( + + )} + > + Line: @cofacts + + {isDesktop && } + + {t`Donate to Cofacts`} + +
+ ); +} + function AppFooter() { const classes = useStyles(); - const matches = useMediaQuery('(min-width:768px)'); + const isDesktop = useMediaQuery('(min-width:768px)'); return ( - + // +
-
-

{t`Fact Check`}

- {t`Messages`} - - {c('App layout').t`Replies`} - - - {c('App layout').t`For You`} - - - {c('App layout').t`Tutorial`} - -
-
-

{t`About`}

- {t`About Cofacts`} - {t`User Agreement`} - - {t`Introduction`} - - - {t`Source Code`} - - - Medium - - {t`Impact Report`} -
-
-

{t`Contact`}

- ( - - )} - > - {t`Contact Us`} - - ( - - )} - > - {t`Facebook forum`} - - ( - - )} - > - Line: @cofacts - - {matches && } - - {t`Donate to Cofacts`} - -
+ {isDesktop && } + {isDesktop && } +