From 1cdfebdb70f6523478e42519cef093704c95f8de Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Mon, 8 Aug 2022 22:41:41 +0200 Subject: [PATCH] Remove feature links on intro page Signed-off-by: Tilman Vatteroth --- locales/en.json | 5 --- src/components/intro-page/feature-links.tsx | 49 --------------------- src/pages/intro.tsx | 8 ++-- 3 files changed, 3 insertions(+), 59 deletions(-) delete mode 100644 src/components/intro-page/feature-links.tsx diff --git a/locales/en.json b/locales/en.json index 741d34cdd..64cf73869 100644 --- a/locales/en.json +++ b/locales/en.json @@ -60,11 +60,6 @@ "landing": { "intro": { "exploreFeatures": "Explore all features", - "features": { - "collaboration": "Real time collaboration", - "katex": "Works with charts and KaTeX", - "slides": "Supports slide mode" - }, "markdownWhileLoading": "Loading...", "markdownLoadingError": "Error while fetching intro content" }, diff --git a/src/components/intro-page/feature-links.tsx b/src/components/intro-page/feature-links.tsx deleted file mode 100644 index 266b91a08..000000000 --- a/src/components/intro-page/feature-links.tsx +++ /dev/null @@ -1,49 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) - * - * SPDX-License-Identifier: AGPL-3.0-only - */ - -import Link from 'next/link' -import React from 'react' -import { Col, Row } from 'react-bootstrap' -import { Trans, useTranslation } from 'react-i18next' -import { ForkAwesomeIcon } from '../common/fork-awesome/fork-awesome-icon' - -export const FeatureLinks: React.FC = () => { - useTranslation() - return ( - - - - - -
- -
-
- - - - - - -
- -
-
- - - - - - -
- -
-
- - -
- ) -} diff --git a/src/pages/intro.tsx b/src/pages/intro.tsx index 5b155bcd6..4d1a2c2ca 100644 --- a/src/pages/intro.tsx +++ b/src/pages/intro.tsx @@ -1,7 +1,7 @@ /* - SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file) - - SPDX-License-Identifier: AGPL-3.0-only + * SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file) + * + * SPDX-License-Identifier: AGPL-3.0-only */ import type { NextPage } from 'next' import { LandingLayout } from '../components/landing-layout/landing-layout' @@ -14,7 +14,6 @@ import { import { Trans } from 'react-i18next' import { Branding } from '../components/common/branding/branding' import { CoverButtons } from '../components/intro-page/cover-buttons/cover-buttons' -import { FeatureLinks } from '../components/intro-page/feature-links' import React from 'react' import { IntroCustomContent } from '../components/intro-page/intro-custom-content' @@ -39,7 +38,6 @@ const IntroPage: NextPage = () => {
- )