From cb433f12b28d895049e15641daf75a57026735bd Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 24 Oct 2020 10:48:27 -0500 Subject: [PATCH] Removing landing and donations page, adding joinlemmy. Fixes #63 --- lemmy-translations | 2 +- src/shared/components/footer.tsx | 12 +- src/shared/components/main.tsx | 45 ------- src/shared/components/navbar.tsx | 11 -- src/shared/components/post.tsx | 1 - src/shared/components/sponsors.tsx | 187 ----------------------------- src/shared/routes.ts | 2 - src/shared/utils.ts | 1 + 8 files changed, 8 insertions(+), 253 deletions(-) delete mode 100644 src/shared/components/sponsors.tsx diff --git a/lemmy-translations b/lemmy-translations index 7dc3916..2a49258 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 7dc391601135a52cddd3112ca75b505b99cec4fc +Subproject commit 2a492580d773e50061bb3a2c9562dde1173c8941 diff --git a/src/shared/components/footer.tsx b/src/shared/components/footer.tsx index 41369a5..5d132ee 100644 --- a/src/shared/components/footer.tsx +++ b/src/shared/components/footer.tsx @@ -1,7 +1,7 @@ import { Component } from 'inferno'; import { Link } from 'inferno-router'; import { i18n } from '../i18next'; -import { repoUrl } from '../utils'; +import { repoUrl, joinLemmyUrl } from '../utils'; import { GetSiteResponse } from 'lemmy-js-client'; interface FooterProps { @@ -38,16 +38,16 @@ export class Footer extends Component { {i18n.t('docs')} - + diff --git a/src/shared/components/main.tsx b/src/shared/components/main.tsx index 149f979..689a4d9 100644 --- a/src/shared/components/main.tsx +++ b/src/shared/components/main.tsx @@ -37,7 +37,6 @@ import { CommunityLink } from './community-link'; import { BannerIconHeader } from './banner-icon-header'; import { wsJsonToRes, - repoUrl, mdToHtml, fetchLimit, toast, @@ -291,10 +290,6 @@ export class Main extends Component {
{this.sidebar()}
- -
-
{this.landing()}
-
)} @@ -493,46 +488,6 @@ export class Main extends Component { ); } - landing() { - return ( - <> -
- {i18n.t('powered_by')} - - # - - - Lemmybeta - -
-

- - # - - # - - # -

- # -

- # -

- # -

- # - # - # - # -

- - # - -
-

- - ); - } - posts() { return (
diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index 04dae46..63bc230 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -254,17 +254,6 @@ export class Navbar extends Component { {i18n.t('create_community')} -
  • - - - - - -